|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Php page in browser from website is blank
Hi Codewalkers,
I recently installed (today) PHP installer; however, when i open my website php page in my browser there is nothing there. I did a view source and this is what it is showing for the contents. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> This is the actual code in the file: <html <Title>Response Form</a> <head> </head> <body> <p>Welcome to my page</p> <?php echo "This is my PHP text"; echo "<h1>My PHP header</h1>; echo "<br/>"; echo "<br/>"; echo "<br/>"; echo "<br/>"; echo "Goodbye"; ?> </body> </html> What am i doing wrong? thompsonay Last edited by thompsonay : October 3rd, 2008 at 12:55 PM. Reason: i thought i needed the brackets around the code to post |
|
#2
|
|||
|
|||
|
You don't have errors displayed. Just check the following line: echo "<h1>My PHP header</h1>; - you should add a quote to look like echo "<h1>My PHP header</h1>"; Here is your problem.
|
|
#3
|
|||
|
|||
|
actually, if you are viewing the source and seeing the php code, then you have a problem with the server not passing the file off to php to parse the code. What web server did you use (like apache or iis)? If the php installer didn't setup php in the server's configuration then you would have to do it manually. or it could be as simple as restarting the web server (like apache needs to be restarted after installing/changing php).
|
|
#4
|
|||
|
|||
|
RE: error, server
thank you, i did not notice the error control and i did the installer but i went in and made sure that it was configured...i will make the corrections restart apache and try it again...
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Php page in browser from website is blank |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|