-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
Well, you can look at phpinfo and see whether or not they're on or not but to really do anything you have to open up your php.ini file and find the line register_globals = On and change it accordingly...you know register_globals = Off
-
If you are able to use $xx in haha.php then it means you have register_globals turned on. Which is a "bad" thing to have on..security wise. And yes $_POST['xx'] is the proper way to call it. There is also $_REQUEST['xx'] but I don't recommend ever using that. it would take the value of the submit button.
-
genericnumber is absolutely right. what your asking is straight up impossible, although the concept that you seem to be looking for (or trying to skip) is called using flags. Maybe I'm wrong but the only reason I can come up with for wanting to know the source variable's name is to run an extra funciton or whatever.....so why not just use a flag? function myFunc($bbb, $flag==false) { // if $bbb was received from a variable named $aaa, echo "XYZ" if($flag != false) //etc etc } $aaa = "hello"; myFunc($aaa, "aaa");
-
also called a ternary statement
-
http://poststuff5.entensity.net/110308/image.php?pic=windows7.png
-
ahahaha http://poststuff5.entensity.net/110308/windows7.png
-
read up http://httpd.apache.org/docs/1.3/vhosts/examples.html
-
Yeah. I finally just got a wireless card for my desktop that actually has sound. But for the last 2 months I've had no sound on my laptop..the internet computer. So no instantly gratifying multimedia like youtube, etc. I have 1gb flash drive I've been using to send my videos and songs to my desktop. Annoying chore.
-
Yeah screw that noise, especially with all the stupid menus and what not. All you need is the latest codecs and a badass video card, and yer set. I miss being at home with my 52". I'm stuck out here at school now with just a 17" desktop and a 17" laptop with a nonworking sound card.
-
That's always a fun setup, although it's better in a living room, sitting on a couch with a wireless keyboard and mouse. Sitting at a desk like 2 ft from a 52" inch screen is a lot of strain on your eyes. Even a 42". But I had this particular kind of setup in my living room and all I did was watch movies all the time, youtube, netflix, and nearly more than half the time it was just pirated movies I tracked down. Totally different experience.
-
@Dj Kat Why on earth would you bump this thread? It's more than a year old.
-
that's just what a serialized array looks like Why are you wanting to use serialize in the first place? If you're looking for simple encryption then look at base64_encode() and base64_decode...along with serialize $array = base64_encode(serialize($array));
-
I don't quite understand what you're doing Only arrays are meant to be serialized...really unless you want to serialize every item in the array and then serialize the array again which is pointless. and also..on this line $Quantity = mysql_real_escape_string(trim(stripslashes(serialize($_POST['Quantity'])))); serialize would be the last thing you want to do, because you can't stripslashes, trim, and mysqlify a serialized string. If that makes sense This is what you'd change it to $Quantity = serialize(mysql_real_escape_string(trim(stripslashes($_POST['Quantity']))));
-
all for adding function return values in PHP6 say "yay"
Zane replied to alexweber15's topic in Application Design
I guess it could be a little bit useful if they could just extend off of the is_object function to include a class name for instance Is Object of ClassName is_object("ClassName", $var); but really I'm sure there's already a work around for that anyway now, and the lack of type specifiers for functions hasn't really halted many projects as far as I can see. -
Damn, the off topic meter is going off the charts now.....lol
-
never get any candy as child or something..lol
-
Is this actually a question or should I just group this along with the same genre as a rich kid asking his friends which one of his 19 cars he should drive to the $5,000 concert? You can't really just ask a community which programming language should I use for X and expect a direct unbiased answer. Let alone informative. If you think PHP/MySQL and Flash are your answer then go for it.
-
Wow, I am addicted to this now.
-
Because HTML is client side. As far as the "HTML Server" AKA the web server (Apache/IIS) is concerned THIS Is your root....or else everyone on the net would have access to all the files on your computer (unless of course you set restrictions.....very well) PHP is server side. And since it is....it already has access to all of your computer so it looks at your computer as a whole.
-
he doesn't mean your webroot. He means the root of your partition. EDIT: try using file_exists(realpath("./images/userprofiles/name.jpg"));
-
I'm no SQL expert but maybe SELECT DISTINCT `field_id` , `field_value` , `item_id` , `entry_id` FROM `ibf_registry_field_entries` ORDER BY `entry_id` ASC LIMIT 1
-
How do I assign a form drop down a variable onCHANGE
Zane replied to kpetsche20's topic in Javascript Help
onChange="submit()" -
$theSum += $row['thefield']; put that in your loop then $theSum will be..........The Sum unless there's more to this question
-
yeah, I'm in the same boat pretty much. Gotta live cheaply. If I didn't have to keep a steady blood sugar then I probably would just eat ramen all the time.
-
That's coming from someone who only eats once a day though. Egg sandwiches are awesome though, I probably will get some eggs