1

I am practicing some PHP Scripting on my Web Hosting. I Log into my CPanel, go to File Manager, create PHP Scripts and then test them in the browser.

Now, the problem is, the first time the script works Ok. However, if I make some changes, it keeps loading the previous output.

It is really difficult to debug this way.

I have tried clearing browser's cache, deleting the cookies, restarting browser, logging off and logging back in to Cpanel. However, nothing seems to work.

Even a simple code like:

<?php echo "Hello" ?>

won't work.

Is there a workaround for this?

1
  • yes, I give the real URL when I try to test it so that it is a fresh HTTP request to the Server everytime. Commented Sep 19, 2012 at 11:28

2 Answers 2

1

try fileZilla software to connect ftp and be sure your file is correct then try simple html file

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. I use FileZilla now. Keep it connected via FTP to the CPanel, make changes to the code, delete previous file, upload new file and the changes are reflected instantly.
0

I found the answer, it is caused by the Nginx caching.

Just go to the Cpanel home > Right sidebar > Nginx Caching > click on the button (Clear Cache).

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.