Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. klockstone

    Who is running my script?

    I think I'll do it the hard way: function whoami() // get numeric owner of files { $temp = tmpfile(); // make temp file if (is_bool($temp)) // failure return (0); $fstat = fstat($temp); // get file stats if (is_bool($fstat)) // failure return (0); $x = $fstat[4]; // file owner $y =...
  2. klockstone

    Who is running my script?

    My PHP script generates files. It can be run by Apache, cron or userx (command line). Thus the files get different owners. How does the script find out (before the file is generated) who the owner will be? TIA, Keith.

Part and Inventory Search

Back
Top