|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Smart Auto Refresh - getting error
Hello:
I am trying out Hermawan's great tutorial but I am getting this message. What would I have to do to fix this? sar.pid is chmod 777 Warning: touch(): Utime failed: Operation not permitted in /home/httpd/vhosts/tests/httpdocs/chat/chat.php on line 19 Thanks! |
|
#2
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
Hmm...I'll go out on a limb here and guess the operating system you are on is FreeBSD? Let me know on that one...
Try these two things. 1. Change 'touch ('sar.pid', $mytime);' to 'touch ('sar.pid'); 2. chown the sar.pid file to the user that the web server runs as. Let me know which one works, if any. |
|
#3
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
Matt:
I am running Red Hat, I have tried both suggestions and neither of them worked. Thanks for your help though. |
|
#4
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
version of php?
|
|
#5
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
Umm I am running PHP version 4.3.2 thanks matt
|
|
#6
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
I know this is going to sound like a crappy answer, but you really need to upgrade. The error you are having could very likely be because of some bug in that earlier version of PHP. They are up to 4.3.11 now...
|
|
#7
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
I have upgraded to the latest version and I still have the problem.. does this actually work?
|
|
#8
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
Is safe_mode on? Here are the restriction to the touch() function in safe_mode:
Quote:
|
|
#9
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
safe_mode is turned off. i wonder about the uid, ill see if i can find how to check that.
|
|
#10
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
Yes, everything has the same UID. Oh well
|
|
#11
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
Hi!
Just ran into the same problem. Quote:
I did Code:
chown nobody.nogroup file as my apache runs as user "nobody", group "nogroup". This works! Thx for the hint. CU maxhb |
|
#12
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
I have tried the zipped shoutbox by hermawan and the auto-refresh works great. Only prob is the message field does not auto-clear on submission - which causes complaints by users as they usually assume the field auto-clears. They would then click submit and later see their message prefixed with their previous message.
It would be annoying to highlight the message field everytime to replace old message with new message. This is only useful for name field as people need not type in their username each time. Any suggestions? |
|
#13
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
i am also getting same error my installtion in IIS server and my project working on my company but while running same project on my home pc i get this error
Warning: touch(): Utime failed: Operation not permitted my projcet platfrom is php(smarty)/mysql pls help me |
|
#14
|
|||
|
|||
|
RE: Smart Auto Refresh - getting error
i am also getting same error my installtion in IIS server and my project working on my company but while running same project on my home pc i get this error
Warning: touch(): Utime failed: Operation not permitted my projcet platfrom is php(smarty)/mysql pls help me |
|
#15
|
||||
|
||||
|
RE: Smart Auto Refresh - getting error
I'm learning AJAX stuff and might be able to make a better approach on this smart auto refresh stuff.. Just hang on a moment
|
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > Smart Auto Refresh - getting error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|