| 
	
 | 
 Posted by Jacques Jamain on 05/16/06 00:48 
hi, 
14 May 2006 15:20:21 -0700 
comp.lang.php 
-- "william.clarke@gmail.com" <william.clarke@gmail.com> écrivait (wrote): 
>What file extension does your primary page have? If your web server 
>isn't setup to parse .html files for php code, the code will pass 
>through to the client browser without any interpretation. So if on the 
>client-side you are seeing "<?php include('fspecs') ?>" when you view 
>the page source, then I suspect you need to modify your web server's 
>config to parse html files for php code. 
> 
 I can't do  anything to the config of my isp server but on my test 
 machine, which is an apache server (all in one, client and server on 
 the same machine), the server is well configured to parse php 
 code (addtype, addoutputfilter, includes...). The problem is that if the 
 dhtml echoed by php contains php directives (<?php include('fspecs') ?>) 
 these directives are not parsed again by php... Anyway I  think it's 
 not possible and I changed my design (if any d;-) and have set the db 
 ouput for JS in a file from a separate run and all the includes are made 
 from a static html file. 
 Thanks for your help. 
--  
jj - Lundi 15 Mai 2006 --- 22:48:17
 
[Back to original message] 
 |