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



Comments:

<0> rtyler: This can be done most easily with FUSE or LUFS, probably
<1> grr... i think i have to rewrite a large portion of my queries
<2> Hello i need a tad bit of help
<2> anybody here experienced with regex?
<3> koncept: this isnt #ESP
<4> I still don't get the koncept behind regex, sorry
<2> lol
<3> /[s|t]+(fu).*/
<2> >_>
<3> you gunna ask a quesion?
<2> well i wana strip the title out of a xml feed
<3> ok?
<3> whats hard about that
<2> and i have no regex knowledge ive sat there and stared at expressions and i still do not get them
<3> /^<title>(.*)<\/title>/



<2> thank you
<3> thyat might not work.. but it also might
<3> heh
<3> gimme the xml feed url
<3> koncept: what version of PHP are you runnig?
<1> well #<title>(.*)</title># will work, the ^ requires it to be the first thing in the line (or is it string?)
<2> mostly all xml feeds go <title>hello</title>
<3> ive never seen an xml feed.
<3> usually I use atom or rss
<1> that may be, but what if there are tabs be in front of it (or spaces)
<5> koncept: http://us3.php.net/manual/en/reference.pcre.pattern.syntax.php
<6> Hi all
<6> anyone using the ZF?
<5> ZF?
<6> Zend Framework
<7> what do you guys think of php now with ruby/rails around?
<5> Ah, gotcha. I'm not, sorry.
<7> which is far more powerful .. just curious
<8> ruby on rails is pointless
<8> and it's most certainly not more powerful than php
<8> don't come into a channel being an apostle of something else
<8> nobody cares about your zealotry
<7> im not trying to be
<8> nor your inability to sort ouot power from your personal lack of skill
<7> im just curious what you guys think of ruby/rails vs. php
<8> <7> I'm not trying to be a zealot, I just immediately showed up and said something else was better
<6> elux: I don't like ruby... it's a python like.... I like PHP because is C like....
<8> <7> There's no reason that should be annoying, or me
<3> *plesae dont start language wars*
<1> elux: i find that all languages have their place, for certain implimentations, ruby has its, php has its
<9> And since this is ##php
<7> fair enuf
<9> Let's keep it to php.
<9> ;)
<3> r@1lz
<6> myconid: true
<3> oh la la
<7> but im still curious about php vs. ruby/rails .. ive been a long php user but rails seems to have its merits
<6> anyone trying Zend Framework?
<8> elux: shut up
<1> StR i hear its nice
<7> go eat ***
<6> itrebal: yes.. it will be the "rails" for PHP
<7> everyone is entiled to their opinion, deal with it
<1> StR: already exists... PHP On Trax
<7> except its missing the whole ruby part
<10> is there anyway to include php code from a external file but buffer the output it generates? i have a include() wrapped in ob_* functions and the include()'d stuff just gets sent to the browser immediately anyway
<1> elux: to come in and say that RoR is better than PHP, that is 1) trolling (IMO) and 2) not the right place, as this is a PHP support channel, not PHP debate channel
<7> im not saying its better .. relax the **** up
<7> i was just trying to get a rise out of you guys
<6> itrebal: yes... but as it is "THE Zend Framework" ... it will be more stable and more globaly used
<3> PHP is a language, rails is a framework.. you cant compare the two.
<1> "(03/13/2006 12:03:08 AM) elux: which is far more powerful .. just curious" i consider that saying its better
<11> elux and you are, so why complain?
<7> right, im comparing ruby/rails and php .. the language being ruby
<12> chris: it would be best if the output buffering is called as soon as possible
<10> deadroot: i have called it before the include()
<10> but it still doesnt catch it
<10> :S
<3> StR: what makes you think commercial frameworks will take over the FOSS world?



<1> StR: who knows, companies sure can turn out a pile of ****
<13> chris: which ob_* functions?
<10> deltab: ob_start() before the include() and ob_get_contents() to try to save and ob_end_clean() to clear the buffer afterwards
<10> in that order
<6> myconid: it is not a commercial framework
<6> itrebal: i don't understand you..
<12> chris: that should have done the trick. have you tried testing it separately?
<1> StR: what do you mean?
<10> deadroot: yeah
<10> its not working
<10> can i pm you?
<6> myconid: ZF is only version 0.1.2 but in the mailing list you can see that they are open for comments and new ideas...
<12> kay
<1> StR: i'll clear up anything that wasnt so, if you ask...
<6> ok...... i was just looking for someone using the ZF, ....
<14> Two quick questions... 1) Are there any security considerations when using magic_quotes_runtime, and 2) why does it break phpmyadmin (at least version 2.7x)
<1> mad_phoenix: it adds quotes... thats bad, you should only be getting quotes when you expect them (add them yourself)
<15> why the hell would I get array to string conversion errors when I do: $foo->bar = array(); then $foo->bar = "baz"; ?
<1> it often creates bad coding habits when programming, but it itsself (AFAIK) is not bad
<2> im back i ran into a problem there are 2 <title> tags i need the one thats inside of <item> but its not right after <item> its just inside it
<15> erm, weird
<1> Davey: does $foo->bar expect an array?
<12> mad_phoenix: magic_quotes_runtime can introduce uncertainties. because you don't know what was quoted and what wasn't
<2> <item><rand1><title></title></rand1></item
<15> When doing this: $authors = implode(", ", $result->Author);
<15> - I get this: Notice: Array to string conversio
<14> itrebal: what about strings that contain single-quotes...i guess it may be lazy, but i'd rather turn on magic_quotes_runtime than addslashes() to everything
<5> Davey: Call var_dump($result->Author) before that line and see what it says.
<1> mad_phoenix: first you need to know what you really need slashes on
<13> Davey: is $result->Author an array of strings?
<15> deltab: well, yeah...
<15> hrm, wait
<1> or is it an array of arrays of strings?
<1> or is it just a string :)
<14> itrebal: to be more descriptive, i run into trouble when i create a dynamic sql query based on a string that (may or may not) have a single quote (or an apostrophe) in it
<14> the sql query fails, because the apostrophe or single quote escapes the value im trying to insert into the database
<1> mad_phoenix: take note that addslashes isnt the right tool for escaping SQL queries, what RDBMS are you using?
<14> mysql
<13> mad_phoenix: use your database libraries functions that deal with that
<2> i ran into a problem there are 2 <title> tags i need the one thats inside of <item> but its not right after <item> its just inside it
<1> then you should use mysql_real_escape_string isntead of addslashes
<14> thanks a lot, i'll have to look up the prototype on that one
<1> yup
<2> anybody
<2> have the regular expression to fix my problem?
<16> i am currently using php-4.3 version, where i can find the list of function it support for DOM(XML), while the book i am using to learn DOM is using php-4.1, if i want to install previous version of PHP i.e. php-4.1. what will be the method?
<14> itrebal: not sure if this makes sense, but is there a PEAR equivalent to mysql_real_escape_string?
<5> koncept: Is this XML or HTML you're dealing with?
<13> koncept: you shouldn't be using regexes on xml
<2> XML
<2> its my last choice
<14> the function prototype on php.net talks about using mysql_connect(), whereas the app im developing uses PEAR db
<5> koncept: http://www.hansanderson.com/php/xml/xmlize.inc.txt
<14> but im not sure that it makes a difference
<5> koncept: Use that.
<13> mad_phoenix: it'll provide something
<12> nayyares: www.php.net/dom
<1> mad_phoenix: there is, i htink... i dont user PEAR::DB (if thats what your referring to)
<13> mad_phoenix: this? http://pear.php.net/package/DB
<12> nayyares: oops. i gave you the one for php5. php4's http://my2.php.net/domxml
<14> deltab: yes
<12> www.php.net/domxml
<1> nayyares: no, the php5 one is simpleXML
<1> nayyares: err... nevermind
<17> hello
<1> heh
<18> shmelly itrebal
<14> deltab: a quick peak at the PEAR::db docs makes me think that the function is quoteSmart (as in $db->quoteSmart($var))
<12> SandSlinger PMed me something...
<2> i wish i had SimpleXML right now
<1> deadroot: did a channel wide getrank i think
<1> koncept: simpleXML is 'mazing


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#web
what's the difference between debootstrap and cdebootstrap
#fedora
#fedora
API mismatch: the client has the version 1.0-7174, but
URL rewriting in php
#debian
i686 etch
#suse
servermgr_dns: Bad zone file for zone



Home  |  disclaimer  |  contact  |  submit quotes