@# 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 27 28 29



Comments:

<0> Jymmm: can you make a !~escaping
<0> !+escaping even
<1> kd5uzz, when you're pulling data out of the db, there's nothing like that to worry about.
<0> http://hashphp.org/knowledge_base?kb_id=24
<2> kd5uzz: YOu only need to escape to get stuff IN the db, once it's thre no need after that.
<3> aidan thats what I thought... I think I used to use add_slashes or something... its been quite awhile since I've messed w/ php+mysql thanks
<2> kd5uzz: The escpaing is just in case the stuff your adding might actually be sql commands, like a document on a tutorial
<4> Hey, I'm making an article submission thing for an ezine system I'm working on and one of the requirements is attaching images to the article, how would I go about doing this?
<5> each php variable is a copy unless its &$foo, then its a reference to some other variable. right?
<4> I know the basics of uploading files, blah blah and such.
<0> ppl: no
<4> I want to have the "write an article" box above the "file upload box" similar to what horde has for their IMP compose mail page,.
<3> thanks for the knowledge base aidan
<0> ppl: $foo = 'a' is not a copy of anything
<5> Radar: move_uploaded_file might be a good start
<2> Radar then rip apart horde



<5> aidan: but $bar = $foo; would create a variable bar and initialize it with $foo value, right?
<6> np ppl
<0> ppl: no
<4> ppl: I said I know the basics of it.
<4> Jymmm: fine thanks.
<0> ppl: it would create a reference to the variable, and copy it when $foo is changed, this is called copy-on-write
<0> $foo =& $bar skips the copy-on-write
<2> Radar you have more attitude than gay man at a rainbow rally
<1> Radar, that's more of a business logic issue. most likely the images uploaded would have some sort of relationship with the article. i'm guessing you're using mysql. just think about it.
<4> Thinking hurts :(
<5> aidan: You know a good a tutorial about this?
<7> for you maybe
<0> ppl: php.net there's a topic on references
<5> ok, got it. thanks.
<7> oh captain my captain
<7> :x
<8> any suggestions for a link checking spider type of program?
<9> jiggster: what have you gotten done on your cms?
<10> is there a way to make php display links to all the files in a directory without manually making the link for each and every file?
<2> darkgamer20 just donet have a index.* file
<2> dont
<5> If I have a cl*** with a member var $score; Is it possible to say that $score should always be of type Numeric?
<10> Jymmm: no not like that, have all the links displayed through a file like index.php
<10> Jymmm: you know so it looks better
<5> varaibles are typeless, correct?
<1> darkgamer20, take a look at http://php.net/opendir
<11> Anyone know of a library that can convert PDF to HTML?
<0> pod: no good ones
<0> pdf2html.sf.net
<12> With PEAR DB is there an easy way to update with an array?
<0> myconid: yes, autoprepare
<11> thanks aidan ... Not expecting "magic", just has to be readable. :)
<10> Lucidix: doesn't opendir just open a dir? im new to php excuse me a little if i get something wrong, now are we supposed to use opendir WITH something else?
<12> aidan: thx
<1> ppl, php has weak typing and on-the-fly typecasting, but there are still types. php.net/language.types
<11> Lucidix, ?
<1> darkgamer20, did you check that page? noticed Example 1 ?
<12> php really needs a perl QW like thing
<1> pod, what?
<11> Lucidix, what was that in reference too?
<1> in reference to ppls "variables are typeless" comment
<11> Oh, I wasn't in #.
<10> Lucidix: yea i checked the example tried to use it with a different directory but the result is a blank page in firefox
<13> is there any way to use mysql or any other SQL system with php where i can store the database on a file on the server instead of having a sql service running?
<1> fearmoth sqlite?
<13> thanks i'll check it out
<14> is stormchaser here?
<14> i guess not
<14> well tell me if he is cause im hiding from him
<14> so whats new in PHP?
<11> ezComponents.
<1> hmm, SDO is pretty recent
<11> I wonder if Zend Framework is going to see some light in Q1 this year.
<15> what the hell are you talking about pod
<15> please explain to us noobs what you're on about
<16> arr, why is Zend embedding IE instead of a proper one?
<11> MENTALFIX, you haven't heard of the Zend Framework?
<11> MENTALFIX, it's a framework + cl***es for performing common tasks
<11> MENTALFIX, it is not out yet, but they said they should release some code in Q1 this year.
<1> i hope it'll be as loosely coupled as they say it will be



<11> eZ is showing some promise too, IMHO.
<17> Can i get all headers sent by browser to server?
<1> i like small components better than frameworks. mainly because i already have a framework
<11> Lucidix, I agree. Did you see that webcast on phparch?
<18> how do I find out if something is an even or odd number?
<1> nope. link?
<11> tek, mod by 2?
<1> tek: ($num % 2)
<18> well yeah but
<18> nevermind
<18> I didn't explain the problem enough detail but I think I found a page on it
<19> DUMB*** -----> tek <----- DUMB***
<1> how much detail can there be? it's either odd, or even. no?
<2> !Lucidix++
<11> Lucidix, http://www.phparch.com/webcasts/player/Main_content.php?p=L3RyYWluaW5nL3NsaWRlcy9aRkNBU1QvcmVjb3JkaW5ncy9yZWNvcmQuZmx2
<11> Lucidix, its a hour long, but it sheds some light... Looks fairly promising.
<1> hate to state the obvious, but it's late. we're all a lil slow. maybe its my motrin, too
<15> pod: nah never heard of it
<15> sounds nice
<15> but what good does it do when nobody's even heard of it
<15> and everyone has heard of rubyonrails ;)
<11> MENTALFIX, follow that link I just posted above to learn about the Zend Framework.
<1> hmm, nice. gonna check that out right now. guess i'll have to mute my super cool kick*** '84 steven seagull movie haha
<15> i will
<15> thanks
<11> MENTALFIX, maybe you're not reading the right pages? Where do you get your PHP news?
<11> MENTALFIX, I think this is Zend's solution to bring PHP to the "nterprise."
<11> *enterprise
<11> lol @ Lucidix
<15> lol, only 10% of the people who call themselves designers can truly design. it's a shame ...
<2> *SNIP* IDE connector didn't need that pin anyway!
<20> hiya. While working on some code in Zend studio, it gave me debug notices that ***igning new objects by reference is deprecated in php 5.x -- is this true?
<1> yes
<20> weird. any idea why?
<1> err...no, its lying. these zend guys have no clue. dont listen to them. :)
<21> haha
<11> mrkris, because that isn't default behaviour for normal OOP language.
<20> no no i mean, i understand they know what they are talking about, but i guess i am just trying to figure out WHY
<20> pod: ahh ok
<13> can you dynamically load a module in a php script, such as sqlite?
<1> dl()
<2> fearmoth pear.php.net is the closest for sqlite
<1> fearmoth, if you want sqlite3 (which i'd recommend) you're kinda stuck with PDO. which isn't exactly a bad thing.
<13> what's PDO?
<1> php.net/pdo
<11> Lucidix, sqlite3 much better than sqlite2?
<0> yes
<1> yep
<0> MUCH better
<11> Hmmm ... Speed advantage?
<1> http://sqlite.org/version3.html
<18> http://hashphp.org/pastebin.php?pid=6125
<11> Danke.
<18> can someone tell me why this is going into an infinite loop?
<11> tek, because you call the query outside the loop!!!
<2> it thinks it's Buzz Lightyear?
<11> tek, and loop the results!!!
<18> hmm..
<11> tek, all you're doing here is just recieve the same rows every single time ...
<11> tek, I'll fix the code and paste it new, okay?
<22> tek: Because you're only getting one result from the resultset and then running the query again, and fetching that same first result.
<18> okay but
<18> the manual shows them doing it that way
<13> Lucidix: so when I used dl('sqlite.so') I got the error dl(): Unable to load dynamic library './sqlite.so' so does that mean that sqlite isn't installed on the server?
<22> tek: Which manual are you referring to?
<18> http://us3.php.net/mysql_fetch_***oc
<22> fearmoth: It means, at the least, that it's not in ./
<22> tek: No, it doesn't.
<22> tek: Look again
<11> tek, http://hashphp.org/pastebin.php?pid=6126
<22> tek: while ($row = mysql_fetch_***oc($result)) {
<13> TML can I upload the dll or the .so file and load it from there?
<22> tek: That's not even close to what you're doing


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#web
gentoo altgr not working
#ubuntu
ruby python compare*
apt-get + Ubuntu + glibc-devel
/tmp/mysql.sock onto ubuntu
package cd gentoo i686 2006.1
nf_conntrack_ipv4 nat
how do i ping my router?
no dhcpoffers received -wireless debian



Home  |  disclaimer  |  contact  |  submit quotes