Hi, I am new to php and mysql. I have them installed on Win/XP and also on Linux.
I have been trying to get a simple example to run and am having problems getting it to display. I have run the phpadmin test and it works just fine, but when I try a simple script like ‘hello world’, I get the headings but the php script does not get read, that I can tell. One of the scripts I am using is
[QUOTE=jlowry]
Hi, I am new to php and mysql. I have them installed on Win/XP and also on Linux.
I have been trying to get a simple example to run and am having problems getting it to display. I have run the phpadmin test and it works just fine, but when I try a simple script like ‘hello world’, I get the headings but the php script does not get read, that I can tell. One of the scripts I am using is
Hello World in PHP
<?php echo "
Hello, World!
"; ?>
the Hello World! from php does not get display.
Any help is appreciated,
thanks
jlowry
[/QUOTE]
I tried your code on my account on the Linux server and it worked ok. By chance are you not using a .php extension on the file?
I used the .php extension and it worked, when I changed the extension to .html, it did not work.
[QUOTE=jlowry]
My web browser was not setup to use php as an application. Changed the configuration file and all is well.
thanks
[/QUOTE]
How did you know, and how you changed the configuration (I use Win2000 and seems that I have trouble like yours)
Sorry… I guess it’s a silly question
thank you