Very big problem for a designer

Discussion in 'PHP' started by Creative_illusion, Feb 10, 2007.

  1. #1
    Hi there DP/PHP family.

    I have a very big problem.. For me it's a very huge problem since I'm only a designer and knows simple html/css coding... Here is my site... CLICK HERE TO VIEW

    My scenarion:
    As you can see it is extended with .php.html (sorry for my ignorance) I just want to extend it ONLY in .php not .html like this one CLICK HERE.. is that possible guys? If you have any suggestion please feel free to drop a message on this thread. I really need your help DP gurus...

    Thank you in advance and may god bless DP family...
     
    Creative_illusion, Feb 10, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Sure, just try to change the extension manually.
     
    nico_swd, Feb 10, 2007 IP
  3. Creative_illusion

    Creative_illusion Well-Known Member

    Messages:
    2,702
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    175
    Digital Goods:
    2
    #3
    change it manually? You mean rename it? or change it save as? index.php?
     
    Creative_illusion, Feb 10, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Rename it, yes. You could also use save as, but just clicking rename seems easier and faster to me. :p
     
    nico_swd, Feb 10, 2007 IP
  5. Creative_illusion

    Creative_illusion Well-Known Member

    Messages:
    2,702
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    175
    Digital Goods:
    2
    #5
    I did it.. but when I uploaded it on the server it has the same result... Any gurus here please help... Thanks
     
    Creative_illusion, Feb 10, 2007 IP
  6. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #6
    If the file is called "index.php", it will be accessible on your server as such. Unless your hosting company renames the uploaded files automatically for some reason.
     
    nico_swd, Feb 10, 2007 IP
  7. rossdalangin

    rossdalangin Well-Known Member

    Messages:
    458
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    110
    #7

    In just renaming it. It will be the same output as html however if there's a database interaction or dynamically coded it will not be the same. If the coding inside the .php is similar to .html therefor it is the same output.
     
    rossdalangin, Feb 10, 2007 IP
  8. wenzlerpaul

    wenzlerpaul Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Are you using Windows as your operating system? If so, you may want to check if known file extensions are hidden.

    In a folder, click Tools then options then view. check if "Hide extensions for known file types" has a checkmark, if so, uncheck it then apply, then do a rename of the file again, other than this, simply rename it on the server using your ftp program.

    If you are using an uploader from your hosting company, that might present some issues as some hosting companies tend to not allow php on their server as it may present danger to their system, this is true for free hosting or some of those that are cheap hosting.

    Renaming html to php (as long as your server allows php files) does not present any problem at all, it will just be a simple html then but has the capacity to execute php codings other than html and css, but if your web server do not allow php, there will be some problems.
     
    wenzlerpaul, Feb 12, 2007 IP