![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
PHP people... Quick question on why this no longer works...
This code used to work... Then my host upgraded my PHP and now it lo longer works... Pooh pooh!
Code:
if ($cmd == 'go' && ($url && $title && $blogs && $types)) The variables $url, $title, $blogs and $types all are arrays. Again, this used to work yesterday.... Now it doesn't. PHP was 5.2.5 and is now 5.2.9. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Join Date: Dec 2004
Posts: 17,513
|
how is your blog network doing?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
I make pixels work
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
|
After their upgrade, did they get apache up and running properly?
A simple upgrade 'shouldnt' effect an already working script
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
After upgrade everything else worked... except for this particular script. For some reason it doesn't return TRUE anymore. I believe it has something to do with the variables being arrays...
Blog network is going good. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Did they enable safe mode when they upgraded?
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
they probably disabled register_globals
![]()
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
Ah... was a globals problem.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Chafed.
Join Date: May 2002
Location: Face Down in Pussy
Posts: 18,041
|
In case anyone is keyword searching, there actually is a backward-INcompatible change from PHP4.X to php5.X involving arrays.
In php5 If you don't explicitly declare a variable as an array and then later you try to use certain array functions on it (slice, splice, etc), it will not work. I learned this the hard way when I upgraded a dedicated box with a bunch of legacy php code on it. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Too lazy to set a custom title
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
|
Quote:
By the way.. If you ever want to source out your programming, I'd be interested in doing some of your stuff.. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
So Fucking What
Industry Role:
Join Date: Jul 2006
Posts: 17,189
|
coding the phps
($url && $title && $blogs && $types)
that must be returning true why not maybe change to if($cmd == 'go' ){ if($url==true && $title==true && $blogs==true && $types==true){} } ? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
|
This thread makes my balls hurts.
If they are arrays you should first check to make sure that's indeed what they are. http://php.net/is_array Also, try using a switch instead of a null else or long ass if-elseif-else chain. http://php.net/switch I'm happy the code you posted here fails ![]()
__________________
subarus. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
So Fucking What
Industry Role:
Join Date: Jul 2006
Posts: 17,189
|
echo 'help me' . '<BR>' ;
echo 'help meeeeeeeeeeeeeeeeeeeeeeeeeeeeeee' ; |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
So Fucking What
Industry Role:
Join Date: Jul 2006
Posts: 17,189
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Too lazy to set a custom title
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
So Fucking What
Industry Role:
Join Date: Jul 2006
Posts: 17,189
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Guest
Posts: n/a
|
if ($_GET['cmd'] == 'go' && (($_GET['url'] && $_GET['title']) && ($_GET['blogs'] && $_GET['types'])))
Win. |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
|
^ That's a fail, because it'd require the array to be passed via the url.
Unless you're assigning an array to $_GET, which in case would also be a fail. Plus you're still not checking to see if the variables are arrays. Wouldn't you want to do that before any processing occurs?
__________________
subarus. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Confirmed User
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
|
I want to know what url, title, blogs, and types variable are part of so i can see the big picture. Wtf, does your script do.
__________________
subarus. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | |||
So Fucking What
Industry Role:
Join Date: Jul 2006
Posts: 17,189
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Too lazy to set a custom title
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
♥ ♦ ♣ ♠
Industry Role:
Join Date: Sep 2002
Location: Porn Valley, CA
Posts: 10,590
|
This works. I'm not sure if it's proper for what you're doing or not, but maybe it helps.
Code:
$cmd=$_GET['cmd']; $url=$_GET['url']; $title=$_GET['title']; $blogs=$_GET['blogs']; $types=$_GET['types']; $check=is_string($url)&&($title)&&($blogs)&&($types); if(($cmd=='go')&&($check != FALSE)){ echo "YAY!"; }else{ echo "BOOO!"; }
__________________
![]() ![]() ![]() "I'm selflessly supporting the common good, but only coincidentally looking out for No.1." |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 |
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
VooDoo, wtf you been up to lately man? good to see your still kickin.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 |
Two fresh affiliate progs
Industry Role:
Join Date: Nov 2004
Location: Inside teen pussy
Posts: 29,602
|
Fucking geeks....
![]() J/K I wish I knew php ![]()
__________________
[email protected] Skype: 17026955414 Vacares Web Hosting - Protect Your Ass with Included Daily Backups |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
RIP Dodger. BEST.CAT.EVER
Industry Role:
Join Date: Dec 2002
Location: NYC Area
Posts: 18,450
|
I'm on a grammar kick. Moot, not mute.
__________________
-uno icq: 111-914 CrazyBabe.com - porn art MojoHost - For all your hosting needs, present and future. Tell them I sent ya! |
![]() |
![]() ![]() ![]() ![]() ![]() |