Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOtherTutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old April 7th, 2005, 05:05 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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!

Reply With Quote
  #2  
Old April 7th, 2005, 06:07 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
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.

Reply With Quote
  #3  
Old April 7th, 2005, 08:24 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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.


Reply With Quote
  #4  
Old April 7th, 2005, 08:27 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: Smart Auto Refresh - getting error

version of php?

Reply With Quote
  #5  
Old April 8th, 2005, 05:19 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: Smart Auto Refresh - getting error

Umm I am running PHP version 4.3.2 thanks matt

Reply With Quote
  #6  
Old April 8th, 2005, 01:33 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
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...

Reply With Quote
  #7  
Old April 9th, 2005, 02:48 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: Smart Auto Refresh - getting error

I have upgraded to the latest version and I still have the problem.. does this actually work?

Reply With Quote
  #8  
Old April 9th, 2005, 02:51 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: Smart Auto Refresh - getting error

Is safe_mode on? Here are the restriction to the touch() function in safe_mode:

Quote:
Checks whether the files or directories you are about to operate on have the same UID (owner) as the script that is being executed. Checks whether the directory in which you are about to operate has the same UID (owner) as the script that is being executed.


Reply With Quote
  #9  
Old April 9th, 2005, 05:20 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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.

Reply With Quote
  #10  
Old April 9th, 2005, 04:15 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
RE: Smart Auto Refresh - getting error

Yes, everything has the same UID. Oh well

Reply With Quote
  #11  
Old April 19th, 2005, 01:57 PM
maxhb maxhb is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Bremen, Germany
Posts: 48 maxhb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Smart Auto Refresh - getting error

Hi!
Just ran into the same problem.
Quote:
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.

I did
Code:
chown nobody.nogroup file

as my apache runs as user "nobody", group "nogroup". This works!

Thx for the hint.

CU
maxhb

Reply With Quote
  #12  
Old September 14th, 2005, 02:58 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 25
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?

Reply With Quote
  #13  
Old September 20th, 2005, 06:55 AM
jsailor jsailor is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: surat,gujarat,india
Posts: 4 jsailor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to jsailor
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

Reply With Quote
  #14  
Old September 20th, 2005, 06:56 AM
jsailor jsailor is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: surat,gujarat,india
Posts: 4 jsailor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to jsailor
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

Reply With Quote
  #15  
Old September 20th, 2005, 02:48 PM
hermawan's Avatar
hermawan hermawan is offline
Superman is not dead
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Jakarta, Indonesia
Posts: 553 hermawan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 44 m 37 sec
Reputation Power: 3
Send a message via ICQ to hermawan Send a message via AIM to hermawan Send a message via Yahoo to hermawan Send a message via Google Talk to hermawan Send a message via Skype to hermawan
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > Smart Auto Refresh - getting error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 8 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek