473,394 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

testing php scripts

1
I am sure this is a stupid question but when I update a php script and test in the browser it loads the old version never the updated. I have to change the file name or exit the browser. Can anyone tell me how to simply "browse" the new php version.
Many thanks
Mar 9 '10 #1
2 1375
Markus
6,050 Expert 4TB
Hey there. Trying doing a full-refresh, i.e., refresh your page without loading the browser's cache. This is typically done via CTRL+F5 (Windows). However, you'll need to verify it for your OS/browser.
Mar 9 '10 #2
As above poster said, you could also send some headers to prevent cache with PHP. Or:

Expand|Select|Wrap|Line Numbers
  1. if( !isset( $_GET["screw_cache"] ) || ( $_GET["screw_cache"] != time( ) ) )
  2. {
  3.     header( "Location: index.php?screw_cache=" . time( ) );
  4.     exit;
  5. }
  6.  
Code is untested.
Mar 9 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: chris | last post by:
i have apache, mysql and PHP setup on my pc for development purposes and i can run the scripts fine - except when it comes to the mail() funtion what is the easiest way to set it up so i can send...
1
by: Jim Hefferon | last post by:
Hello, Does anyone have suggestions for unit testing CGI scripts? For instance, how can I set the FieldStorage to have certain values? Do I have to go with a dummy FieldStorage class? And is...
2
by: Konstantin Zakharenko | last post by:
Hello, Our QA team have running a lot of test scripts (for automated regression testing), they run them on the different databases (Oracle/MS SQL). Several of those tests are dependent on the...
25
by: acemtp | last post by:
Hello, I would like to show you a new collaborative website for javascript programmer. It's quite hard to know if some specific code you wrote will work on all browsers, and if not, why it...
1
by: tamatem | last post by:
I have build a long sql data load script. What is the best way to do Testing of the script? I would like to automate the test!
18
by: Andrew Wan | last post by:
I have been developing web applications with ASP & Javascript for a long time. I have been using Visual Studio 2003.NET. While VS2003 is okay for intellisense of ASP & Javascript, it's still not...
4
by: David | last post by:
Hi list. Do test-driven development or behaviour-driven development advocate how to do higher-level testing than unit testing? types of testing: unit integration system
3
by: MacRules | last post by:
Found this testing tool, http://simpletest.sourceforge.net/ I am looking for PHP scripts which can be used as create many connections to a web server or MySQL back end for stress testing. ...
0
by: Bryan Berry | last post by:
I manage a team of 5 linux sysadmins and I am trying to transition us from lengthy, mostly unreadable shell scripts to python scripting. After a few tutorials, I have been infected with the unit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.