PHP School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a PHP Expert!

Join 300,389 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,562 people online right now. Registration is fast and FREE... Join Now!




PHP files not working

 

PHP files not working

kewlkreator

3 Jul, 2009 - 10:55 AM
Post #1

Total DIC-Wad
Group Icon

Joined: 25 Mar, 2009
Posts: 1,023



Thanked: 16 times
Dream Kudos: 550
My Contributions
I just installed PHP on a Win XP system. Now I read that when you add PHP to HTML, you save the files as .php. Is this correct?
Second Question:
Even when I download php files from a zip and run them with IE, I get a download box and it shows me the source. I know this can't be right, please help.

User is offlineProfile CardPM
+Quote Post


ericr2427

RE: PHP Files Not Working

3 Jul, 2009 - 11:05 AM
Post #2

D.I.C Regular
Group Icon

Joined: 1 Dec, 2008
Posts: 292



Thanked: 20 times
Dream Kudos: 150
My Contributions
Yes, you save the files as .php

To run the php files you either need to install php on your computer, or upload the file to a site that can run the files. Some servers do not support php.
User is offlineProfile CardPM
+Quote Post

kewlkreator

RE: PHP Files Not Working

3 Jul, 2009 - 11:20 AM
Post #3

Total DIC-Wad
Group Icon

Joined: 25 Mar, 2009
Posts: 1,023



Thanked: 16 times
Dream Kudos: 550
My Contributions
I already installed it. No beans.
User is offlineProfile CardPM
+Quote Post

BetaWar

RE: PHP Files Not Working

3 Jul, 2009 - 11:25 AM
Post #4

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,729



Thanked: 269 times
Dream Kudos: 1400
My Contributions
---If this is on a personal computer---
Do you have apache installed as well? Normally you need something to act as a server that knows what to do with the requests for the files. Now, on windows I know you need something like this, and I assume the same on Linux.

Not sure if that is the problem or not.
User is offlineProfile CardPM
+Quote Post

noorahmad

RE: PHP Files Not Working

3 Jul, 2009 - 08:38 PM
Post #5

Webmaster
Group Icon

Joined: 12 Mar, 2009
Posts: 2,018



Thanked: 125 times
Dream Kudos: 1350
My Contributions
For Better Solution Install a Local Server

WAMP (For Windows)
LAMP (For Linux)
XAMP (For Any OS).
User is online!Profile CardPM
+Quote Post

kewlkreator

RE: PHP Files Not Working

4 Jul, 2009 - 11:07 AM
Post #6

Total DIC-Wad
Group Icon

Joined: 25 Mar, 2009
Posts: 1,023



Thanked: 16 times
Dream Kudos: 550
My Contributions
Thanx both of you. Will try on next chance.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 09:40PM

Live PHP Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month