|
Posted by Rik on 01/05/07 02:19
Warren Peace wrote:
> 'Tis my first time trying to install PHP on my Win XP machine...
> Apache/2.2.3(Win32) PHP/5.2.0
>
> Main problem is that with my lack of PHP experience,
> I'm not sure if my syntax is incorrect, or if there was a problem with
> my PHP/Apache Install
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> I do get PHP output if I use a simple block of code like
>
> <html>
> <body></body>
> <head>
> <title>Test</title>
> </head>
> Today is <?php print strftime("%m/%d/%Y"); ?>
> </a>
> </html>
Euhm, very interesting html...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> I do not get PHP output if I use code that I copied and pasted from a
> guide for PHP5
>
> <p>This is an HTML line
> <?php
> echo "<p>This is a PHP line</p>";
> phpinfo();
> ?>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> the result from that file when loaded in a browser was absolutely
> nothing!
Did you receive nothing, or maybe another header (401,404,500 spring to
mind)? Is this file in the same dir as the previous one? What happens if
you edit the file that works with the same php-code?
> Also, if I try to view the source code from this file after it's been
> displayed in my browser
> It is completely empty also!
Hmmz, add this to the beginning of the file:
ini_set('display_error',1);
error_reporting(E_ALL);
Do you get an error message then?
--
Rik Wasmus
[Back to original message]
|