Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2012
    Posts
    36
    Thanks
    9
    Thanked 1 Time in 1 Post

    Can i rename my HTML files to .php?

    Will my html file work even if theres no PHP script in my HTML file?

  • #2
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,444
    Thanks
    11
    Thanked 309 Times in 308 Posts
    Yes, presuming you have php on your server. You'd also need to change all links to your pages from .html to .php of course.

    Dave

  • #3
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    Quote Originally Posted by cord View Post
    Will my html file work even if theres no PHP script in my HTML file?

    Yes ...... But PHP must be running. So if the file is on your desktop it will not work.
    Leonard Whistler

  • #4
    Regular Coder jdswebservice's Avatar
    Join Date
    Aug 2010
    Location
    Moon Township, PA
    Posts
    107
    Thanks
    0
    Thanked 5 Times in 5 Posts
    You must have a PHP server running on your local machine (if thats where your files are stored). Something like xampp and or wamp must be installed.

    If you have a remote server (i.e. networksolutions, godaddy, etc) thats apart of a hosting plan most of those servers do already have PHP 5 running however you'll want to contact your third party hosting technical person to see if php files will run on your server.

    Hope this helps!

    J-
    Jonathan R.
    Email: jonathan@logicaldevelopment.net
    Skype, Aim, & Jabber: logicaldevelopment
    Website: http://logicaldevelopment.net/

    NOTE: When contacting me please have the following things ready:

    Thread ID (This can be found in the URL of your thread)
    Budget of Project
    Methods of contacting you/your organization
    Preferred method if many methods are provided

    Any website information that you PM, Email, IM, or otherwise is strictly confidential and will not be disseminated, distributed, or copied in any way, shape or form.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •