+ Post New Thread
Results 1 to 7 of 7
Coding Thread, Very basic PHP script causing server error? in Coding and Web Development; *REMOVED*...
  1. #1

    Join Date
    May 2006
    Posts
    1,315
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    25

    Very basic PHP script causing server error?

    *REMOVED*

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    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

  3. #3

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,401
    Thank Post
    637
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319

    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"]); ?>

  4. #4

    Join Date
    May 2006
    Posts
    1,315
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    25

    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.

  5. #5

    Join Date
    May 2006
    Posts
    1,315
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    25

    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!

  6. #6
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    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.

  7. #7

    Join Date
    May 2006
    Posts
    1,315
    Thank Post
    101
    Thanked 25 Times in 18 Posts
    Rep Power
    25

    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!

SHARE:
+ Post New Thread

Similar Threads

  1. Ubuntu Server Error
    By Jackd in forum *nix
    Replies: 5
    Last Post: 2nd October 2007, 08:25 PM
  2. Printers logon script error messages
    By indie in forum Windows
    Replies: 1
    Last Post: 14th September 2007, 11:34 AM
  3. proxy server script
    By chrbb in forum How do you do....it?
    Replies: 2
    Last Post: 7th March 2007, 10:57 PM
  4. Windows Server 2003 error
    By Simcfc73 in forum Windows
    Replies: 6
    Last Post: 10th July 2006, 09:12 PM
  5. Stupid CMD error with logon script
    By tarquel in forum Windows
    Replies: 37
    Last Post: 14th June 2006, 09:07 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •