Need to create a PHP file

by 8 replies
10
I had a guy send me some php code to copy, all I have to do is create a file abc.php

then upload it to the server.

I have never created a .php file.

I have done html with notepad and uploaded to my server and changed it before without any issues. (filezilla & kompozer)

How do I create a .php file? What program do I use?
#programming #create #file #php
  • You can use notepad or any simple editor for that (not ms word) , that's exactly the sames as create a .html but it's a .php
    • [1] reply
    • ok, I tried earlier but it wouldn't open the file, I'll try on different computer.
  • It's a text file. Use any text editor.
    Using a different computer won't help.
  • Here are steps :
    >Open code file into notepad
    >Into notepad >Click File>Save As > will prompt filename to save file as
    >File Name : abc.php or whetever you want
    >Save as type > Select All files

    Thats it !


    Thanks
    Romi
    www.ghrix.com
    • [1] reply
    • thanks, did it on a different computer and it worked fine.
  • hmm dear you should again open your file and save as your file with the name of what you want like index.php and then save it . select all files. or it is very easy in adobe Dreamweaver if you are used that software for coding.
  • Banned
    [DELETED]
  • Use Dreamweaver when you create a new file select php file.
    Then you start coding your php file, after you save it and upload it to your server with fillezilla

    look on youtube there are really good tutorials over there.
  • You can use the .php extension.Example,Filename.php.Create one file and then save the file with the php extension.

Next Topics on Trending Feed