[Xitami] Help please, php not working.... please
Michael diLorenzo
xitami@lists.xitami.org
Sun, 30 May 2004 19:10:19 -0400
Hi Lee,
Two other troubleshooting things you might try:
1) Create a php file with an intentional error in it. Do you get an error
message on the resulting web page? That might help determine if Xitami is
even firing up the php compiler. To create an even worse error, rename
php.exe to something else, and see what error you get. If you don't get
an error THERE, then you know the server is not being properly instructed
on how to treat php files.
2) Create a php file (either pure php or php/html mix), put it in the same
directory as your php.exe, and in a DOS prompt, type php.exe <filename>.
This will run the php compiler outside the web server environment. The
php.exe should spit out the html code for your page, right there in the
DOS prompt. That will tell you if php is working properly, regardless of
what server you use.
You also might want to run Patrick's three line php file at the DOS prompt
too. Send the output to an html file, and view that output on the
server. For example, save the following three lines as phpinfo.php, and
put it in your PHP folder:
<?php
phpinfo();
?>
Then at the DOS prompt, run php.exe phpinfo.php > phpinfo.html. And then
view phpinfo.html with your web browser. Compare that page with what you
get when you look at phpinfo.php from the server.
Oh, and make sure you aren't using a .css file that turns your text to
white! (just kidding)
Michael
On Sat, 29 May 2004 14:49:52 -0700, Chestnut <chestnut@willapabay.org>
wrote:
> Another item I thought of later: use a php file with the following three
> lines in it
> <?php
> phpinfo();
> ?>
> Put in the root of the web server and use a browser to go to it.
> This gives (should) all of the infomation available to display on php and
> your server.
> Patrick
> ----- Original Message -----
> From: "leegold" <leegold2@verizon.net>
> To: <xitami@lists.xitami.org>
> Sent: Saturday, May 29, 2004 7:41 AM
> Subject: Re: [Xitami] Help please, php not working.... please
>
>
>> Alasdair Macdonald wrote:
>> > You'll need to have set up your defaults.cfg file too. The most
> important
>> > lines in that will be these:
>> >
>> > .php=C:\PHP\php.exe
>> > .php3=C:\PHP\php.exe
>> >
>> > (naturally your path may be different). I have 97 lines in my
> defaults.cfg,
>> > and some virtual host .cfg files too. But the settings above are the
> first,
>> > and I think you should begin to see results once you've added them.
>> >
>> > Alasdair
>>
>> Tried all the suggest but no luck, still get a blank page.
>> Any other ideas - this should be easy I wonder what is wrong?
>>
>>
>> --
>> Xitami Users Mailing List -- For Xitami support
>> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>>
>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/