web
You’re offline. This is a read only version of the page.
close
Checkmark

Thank you for your feedback

Which file extensions can I use for my PHP scripts?

Learn which file extension is recommended for PHP.

Article ID: SLN20665

If you are creating or editing a PHP file using the File Manager Editor, we recommend that you save your file with the extension .php.

You can also upload older PHP scripts that have the file extension .php3. The .php3 file extension is supported on our servers.

The .html file extension is not supported for PHP files. You will not be able to save PHP files with the .html extension. Be sure to rename any PHP files you have already created using the .html extension.

PHP include files can use the .inc extension; however, these files will not be read by the PHP interpreter. Because include directories may contain sensitive data, we recommend that you password-protect these directories.