Jump to content

[SOLVED] Does $HTTP_SERVER_VARS['PHP_SELF'] transfer control back to the PHP file?


sd9sd

Recommended Posts

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&currentPic=$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?

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.