Error 200 :(

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
MaxxBasher
-


Joined: 25 Apr 2004
Posts: 44

PostPosted: Fri Sep 03, 2004 11:18 pm    Post subject: Error 200 :( Reply with quote

I have no idea why but when I reinstalled abyss, php, mysql and phpmyadmin adn tryed to get onto my forums which is a new phpbb installation it comes up with error 200.

It does it on nearly all of ym PHP scripts that I know work perfectly as I have tried them on my live server and all work perfectly.

I just wondered if there was a setting that will stop this happening or does it all need reinstalling?

Please please please help. I am meant to be doing a site and it is taking ages to upload to the live servers.
Back to top View user's profile Send private message Send e-mail Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Sep 03, 2004 11:28 pm    Post subject: Reply with quote

If your using PHP v5 , that could possibly be the problem.
Back to top View user's profile Send private message Visit poster's website
MaxxBasher
-


Joined: 25 Apr 2004
Posts: 44

PostPosted: Fri Sep 03, 2004 11:40 pm    Post subject: Reply with quote

Thats the thing, it is php 4. When I upgraded abyss it just started happening and I cant seem to do aything about it.

Thanks for you reply
Back to top View user's profile Send private message Send e-mail Visit poster's website
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Sat Sep 04, 2004 12:27 am    Post subject: Re: Error 200 :( Reply with quote

MaxxBasher,

Most error 200 problems with PhpBB and other famous scripts are related to php.ini settings. Open php.ini and set register_globals to on. Save the file and retry your scripts.
Search also for "error 200" in this section of the forum. You'll find many similar topics and more explanations.
_________________
Beta Testing Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
qaqaqaqaqa
-


Joined: 04 Sep 2004
Posts: 1

PostPosted: Sat Sep 04, 2004 1:46 pm    Post subject: ahhh the case of the fat fingers!!! Reply with quote

I had the same issue.. had an extra qoute in :

$cfg['PmaAbsoluteUri'] = ''http://localhost/phpMyAdmin';

should have been:

$cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin';


Reminds me of my cobol days *sigh*... hope this helps...
Back to top View user's profile Send private message
MaxxBasher
-


Joined: 25 Apr 2004
Posts: 44

PostPosted: Sat Sep 04, 2004 8:28 pm    Post subject: Reply with quote

Thanks for your replys but register global is set to and and my phpmyadmin only has single quotes.
Back to top View user's profile Send private message Send e-mail Visit poster's website
olle
-


Joined: 17 Apr 2004
Posts: 6

PostPosted: Thu Sep 16, 2004 4:23 am    Post subject: kind of same problem... Reply with quote

i also had problem with that Error 200 with my loginscript :S when i turned register_globals to On, everything did work as it should. Is it bad security when register_globals is On? Shall i keep it on, or can i do some changes in my script?

<?php
$anvandare ="thomas";
$losen ="holmstroem";

if(isset($skicka))
{
if ($anvandarnamn == $anvandare && $losenord == $losen) {
echo "You do have access now :D";
}
else
{
echo "Hmms, trying to hack? :P";
}
}
?>
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Sep 16, 2004 5:59 am    Post subject: Reply with quote

I figured it out , since you have 2 if statments and your checking for 2
things , you will need to add an extra }else{ statement to your code.

Fixed Version:
Code:

<?php
$anvandare ="thomas";
$losen ="holmstroem";

if(isset($skicka))
{
if ($anvandarnamn == $anvandare && $losenord == $losen) {
echo "You do have access now :D";
}
else
{
echo "Add some type of response lol!";
}
}
else
{
echo "Hmms, trying to hack? :P";
}
?>


Doesn't this look like an easier to read setup instead of your's ?
The key to good PHP programming is knowing the pattern of it.

Code:

<?php
$anvandare ="thomas";
$losen ="holmstroem";

if(isset($skicka)) {
if ($anvandarnamn == $anvandare && $losenord == $losen) {
echo "You do have access now :D";
}else{
echo "Add some type of response lol!";
}
}else{
echo "Hmms, trying to hack? :P";
}
?>


Note: The first if statement is always the last }else{ and then when you add
other if statements the }else{ statements will go up instead of being last. :)

See , PHP runs in a pattern so its easier than Perl lol!
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group