Click to See Complete Forum and Search --> : fedora trying to reference www.pagename.php


chucklardo
11-16-2005, 12:52 AM
I've installed php 5 on fedora core 4,

PHP and the webserver seems to be running fine, however when i post a form instead of goin to /webroot/foldername/pagename.php

it tries to look for www.pagename.php... does anyone know why it would be doing this?

it's as if it doesn't know where the doc root is or something...

any info appreciated....


cheers,
Mitch

coreyp_1
11-16-2005, 01:03 AM
pardon my ignorance with fedora, but doesn't the browser make the request for "pagename.php" from the "action" in the form tags? if so, could this be a clientside issue?

chucklardo
04-17-2007, 12:12 AM
Yes, but the the server should resolve addresses relative to the doc root.

if you set your form action as action='http://www.pagename.php' then it should go there...

but if you set it to go to action='pagename.php' then it should look in the directory where the refering page is to try and find pagename.php.... if not found it should display a 404 error.