Re: register_globals=off

From: Date: Mon, 04 Dec 2000 15:47:36 +0000
Subject: Re: register_globals=off
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-28593@lists.php.net to get a copy of this message
<<< Would you please explain your "socket approach"? >>> //This will open a socket and send the data to Review.php if the //CancelBtn has been pressed by the page that opened this page. if ($CancelBtn) { /* use a class to create a socket */ $http = new http; //Use class /* The socket is for server 209.204.172.137 and $path is the path obtained from $path = $HTTP_SERVER_VARS[URL]; $path = ereg_replace("/[^/]+$","",$path) . '/'; and this gives the location of the next page, "Review.php". I add to the URL the data to pass. My class allows for either a GET or POST (http_fget or http_fpost). Finally I do the HREF with $url obtained from $url = 'http://' . $HTTP_SERVER_VARS[SERVER_NAME] . $HTTP_SERVER_VARS[URL]; $url = ereg_replace("/[^/]+$","",$url) . '/'; Hope this helps. */ $fp = $http->http_fget("209.204.172.137", $path . "Review.php?" . "SID=" . $sessionid . "&PhotoSet=" . $PhotoSet . "&clFirst=" . urlencode($clFirst) . "&clLast=" .urlencode($clLast) . "&selCompany=" . urlencode($selCompany) . "&selTime=" . urlencode($selTime) . "&TripDate=" . urlencode($TripDate)); if($fp) { print '<BASE HREF="' . $url . 'Review.php"><p>'; fpassthru($fp); }; exit; }; Please keep in mind I am very new to PHP and quite new to Internet programming. So, there may be a much better way of acomplishing what I need. Todd -- Todd Cary Ariste Software todd@aristesoftware.com

« previous php.general (#28593) next »