Problems including a url with query string variables

From: Date: Fri, 04 Mar 2005 19:33:23 +0000
Subject: Problems including a url with query string variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210023@lists.php.net to get a copy of this message
I am having a difficulty including a url and passing it to an include statement between it. The problem is when I have a plain url it works, but if I try to pass it something to the query string it does not. Is there some way to format the string differently before including it? ob_start(); ... $result = ob_get_clean(); The below example works: ---------------------------------- $URL = "http:/-.-.-.-/datachange.asp"; ob_start(); include("$URL"); $message = ob_get_clean(); The below example does not work: ---------------------------------- $URL = "http:/-.-.-.-/datachange.asp$queryString"; ob_start(); include("$URL"); $message = ob_get_clean();

« previous php.general (#210023) next »