Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2005
    Posts
    93
    Thanks
    4
    Thanked 0 Times in 0 Posts

    which command line?

    Hi,
    This post is related to the following part of the manual:
    http://php.net/manual/en/function.exec.php#86329

    I'd like to run a php script from within a script. Which command line should I pass top the function given in the above user comment?

    More info:
    The script which should be executed is named sleep.php. It just does a sleep(30). The script calling sleep.php should experience no delay in its own execution (an include approach of sleep.php would force the user to wait during the sleeping period, which I don't want).

    Regards,

    -jj.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by jjshell View Post
    Hi,
    This post is related to the following part of the manual:
    http://php.net/manual/en/function.exec.php#86329

    I'd like to run a php script from within a script. Which command line should I pass top the function given in the above user comment?

    More info:
    The script which should be executed is named sleep.php. It just does a sleep(30). The script calling sleep.php should experience no delay in its own execution (an include approach of sleep.php would force the user to wait during the sleeping period, which I don't want).

    Regards,

    -jj.
    not sure what you want to achive but I guess you are looking for
    Code:
    php -f sleep.php
    you must have cli installed and probably absolute path for both php executable/binary and your php file.


    regards
    Last edited by oesxyl; 12-14-2008 at 04:30 PM.


  •  

    Posting Permissions

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