@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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



Comments:

<0> Nomikos, the name $_SERVER is often misleading here. much of the data can be tainted
<1> hi ... what would cause open_basedir to become set even if i don't have set in php.ini?
<1> phpinfo() shows a local value set but not a global one
<2> romanb, hmm.. does this not require register_globals ?
<3> could someone help me with some for loop logic?
<4> the example i saw uses IF ISSET, but i didnt know what it did so i removed it. Does it need to be in there when i set the session variable?
<0> Nomikos, no. many values in the $_SERVER array were sent by the clients HTTP request
<3> i have an array of 5 spots, containing $food1, $food2, $food3, $food4, $food5
<5> bytenik, vhost configuration maybe
<0> Nomikos, consider everything in $_SERVER tainted and you're on the secure side
<6> Cyno: if isSet ($a_variable) can you guess that does?
<2> romanb, ok :-)
<1> danf_1979: How would it be specified in there?
<3> i want to test each contents of $food1, $food2, $food3, $food4, $food5, how do I step through?
<4> Dangermouse, What?
<7> silentt: put them in your mouth in order



<6> silentt: php.net/foreach as shown earlier
<4> if the variable is already set then do something?
<6> Cyno: yup
<4> ok then maybe that's my problem
<4> I will try it out
<4> thanks
<5> with php_admin_value, IIRC
<8> HI. var static in PHP share the variables bettew cl***es?
<8> HI. var static in PHP share the variables bettew objects?
<3> i got it!
<9> chiquinho: static members/methods are accessible via the scope resolution operator without having an object.
<8> IF I Want the all object created acess the same variables
<8> ?
<9> What?
<3> Dangermouse: here's what it ended up looking like if you are curious, for each did the trick : ) http://pastebin.com/735676
<10> What happens if you try to refer to a static member using $this?
<10> and ->
<9> jcw9: Should result in an E_STRICT level warning.
<9> Hm, no. Wait. That happens when you try to statically call non-static methods.
<11> What is the correct unix permissions for a php file?
<10> Frixon, just as long as it doesn't work!
<4> what do the ++ do in this? $_SESSION['user_item1']++
<10> Or go to a non static var with the same name ;)
<12> Increments.
<4> thanks
<9> jcw9: You get an undefined property notice :)
<13> is there a break; command?
<13> can I use it to control the flow of a foreach loop?
<9> http://www.php.net/break
<14> ya break
<13> i.e. $counter = 0; foreach (bleh = blah) { $counter++; if ($counter = 5) {break} }
<9> Erm...what should that do?
<13> it should stop iterating over whatever after 5 entries
<13> substitute bleh = blah with $bleh->items as $item if you feel so inclined
<9> That sounds better. :)
<15> 8let's say i have for example a program sitting in the background listening for commands...
<15> how do i tell PHP to send commands to it? (and not restart/start a new process)
<15> this program i speak of accepts stdin as input
<16> http://php.net/readline
<15> Note: This extension is not available on Windows platforms.
<15> YAY ^_^
<15> discourges people even more to use this app of mine on a crappy winblows platform :O
<16> Well, it may not be what you want. It's for interactive use.
<16> If you're talking more about IPC, then there are pretty standard ways to do that, like pipes.
<17> Fushuing: think "Python"
<15> on the contrary :P
<15> Stormchaser: i don't WANT my app to be used on winblows platforms :|
<18> I'm trying to do function calls inside the second parameter of preg_replace (with little luck)... Is it impossible?
<18> preg_replace(blabla, 'meeeeeee' . strip_tags('\\1') . 'eeeeeeow', ...)
<19> see 'ya guys... have fun
<18> (Yes... I need the \\ ****.)
<20> KimmoA: use the /e modifier or preg_replace_callback()
<20> the whole thing has to be a string with /e though, so more like preg_replace(blabla, "'meeeeeee' . strip_tags('\\1') . 'eeeeeeow'", ...)
<18> Hmm...
<15> shouldn't php://stdin just work for what i want to do? :|
<18> You mean /e in the first parameter, right?
<20> yeah
<15> or write to the socket that the C++ program uses?
<18> Sigh.
<18> It doesn't like me using /e at all...



<18> Plus, can they be combined?
<18> (Already using /s...)
<4> is there a way to tell session to clear out any values for a bunch of variables?
<21> unset?
<17> unset()
<20> KimmoA: /se
<4> thanks
<10> Does require_once happen more than once if you call it on a file and on a symlink to the same file?
<10> ^_^
<22> jcw9: TIAS
<23> hey guys, how would I escape a $ symbol? I want to make sure users dont enter $ in prices...
<24> Hi, I know xdebug for performance profiling are there other recommendable methods?
<23> nm
<25> Infernall-Work: you probably don't want escaping then, you probably want filtering
<25> Infernall-Work: there are two ways you can go about that. either physicly remove the '$' from the input value, or validate the input for it's numericality and reject anything that isn't completely numeric
<26> except for periods
<25> 3.23 is completely numeric
<26> oh yes, your right
<7> im dying here tyring to find a function similar to stristr() that allows me to specify based on two needles - beginning and end... has anyone dealt with these before?
<4> i still can't get my session values to update when i return to the page that displays them
<18> arpad: No syntax errors, but it refuses to perform any of the functions I throw at it.
<26> aneurysm: you probably want a regex
<18> /se, using your "string style".
<4> I set the values on one page, and it displays them on another page, and they are not getting updated on the display page when i change them
<20> Kimmoa: paste it somewhere
<7> itrebal: i was just thinking that actually
<7> itrebal: ill check it out - thanks:)
<26> yup
<4> never mind. I will write to the database instead of session
<4> session doesnt seem to work right
<15> did you use == instead of =?
<15> common mistake
<4> no
<4> it writes it once
<4> just wont update it after that
<4> not until you close the browser
<27> Hi all!
<27> Does the PEAR DB extension work with PHP 4.4.2?
<28> yes
<15> it should just update like any other variable ;d
<15> $_SESSION['whatever']
<27> cythrawl: but I'm getting a warning:
<29> I can't get File Uploading/Handling to work in PHP, I've talked to my server admin and he's said he personally never got it to work but it works.
<15> have you turned on error reporting?
<27> cythrawll: Only variable references should be returned by reference in /hsphere/local/home/sosvet/homevet.co.il/ofer/rapid/DB.php on line 1127
<27>
<29> Fushuing, me?
<15> no, Cyno
<30> hi
<4> no what?
<27> nitroxide: hi.
<30> is there some people here in touch with php and shared memory ?
<15> gawd >.<
<15> nitroxide; i touch myself with php at night when drunken on shared memory ;d
<15> is that close enough?
<31> rindolf is that an error?
<30> nice
<30> :)
<27> cythrawll: no, it's a warning.
<30> Fushuing: and you like it ?
<27> cythrawll: a Notice.
<15> |P
<20> Kimmoa: oh, i can't send private messages
<31> rindolf, pear modules sometime produce warnings, necessary to be backwards compatible
<20> [21:17:14] <20> works fine here
<15> i prefer girls
<32> hello
<20> [21:17:28] <20> echo preg_replace('/\{\{(.+?)\}\}/se', "'<a href=\"' . strip_tags('\\1') . '\">\\1</a>'", ' foo {{bar}} baz');
<17> cythrawll: Do you choose to behave this time or should I ban this IP too?
<27> cythrawll: I see.
<18> arpad: Gah!
<27> cythrawll: can I fix it in the code?
<31> i'll behave


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

mathematics proveably unproveable
#linux
#javascript
ubuntu install font from windows
eastneo
#lisp
reinstalled linux now permission denied accessing hard drive
vsftp.conf simple debian
sshd exited, status 255
manipulat* behaviour*



Home  |  disclaimer  |  contact  |  submit quotes