----- Original Message ----- 
From: "Leelakh Ran"

Hi,

 Here have two pages; page1.php and page2.php.

 I defiend  a variable in page1.php as $storedfrom = $_SERVER["HTTP_HOST"] .
$_SERVER["REQUEST_URI"];

I want to access $storedfrom variable from page2.php without passing it
through URL link.

 How it can access by using session variable or global variable?

 Expecting yours' valuable suggestion.

 Rgds, Leelakh Ran

 ---------------------------------------
<?php
// page1.php

session_start();

$storedfrom = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

session_register($storedfrom);

// ..........................
?>

<?php
// page2.php

session_start();

$url_pieces = parse_url($stroedfrom);
if(substr($url_pieces['hostname'], 0, 4) != 'www.')
  {
  $url_pieces['hostname'] = 'www.' . $url_pieces['hostname'];
  }
$url_pieces['scheme'] = 'http';
//.................
?>





[Non-text portions of this message have been removed]



Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list
Yahoo! Groups Links



Reply via email to