Page 1 of 1

loading a php file.....

PostPosted: 06. October 2003 21:40
by dtran
Hi!

I have a problem when I try to load my php page. NOTHING LOADS!!. When I embedd php in a html file, the html stuff displays but nothing displays inside the php tags. I tried using basic echo commands embedded inside html but hte echo stuff does not load up in Internet Explorer?? I started apache then load up my files. Is this the way to do it??

Thanks

Did the PHP test files work?

PostPosted: 07. October 2003 06:46
by chanio
:lol:
Hello!
Did you try the PHP test files at the main menu?
If they work, then that means that the server is configured to work by the file extensions only. No LINUX-magical-file-openning. Don't worry, just use the .php extension at your files. If you would like to start with an .html file, you can always redirect to a (secret) .php file. Try using the refresh meta tag.
Apache allows to do more technical redirections at your httpd files. You should read more about all that, and try modify the httpd.config (but keeping the original file, just in case :) )
Hope it helps!

htm and emb php

PostPosted: 08. October 2003 18:41
by m
i dont think wampp has apache and php configured to allow the use of php in a .htm or .html file i beleive to execute the code you need to set up php to parse .htm and .html documents to allow code to be executed from a htm file. i might be wrong, but its worth a shot.