I try to start a schedual script with cron job. The script works but I get this email error :

Failed loading /usr/local/Zend/lib/ZendOptimizer.so: /usr/local/Zend/lib/ZendOptimizer.so: cannot open shared object file: No such file or directory
Content-type: text/html
X-Powered-By: PHP/4.3.1

If somebody can help me please do.
Thanks in advanced.

    can you show us your cron job, ie. the syntax you used to create he cron job, what kind of script are you running, etc...

      this is the command that I use I my cpanel php /home/domain/the_root_to_php_file/file.php

      The script is a print($string); or a mail();

        do you have a CLI for PHP or have it installed as a CGI

          No is not CGI install But what is a CLI for PHP.

            if you don't have PHP installed as a CGI, you have to use either lynx or wget to run a PHP script with cron, something like

            ***** wget /path/to/script.php > dev/null

            for more info on that do a google search on "run php page with cron" there are a lot of good tuts out there

            a CLI is a command line interpreter

              Ok thanks I will look on google.

                I have a CLI in my CPANEL and I can set my cron job when to start my script.

                  Write a Reply...