R: Running php script with "?var=string" query inside another php script

From: Date: Thu, 06 Sep 2001 07:06:16 +0000
Subject: R: Running php script with "?var=string" query inside another php script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66159@lists.php.net to get a copy of this message
if include doesn't work or isn't an optimal solution, you can also use fopen: this will make another request to the webserver, like a client request, but sometimes is useful. write: $fp = fopen("http://www.site.com/script.php?var=string......., this should work. -------------------- Federico flagzenNO-SPAM@libero.it -------------------- Dave.O <Dave.O@tinyonline.co.uk> wrote in message 004f01c1366a$577e1ac0$0100007f@localhost... > I am trying to run a php script with query from wthin another php script. > > I have a php script that adds information to a database and calls another > php script with query to view those details using the include command but I > keep getting an error "Failed opening" file. > > Is there anyway of running a php script with the "?var=string" query inside > another php script ??? > > Any help would be much appreciated. > > > Dave > >

« previous php.general (#66159) next »