Jump to content

Very Quick Question About PHP


Spartan 117

Recommended Posts

Thanks for the help, I got it.

I am going to use it on this website: http://www.youareban.info/

lol, if anyone here or anywhere wants to use it just redirect here if they are banned:
www,youareban.info/echo.php?[color=red]www,yoursite.com[/color]

* I replaced dots (.) with comma's (,) to disable link...

Where it says "Please Wait For Further Details" is where it will say you were banend from: yoursite.com

Annoying music? I know I made it lol!
I have one more quick question.

I am having some trouble making it say something else if there is nothing after the question mark, so I did this:

[code]<?php
if ( $_SERVER['QUERY_STRING'] = NULL ) {
echo "Some Website";
} else {
echo $_SERVER['QUERY_STRING'];
}
?>[/code]

And nothing echos. How do I fix this?

Thanks

Nevermind, I got it by changing some stuff:

[code]<?php
if ( !empty($_SERVER['QUERY_STRING']) ) {
echo $_SERVER['QUERY_STRING'];
} else {
echo "Some Website";
}
?>[/code]

Thanks Again.
Ouch, You should add a warning sign to that link here for people on Dial Up, Im not but it still lagged my connection for almost a minute.  Anyway, you would probably just want to use Header: http://youarebanned.com or whatever the url is.  You don't need a script like that except for a reffer system.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.