[ Date Index ][
Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]
Hi Neil I did what you suggested (I copied test.php3 to /var/www/html) and it found the file but wouldn't read it. I tried typing RPM -e PHP in a console and it came back with the message failed dependencies. Does this mean PHP is not properly installed or have I asked it the wrong question? Thanks Rich On Wed, 2003-08-27 at 20:12, Neil Stone wrote: > Richard Brown wrote: > > Hi All > > > > I wrote my first PHP script. A simple 'Hello World'! > > > > <html> > > <body> > > > > <?php > > $myvar="Hello World"; > > echo $myvar; > > ?> > > > > </body> > > </html> > > > > When I try to run it through Mozilla I type: > > > > file:///home/rich/test.php3 > > > > the file is found but no hello world. The source code is available but > > no hello world. > > > > Running Red Hat 9. > > > > Any Ideas > > > > I can tell you the exact problem here matey :-) (i did it 1st time too) > php files MUST be pre-processed by a php enabled webserver (apache) > > you will need to load the .php file to a web server.. (your own) and > load it from there.... > > > http://localhost/phptest/test.php > > for example.. > > the default file base for RedHats apache server config is /var/www/html > so load it there.. or read through the "userdir" section in > /etc/httpd/conf/httpd.conf and set it up from there.. > > HTH > > Neil > > > -- > The Mailing List for the Devon & Cornwall LUG > Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the > message body to unsubscribe. -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.