Cpanel file manager: edit .php file

Username epiz_25054752

The Cpanel file manager is serving my .php files as PHP prepossessed html. Is there a way to edit .php files with the file manager?

Yes, you can edit .php files in file manager
Just right click the file and click “Edit”

5 Likes

The Cpanel file manager is serving my .php files as PHP prepossessed html. What should be <?php echo "The timestamp is ".$ztimestamp1;?> is being served as “The timestamp is 18:32:55PM 081120”

Then just download your file. Edit on your local PC. After that, you can re-upload it.

The control panel file manager doesn’t execute your PHP code. The file manager only provides an editor to edit the source code. To see the results of the code, you can to open the file on your website.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.