Page 1 of 1
ALL Scripts not working, being displayed in browser
Posted: Fri Dec 19, 2003 1:16 pm
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
Posted: Fri Dec 19, 2003 1:24 pm
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

.
Posted: Fri Dec 19, 2003 1:24 pm
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?
Posted: Fri Dec 19, 2003 1:56 pm
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.
Posted: Fri Dec 19, 2003 2:27 pm
by Derfel Cadarn
That sounds familiar!
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!

Posted: Fri Dec 19, 2003 2:51 pm
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!

Posted: Fri Dec 19, 2003 2:54 pm
by Derfel Cadarn
Now you've made me curious: they've got php running without php on your server?
Can you give me the URL, I'd like to see that!!!
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????
actually...
Posted: Fri Dec 19, 2003 2:59 pm
by hookem
PHP is listed 4 times on netcraft...
Posted: Fri Dec 19, 2003 3:02 pm
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!

Back to the drawing board, I guess!
Posted: Fri Dec 19, 2003 3:13 pm
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!

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">
Posted: Fri Dec 19, 2003 3:57 pm
by arcticdogg

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.
Posted: Fri Dec 19, 2003 4:52 pm
by vigge89
maybe the mail fuction isn't setup?