note 20233 added to function.exec
| From: | php-general at lists dot php dot net | Date: | Wed, 27 Mar 2002 03:01:01 +0000 |
| Subject: | note 20233 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28263@lists.php.net to get a copy of this message | ||
Almost killed myself over this one!
I kept getting "text file busy" errors in the Apache log (not PHP log) when executing Perl
scripts from PHP.
I did some research and found this can be caused by having the file in use by Samba. I was editing
on my Windoze box, leaving the file open in my editor, and then previewing the result in a browser.
As soon as I stopped accessing the Perl file through Samba (i.e. closing my editor, not displaying
the file in Windoze Explorer), the problem disappeared.
I was sure I had some sort of permissions problem, or wasn't closing a file, or something. But
Samba appeared to be the culprit.
FYI, Samba was writing as root, which DID cause a permissions issue, but I caught that early on and
it didn't solve the "text file busy" error.
Someone please berate me if this seems nuts...
--
http://www.php.net/manual/en/function.exec.php
http://master.php.net/manage/user-notes.php?action=edit+20233
http://master.php.net/manage/user-notes.php?action=delete+20233
http://master.php.net/manage/user-notes.php?action=reject+20233