Jump to content

PHP current complete url address?


Rheves

Recommended Posts

I'm making a Gallery page on my site and I currently have it set up so that when the page loads if you have the address "site.com/Portfolio.php#fishandchips_l.jpg" javascript will load that picture as the default. I don't like it because it loads the default image first, THEN switches it out with the one specified in the url.

 

I want to use PHP to grab what follows the # in the address but all my attemps only return "Portfolio.php". I have tried $_SERVER['PHP_SELF'], $_SERVER['REQUEST_URI'], and $_SERVER['SCRIPT_NAME']. Also the gallery needs to NOT refresh on each change of picture so using ?Image= instead of # in the URL is not doable.

 

Is anyone able to help me out here?

Link to comment
https://forums.phpfreaks.com/topic/147341-php-current-complete-url-address/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.