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



Comments:

<0> hehe thanks Stormchaser
<0> :-/
<1> NET||abuse's quitting message scares me.
<2> I get the error "Warning: preg_replace(): Unknown modifier ')' in /home/wetfish/public_html/index.php on line 257" when I try to do this preg_replace("@!([^(:!@)]*)!@", str_replace("@", "&#64;", "\\1"), $output). What's wrong with my grouping?
<3> WrYYYYYYYYchjkl: avoid using a delimiter that also appears in your expression, or escape it in the expression
<4> what is pastebin adress?
<5> what is the way to delete all non-printable-chars? like \n \r etc?
<4> is there any obvious mistake in my configure file if i want to work with dbg? http://pastebin.com/726681
<2> rubypo: Have you tried trim()?
<5> yes
<5> does not help :(
<6> toshiro, spec file?
<7> toshiro, pastebin.com
<8> rubypo: $str = str_replace(array("\n", "\r"), '', $str);
<9> http://rafb.net/paste/results/PSiLri70.html <-- I have a weird error here... any ideas why that would be failing?
<5> caffinated: not sure if it is \n or \n what I have a 'strenge char' that I canno dele it! :(



<6> mrkris_, use a die(mysql_error())
<5> no idea how to see what char is
<5> it is invisible for me :(
<6> err MrNaz use a die(mysql_error());
<5> what, sendmail fails, because it finds this char
<6> err pg_error()
<9> Jy ok
<9> yea i ***umed you meant that :)
<8> rubypo: step over it and use ord, that will give you it's ascii value. another way to quickly see is to save the string to a file and load it in to a hex editor
<2> Okay, so @!([^(:!@)]*)!@, @!([^(:\!\@)]*)!@, and (:\@\!)([^(:\!\@)]*)(:\!\@) all don't work. I'm stumped. Basically, all I want to do is search for "!@" and put every character after that into a group until it hits "@!", can anyone help me with this stupid regexp?
<6> got up way too early
<9> Jy that just fails with nothing p***ed back... hmm
<5> caffinated: thanks
<4> Jy, what do you mean by spec file?
<6> MrNaz, like i said got up early try pg_last_error()
<6> if that doesn't work remove the die() and echo pg_last_error();
<6> its been ages since i used postgre
<9> Jy : or die('Error: "'.pg_last_error().'"'); returns this: Error: ""
<8> WrYYYYYYYYchjkl: a simpler way is to use a regex that grabs the portion of the string between !@ and @!, and then explode on !@. this should give you an array of the pieces in between
<4> is there any obvious mistake in my configure file if i want to work with dbg? http://pastebin.com/726681
<8> WrYYYYYYYYchjkl: so your regex would look something like this: /@!(.*)!@/ and then: $parts = explode('@!', $substring);
<5> caffinated: it tell me has the number 160
<5> any idea how to remove it?
<8> $str = str_replace(chr(160), '', $str);
<5> thanks!!
<2> Well, the full line is supposed to be $output = preg_replace(" @!([^(:\!\@)]*)!@", str_replace("@", "&#64;", "\\1"), $output);, and I kind of want to keep it on one line rather than using explode.
<10> Is there a way to put a require/include which gets done in a function context into global context?
<8> WrYYYYYYYYchjkl: ok, then what i would do is use two regexes
<8> WrYYYYYYYYchjkl: the first should be a preg_replace_callback which pulls the initial @! to !@ range. the second should be inside the callback.
<8> the one inside the callback would perform all the individual replacements. otherwise you're going to have to get in to some nasty ***ertions to figure out if you're at the last instance of !@ or not
<8> WrYYYYYYYYchjkl: either way you cut it, isolating the area you need to work on is probably the best strategy
<11> I know this frontend login system to oscommerce/phpbb is going to take me like 4 months to figure out :(
<12> hi is anyone here how is running eaccelerator? i cant get it working
<13> hmm newsgator eh?
<13> does it work on linux
<13> hmm it's online it seems
<11> hey caffinated, there?
<14> Hey, im trying to use exec() to setup a SSH tunnel to a remote server, but it seems the tunnel will just open then close? is there a way to keep it open? so i can use it further down in the script?
<15> drayen: php.net/ssh2
<6> cause the script is the parent.. maybe you can put it into the background with a & at the end
<14> TML, its on a shared host and i cant install modules :(
<14> TML, hence haveing to do it this hacky sort of way
<15> drayen: Well, you're not going to be able to do what you're trying to do using exec
<14> TML, erm poo. got any ideas as to how i might do it?
<15> drayen: Is this running in a web server?
<14> yes
<15> Then you can't use pcntl_fork()
<15> drayen: No, I can't think of any way to do it without getting your host to install ssh2
<14> TML, okay - im going to keep tinkering anyway - thanks tho
<15> drayen: See, the exec() cl*** of functions either block, or you lose the controlling pty
<15> Either way, you can't communicate with them anymore
<10> drayen: what about proc_open()?
<14> blueyed, that does look interesting
<15> Hmmm...they added pty support in PHP5.
<15> Finally, something in PHP5 I'd actually like to have.
<16> is there a quick way to reverse an array so that the first item becomes the last ?
<15> a|ex: You mean like array_reverse()?
<16> :+) thanks
<17> hello all
<17> Does anyone know of a script or a program to analyze PHP code to find unreferenced source files?



<18> currently I am using list() and explode() to seperate a comma delimited string from $_GET[] into their appropriate fields, but I need to also seperate that further for an arbitrary number of rows
<18> my question is in two parts
<18> is there a simple way to seperate the comma delimited list into seperate array fields (the endice specifies the row) or perhaps even a two dimensional array with rows by fields
<18> and if not, is there another delimiter I can use to seperate the rows other than comma... I've tried . and + and ;
<19> _
<18> what about the first question
<19> perhaps foreach to run through the value pairs
<18> but foreach what
<20> How to use mysql with Apache I've "--without-mysql" in my phpinfo()
<20> I m on linux
<20> FC 5
<14> blueyed_, popen() did the trick!!! when i create the tunnel i add the command 'sleep 25' to the end, which keep it open....
<21> great.. :)
<14> blueyed_, thanks for the help!
<14> TML, and thank you as well :)
<22> hi
<23> how is SID linked to error reporting ?
<23> if I set error report to --> error_reporting = E_ALL & & ~E_STRICT
<23> my SID will not work properly
<23> seems like strange behaviour?
<24> Call the function __no_strange_behavior() to disable strange_behavior mode.
<23> k
<23> sounds like a plan
<23> now I see the error
<23> double and
<23> thanks for the help EvanCarroll
<23> you're a genius!
<25> peunamics (sp?)
<25> whoops
<26> anyone seen mrturtle ?
<27> in php if I have a string like "howdy doody" and do a str_replace to convert " " to " " (double space to single space) it still wont remove all of the double spaces... how can I make it do that?
<27> I was just looping until substr_count doesn't show anything
<27> but that's very tacky
<28> you could do a preg_replace('# +#', ' ', $string);
<27> thanks!
<29> I'm trying to fill a post form using cURL and it isn't working. Is there some way to debug and see what's being sent or not sent?
<24> preg.
<24> oh php
<30> what happens when a function is p***ed one var, but is expecting a 2nd, 3rd, etc..? are they set to null?
<30> ***uming the 2nd & 3rd vars don't have a default value
<6> wrmachine, warnings
<30> k
<30> just a warning?
<6> yes
<29> anyone good at curl in here?
<31> for some reason libraries that I am installing with pear are not showing up in my php install (looking via phpinfo())
<31> what has to be set to make sure php knows about PEAR's installs?
<32> afternoon
<32> i have two for loops: 1) for($i=1; $i<=5; $i+=1), and 2) for($i=0.1; $i<=1; $i+=0.1)
<32> the first finishes at 5, and the second at 0.9
<32> why doesn't the second reach 1?
<33> can i request people to try out my website her?
<34> you can, we'll likely ignore you :)
<33> yes its php
<33> or, mostly php anyways
<32> how is 1.0 not <= 1.0?
<35> (Squillis): the second loop does reach one. i checked it right now
<36> floating point roundoff error
<35> 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
<35> is my output
<32> romanb: actually. i was using the index $epsilon
<32> instead of $i. that seems to make a difference. is $epsilon reserved?
<35> no
<35> but maybe you used it twice
<32> ok. just verified. this one doesn't reach 1:
<32> for($epsilon=0.01; $epsilon<=1.0; $epsilon+=0.01)
<32> finishes at 0.99
<37> Time to learn something about floating point numbers... :)
<32> never have had the chance to take numerical analysis :)
<32> please educate me
<38> Me too
<38> I would have thought that would work
<37> They're not exact numbers.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

gcc-4.1 vpnc
#css
Pango-CRITICAL **: _pango_cairo_font_map_get_renderer: assertion `PANGO_IS_CAIRO
substack freenode
#perl
#freedesktop
computerNERDie
+sparc +ultra 5 +GUI +ubuntu
lilo boot record relocation beyond
iptables forwarding upnp broadcast traffic



Home  |  disclaimer  |  contact  |  submit quotes