Current location: Hot Scripts Forums » Programming Languages » PHP » flash xml changes in server won't stay


flash xml changes in server won't stay

Reply
  #11 (permalink)  
Old 03-12-10, 08:24 PM
offtheroad offtheroad is offline
Newbie Coder
 
Join Date: May 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by wirehopper View Post
You could try putting this in a file named .htaccess, in the same directory as the .php / .xml files

Code:
<FilesMatch "\.(php|xml)$">
  Header set Cache-Control: "no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0"
</FilesMatch>
Is that the name of the text file or the extension> if it's the extension what would be the name and just the opposite if thats the name what's the extension?
I warned you earlier I know nothing about php.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #12 (permalink)  
Old 03-13-10, 08:51 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
This isn't PHP. This is what's known as an .htaccess file (hence the name). It is a local configuration file that affects the directory it is placed in, and those beneath it.

The posted code tells Apache that if the file extension is .php or .xml, to tell the browser not to cache the content sent. That means every time the browser sees those file names, it will send the request to the server, instead of using cached content which is already on the PC.

Without these directives, it is possible the browser will save the file content from the server until the cache control settings expire, prior to requesting a new copy.

I checked your server, and it's an Apache machine (this can be determined with Firebug).

I'm not positive this is the problem - but it is definitely possible and this is a low risk way to check.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #13 (permalink)  
Old 03-13-10, 09:07 AM
offtheroad offtheroad is offline
Newbie Coder
 
Join Date: May 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
htaccess

What should I name it or what should I save it as? txt, xml ?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #14 (permalink)  
Old 03-13-10, 10:28 AM
Jcbones Jcbones is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 Posts
name the file exactly

.htaccess

That is it, no other letters, periods, or spaces.

http://httpd.apache.org/docs/1.3/howto/htaccess.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #15 (permalink)  
Old 03-13-10, 10:35 AM
offtheroad offtheroad is offline
Newbie Coder
 
Join Date: May 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
thanks again so it will be htaccess.rtf saving it out of Text edit app.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #16 (permalink)  
Old 03-13-10, 10:49 AM
offtheroad offtheroad is offline
Newbie Coder
 
Join Date: May 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
put it in the root level and it didn't work. I did not put it in any folders.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #17 (permalink)  
Old 03-13-10, 10:59 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
It might work at the root level, but it must be named .htaccess.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #18 (permalink)  
Old 03-13-10, 11:21 AM
offtheroad offtheroad is offline
Newbie Coder
 
Join Date: May 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
I realize this is an elementry question but what I'm trying to ask you is it called the same as it's extension htaccess.htaccess ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #19 (permalink)  
Old 03-13-10, 02:28 PM
offtheroad offtheroad is offline
Newbie Coder
 
Join Date: May 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
.htaccess

The reason for all the "what extension" questions was because Mac's won't let you save that way (without some sort of extension) so I saved it as a reg. txt doc dropped it into the server and changed it there to .htaccess. But still it didn't help. I then put it into the php folder and no luck.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #20 (permalink)  
Old 03-13-10, 03:50 PM
offtheroad offtheroad is offline
Newbie Coder
 
Join Date: May 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Am I suppose to change in the htaccess text FilesMatch to gallery since that is the xml I'm having problems with?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Create a Quiz with Free Quiz Template in Adobe Flash WPeterson Flash & ActionScript 0 10-22-08 11:54 PM
Flash & XML... scoop Flash & ActionScript 2 09-25-06 01:35 PM
perl xml socket server ... stuck cloudiam Perl 2 02-28-05 10:32 AM


All times are GMT -5. The time now is 09:00 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.