You are currently viewing the BOOK: Beginning PHP 5.3 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I installed or I started running the Pear from my terminal on Mac and I tried to instal the package Net_UserAgent_Detect but I got an error says something about the line 835 in pearl.php about the touch() function, so I went to that file but I have no idea what should I know!!!! anybody can help thx,
this is the error shows in the terminal :
Code:
Warning: touch(): Unable to create file /usr/lib/php/.lock because Permission denied in /usr/lib/php/PEAR/Registry.php on line 835
could not create lock file: fopen(/usr/lib/php/.lock): failed to open stream: No such file or directory
Are you still getting the error in your first post?
If you are then the problem is with the permissions on the directory, php does not have the permissions to write to the directory to create the file, correct the permissions issue and it will work.
If you do not know how to set the permissions then I suggest you do some reading on how your operating system works when working with files and directories. Use the link to Google I gave you previously as a starting point.
thx you for trying helping me, but I could not find a way, I read almost all the links I couldn't have found the solution. I am gonna give up,
Can I start reading the next chapter ( ch 16 ) without reading the ch 15 ????
if so I am going to move on and continue, if not I don't know what to do.
by the way I am using XAMPP not MAMP, and I have Mac OS X not snow board.