Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

Go Back   EduGeek.net Forums > Coding and Web Development > Coding
Reply
 
LinkBack Thread Tools Search Thread Language
Sponsored Links
Old 25-02-2007, 11:40 PM   #1
 
_Bat_'s Avatar
 
Join Date: May 2006
Posts: 1,132
Thanks: 2
Thanked 8 Times in 4 Posts
Rep Power: 9 _Bat_ is on a distinguished road
Default Very basic PHP script causing server error?

*REMOVED*
  Reply With Quote
Old 26-02-2007, 12:20 AM   #2
 
Geoff's Avatar
 
Join Date: Jun 2005
Location: Fylde, Lancs, UK.
Posts: 9,931
uk uk lancashire
Thanks: 42
Thanked 230 Times in 209 Posts
Blog Entries: 1
Rep Power: 67 Geoff has much to be proud ofGeoff has much to be proud ofGeoff has much to be proud ofGeoff has much to be proud ofGeoff has much to be proud ofGeoff has much to be proud ofGeoff has much to be proud ofGeoff has much to be proud ofGeoff has much to be proud of
Send a message via ICQ to Geoff Send a message via AIM to Geoff Send a message via MSN to Geoff Send a message via Yahoo to Geoff Send a message via Skype™ to Geoff
Default Re: Very basic PHP script causing server error?

enable PHP debugging. You'll get more meaningful error messages enabling you to track down the problem.

Code:
php_flag display_errors on
  Reply With Quote
Old 26-02-2007, 12:28 AM   #3
 
webman's Avatar
 
Join Date: Nov 2005
Location: County Durham
Posts: 5,668
uk uk durham city
Thanks: 105
Thanked 87 Times in 71 Posts
Blog Entries: 1
Rep Power: 38 webman is a name known to allwebman is a name known to allwebman is a name known to allwebman is a name known to allwebman is a name known to allwebman is a name known to all
Default Re: Very basic PHP script causing server error?

Just looking at it, I think it's the way you're using the curly braces in your echo calls - I've only ever seen array indexes used with square brackets:

Code:
<?php echo($_POST["epass"]); ?>
  Reply With Quote
Old 26-02-2007, 09:57 AM   #4
 
_Bat_'s Avatar
 
Join Date: May 2006
Posts: 1,132
Thanks: 2
Thanked 8 Times in 4 Posts
Rep Power: 9 _Bat_ is on a distinguished road
Default Re: Very basic PHP script causing server error?

Quote:
Originally Posted by webman
Just looking at it, I think it's the way you're using the curly braces in your echo calls - I've only ever seen array indexes used with square brackets:

Code:
<?php echo($_POST["epass"]); ?>
Just had a go at changing this, unfortunately it still fails .

I'll do what Geoff said and see if I can extract any more meaning out of the error message.
  Reply With Quote
Old 26-02-2007, 11:04 AM   #5
 
_Bat_'s Avatar
 
Join Date: May 2006
Posts: 1,132
Thanks: 2
Thanked 8 Times in 4 Posts
Rep Power: 9 _Bat_ is on a distinguished road
Default Re: Very basic PHP script causing server error?

Hahahaha! (Someone said to me once, if they didn't laugh, they'd scream... thats pretty much how I feel now).

Anywho, I removed ALL of the php code out of the PHP file (along with half the HTML) and it still pops up the same error (even though there is not any code to process!). I cannot get the server to give me any more details. Anyone who is clever enough to explain this away, it'd be much appreciated!
  Reply With Quote
Old 26-02-2007, 11:07 AM   #6
 
contink's Avatar
 
Join Date: Jul 2006
Location: South Yorkshire
Posts: 2,807
uk uk yorkshire
Thanks: 108
Thanked 109 Times in 81 Posts
Rep Power: 34 contink is a splendid one to beholdcontink is a splendid one to beholdcontink is a splendid one to beholdcontink is a splendid one to beholdcontink is a splendid one to beholdcontink is a splendid one to behold
Default Re: Very basic PHP script causing server error?

Really dumb question but you have compiled PHP on the server and actually got it hooked into Apache..

Try creating a file called test.php and put this in:

Code:
<?php
echo phpinfo();
?>
If that fails then you will know you've got to look at the underlying PHP provision on your server... if you get a slew of info though you can rule that out.
  Reply With Quote
Old 26-02-2007, 11:21 AM   #7
 
_Bat_'s Avatar
 
Join Date: May 2006
Posts: 1,132
Thanks: 2
Thanked 8 Times in 4 Posts
Rep Power: 9 _Bat_ is on a distinguished road
Default Re: Very basic PHP script causing server error?

Quote:
Originally Posted by contink
Really dumb question but you have compiled PHP on the server and actually got it hooked into Apache..

Try creating a file called test.php and put this in:

Code:
<?php
echo phpinfo();
?>
If that fails then you will know you've got to look at the underlying PHP provision on your server... if you get a slew of info though you can rule that out.
Server isn't mine, its from plugsocket.com. The PHP is fine because the rest of the site is PHP based (it uses Joomla) and that works fine.

It's just suddenly started working... yet the only thing I did was change the file permissions on the directory they were in from 757 to 755 (so I actually took some permissions away...) and i'm as confused as heck as to why it has just done that, but i'm not complaining.

Thanks for all of your help!
  Reply With Quote
Reply

Register now for FREE and post messages!


Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Birthday:      
Image Verification
  I agree to forum rules 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Server Error Jackd *nix 5 02-10-2007 08:25 PM
Printers logon script error messages indie Windows 1 14-09-2007 11:34 AM
proxy server script chrbb How do you do....it? 2 07-03-2007 11:57 PM
Windows Server 2003 error Simcfc73 Windows 6 10-07-2006 09:12 PM
Stupid CMD error with logon script tarquel Windows 37 14-06-2006 09:07 AM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search 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 On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 10:58 PM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright EduGeek.net