@# 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 30 31 32 33



Comments:

<kuja> The users of your app will stab you for storing binary data in an RDBMS :)
<jaeek> surely... there must be a DB optimized for storing binary data
<kuja> Your filesystem.
<CryWolf> jaeek: once the initial directory is created, permissions aren't an issue. if it is an issue, there's something seriously wrong with the install.
<jaeek> but the installer needs to create a directory outside of the webroot... and set read/write permission for the webserver on it
<Artnez> kuja: do you smoke in your room?
<jaeek> major inconvinence for some users
<kuja> jaeek: If this sort of setup is required, then it is almost garaunteed the user will have root access.
<kuja> Artnez: Yes
<jaeek> Artnez, only the good stuff ;)
<Artnez> kuja: i used to, it really ****ed me up though :(
<kuja> Artnez: I don't plan on living long, not at the rate ##php is going.
<Artnez> kuja: now i go out -- my room smells like roses :D :D
<CryWolf> jaeek: planning for the lowest common demoninator is not ideal
<kuja> jaeek: Then stop using directories outside the webroot.
<kuja> Artnez: Febreeze here and there clean it up good.
<jaeek> kuja, and how do you set permissions so nobody has direct access to the files besides the webserver?
<Artnez> ha. didnt know they had febreeze in korea -_-
<kuja> jaeek: By using .htaccess
<jaeek> mmm.... i guess that could work... just place a .htacceess file in the data directory
<kuja> jaeek: Right.
<jaeek> and pray to god the server allows them
<kuja> jaeek: Most will, but if it doesn't, then your user deserves to die anyways.
<kuja> jaeek: Or, distribute 2 versions.
<jaeek> hmm...
<kuja> jaeek: One that will utilize the database to store binary data, other for root/htaccess-supported setups.
<_56k> wow, there is a php 6 in dev already? ooooooOooo. Anyway, question: I'd like to receive rss feeds from other web sites, to be put onto my site. Is there any well developed PHP project for this?
<jaeek> i want to do the least amount of work and support the most amount of users
<CryWolf> jaeek: put a lower cutoff...it'll save you a lot of time
<Kaitlyn> okay trying to accept only letters/numnbers.. is this the standard way to do it..? or could it be made better? (I know, its simple, but im new to regex!) preg_match("/^[0-9A-z]+$/i", $username)
<CryWolf> Kaitlyn: ctype_alnum will work too
<CryWolf> otherwise, using regex, you'd want "/[^0-9a-zA-Z]/" to tell you if there are illegal characters in there.
<Artnez> _56k: google for "PHP RSS aggregator"
<Kaitlyn> wow never heard of that function
<elsyf> _56k, the pear rss library
<_56k> ooOOo
<Artnez> mysql5 is the shiznit
<dfdfdf> whats wrong with this echo "<p>This is date(\"g:ia\", 39600): [[" . date("g:ia",39600) . "]]</p>";
<weasel00> i just want php to work the friggin db
<dfdfdf> and this echo "<p>The current time: " . date("g:i:sa") . "</p>";
<dfdfdf> The time goes back 2 hours if i refresh the browser
<_56k> wowsa, the pear rss library looks nice!
<dfdfdf> any help?
<CryWolf> dfdfdf: every time you refresh, it becomes two hours earlier?
<dfdfdf> CryWolf: after about 10 or 20 rfrsh
<elsyf> dfdfdf, i'm late for work please refresh
<dfdfdf> elsyf: hehe
<dfdfdf> is there anything wrong with the code
<dfdfdf> ?
<CryWolf> dfdfdf: the code would not cause a time change.
<CryWolf> dfdfdf: is this on your own server?
<dfdfdf> CryWolf: yeah
<CryWolf> dfdfdf: single server? load balancing?
<dfdfdf> CryWolf: what does it have to do with this
<dfdfdf> single?
<dfdfdf> yeah single
<CryWolf> dfdfdf: then something is screwy with the time.
<dfdfdf> CryWolf: so the code is correct?
<dfdfdf> CryWolf: server time is set to EST
<dfdfdf> CryWolf: Its not showing any problems
<CryWolf> dfdfdf: there's nothing that can be wrong with that code. date() is date()
<dfdfdf> CryWolf: I know but it acts a bit strange
<[aJ]> is there a make uninstall?
<dfdfdf> CryWolf: any idea
<arpegius> whats the strip html tags function? damn its getting late...
<CryWolf> dfdfdf: no, just that php isn't at fault
<arpegius> d'oh... strip_html
<dfdfdf> CryWolf: Thanks
<Daskies> strip_html isn't a function, though strip_tags is
<Daskies> http://us2.php.net/manual/en/function.strip-tags.php
<arpegius> Daskies thats what i meant. i'm staring at it on php.net now... like i said, it's getting late...
<Axsuul> box
<callipygous> how is a good way to keep content and markup separate without using a bunch of generated content and print statements
<callipygous> or using a lot of includes
<chicken-dance> a cl*** :D
<callipygous> a cl*** hey?
<Artnez> callipygous: use a template engine
<Artnez> callipygous: i dont have a single piece of HTML anywhere my code, albeit my errorhandler -- but that's a special case
<callipygous> why not?
<callipygous> and how?
<freeone3000> PHP can write html.
<freeone3000> echo()
<Artnez> woah watch out, it's captain obvious .. duck!
<Artnez> callipygous: for instance, have a template folder called "templates" .. there can have files like "header.tpl" and "footer.tpl", etc
<Artnez> callipygous: use file_get_contents() to load the template file and create a simple parser that will set/replace values
<Artnez> callipygous: OOP works great here, because you can easily extend it and reuse it
<Artnez> callipygous: go here to see how something like this is done: http://smarty.php.net/
<MapLappy> smarty code for the great loss
<Artnez> MapLappy: I never have, or will, use smarty
<Artnez> in my opinion, it's bloated code
<Xareon> anybody here ever use fck editor?
<remowylliams> I have
<MapLappy> bloated code? well if you want to be nice...
<remowylliams> Xareon: what's up
<Artnez> MapLappy: Although, it's good for beginners, it's good to understand "how" that kind of stuff works before they write their own
<freeone3000> Okay, I have a problem I could have avoided if I had actually done it right the first time.
<MapLappy> hardly
<MapLappy> its just confusing crap
<Xareon> does it give a good explination for adding a button that would do something such as insert a string at the cursor?
<MapLappy> = does not mean =
<freeone3000> I have dreamweaver template files that I need to somehow make avalible as a template thingy.
<MapLappy> i mean cmon
<freeone3000> So =!==?
<callipygous> Artnez, thanks, i'll take a look. Ive never done oop tho
<freeone3000> Xareon: That would be javascript...
<Artnez> MapLappy: I wrote cl*** that does pretty much everything that Smarty does, more efficient and less code. It's a single cl*** file that's under 300 lines (with comments)
<remowylliams> Xareon: I would think you'd want to visit fckeditor and ask it's javascript
<MapLappy> i really need to start getting into oop
<Artnez> MapLappy: Though the concept is a great one. It rapidly speeds up development and makes things far easier for a designer to understand. If you've ever looked at the code for PhpMyAdmin, you will agree.
<freeone3000> What do they call non-OOP P?
<AzMoo> Does anybody know how to use XPath with RDF files? I can't seem to get it to find any elements
<Zyclops> freeone3000: procedural, functional
<Xareon> ok
<freeone3000> Zyclops: ...'functional' as in 'using functions', right? :P
<Artnez> freeone3000: Whoever conceptualized dreamweaver templates should commit suicide :P
<remowylliams> Xareon: Sorry can't help you more
<freeone3000> Artnez: Probably, yes. But I kinda... okay, not really. I did almost no work on these. But still, would be nice if I could use them somehow.
<Zyclops> freeone3000: there are about 30 different programming paradigms and functional and procedural are both different
<remowylliams> can someone explain to me how php qualifies a time out? I'm going to be using php in commandline for emailing schtuff.
<freeone3000> I'll just stick with Ruby, C++, Java, and PHP...
<kuja> freeone3000++
<kuja> Ruby, yummy
<elsyf> freeone3000, as opposed to dreamweaver templates?
<Artnez> kuja: bah
<freeone3000> elsyf: Ehm, yeah.
<kuja> Ruby follows the OO paradigm. Mostly derived from Smalltalk-80.
<kuja> Includes high support for metaprogramming.
<Artnez> i was kidding, dreamweaver templates are totally 1337
<jager> some are pretty
<freeone3000> I don't particularly care for them...
<freeone3000> I mean, they're nice, but kinda **** without dreamweaver.
<Zyclops> how do you unset a value in an array if you don't have it's key
<Zyclops> do you have to search for it then do unset($array[searchresult])
<Artnez> Zyclops: do you have the value?
<Zyclops> yeah
<Artnez> Zyclops: array_search() i believe
<remowylliams> Zyclops: who do you determine the key you would want?
<kuja> Zyclops: if ($key = array_search($array, $value)) unset($array[$key]);
<kuja> Something like that, I might have mixed up the args for array_search()
<Zyclops> yeah they do seam to swap around on some functions
<Artnez> particularly the string functions :D
<freeone3000> Does PHP have something where you can set a variable to a method and then call the method later? (think it's a function pointer?)
<AzMoo> Dammit, is it even possible to use XPath with RDF?
<raar> if you have a switch, and you put in a function as its argument (eg. switch (stuff()) { .. }), what would be the identifier of the returned value, if any?
<AzMoo> freeone3000, $funcName = 'doStuff'; $funcName();
<***yKen> How do you populate an array within a while statement?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#python
driver dc1096b
pygtk installed but not visible from python
#web
#gentoo
livinded
xine equalizer
#php
jingle bells reversed.swf
nsplugin64 -index



Home  |  disclaimer  |  contact  |  submit quotes