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