Re: Re: Running php script with "?var=string" query inside another php script
| From: | Dave.O | Date: | Thu, 06 Sep 2001 09:19:58 +0000 |
| Subject: | Re: Re: Running php script with "?var=string" query inside another php script | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66179@lists.php.net to get a copy of this message | ||
I cant drop the query (?var=string) as the second script wont do what I want
it to do without it. The query in the second script is required for that
script to perform the function correctly.
Dave
----- Original Message -----
From: "Ben Holt" <ben@spamisicky.emediastudios.com>
To: <php-general@lists.php.net>
Sent: Thursday, September 06, 2001 1:58 AM
Subject: [PHP] Re: Running php script with "?var=string" query inside
another php script
> Dave.O wrote:
>
> > 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 ???
>
> using 'include("secondfile.php");' should do the trick. The second
> script is, for all intents and purposes, essentially inserted into your
> first script at the point of the 'include' statement. There is no need
> to pass variables, although the usual global/local variables issues
> still apply with regard to functions (ie drop the ?var= stuff).
>
> If you continue to get "Failed opening" type error messages check the
> read and execute permissions on the second script. Can the second
> script be run directly via a browser? Is the path to the second script
> used in your include statement correct?
>
> - Ben
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>