View previous topic :: View next topic |
Author |
Message |
MaxxBasher -
Joined: 25 Apr 2004 Posts: 44
|
Posted: Fri Sep 03, 2004 11:18 pm Post subject: Error 200 :( |
|
|
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 |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Sep 03, 2004 11:28 pm Post subject: |
|
|
If your using PHP v5 , that could possibly be the problem. |
|
Back to top |
|
 |
MaxxBasher -
Joined: 25 Apr 2004 Posts: 44
|
Posted: Fri Sep 03, 2004 11:40 pm Post subject: |
|
|
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 |
|
 |
aprelium-beta -
Joined: 24 Jun 2004 Posts: 383
|
Posted: Sat Sep 04, 2004 12:27 am Post subject: Re: Error 200 :( |
|
|
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 |
|
 |
qaqaqaqaqa -
Joined: 04 Sep 2004 Posts: 1
|
Posted: Sat Sep 04, 2004 1:46 pm Post subject: ahhh the case of the fat fingers!!! |
|
|
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 |
|
 |
MaxxBasher -
Joined: 25 Apr 2004 Posts: 44
|
Posted: Sat Sep 04, 2004 8:28 pm Post subject: |
|
|
Thanks for your replys but register global is set to and and my phpmyadmin only has single quotes. |
|
Back to top |
|
 |
olle -
Joined: 17 Apr 2004 Posts: 6
|
Posted: Thu Sep 16, 2004 4:23 am Post subject: kind of same problem... |
|
|
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 |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Sep 16, 2004 5:59 am Post subject: |
|
|
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 |
|
 |
|