Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.