ALL Scripts not working, being displayed in browser

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
arcticdogg
Forum Newbie
Posts: 5
Joined: Fri Dec 19, 2003 1:16 pm
Location: Austin, TX, USA

ALL Scripts not working, being displayed in browser

Post by arcticdogg »

I'm sure this has got to be elementary, but since my IS dept moved all my sites to a new server, none of my scripts work anymore. Instead, they display in the browser. For example, this simple redirect script just displays in the browser instead of doing its job:

<?
header("Location: index.htm");
?>

Similarly, my forms processing scripts don't work, but instead display in the browser when a user clicks on "submit."

IS insists that PHP 4.2.2 is installed and working correctly, but I am skeptical. I have been scouring usegroups and searching, and I hate to bother anyone with this, but none of us here have the answer.

I will welcome any suggestions/ideas.

Thanks,

Shannon
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

php is not installed at all then, OR if you are useing a abnormal file extension then that can also be the problem. check it out with your host, they are theonly ones who can help you i guess.

your host may have "forgot" to allow your home dir php capabilities?
if they still say "php is installed" send them to your site and show em :twisted:.
Last edited by qads on Fri Dec 19, 2003 1:25 pm, edited 1 time in total.
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post by Derfel Cadarn »

Have you saved all PHP-files with the extension .php?
And are you sure there are none with the extension .phps in that directory?

Or have you saved them as .php3 or something like that?
arcticdogg
Forum Newbie
Posts: 5
Joined: Fri Dec 19, 2003 1:16 pm
Location: Austin, TX, USA

Post by arcticdogg »

thanks for the quick response. I looked at the PHP files, and they seem to have the correct extensions. (We host our own sites) and our systems guys have shown me the PHP configuration page, but unfortunately, I don't know what I'm looking at.
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post by Derfel Cadarn »

That sounds familiar! :D
But using the site of Netcraft you can find out wether those IT-guyzz did their job properly: just enter the name of your site in the field behind "What's that site running" and hit Enter (on your keyboard).
Then a (hopefully) long list of complicated info is shown. When PHP isn't there, you should hit the IT-Manager on the head! :lol:
arcticdogg
Forum Newbie
Posts: 5
Joined: Fri Dec 19, 2003 1:16 pm
Location: Austin, TX, USA

Post by arcticdogg »

thanks again! Netcraft is a neat utility. It seems to show a history of where our site has been hosted & the versions of Apache, etc. that it's used. Curiously enough, it doesn't currently list PHP (or anything else but Apache), however, they've somehow gotten my scripts running again (with some limited exceptions)! Now we just have to resolve our MySQL issues & I will be a happy girl again! :P
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post by Derfel Cadarn »

Now you've made me curious: they've got php running without php on your server? 8O
Can you give me the URL, I'd like to see that!!!
:lol:
I might join your club: siounds cheaper then paying for php!!!

LOL

BTW Are you sure it wasn't a picture of what the site used to be they've shown you there????
hookem
Forum Newbie
Posts: 1
Joined: Fri Dec 19, 2003 2:59 pm

actually...

Post by hookem »

PHP is listed 4 times on netcraft...
arcticdogg
Forum Newbie
Posts: 5
Joined: Fri Dec 19, 2003 1:16 pm
Location: Austin, TX, USA

Post by arcticdogg »

Not really sure what is going on there. The URL is http://www.ficgroup.com. It's probably installed, but just not showing up in the Netcraft query yet?

And I'm finding more problems (like my forms appear to be working, but I'm not getting the email that is supposed to be generated). I am getting a headache! :cry: Back to the drawing board, I guess!
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post by Derfel Cadarn »

arcticdogg wrote:And I'm finding more problems (like my forms appear to be working, but I'm not getting the email that is supposed to be generated). I am getting a headache! :cry: Back to the drawing board, I guess!
I just found your employment-request-form and I noticed in the source was:

Code: Select all

<form METHOD="post" ACTION="proc.phtml">
I thought you were using a php-script to handle the forms?
If so, it should read:

Code: Select all

<form METHOD="post" ACTION="proc.php">
arcticdogg
Forum Newbie
Posts: 5
Joined: Fri Dec 19, 2003 1:16 pm
Location: Austin, TX, USA

Post by arcticdogg »

:oops: As you can tell, I'm fumbling my way through this. Perhaps that was not even a PHP issue? I know we use PHP with MySQL, and I guess I thought it was part of those forms, too. I guess it's time to break down and take some classes. :) Thanks again for your help.
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

maybe the mail fuction isn't setup?
Post Reply