Quote:
|
Originally Posted by world32 I know I need the php files ;-) but I don't need to adapt them they're fine, the only question I have is how to add the content of the phpfiles in a html (so the html file calls to the php files and executes them) :p hard to explain in english but you know what I mean I hope :p |
You've got this backwards. HTML and PHP files are handled differently by the Web Server, based on the file extension. An HTML file is sent directly to the browser and interpreted/rendered THERE, so there is never any chance for any included PHP code to be called/run/etc.
A PHP file, though, is first run through an ISAPI filter... plain English: something else grabs the PHP and "runs it". What a PHP program does is PRODUCE html, which it hands back to the Web Server, which serves it up to the user.
So, you don't "add the content of the phpfiles in a html". Rather, you adjust your PHP programs to produce the desired HTML!
If you already have HTML that you like, and just have a DIV or some section of it which needs to have PHP-generated content, then simply INCLUDE the PHP code directly in the HTML file, demarcated property: <? ?>.
Then, save the entire thing with a .PHP extension. Your web server will now run it as a PHP program, which should give you want you want.