sd9sd Posted June 17, 2008 Share Posted June 17, 2008 Hi, I found some code about a PHP slideshow that works on an html template. In an attempt to make sense of the code..... There's an image with the $nav string assigned to it. ($template holds the html code) The $path string inside $nav is what I need clarification about. $nav = "<a href='$path?directory=$path_to_images¤tPic=$nav'>$back_src</a>"; $template = str_replace("<BACK>",$nav,$template); This is how the $path string is assigned. $path = empty($HTTP_SERVER_VARS['PATH_INFO'])?$HTTP_SERVER_VARS['PHP_SELF']:$HTTP_SERVER_VARS['PATH_INFO']; I need to know if when that back button is clicked, will the php file call itself and pass all the parameters of $nav to itself? OR may I know what does the above code do? Quote Link to comment https://forums.phpfreaks.com/topic/110552-solved-does-http_server_varsphp_self-transfer-control-back-to-the-php-file/ Share on other sites More sharing options...
conker87 Posted June 17, 2008 Share Posted June 17, 2008 Use $_SERVER not $HTTP_SERVER_VARS. And, it should do. Quote Link to comment https://forums.phpfreaks.com/topic/110552-solved-does-http_server_varsphp_self-transfer-control-back-to-the-php-file/#findComment-567153 Share on other sites More sharing options...
sd9sd Posted June 17, 2008 Author Share Posted June 17, 2008 oh...just checked up...$HTTP_SERVER_VARS depreciated Thank you conker87 Quote Link to comment https://forums.phpfreaks.com/topic/110552-solved-does-http_server_varsphp_self-transfer-control-back-to-the-php-file/#findComment-567181 Share on other sites More sharing options...
conker87 Posted June 17, 2008 Share Posted June 17, 2008 S'alright. Just come back if you have problems. Thats what we're here for Quote Link to comment https://forums.phpfreaks.com/topic/110552-solved-does-http_server_varsphp_self-transfer-control-back-to-the-php-file/#findComment-567184 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.