IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-30
[00:32]<dzrcrs>you have flexibility of choosing what data source you'd like :]
[00:42]<f00jajd>:-D
[00:42]<tml>Drakas: In My Humble Opinion
[07:05]<balls_>Shi
[07:05]<curr>It's called the "Ruby" dialect.
[07:05]<balls_>Go
[07:05]<balls_>Roku
[07:06]<l_drsx>kuja: anatawa o genki deska ?
[07:06]<balls_>oh, I can count in japanese
[07:06]<g00|1>ching chang chong
[07:06]<l_drsx>n00|3: thats chinese !
[07:06]<pjffyvr>I understood all of that except 'genki'
[07:06]<kyffnzx>Okay stop it, and get back to work :-p
[07:06]<curr>p_mash: watashi.wa(:genki)
[07:06]<g00|1>ok guys i've been fucking around......
[07:06]<l_drsx>genki = well
[07:06]<mz_ecj>Catalan is a good choice
[07:06]<curr>Pollita: "How are you?"
[08:07]<ggmzr>what directive is that
[08:22]<fyr>litage, I found "$params["auth"] - Whether or not to use SMTP authentication. Default is FALSE" but unsure if that is what you want.
[08:48]<mz-mznw>sometimes tears are a good thing
[10:15]<ru22ygs>I just want to know how to specify the condition in regular expression pattern so that it would match all but one character.
[10:17]<vsudn>heh, still 50 away
[10:18]<sfgjg|frl>hi
[10:19]<sfgjg|frl>i have following problem . i have a line with characters in it. i want to replace each \ followed by the character with its html_entities value. how to do it best ? what i tried was doing following : $line = preg_replace("/\\(.)/g", html_entities( $1, ENT_QUOTES ), $line );
[10:19]<sfgjg|frl>but the problem is that html_entities a function is . and it accepts only vars
[10:20]<sfgjg|frl>is there a solution ?
[10:21]<sfgjg|frl>how to replace every match with a value returned by the function of that element ?
[10:21]<sfgjg|frl>err
[10:21]<sfgjg|frl>how to replace every match with a value returned by the function which takes element as match ?
[10:22]<2ygr>sleon|lap have you had a look at preg_replace_callback?
[10:23]<2ygr>You can make a function that that uses that deals with matches and returns what you want it to be replaced by
[10:24]<sfgjg|frl>bina, i thought it returns all matches + needs to build complete line
[10:24]<sfgjg|frl>no ?
[10:24]<sfgjg|frl>bina, my problem is : it becomes all matches at once . then it can for example do something with them. but how to place them back on the position they occured ?
[10:26]<2ygr>sleon|lap: ive done something like this before, ill see what code I used
[10:26]<sfgjg|frl>bina, cool
[10:29]<2ygr>sleon|lap: http://php.pastebin.com/746297 thats what I did, it seems to work for me
[10:29]<sfgjg|frl>bina, thx
[10:29]<2ygr>sleon|lap: np
[10:31]<sfgjg|frl>bina, why do you have four times \\\\ ?
[10:31]<sfgjg|frl>bina, is it equivalent to one \ or to two \\ ?
[10:32]<2ygr>sleon|lap: it should be euqal to \. I did it quite a long time ago, I think I just kept adding slashes until I got what I wanted :)
[10:33]<2ygr>I think \\ creates a \ in the regex, then the other \\ is the \ in the regex that is escaped by the first \
[10:33]<sfgjg|frl>bina, ok :)
[10:34]<2ygr>so the regular expression would only see \\ which would turn to \ because the first slash escapes the second one :)
[10:34]<2ygr>hehe :) im not sure either of those made sense :P
[10:36]<sfgjg|frl>hmmmm
[10:47]<gjd2zgaygf>how do i send two things to GET?
[10:47]<gjd2zgaygf>i've been able to send as many hidden fields as i want but is it possible to send lots of GET variables?
[10:48]<2ygr>nombrecinq: link to script.php?variable=value&variable2=value2 etc
[10:48]<qymxrqcqsm>hi i am trying luck to search and replace JP character as in unicode form i.e ä¼šå ´é–‹å‚¬æ—¥ .. but seems i cann replace it..any function there
[10:49]<2ygr>nombrecinq: I think you can only do it through links or forms
[10:49]<gjd2zgaygf>bina, i'm not quite sure i understand
[10:49]<2ygr>are you sending the data from a form?
[10:49]<gjd2zgaygf>yeah
[10:50]<z2juxxxtrpp>nombrecinq > mypage.php?FirstVar=1&SecondVar=2
[10:50]<2ygr>then you can put method="GET" in our <form> tag
[10:50]<z2juxxxtrpp>gasp, bina was faster
[10:50]<2ygr>hehe yay :)
[10:50]<gjd2zgaygf>i did that but it only showed mypage.php? in the browser
[10:50]<gjd2zgaygf>it completely omitted the rest
[10:50]<z2juxxxtrpp>oups
[10:51]<z2juxxxtrpp>bé ; sorry, no more ideas right now
[10:51]<2ygr>hmm, do all of your fields have name='something' bits?
[10:51]<z2juxxxtrpp>I actually work with only one field, right now, sorry
[10:52]<gjd2zgaygf>right now it's FORM action="anothertest.php"
[10:52]<gjd2zgaygf>when i tried FORM action="anothertest.php?first=1&second=2" that didn't work
[10:53]<2ygr>oh no, i see
[10:53]<2ygr>if you use method='GET' you need to put those as hidden fields named first and second
[10:53]<lyqzrw0q>hello
[10:53]<gjd2zgaygf>but then they're hidden
[10:53]<gjd2zgaygf>and i want them to show in the url
[10:55]<gjd2zgaygf>ugh!
[10:55]<gjd2zgaygf>it works not
[10:55]<gjd2zgaygf>now
[10:55]<ermmrgr>does anybody know how you'd get the result of a MySQL 5 stored procedure from PHP?
[10:55]<gjd2zgaygf>i don't know what's different but it works
[10:55]<2ygr>yay :)
[10:55]<gjd2zgaygf>zaydana: maybe you can run a stored procedure in phpmyadmin?
[10:56]<gjd2zgaygf>i use MSSQL and .NET
[10:56]<ermmrgr>nombrecinq - nop. Says can't return the result in this context
[10:56]<gjd2zgaygf>and query analyzer to run stored procedures
[10:56]<gjd2zgaygf>and inside of visual studio .NET you can run anything
[10:56]<gjd2zgaygf>but that is not php/mysql
[10:56]<ermmrgr>yeah
[10:57]<ermmrgr>apparently, php has good support for stored procedures in oracle, mssql, and pgsql, but not mysql :-(
[10:57]<gjd2zgaygf>maybe you can change the SQL a bit to look like a regular query?
[10:57]<ermmrgr>theres gotta be a way to do it somehow tho, i'm sure i've seen an article on it
[10:57]<ermmrgr>haha no... its like 78 lines long and uses a few control structures
[10:57]<qymxrqcqsm>friends anyone .. to replace jp character using php function..
[10:57]<qymxrqcqsm>i can't do with str_replace or ereg_replace
[10:59]<qymxrqcqsm>thanks
[11:00]<ermmrgr>hmm... maybe it will work with mysqli
[11:01]<qymxrqcqsm>do i need to do set some setting in php.ini to use mbstring function to parse jp
[11:01]<qymxrqcqsm>i have mbstring already loaded
[11:01]<qymxrqcqsm>beside that do i need to do any php.in iworks
[11:03]<qymxrqcqsm>can i use like this way .. to replace
[11:03]<qymxrqcqsm>mb_ereg_replace("/注目車両/","",$content);
[11:10]<rrrnfnvn>hi







