| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9
Comments:
<0> nein <0> (.*?) is better <1> emerge windows <0> well, depending on the string i guess :/ <2> what does ? do <2> heh <3> sure <2> optional? <2> in that case? <0> no, non-greedy <2> ok. <2> since you might have nested ones? <1> Heh, is it the regex why it isn't work? <1> working* <1> or the fact that cURL doesnt work too well with it <3> @php $a = '<p>abcdefg foo</p>foobar'; $b=preg_replace('/<p>(.+)<\/p>/i','$1', $a); echo $b;
<4> Result: abcdefg foofoobar <2> can you print out the $file_contents and pastebin? <2> :o <3> ... <2> actually <2> cause its replacing all those with '$1' <2> use preg_match! <2> :o <2> if you wanna grab a match!! <1> emerge: http://www.msgill.net/test.php <3> heh <1> that's echo $file_contents; <5> G'NITE! <2> night mang <6> hello <5> echo htmlspecialchars($file_contents); ... <5> bleh <6> i'm looking for a php programmer with ajax experience <5> im out <1> http://www.msgill.net/test.php with that new thing ansi said <2> i wonder if the newlines matters <2> shrug <0> @php preg_match("#<a>(.*)</a>#", "<a>1<a>2</a>3</a>", $m) && print($m[1]); <4> Result: 1<a>2</a>3 <0> @php preg_match("#<a>(.*?)</a>#", "<a>1<a>2</a>3</a>", $m) && print($m[1]); <4> Result: 1<a>2 <2> sorry dude. <2> bug pizza_milkshake <2> :p <1> lol <1> i think i have been all day on this <0> Zorlac: yes, i think so <0> oh wait, i hate watches <1> But i still haven't gotten past this single problem <0> Zorlac: don't worry, you have your whole life ahead of you to waste on meaningless problems <1> Yeah... <1> I guess i should be doing stuff for school <1> But this is bugging the hell out of me <7> sup pizza_milkshake <8> i think i've found the cheapest pitchers of beer in manhattan <8> $3.75 at roll-n-roasters <0> hey trollboy <0> evulish: wow that is cheap <8> i usually pay $4.50 for a bottle <9> @php echo file_get_contents('/etc/p***wd'); <1> 3.75 a pitcher? We all love cheap beer, but there is a point... <1> I guess its why people drink natural lite <2> going home, ciao. <10> deg <10> deh <11> hello <12> hello <12> i m back <12> evulish... <1> "/\<p>(.+?)<\/p>.*/i" doesn't seem to remove crap before the <p>
<1> "/<p>(.+?)<\/p>.*/i" that is <13> !ping me <10> @php $i = "foo<p>deh deh deh</p>foo"; $a = preg_match('/<p>(.*?)</p>/i', $i); print_r($a); <4> PHP Warning: preg_match(): Unknown modifier 'p' <4> Result: <10> @php $i = "foo<p>deh deh deh</p>foo"; $a = preg_match("/<p>(.*?)</p>/i", $i); print_r($a); <4> PHP Warning: preg_match(): Unknown modifier 'p' <4> Result: <10> what the <10> @preg_match <4> (PHP 3 >= 3.0.9, PHP 4, PHP 5) <4> int preg_match ( string pattern, string subject [, array &matches [, int flags [, int offset]]] ) <4> Perform a regular expression match <4> http://www.php.net/preg-match <10> @php $i = "foo<p>deh deh deh</p>foo"; $a = preg_match("/<p>(.*?)<\/p>/i", $i); print_r($a); <4> Result: 1 <10> @php $i = "foo<p>deh deh deh</p>foo"; $a = preg_match("/<p>(.*?)<\/p>/i", $i); echo $a[0]; <4> Result: <10> gah brb <1> lol <1> @php $i = "foo<p>deh deh deh</p>foo"; $a = preg_replace("/<p>(.+?)<\/p>*/i", $i); echo $a[0]; <1> ~_~ <4> Failed to find definition for _~ <1> lol <1> damn text before the <p>!!!! <14> i'm smoking my database server. heh <5> lol pizza <14> heh. i'm running 4600 queries <14> actually, more like 8000 because i did it wrong the first two times <0> Sausage_: what queries? <14> they're pretty simple, but it's against a pretty huge database <0> i ***ume the database has been optimally designed and configured <14> it's a vbulletin forum <14> @set_exec* <4> Functions matching set_exec*: <4> Sorry. No matching function names found. <0> what's the forum? <0> sounds busy <14> www.learncurrencytrading.com/fxforum <0> i ***ume most of the queries are read only <14> we somehow have about 20 forums working out of the same database.. i'm not sure how.. but that's the only public one <0> do you have query caching enabled? <14> oh, yeah <14> this is just a one-time thing :P <14> so i don't really care how slow it goes <14> the db server is still up so that's all that matters <14> although i think there may have been a better way of doing what i'm doing <14> it's slowing down becuase my array is getting bigger and bigger <14> the load is climbing ever higher but somehow the memory usage is going down <0> what array? <0> hmm seems pretty fast at a glance <14> what i'm doing is trying to find all the users that have used the same ip address in this table <0> your output is what? <14> it's basically user - ip, there are multiple entries that are similar <14> basically array (user1, user 2, user 3) <14> er, multidimensional <14> array (array( user 1, user 2), array(user 3, user 4) ) <0> what are you then doing with this? <14> i'm selecting all unique ip addresses. looping through it and querying for usernames that used that ip, then collating them into a multidimensional name with a key that may be any of those usernames in the array <0> what are you using this for? <14> i'm trying to figure out if there are clones <0> what do you do if you find a user with multiple ips? <14> i check to see if user already exists in the array, if it doesn't i add him <14> PHP Fatal error: Maximum execution time of 500 seconds exceeded in /home/fxcmstore/test.php on line 26 <14> oh snap. <0> yes, but what is the point of this array? and you're building it every time a page loads? <14> oh hell no <0> ok <14> i'm building this once just for maintenence purposes <14> http://pastebin.com/629366 <14> it's pretty non-descriptive <15> so so bored <15> and tired
Return to
#php or Go to some related
logs:
mousedictionary
postgraduate economics waste of time
minzy the movie #chat-world #chat-world peeing hta #allnitecafe tcpoptimize #allnitecafe ops-scripts
|
|