|
Posted by Warren Peace on 01/05/07 02:27
Thanks for such a rapid reply Rik
tried adding
ini_set('display_error',1);
error_reporting(E_ALL);
to the very beginning of the file that's not working (even before the
html)
same results ...
nothing was output
no error message (404 or otherwise)
and yes, it is in the same directory as the one that does spit out the
date
Thanks again
Rik wrote:
> 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]
|