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



Comments:

<0> in general is it bad to use a c module to authenticate users? like PHP_AUTH_USER, works fine, but that would hit the db on every single page viewed i would think
<1> syle: the authentication system should check on every page request
<0> yeah but it could check a session file instead of hitting db
<0> on subsequent hits around a members area
<1> :| it would depend on your security architecture
<2> I'm way confused...Here is the array i'm trying to deal with...http://www.empirefinancialcorp.com/test/rss.php. I just want to output the first title contents...
<3> you have to put rss head in there gimmi a sec
<0> well a cookie stored in their browser , checked against session file, session expires once browser is closed
<3> <? header('Content-type: text/xml'); ?>
<3> and use mod rewrite to make php parse xml
<1> CheeseHead: $object->items[0]['title']
<1> syle: what part does the db play in that?
<2> plugcaster, I already have the rss feed up and running, but now this is the interface for it
<3> deadroot u know how to restrict numbers greater then 1 in url ?plug=1
<3> ahh
<1> plugcaster: more details please :)



<2> echo $rss->$items[0]['title']; gives "Undefined variable: items"
<1> try "$rss->items[0]['title'];"
<3> pm me cause I dont want to give link out to everyone
<4> CheeseHead: drop the second $
<2> deadroot...that damn $ was screwing it up!
<2> thank you
<1> you're welcome
<5> Cool, combination of geeks.
<1> plugcaster: you need to register to pm
<3> where
<1> plugcaster: ask nickserv
<1> /nickserv help register
<3> ok registered i think
<5> Anyone ever wrote a multi-lingual application with PHP?
<6> does anyone have a recommendation for a good templating system for placing tokens in a txt file and parsing to do replacement with variables?
<7> php -r "stream_filter_append(STDOUT, "string.rot13", STREAM_FILTER_WRITE);while(1) fwrite(STDOUT, fread(STDIN, 1024));"
<7> I'm getting an error: Warning: stream_filter_append(): unable to create or locate filter "stringrot13" in Command line code on line 1
<7> any ideas?
<7> Nevermind.
<8> http://rafb.net/paste/results/Odbo4476.html - I don't get any output or anything on this php script :/
<8> it just sits there for a couple seconds and goes "x.x; *browser stops*"
<9> if anyone can help me with a php upload script i will ofer them some free webhosting
<5> Fr0Gs: For life plus domain? :)
<7> Fr0Gs: on what OS?
<9> linux T_V
<9> tempest1
<10> Hi there
<10> my php script generate a folder with many text file, what is the easiest way to make it compress it in a single file, like doing a zip or tgz ?
<11> what are :: used for? I still don't get it. Why can't people use -> ?
<5> loiic: You can use system();
<10> tws: it thought about it, but if php has an inner mechanism to perform that i'd like to avoid.
<10> i have the my php is compiled with zlib support, is there any way i can use that ?
<10> i have seen that my php ... sorry about that
<5> loiic: Never play around with that. Take a peek at http://id2.php.net/zlib
<10> never play around with that?
<10> i am not native english speaker, sometime i dont get the most simple things ...
<5> loiic: With zlib function.
<10> from what i understand you tell me not to use it and you gimme a link that explain how to do it hehe
<5> loiic: No, I was telling you that I never use any function within zlib section. English is not my native language either.
<10> ho ok, you never play around with that, i thought you was ordering my not to use it hehe
<11> wtf is "T_PAAMAYIM_NEKUDOTAYIM" ?:)))))
<5> loiic: No, I'm not.
<10> anyway thanks for the tips
<12> how do you delete an object in php5?
<7> unset
<7> ?
<7> Drakas: :: is T_PAMMAYIM_NEwhatever
<12> on www.php.net/unset it says that doesen't work?
<7> lies
<11> i had found it :]
<11> they haven't changed it yet, so weird ;?
<12> ahh ok.. i read it wrong
<12> apparantly you can't self destuct an object using unset
<10> does system start in the current folder?
<7> Zyclops[STMF]: you can't self destruct an object at all
<7> the object has to do that
<7> thus "self destruct"
<5> loiic: If I remember correctly, yes, where the script is located.
<2> anyone know an open source software I can put on my site to allow live chat with an agent on the site?
<2> hopefully, links webuser to MSN messenger, or AIM, or even skype?
<13> hello is anybody here using Zend Platform?



<14> hi
<14> there's a function that return TRUE if a string contains "zerozone.it" ?
<15> No
<15> You could make on though
<15> *one
<16> Question: How can I translate new lines to <BR>'s... The following method eliminates character 10's but not 13's.. $note = str_replace("\n","<br>",$note);
<5> Solifugus: May be you're looking for nl2br()?
<16> Unix/Linux uses 10's, Macintosh uses 13's, and DOS/Windows uses 10 and 13's combined.
<16> perhaps.. i will try that
<17> 13 and 10.
<16> yes
<17> also, nl2br is only suited for xhtml, not for html
<5> et_: Because it generate <br />?
<17> yep.
<5> et_: That can be easily replaced with str_replace('<br />','<br>',nl2br($string)); :)
<16> The manual at http://us3.php.net/nl2br says that it only inserts the <br/> and does not eliminate the 13's and 10's..
<17> tws: you can also do one preg_replace instead of str_replace and nl2br...
<16> Is there just a way to specify an ascii character code.. like as if ***igning or appending to a string?
<17> chr()
<17> "\x0a"
<18> hi
<18> how can I know if a function exists?
<19> function_exists()
<18> oh ok thx
<20> :D
<19> Is there any way to "undeclare" a cl*** definition? (useful in testcases)
<17> Johannes: pecl.php.net/runkit
<21> i have a programmed php5 script..and i want to make it work on php4
<21> what should i change ?
<21> http://alija.gusinje.net/~gusinje/sah/trychess-0.2/
<21> this is the error I get
<21> Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/home/gusinje/public_html/sah/trychess-0.2/cl***es/cl***.install.php on line 16
<21> is there anyone whos working night shift here ?
<18> Johannes, it doesn't work with me, I'm calling it in a constructor of an object, if (function_exists("test")) test();
<18> well, $this->test();
<18> maybe it is different with cl***es and objects?
<19> mompe: yeah, you have to do array('self','funcname')
<18> oh Johannes what I was looking for is method_exists :)
<19> k, not php4-comp
<19> et_: thanks for the link, but http://us3.php.net/runkit seems to be able to undeclare everything but cl***es
<19> Alija_: cant help you if you dont gimme the source of line 16 (+-1)
<19> and why night shift? its 11am ;)
<22> http://news.php.net/php.notes/108030 <----- useless note of the day
<1> oh ****. i've just found out why the **** my authentication system has been problematic for some people....
<19> ack
<19> @mazzanet
<19> deadroot: and? why?
<1> stupid zerofilled values in a non-zerofilled table field
<1> any users from xx.xxx.xxx.xxx IP would fail the test
<19> pero-filled p***words? ;)
<1> those from xxx.xxx.xxx.xxx will survive
<1> no, IP addressses
<1> goddammit
<1> hmm... it wasn't the database, but in the way i wrote the script. but still the effect of my bug remains the same
<11> lol mazzanet
<11> reject that --> http://news.php.net/php.notes/108033
<11> this is very stupid. the recursive funtion will be going to . , then .. and all tie time :))
<11> 108034 is spam :/
<11> mazzanet: are you the admin?
<11> http://www.php.net/manual/en/function.swfgradient.addentry.php
<22> Drakas: welcome to an hour ago :P
<22> yes
<11> ****ing spammers
<11> nobody wants to know how to play theyr poker etc.
<11> php.net manual is for learning
<22> all those spam notes got deleted a while ago
<22> the mirrors take a bit to catch up
<11> but they're still there :/
<11> ok
<11> i had submitted few benchmarks about in_array functions, don't seem that they have been submitted in two weeks :/
<21> what option in httpd.conf do i need to load automaticly index.htm/php first
<23> DirectoryIndex


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#kde
e devletım
song notifier
#perl
#gentoo
#perl
#lisp
php_engine globals
ubuntu dapper belkin wireless usb
#linux



Home  |  disclaimer  |  contact  |  submit quotes