Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-08-2010, 08:24 AM Strange php problem
Super Talker

Posts: 106
Trades: 0
When writing php scripts, if I make an error in the script then no error message is displayed but instead the code is displayed.

Then something strange happens - All of the other previously working php files in the folder also fail to work. E.g. where i have contact forms and guestbook scripts, if I load the html file and click 'submit', it fails to recognise the php file and instead displays a window asking if you want to open the file.

Somehow, having an error in one script is stopping all of the other (completely unrelated) scripts from working.A day later and they all work again. This is really annoying though because it means I have to wait for everything to work again before I can progress with any debugging. Fortunately I have another server to work on where this doesn't happen but I's still like to get to the bottom of it. Anyone experienced this before?
gh05 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-08-2010, 09:46 AM Re: Strange php problem
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
PHP is enabled on your server, right?

Are you using an extention that Apache is setup to recognize as a PHP file? (*.php, *.inc)

Are you using the open PHP tag for all your scripts? <?php
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-08-2010, 10:07 AM Re: Strange php problem
Super Talker

Posts: 106
Trades: 0
Quote:
Originally Posted by mgraphic View Post
PHP is enabled on your server, right?

Are you using an extention that Apache is setup to recognize as a PHP file? (*.php, *.inc)

Are you using the open PHP tag for all your scripts? <?php
Yep, it is enabled. These files work one minute but then as soon as there is an error in one file all the other scripts are affected (i.e. no longer seem to be recognised).

Files are all .php and I'm on a windows server.

All files start with <?php

I'm using a work PC, and I asked the IT guys if the server had died but they said no. Some simple php files remain working but those which receive variables from a HTML form don't and just ask the user to open the php file.
gh05 is offline
Reply With Quote
View Public Profile
 
Old 07-08-2010, 10:13 AM Re: Strange php problem
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
The problem could be almost anything, but I also think that it is related to the server setup. If you are working with IIS, it works with PHP, but I believe it is not as stable with PHP as Apache is.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Strange php problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25411 seconds with 12 queries