Checkmark

Thank you for your feedback

How can I create a PHP file?

Learn how to create a PHP document in PHP Editor.

Article ID: SLN20664

You can create PHP files locally (on your own computer), then upload those files to your site using FTP. You can also create new PHP files using the Editor in File Manager.

Create a PHP File

  1. Sign in to your My Services page.
  2. Click the Web Hosting link.
    The Web Hosting link is under Control Panels.
  3. Click the File Manager link in the Files module. A new browser window opens to the File Manager. 
    cPanel File Manager Link
  4. Select from the folder list in the left column where you want to create a PHP file. 
    Select Folder.
  5. Click the File link. 
    File Link.
  6. Enter a name in the New File Name field and click the Create New File button. Note: Make sure to include the .php extension. 
    Create PHP File.
  7. Your PHP file is now created in the folder selected in the right column. 
    New PHP File.

See Also: