Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

final procedural project

ER authored on 13/04/2012 10:17:34
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,33 @@
1
+ 	<?php
2
+	include '../application/includes/session.php';
3
+	header('test:KO');
4
+	
5
+	//il faut faire attention, on peut imbriquzer les vecteurs de temporisation, et pas faire
6
+	// ce genre de script ( où les temporisations sont accolées....)
7
+	
8
+ 	ob_start();
9
+ 	?>
10
+	<head><title>test</title></head>
11
+ 	<?php
12
+	 $head = ob_get_contents();
13
+	 ob_end_clean();
14
+	?>
15
+
16
+<?php
17
+ob_start();
18
+?>
19
+<!DOCTYPE h2 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
20
+ <html><body>
21
+    <h2>ob</h2>
22
+ </body></html>
23
+ 
24
+<?php 
25
+var_dump($head);
26
+$content = ob_get_contents();
27
+ob_end_clean();
28
+
29
+
30
+
31
+var_dump($content);
32
+
33
+?>
0 34
\ No newline at end of file