[PHP] Problems with 4.3.0 cli and paths
Hi, I have upgraded my server with the 4.3.0 version. The cli was upgraded also and all my scripts started to crash. I ususally put a #!/husr/local/bin/php -q in all scripts that need to be executed from the crontab. All the sudden the scripts ended with error messages such as Warning: main(../php/define.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /home/httpd/html/script.php on line 11 What's going on ? Do I need to put the full path now ? regards. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems with 4.3.0 cli and paths
Generally yes, since 4.3 cli does not change the working directory Robert Mena wrote: Hi, I have upgraded my server with the 4.3.0 version. The cli was upgraded also and all my scripts started to crash. I ususally put a #!/husr/local/bin/php -q in all scripts that need to be executed from the crontab. All the sudden the scripts ended with error messages such as Warning: main(../php/define.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /home/httpd/html/script.php on line 11 What's going on ? Do I need to put the full path now ? regards. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php