| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Comments:
<0> gregvernon: what? <1> mattmcc: You know I'm old-skool as it is, but just becasue I dont' use something doens't mean I can't find a purpose for it =) <0> gabrielone: im talking max queries in a 24 hour period, not max simo connections <0> a query and a connection are different <2> NSGN: Okay... I misunderstood <0> thats alright <3> GregVernon: Add a conditional encasing your page (hopefully you've done this in an easy manner) that checks whether or not to display or how to display the page. <4> heh, lemme try to rephrase. I want to dynamically stop people from viewing my website (for repairs & such), whats the best way todo that? Storing that it should be shut down and the reason <3> ^ same answer. <5> GregVernon: in your header function/file have a check.. <0> gregvernon: do you have an overall_header or a global header for the site? <0> if so thats a piece of cake <3> You can rely on exit. <5> GregVernon: if exists (siteisdown.php) include siteisdown.php(); die(); <4> myconid: that works :) <0> yeah, just toggle a function that says "we're closed" then exits
<2> Artnez_: Did you get a chance to look at the pages I posted..... <6> I am p***ing the name of an array to a function: e.g function_call(array_name) and I want to use the array name to call it's values, e.g. in the function: $array[0][1]; remember $array contains the NAMe of the array I wish to call. Any ideas about how to call it properly, as it doesn't seem to work for me; <6> echo $array[0][1]; <6> wq <7> gary_: Using vim? :) <0> ok, so for the final cheese, it is not really recomended that i learn OOP in PHP? i develop fairly complex sites...but just havent seen the need so far. am i missing out on something? <2> HEHE <7> NSGN: Knowledge never hurts... Unless of course you're a spy... <8> i need help moving move_uploaded_file($_FILES['photos']['tmp_name'], "../photos/"$_FILES['photos']['name'])). and the $_FILES['photos'] are in a array <6> lol Stormchaser yep :D <6> keep doing it in web browser too <2> NSGN: Can you look at the pages I posted earlier and tell me why the function that I have to set the cookie is not writing it to the drive? <6> I've ended a fair few emails with: :wq <0> gabrielone: link me <0> gabrielone: i'll give it a quick look <7> gary_: o.O <2> I posted the included page at http://pastebin.ca/42679 and the login page is http://pastebin.ca/42680..... <2> NSGN: Thanks.... I appreciate it <7> Weee! Pwetty light! :) <7> no, I need some food <9> same diff <2> Well eat.... <10> I need food aswell <10> heh <11> doh, not possible it seems <0> gabrielone: haha, wow. you wrote a cl*** for setting the cookie :-P <2> NSGN: Yea I know.... Don't laugh too had... I am just trying to do this thing right.... <0> no, i'm kinda impressed. i'm attempting to learn the concept of cl***es/objects at the moment. currently i just do a function to set a cookie <0> which works fine <12> NSGN, youll get it soon dont worry:D <2> NSGN: I have never done them before and they are killin me.... <11> cl***es? <0> yeah, its a bit crazy to suddenly have your code popping out into different objects <2> yea <2> NSGN: It is more than crazy... Keeping all the static and private object straight can get a little hairy <9> NSGN: a cl*** to set a cookie is overkill, until you want to do somehting like extend that cl*** so it also encryts the cookie before setting it dependant on what extentions are enabled on the certain server <11> well, when first starting, i'd ignore that part :p <0> gabrielone: at the moment i cant spot your error...but i didnt have a long time to search <9> but stil have the option of just setting a plain cookie <11> and make a few objects that interact <2> NSGN: Okay.... <13> A cl*** for setting a cookie is PRECISELY the reason why I hate OOP <0> gabrielone: sorry <8> my Array contains Array([13] => [14] => [15] => [16] => [17] => [18] => [19] => [20] => [21] => [22] => [23] => [24] =>) and i'm trying to figure out what those keys are so i can unset them, how can i do that <0> honestly, i just have a hard time seeing the usefulness of objects in PHP <9> AfroTurf: that's the print_r? <2> NSGN: No problem.... I have just jumped into this and having to learn this as I go is al little tough, but I think it will work out <0> seems custom functions are enough? <8> ||cw: yes <11> NSGN: go check out a complex web app <13> AfroTurf: You want all the keys which have empty values? Or just all the keys in the array? <9> AfroTurf: looks like those are the keys, and there are no values <8> ||cw: all the keys that have empty values <13> AfroTurf: 'cause if you want to unset all the keys, you can just reinitialize the array <0> well, outside of using cl***es to sort your custom functions i mean <14> farewell cruel channel <0> later <2> oaky?!?
<15> how do you check if a variable p***ed was an array or not? <8> i'm using a function thats in the manual but it only clears upto 12 <9> AfroTurf: use foraach() with $key=>$val option and empty() and unset() <11> SimAtWork: is_array <7> Farewell to you too! <13> $empty_keys = array_keys($array, '', false); <15> FzZzT: woot. thanks. <13> Or, more in line with your need: foreach(array_keys($array, '', false) as $key) unset($array[$key]); <8> Pollita: ok i'll try that <2> Well all I appreciate the ***istance and input... I have to run but I will return <11> gabrielone: whats the problem with the code you pasted? <1> Chola Pollita <1> Chica Pollita <1> Hey, I like that one! <0> what the heck?! ok...now i feel stupid. i had never heard of being able to do this <0> <?=$variable?> <11> uh <7> NSGN: one word: Ew. <0> instead of this: <?php echo $variable; ?> <1> NSGN <?= is short tags, avoid them <9> NSGN: only with short open tags, don't bother cause it's not portable <0> haha, ok <0> i had just never known it was possible <9> yeah <11> it isnt, shhh <0> what are they for even? <11> what are what for <9> you can even do <% phpinfo(); %> <1> NSGN same reason @ it, some sick developer joke. <13> NSGN: It's possible, just not a good idea. <0> what is the point, if there are portability issues? <16> I have three vars $test1, $test12, $test123, how do I get them all to print? example: $test%2%, where I want the % to be wild but not just one char, what do I need to enter in to do this? <9> NSGN: "it's just for my use, i won't need to take it elsewhere" <13> NSGN: Because PHP's been evolving for a long time now. What's the point of your appendix? <0> so that is old <0> alright <5> BrutusUnix: echo $$name; where $name is set to 'test1', 'test2', 'test3' <1> Pollita you watched HOUSE last night, didn't you? <9> i don't have an appendix <8> Pollita: ok i tryed putting that into a function. and it tells me to eat **** :) <16> ok <17> BrutusUnix: Sounds like you might want an array. <13> trIed <13> ENGLISH!!!! <5> foreach(Array('test1','test2','test3') as $test){ echo $$test; } <8> ya sorry tried <13> ****ing "tryed" drives me ape**** <0> ... <11> isn't it ape **** <8> ^)^ <9> myconid: dear $diety why? <7> It's a nose with wings! <13> Afro: Now then, I'm not sure when extension generates: PHP Notice: Eat **** in /home/user/test.php line 12 <11> not that either way makes much sense <13> Is that the actual error you got? <8> lol pollita: no <0> that would be amazing <0> :-D <13> NSGN: There are a few....less than formal.... error messages, you you have to royally foul things up to trigger them <9> Pollita: so now when are you going to make a "rude errors" extension <13> Things like "Where the hell did my pointer go?" <1> Pollita: http://www.sciam.com/askexpert_question.cfm?articleID=000CAE56-7201-1C71-9EB7809EC588F2D7&catID=3 <0> pollita: *is curious now* <13> ****....meeting <18> how can i retern a variable stored in a cookie? <13> ((where we discuss scatological issues of the day)) <5> hwo do i remove a newline from a string, and return a non FALSE value if it was removed <11> heh wow <1> Chica Pollita : ew! <16> mattmcc hit is an array for($i == 1; $i <=5; $i++){ print $array['test' .(wildcard) $i (wildcard)]; } $array['test1'], $array['test12'], $array['test123'], I want them all to print, just don't know the wild card <7> myconid: str_replace and str_pos
Return to
#php or Go to some related
logs:
frostwire ebuild #python beeplogic
#php #fedora tuple comprehension fedora mozilla jrel cygwin dd drive #bash gentoo please append a correct
|
|