| Web Design and Hosting Creating sites, scripting, and hosting discussions. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Dec 05, 2009
Posts: 3
![]() |
I've got the files in the right location --Library/WebServer/Documents/...
they're coded correctly (I do this for a living), they're just plain ole HTML files, nothing dynamic, no javascript, just html and css... I load them to the remote server and they work fine but when I go to view them locally I can only see the source code... What gives...? |
| QUOTE Thanks | |
![]() Member Since: Jul 17, 2009
Location: MA
Posts: 5,818
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 27" i7 iMac with 16GB RAM and 1TB HDD, iPhone 3G & 4, iPod Nano 16GB, iPod Shuffle, iPad 2 16GB WiFi
|
|
| QUOTE Thanks | |
![]() Member Since: Oct 19, 2008
Location: Ottawa
Posts: 15,302
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2012 13" MBP (2.5 i5, 8GB)
|
Important Links: Community Guidelines : Use the reputation system if you've been helped. M-F Blog :: Write for the blog :: M-F IRC Channel - Chats every Sunday at 8PM EST. |
| QUOTE Thanks | |
![]() Member Since: Dec 05, 2009
Posts: 3
![]() |
Are PHP files, I'm viewing them in FF 3.0.11
The file name is index.php Here's the path to the parent folder: http://localhost/knowink/mao/ This should show me the index.php page, I get a directory listing instead. http://localhost/knowink/mao/index.php This is the path to the index page, it should definately show me the index page...I get the source code instead. This is a direct copy and paste from my browser window, not from the source code listing - if you had clicked Command-U in FF. I'm hoping not to come off arrogant here but I do this for a living, I build Mac apps and web based apps for a publishing company, in PHP using MySQL for a back end, heavy on AJAX and CSS, just started tinkering with HTML 5 (the geolocation stuff). I'm also pretty confident that this is probably user error (me ):<html> <head> <title>MAO 2009 Design 2</title> <script languag="javascript" src="js/mao.js"></script> <link rel="stylesheet" type="text/css" href="css/mao.css"> </head> <body> <div id="header"><img src="images/maologo.png" border="0" class="logo" width="300"><img src="images/headergraphics.png" class="headerleft"></div> <div id="nav"> <div id="navlinks"> <ul> <li><a href="javascript:void(0);" onmousedown="showsubnav('mojobox');">Mojos</a></li> <li><a href="javascript:void(0);" onmousedown="showsubnav('mojos');">Spotlights</a></li> <li><a href="javascript:void(0);" onmousedown="showsubnav('mojos');">Destinations</a></li> <li><a href="javascript:void(0);" onmousedown="showsubnav('mojos');">The Campsite</a></li> </ul> </div> <div id="mojobox" style="display: none;" id="navbox"> <ul> <li class="navbox_li">Ride</li> <li class="navbox_li">Camp</li> <li class="navbox_li">Hike</li> <li class="navbox_li">Snow</li> <li class="navbox_li">Water</li> </ul> </div> </div> <div id="content"> <img src="images/1109/mao_1109_b_001.png"> </div> </body> </html> |
| QUOTE Thanks | |
![]() Member Since: Jun 18, 2006
Location: Minneapolis
Posts: 191
![]() Mac Specs: MacBook Pro
|
If you aren't fired with enthusiasm, you will be fired with enthusiasm. -Vince Lombardi |
| QUOTE Thanks | |
![]() Member Since: Jul 17, 2009
Location: MA
Posts: 5,818
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 27" i7 iMac with 16GB RAM and 1TB HDD, iPhone 3G & 4, iPod Nano 16GB, iPod Shuffle, iPad 2 16GB WiFi
|
You initially said plain ole HTML files and now PHP..which is anything but plain ole HTML..
![]() Either way, as @wheelguy said, PHP support is available in Apache, but isn't enabled..so follow this guide and enable it. Regards |
| QUOTE Thanks | |
![]() Member Since: Dec 10, 2009
Location: Canton, Ohio
Posts: 17
![]() Mac Specs: Various Mac Minis, Mac Mini Servers
|
You can also configure Apache to render *.PHP files as *.HTML, but I think enabling PHP would be the best solution.
in httpd.conf AddType text/html .php Once you have PHP installed it should read like this. AddType application/x-httpd-php .php Again, I would just enable PHP, but this is technical possible. |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Local host name Already in Use??? | code777 | OS X - Operating System | 6 | 06-01-2012 09:13 AM |
| host a local network website | draconis46 | Web Design and Hosting | 2 | 10-10-2007 02:56 PM |
| my local host and php are not playing nice? | este | Web Design and Hosting | 2 | 07-26-2005 06:08 PM |
| local host | vic one | Web Design and Hosting | 8 | 02-06-2005 02:21 PM |
All times are GMT -4. The time now is 06:59 AM.
Powered by vBulletin