Re: Problems including a url with query string variables

From: Date: Fri, 04 Mar 2005 19:47:32 +0000
Subject: Re: Problems including a url with query string variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210028@lists.php.net to get a copy of this message
"Brian A. Anderson" <listread@arielpremium.com> wrote on 03/04/2005 12:37:29 PM: > The below example works: > ---------------------------------- > > ob_start(); > include("http:/-.-.-.-/datachange.asp"); > $message = ob_get_clean(); > > > The below example does not work: > ---------------------------------- > $URL = "http:/-.-.-.-/datachange.asp$queryString"; > ob_start(); > include("$URL"); > $message = ob_get_clean(); Does $queryString contain the leading '?', or do you need to add it, as below: $URL = "http:/-.-.-.-/datachange.asp?$queryString"; Kirk

« previous php.general (#210028) next »