Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Thanked 0 Times in 0 Posts

    execute php file with exec() error

    hi, i wrote main.php that execute 15-20 php file with exec ("php myfile.php >/dev/null &");

    main.php works great and runs myfile.php.

    myfile.php has curl commands and it connect to another website and it should be go on about 5mins. When i execute the file from ssh it works nicely, but when main.php calls this execute command, running of myfile.php is stopped when the curl commands coming ( i put the insert sql command to some locations of page and there is no row after curl command =) ). i though it related with memory or execution time problems... i tried everything like

    ini_set('memory_limit', '500M');
    ini_set('max_input_time', '0');
    ini_set('max_execution_time', '0');


    did you have any idea? can be any cpu limit ? or connection limit?

    i have root access to my centos vps.

  • #2
    New Coder
    Join Date
    Jan 2009
    Thanked 3 Times in 3 Posts
    have you checked permissions? chech all files have execute permission, and if you are writing data anywher, check it has Write permissions allowed...


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts