Can't get PHP to work!

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

james3302
Forum Commoner
Posts: 53
Joined: Thu Aug 02, 2007 11:11 am

that's me

Post by james3302 »

I am the administrator, know nothing about it! Anyone know how to set IIS so that it will parse .htm and .html files through?
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

If you're using H-sphere there's a good chance you need to enable php in your configuration panel.
Is there a php.ini file somewhere?
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

....

You're the administrator of your companies IIS server, and you dont know anything about it...

Am I the only one who sees a problem?
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Re: that's me

Post by nickvd »

james3302 wrote:I am the administrator, know nothing about it! Anyone know how to set IIS so that it will parse .htm and .html files through?
<guess>To answer your question, probably in the same place as you set it to parse .php files...</guess>
james3302
Forum Commoner
Posts: 53
Joined: Thu Aug 02, 2007 11:11 am

was on the job description

Post by james3302 »

it was not on the job description, the site is already running and im just trying to add a simple site counter. My job consisted of Oracle DB programming, DB analyst with simple networking and repair. I have thrown in some programming to make things better.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Re: was on the job description

Post by nickvd »

james3302 wrote:it was not on the job description, the site is already running and im just trying to add a simple site counter. My job consisted of Oracle DB programming, DB analyst with simple networking and repair. I have thrown in some programming to make things better.
Ah... I feel your pain :)
james3302
Forum Commoner
Posts: 53
Joined: Thu Aug 02, 2007 11:11 am

Or

Post by james3302 »

Or if someone could help me figure out how to name default.htm to default.php4(thats what the other php files are) then it should run the php code. But when I change it now, the site says its under construction.
james3302
Forum Commoner
Posts: 53
Joined: Thu Aug 02, 2007 11:11 am

Post by james3302 »

OH my gosh! it worked it worked I renamed it .php4 instead of .htm and it worked, didn't work right before lunch, but it works now. Now I can copy someone's php code to create a countre and it'll work too!
james3302
Forum Commoner
Posts: 53
Joined: Thu Aug 02, 2007 11:11 am

Post by james3302 »

it runs, just gives me a permission denied when it tries to open the text file that hold and number of visitors.

one simple change on file permissions and it runs!
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Post by VladSun »

:)))))))
Congrats!
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Sounds like a browser cache clearing problem. Always clear your cache when trying new pages, especially in that piece of crap browser IE.
james3302
Forum Commoner
Posts: 53
Joined: Thu Aug 02, 2007 11:11 am

yea

Post by james3302 »

I have Firefox at home now. I used to use IE at home and Like i said earlier thought something should work and when it did not I got frustrated. Then after a few more attempts to fix the problem, I cleared the cache and it worked fine with the initial setup I had. Im supposed to learn PHP for work, the guy I replaced took the PHP books with him so Ill have to get some more. Im learning Java at work and Rails at home. Rails is easier than PHP, that is for sure.
Post Reply