Forums

This topic is locked

$_SERVER['SCRIPT_NAME']; gives wrong url

Posted 24 Aug 2006 14:06:56
1
has voted
24 Aug 2006 14:06:56 John Picton posted:
Don't think that this is a bug in the extension, maybe someone can help me though.

The "$_SERVER['SCRIPT_NAME'];" part of the incFileGenie.php file should (and does on other servers) return the url of the current page. At the moment on one of my servers (third party hosting) when I try to delete a file using file genie the delete url displays "www.mydomain.co.uk/php-bin/php?Action=delete&file=.." rather than "www.mydomain.co.uk/mypage.php?Action=delete&file=.."

Don't know where the "php-bin/php?" in the first example has come from! Am I right in thinking that in theory at least the code "$_SERVER['SCRIPT_NAME'];" should return the url of my page? In fact is seems to be returning the value "php-bin/php" instead.

Any help would be gratefully received.

Thanks.

Replies

Replied 28 Aug 2006 09:58:27
28 Aug 2006 09:58:27 Patrick Woldberg replied:
You could check with the phpinfo() what the globals are, maybe it is some setting on your server.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------

Reply to this topic