Yes works with exec() , but I might need a pointer to input some stuff later on.
Anyways, I will go with exec() for now. Thanks for your time and help
Regards,
Ashish
Search found 5 matches
- Wed Jul 08, 2009 6:46 am
- Forum: PHP - Code
- Topic: popen and include files
- Replies: 8
- Views: 271
- Wed Jul 08, 2009 6:32 am
- Forum: PHP - Code
- Topic: popen and include files
- Replies: 8
- Views: 271
Re: popen and include files
Yes I am watching them with tail, I have set log errors to syslog and the error level is set to E_ALL

- Wed Jul 08, 2009 6:22 am
- Forum: PHP - Code
- Topic: popen and include files
- Replies: 8
- Views: 271
Re: popen and include files
Hi, Tried declaring all variables, used __construct() still nothing. The output of echo you asked for is: php /var/www/codebase/web/resize.php '/' '600' '250' error_log("conf start config.php".date('h:i:s')); require_once("/var/www/codebase/web/config.php"); $cfg=new conf(); erro...
- Wed Jul 08, 2009 5:48 am
- Forum: PHP - Code
- Topic: popen and include files
- Replies: 8
- Views: 271
Re: popen and include files
Havent declared all variables, I will try doing that now. I had used the __construct thing before, did not work.
If the problem is "declaring" variables, the script should not run via the command line too right?
Anyways will try declaring them and return with results.
Thanks
Ashish
If the problem is "declaring" variables, the script should not run via the command line too right?
Anyways will try declaring them and return with results.
Thanks
Ashish
- Wed Jul 08, 2009 5:39 am
- Forum: PHP - Code
- Topic: popen and include files
- Replies: 8
- Views: 271
popen and include files
I have a php file which is executed with popen. I am using an include in that file to get config variables. The config file included is a class. class config { function config() { // Database related configurations $this->db_engine = 'mysql'; $this->db_username = ...