PDA

View Full Version : Exhibition & Photo Links Error


ArtM
1st of October 2002 (Tue), 10:32
Ok ! What am I doing wrong ??
Both my Exhibition clickable Easy link shows

Easy link to this exhibition: http:///list.php?exhibition=11

and pictures show

Easy link to this photo: http:///photo.php?photo=403&exhibition=11

My photo site URL is missing !!

The Global Setting Link to My Front Page is set to correct URL , which shows on Exhibition & Photos just under the 'Easy Link'; & is clickable OK.

Any tips ??

Pekka
1st of October 2002 (Tue), 12:40
It seems that PHP functions can not get your server info (server name) from your server software. This is one of the problems when running PHP on OmniHTTPd server.

In photo.php and list.php you see a line:

$geturi = "http://" . $HTTP_SERVER_VARS['HTTP_HOST'] . $PHP_SELF

change it to

$geturi = "http://" . $HTTP_SERVER_VARS['SERVER_NAME'] . $PHP_SELF

That should help for the moment.

I recommend Apache as it handles it all without problems.

ArtM
1st of October 2002 (Tue), 17:18
Bingo !

Pekka, thank you kindly.

That did the job nicely.

I have used Omni (www.omnicron.ca) for several years. Its sort of an old-timer like me ! Its NOT well supported, but it runs reliably and simply, yet has most of the key features needed in a web server. And its from my Windows rather than Linux background. Sort of like an old shoe !

And it also seems to be unpopular amongst the virus writers guild - a point not to be taken lightly !

I WILL be into Apache one of these days - but there is other stuff to learn right now . . .