SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2000
    Location
    Yeppoon, Australia
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP shell scripting - exit status

    Hi all,

    Just a quickie, when using PHP for shell scripting, can the exit() command be used to return an exit status for a script?

    ie. exit(255) - would this kill the script and return 255 to the shell or whatever called the script.

    thanks.
    Knowledge is knowing that a tomatoe is a fruit; wisdom is not putting it in a fruit salad.

  2. #2
    Happy Holidays !! Paul S's Avatar
    Join Date
    Mar 2001
    Location
    Mexico
    Posts
    1,287
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, that's what the manual says.

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2000
    Location
    Yeppoon, Australia
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah thanks... I missed that bit, I only read the "prints it out bit"...
    Knowledge is knowing that a tomatoe is a fruit; wisdom is not putting it in a fruit salad.


Bookmarks

Posting Permissions

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