Forums | MacLife
You are not logged in.
#1 2008-09-02 1:54 am
viewing .php files
I created a website through a third party. The site looks great (template driven), but I'd like to have a copy of it residing on my hard drive. I've transferred what I believe are the appropriate files to my laptop (via ftp), but I'm confused as to what I need to do to view my website. It's flash based. I would imagine that opening the "index.php" file would be a good place to start, but the .php file won't open with anything but TextEdit. Any help would be greatly appreciated.
David
Offline
#2 2008-09-02 11:21 am
- sturner
- Royal High Poobah
- Moderator

- From: Carrollton, TX USA
- Registered: 2000-01-31
- Posts: 12026
Re: viewing .php files
A .php file is text. Basically, for the unitiated, it's a script. Unless you have duplicated the entire site on your local computer, it won't work, and may not work correctly then if the paths it uses are not the same as what you have on your computer.
"There were places in the world commemorating those times when wizards hadn't been quite as clever [as to refrain from doing magic when you knew how easy it was], and on many of them the grass would never grow again." Terry Prachett
There are 3 types of people, those who can count and those who can't.
Offline
#3 2008-09-08 1:41 am
- avkills
- demyelinated brain matter

- Registered: 2001-05-09
- Posts: 6905
Re: viewing .php files
You will also have to view through a web server that has the version of PHP running that the script was written for also.
-mark
Offline
