@# 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 27 28



Comments:

<0> preg_grep .. if i have something in $delim (it actually = "\""), how can i put that into the match string? "/\$delim.*\$delim/"; ?
<1> Jymmm? I found a not so updated version of the thing here... want to have a look?
<2> hi
<3> Hi
<2> i need your help, guys ;-)
<3> Shoot.
<2> i've an array with several IDs in it -> 0->1, 1->5, 2->3, 3->1 ... and so on. as you see, some ids occur more than once. now, i wanna to know how often, every id occurs in my array and than sort this by its occurrence
<2> erm, bad english ... i hope you understand ^^
<3> Yepp, understand.
<2> any idea? i'm at loss ... ;-)
<4> is there a way to trace execution of each function as it gets called?
<5> What is the purpose of the tilde operator (~) in PHP?
<1> ModestLife, run through the array, creating a second array with this structure($ar[id]=count) then sort that array
<6> ptils: regex equality
<2> bugzElMagnifico: already tried something in this direction ... i'll try it again! thx!
<5> ugarit, I just pulled out a reference book, and apparently it's actually bitwize not. Thanks anyway.



<7> OI OI.
<1> ModestLife, try a loop with something like : $ar[$id]=isset($ar[$id])?$ar[$id]++:1;
<7> Silly Q about the new DOM api (ok new to me)
<7> I've sucessfully loaded an xml file via DomDocument->load(); and have my grubby hands on the object. How shall I go about accessing my xml files guts now?
<8> is there a way to use php to check the size of a file after it has been uploaded to the server, everything says not to trust $_FILES['userfile']['name']
<8> err $_FILES['userfile']['size']
<9> filesize($_FILES['userfile'['tmp_name']);
<10> do a check on the temp file.
<10> yeop, Stormchaser 's code will do it.
<8> sweet, thanks
<11> ~~~~~
<9> Jymmm: :P
<12> Question: Anyone know if its possible to start a wile loop with a functioncall and end it with a function call
<13> i got a problem with my MySQL server and i was wondering if anyone here could connect to it its at http://mysql5.streamline.net/phpmyadmin/
<13> cause i cant seem to:/
<14> i'm doing my form validation all via php, the problem is that i have so many option selections. so, i have to test each option for the value and if true then echo selected. this is very tedious. there's no shortcut, is there
<15> :-)
<14> w/o setting up a db
<9> newpers: Make a loop, and compare the options.
<9> newpers: A hint: 'array'
<14> heh
<9> s/wheels/cogs/
<14> ok,i got it
<14> what a pain. i have like 20 selects and an average of 10 options pers slect
<16> what is the best possible way of dealing withspecial chars on filenames like this: !$%&()=@{}[]'`~^;.-_+..txt
<16> it is a valid name, by the way
<1> PinceI, get rid of them?
<17> PinceI: Unicode
<16> bugzElMagnifico, yes, or replace or something. i'm looking for a command or a function with commands. i know there are a couple but i'm not sure if there is only one to do it
<16> if you try to upload that file, for instance, it will get locked on your shell
<18> hy ,how i`m writeing a visiter tracker script ,and i`m getting very few browsers and referrers ,why is that?
<1> PinceI, you want to strip the special chars from a file name? use a regexp
<16> bugzElMagnifico, so i need to know them all, before doing it... no PHP command to do that?
<1> PinceI, no... do the opposite...
<16> bugzElMagnifico, to do with regexp i need to know all special chars, isn't? that's what i were saying
<1> PinceI, do a negative check. Allow only numbers an letters in names. Hence, anything that is not a number o letter must be replaced
<16> ahh ic :)
<16> i see, i mean :P
<16> thank you bugzElMagnifico :)
<1> No problemo
<16> problema :)
<1> Kein problem?
<13> can anyone tell me the strip slashes command please?
<1> stripslashes?
<19> stripslashes
<19> ?
<16> stripsl***ehs addslashes
<16> ak, stripslashes
<13> what do i put stripslashes[something here?]
<19> :|
<19> ( )
<13> stripslashes();
<1> php.net/stripslashes
<13> ok
<16> IllegalC0de, you have examples here http://php.net/function.stripslashes.php
<13> ok thanks
<20> hi
<20> /**



<20> * Constructor
<20> * @param string A prefix for mark messages
<20> */
<20>
<20> sorry
<9> *blink*
<20> But What is the usage of that comment style ?
<20> It helps ?
<9> yes
<21> It's called javadoc
<13> so how do i make it so users cant run sql commands through an input box?
<20> I meant is there any program that automatically recognize it ? ( I want to create an API for all cl***es in a file
<21> http://www.phpdoc.org/ for PHP
<9> www.php-doc.org
<1> IllegalC0de, are you sure you want that?
<21> Java has a parser packaged iwth it
<13> i dont want my users info to be got from the database by someone by typeing in an sql command in say the username login box etc
<22> is there a way when running an if to clear the screen for example if($_GET['test']=="yup"{
<22> and clear the screen in the code below
<13> cause i know it has been done in the p***ed to some sites
<2> when the keys in my array aren't serially numbered and then i sort it, get the keys re-numbered?
<13> olger901: yes
<1> IllegalC0de, ahh sorry.. I read *can* instead of *cant*....
<22> IllegalC0de: how?
<22> as I couldn't find it in the manual
<1> IllegalC0de, this might help: php.net/mysql_escape_string
<21> olger901: That's a client-side thing. You'd need Javascript. Check #web
<13> $test = $_GET['test']; if ($test == "yup") { the statment }
<13> try that olger901
<2> IllegalC0de: http://www.unixwiz.net/techtips/sql-injection.html
<22> thats not what I meant, I mean index.php?test=yup is a page, and if it loads that page, it should clear the previous page
<11> lig can you get any ***, err... I mean gl*** where your at?
<13> oh ok
<22> so is that possible?
<13> olger901: what do you mean by 'clear the previous page'?
<23> Jymmm: *** - of course... military town there is always some one available... Oh . Oh - you mean gl***... Hmm
<21> Hm
<22> clear the contents of the previous page
<21> Do I need a hardware abstraction layer or a system message bus?
<22> I got 2 pages index.php and index.php?test=yup, but when test=yup is loaded it shouldn't display the contents of index.php it's self
<22> which it does
<24> hello
<11> lig well, you have a sweet ***, but I'm talking the stuff that you see yourself in
<21> pix?!!
<23> Jymmm: why thanks... and I beleive it all has to be imported - gl*** that is. :D
<24> is it possible to set a cookie when sending an image file?
<24> will it get blocked by IE or whatever?
<21> Gorbulas|iBook: We're talking about *** here. This isn't a PHP channel
<11> lig well you ****... in a good and bad way.
<13> olger901: dont know unless i saw the code for index.php i wouldnt know
<23> Jymmm: well - of course
<24> There is a forum where I can only have one image in my signature, but I want to have two, and I want both of them to link to a different page
<11> heh... "Do not use this product if under the influence of alcohol or drugs."
<24> eww& more lag on freenode
<21> Jymmm: My friend has a hairdryer that says "Do not use while sleeping"
<11> Well, this statement eliminants most of you in here --> The warnings, precautions, and instructions discussed in this manual
<11> cannot cover all possible conditions and situations that may occur. The operator
<11> must understand that common sense and caution are factors, which cannot be
<11> built into this product, but must be supplied by the operator.
<24> does anyone know if it is doable?
<25> anyone use printshop? from broderhund?
<11> nforbes : Do you realize how many have actually placed the hair dryer next to them in bed - it's scarry.
<1> stedios, That still exists?!
<8> is there a way to get the width/height of $_FILES['userfile']
<11> bugzElMagnifico: Yes.
<21> Jymmm: Not really
<11> nforbes remember McDonalds hot coffee
<21> Jymmm: But I am aware now
<1> I used to use that on the old apple ][+
<11> iirc darwin awards.com
<24> I know it must be possible to send a cookie with an image file, but I don't know if that will be blocked by web-browsers because advertisers abuse it
<24> maybe #web would know&


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#suse
trillian for debian
GumbyBRAI
#ubuntu
#math
malformed url kde mount usb
p0trill023
finite domain is a division ring
Error fsck.ntfs
fuck kainnation



Home  |  disclaimer  |  contact  |  submit quotes