@# 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> blind as a badger
<1> night
<1> its probably this -> WHERE p.id = ".$poll_id."");
<1> but I think that should work fine
<2> If I"m using fsockopen to determine whether a site is accepting connections on x port, is there a way to send a ping/test to see the latency between hosts?
<2> $start_time... fsock-test-here ...time end... $start time - $end time = time?
<1> http://pastebin.com/547985 -> I have an error in my SQL I think
<3> how do i do a line break in php... like $query = "long text " \ "continue";
<2> $line_break = "\n";
<3> i mean in the code
<1> you can just keep on going
<3> like i have a statement that is 100 characters long and goes off the page
<1> just press enter
<2> $big_text = 'alsdfjsklafjakljfaskljf' . "\n" . 'some more sdlkfjslkfja<br />'; ?
<3> ohh.. .
<3> i guess that's it



<1> no tek, he thinks its like delphi or some other commands that goes line by line
<2> hmm...
<2> lol
<1> php goes till you end
<4> Does anyone have any success stories with accessing C#.NET dll files with PHP?
<4> i've checked the PHP docs
<4> theres a section on COM and .NET (Windows), but its rather sparse and doesnt seem to work
<2> If I"m using fsockopen to determine whether a site is accepting connections on x port, is there a way to send a ping/test to see the latency between hosts?
<1> no one has anything to say about my pastebin?
<5> im stuck, i can't find a decent php editor with code folding. what do you guys use?
<2> I use Zend Studio 5
<2> i freaking fly through code with it
<4> notepad++
<4> http://notepad-plus.sourceforge.net/
<1> I like dreamweaver 8s code folding thing
<2> pyker, what OS?
<5> tek: freebsd
<5> i am currently using bluefish (stable release) it doesn't support code folding yet. it is fine for small files but one of my functions is atleast 400 lines long and it takes me about 2 minutes just to navigate...
<1> freebsd, have you tried Quanta?
<5> falieson: no
<4> so
<4> nobody knows anything about using C# dll files with PHP via the DOTNET() cl***?
<4> or am i the victim of some anti-MS bigotry here?
<1> pyker: I don't know where its at now - its a pretty boggy program, like the rest of KDE but its pretty well built
<5> falieson: found it
<1> it might require you compile parts of kde, be warned
<6> what's a good free windows based database development software similar to DBDesigner4
<1> phpMyAdmin?
<1> :-D
<6> I thought MySQL Workbench might be useful, but it's barely able to even run so far ;/
<7> night
<8> :9
<9> Parse error: parse error, unexpected T_WHILE
<9> Im not sure why this is doing this
<9> Im using a while loop to loop until something = true
<9> i added an if statement inside the while loop and its throwing this at me
<9> im almost certain i have my brackets set right
<9> does an if statement inside a while loop make a while loop unexpected?
<10> sym0_: re-read the error message...
<11> pastebin?
<9> one sec
<10> it's saying the "while" keyword is unexpected. You have an error *before* the while.
<11> No local pastebin site?
<9> http://pastebin.com/547993
<9> i see
<9> LOL
<9> i dont have a ";"
<9> for my $cnt=1
<12> !+enter
<13> Don't use the enter key as puncuation. Think in complete thoughts, then type.
<9> lol
<9> does that code look ok?
<9> i mean im just learning
<9> but i think its kind of neat
<10> !tell sym0_ about enter
<9> !tell sym0_ about enter
<11> http://pastebin.com/547994
<9> cool
<11> For my problem.... question is in pastebin file.
<9> hilton: your in deeper **** than ive messed with thus so far
<9> but if i knew id help ya =)



<11> That's my typical answer when I come here.
<9> regex has been a pain in the *** for me to learn
<10> Hilton: looks like you need to do something with $match inside the loop
<9> but im getting it
<10> sym0_: concentrate on just learning for now
<9> working on it =)
<10> sym0_: and please, stop using your enter key as punctuation. It's annoying.
<4> CryWolf stop crying, its not causing you a mortal wound or anything.
<10> idiot squad is out tonight, I see.
<11> CryWolf: The only real question is why the subpattern (?:(\w+)="([^"]*)"\s*)* only saves once.
<10> Hilton: because each time through the loop, you're overwriting $match
<11> Seems to me it should save a match every time it matches.
<11> That's what I figured. I'm trying to figure out how to prevent that.
<10> That's very easy. Save it to another variable. Put it in another array.
<9> okay this is a really small stupid question - VALUES('$id['users']', <- thats part of an insert statement - mysql_query("Insert") i the beginning...it doesnt like it when i use double quotes for '$id["users"]' - will single quotes work?
<9> even though single quotes are what identifies it as a variable
<9> im p***ing part of an array to an insert statement for a mysql query
<10> sym0_: no, single quotes keep it from seeing the array index as a constant instead of a string. You don't need that when the variable is inside quotes.
<9> so then '$id[users]'
<9> ?
<10> yes
<12> sym0_ : You've been asked multiple times to stop using ENTER key as puncuation... you can type everything you have to say on one line. please do so.
<9> cool, i was about to try it with singles and i was like wait thats not going to work.
<14> What a horrible hour.
<4> Jymmm you've wasted plenty of lines telling him that...
<9> thanks crywolf.
<9> What's the big deal, your log file ?
<14> AnarkiNet: If I were you I wouldn't arguing with Jymmm, it's unhealthy.
<14> s/arguing/argue/
<11> CryWolf: Is there some way to use ?R recursion to do it all in one p***? There should be no need to seperate the attributes and process them seperately (which I've already done, but it's far slower)
<4> its a chatroom not a forum
<15> i designed a form in php whenever i refresh that page the gets automatically uploaded to the mysql
<14> Hah! Sorry bud, IRC does't have chatrooms :)
<9> lol
<15> i designed a form in php whenever i refresh that page the gets automatically uploaded to the mysql
<9> jymmm, get a petition for an auto-ban bot when a user posts x amount of lines in so long a period time or so close together
<14> ammy: Why is it that when you ask a question you always ask two times in a row? It's retarded.
<9> well.
<15> ok
<14> ammy: Note: Only retarded people do that
<9> i guess I'll watch my enter punctuations....
<15> kuja : ok fine
<14> sym0_: Yes, you might want to do that.
<14> Jymmm: /msg javabot aolbonics <-- It's like, ****ing identical. I wonder who ripped off who :P
<10> Hilton: preg_match and preg_match_all both operate only on strings. If you have a single string instead of an array with multiple elements, then a single p*** would do it.
<11> CryWolf: The array only exists to demonstrate multiple possibilities. The operations *are* on single strings.
<14> Nevermind, messaging javabot don't work, but some weird reason.
<9> wouldn preg_grep be used?
<10> Hilton: in that case, preg_match_all should do what you want.
<11> No.
<1> $result1 = mysql_query("SELECT title FROM pub_polls WHERE id=".$poll_id."");
<1> $poll_title = mysql_fetch_field($result1,'title');
<1> returns Object
<1> :-/
<11> I love it when people look at code and find solutions to problems I don't have a problem with.
<16> hi
<10> Hilton: your problem is that it takes multiple p***es to get all the matches, right?
<11> The problem - pure and simple - is that the subpattern (?:(\w+)="([^"]*)"\s*)* only saves to $match ONCE, even when matched 2, 3, or 500 times - I need it to save every time.
<10> Hilton: then, inside the loop, $saved_matches[] = $matches. Like I told you before.
<16> how could i declare a global var ?
<11> No, my problem is what I just said. The only way to make it work is to change the above to a simple .* and then perform a SEPERATE preg to seperate the elements.
<11> ffs.
<10> Hilton: ok, then, the answer is to use preg_match_all. Which I'm guessing you've never actually looked at.
<11> Lemme simplify for you, CryWolf.
<11> preg_match('@<e:(var|section|insert)\s+(?:(\w+)="([^"]*)"\s*)*(?:/>|>\n?.*?\n?</e:\1 *>)@smuS', '<e:var name="foobar" mode="ignore" />', $match);
<11> then print_r($match).
<11> the result SHOULD be [1] var [2] name [3] foobar [4] mode [5] ignore - I only get [1] var [2] mode [3] ignore
<15> whenever my page is refreshed is it that the submit button is set automatically
<10> Hilton: ah, now I understand. Your pattern is wrong.
<15> is there ne other way of doig such that when i 'll press submit then only data will be access
<17> if i see this in a variable ***ignment '" border="0" /><br />' : '<br />'; what does the ":" do?
<11> Melbell: www.php.net/ternary
<11> and scroll down to "Ternary operator"
<17> Hilton: thanks!


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#asm
#lgp
r-ball unicode
ubuntu no sensors found
gentoo superuseradd
(OS 3)The system cannot find the path specified. : couldn't create child proce
#suse
sky2 eth0 backtrack
#sql
#php



Home  |  disclaimer  |  contact  |  submit quotes