Neon Flash
Neon Flash

Reputation: 3233

Changes not saved in PHP Script on Cpanel

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?

Upvotes: 1

Views: 1195

Answers (2)

Mahmoud Abdelsattar
Mahmoud Abdelsattar

Reputation: 1449

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

Upvotes: 0

Afshin
Afshin

Reputation: 4215

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

Upvotes: 1

Related Questions