1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,23 @@ |
1 |
+<?php |
|
2 |
+ob_start(); |
|
3 |
+?> |
|
4 |
+ <?php ob_start();?> |
|
5 |
+ <head><title>test</title></head> |
|
6 |
+ <?php |
|
7 |
+ $head = ob_get_contents(); |
|
8 |
+ ob_end_clean(); |
|
9 |
+ ?> |
|
10 |
+<!DOCTYPE h2 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
|
11 |
+ <html><?php var_dump($head);?><body> |
|
12 |
+ <h2><?php phpinfo();?></h2> |
|
13 |
+ </body></html> |
|
14 |
+ |
|
15 |
+<?php |
|
16 |
+$content = ob_get_contents(); |
|
17 |
+ob_end_clean(); |
|
18 |
+include '../application/includes/session.php'; |
|
19 |
+header('test:KO'); |
|
20 |
+ |
|
21 |
+var_dump($content); |
|
22 |
+ |
|
23 |
+?> |
|
0 | 24 |
\ No newline at end of file |