RE: [PHP] Can I get varaibles from an include file without exectuting it?

2004-04-07 Thread Dave Avent
pipe the infomation from the script that is run by crond directly into the
second script at run-time

Dave

-Original Message-
From: Al [mailto:[EMAIL PROTECTED]
Sent: 07 April 2004 4:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can I get varaibles from an include file without
exectuting it?


I have a script that is run with a cronjob and would like to fetch some
variables from it, using another file, without the script executing.

I could resort to putting the variables in a third file, or reading the
script as a text file and reconstructing the variables. But, I was
hoping there is a better way.

Any suggestions?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can I get varaibles from an include file without exectuting it?

2004-04-07 Thread John W. Holmes
From: Al [EMAIL PROTECTED]

 I have a script that is run with a cronjob and would like to fetch some
 variables from it, using another file, without the script executing.

 I could resort to putting the variables in a third file, or reading the
 script as a text file and reconstructing the variables. But, I was
 hoping there is a better way.

Put them in a third file. It's obvious they're needed for more than one
script. Save yourself the headache and separate them.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can I get varaibles from an include file without exectuting it?

2004-04-07 Thread Daniel Clark
I agree, the only way I see it can be done is to read the include file
in as Text, and parse it.


 I have a script that is run with a cronjob and would like to fetch some
 variables from it, using another file, without the script executing.

 I could resort to putting the variables in a third file, or reading the
 script as a text file and reconstructing the variables. But, I was
 hoping there is a better way.

 Any suggestions?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php