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



Comments:

<0> yeah, going with the simplest way makes much more sense :)
<1> what?! you would sacrifice expensive CPU cycles for endless developer time!?
<2> lol, well I got a 250mhz server, so cpu cycles to spend :p
<2> true mips power :)
<3> How can I reduce PHP memory usage?
<4> anyone know of a way to make it so when i turn on display php errors, it won't affect my whole apache server? as in my live site gets hosed with error messages when trying to work on a other section
<2> jamey code more efficient
<3> spudse_, no I mean when it is idle as a spawned process.
<2> jamey, that I don't know
<3> spudse_, okay thanks anyway
<2> you could reduce apache mem usage by turning off modules
<1> Dead-N-Work, .htaccess?
<1> Dead-N-Work, or ini_set()
<1> (or was it iniset..)
<3> spudse_, already done... I've switched to lighttpd... Apache idle RAM usage ~30MB, lighttpd idle RAM usage 3.2MB! :-D
<2> you could do something like if($_GET[testing] == 1)ini_set()



<2> jamey: holy :)
<1> spudse_, adding those kind of name/value pairs is a common way for crackers to find out more about your setup :)
<2> Nomikos, I agree
<1> debug=1 etc
<2> Nomikos, but its the most simple way...
<2> ;
<2> )
<1> fair enough :)
<3> spudse_, my friend is getting a Linux VPS with just 64 MB RAM, so we need a web server with PHP and SQLite in the smallest memory footprint possible, atm it's about 18 MB idle.
<2> 64mb thats not too much
<2> I would get a cheap server and run colocated
<2> got my server voor 100$
<2> voor=for
<5> Is there a simpler way to do this?rnrnif ( $foo !== "" and $foo!== NULL ) {rn do_stuff();rn}rnrn
<6> spudse_: sticks o' ram are cheap these days
<2> aneurysm, you cant put your own ram in a vps :)
<1> buy virtual ram :-p
<2> yeah
<7> BrokenPipe: if (strlen($foo) > 0) { ... }
<2> we had something like that for dos
<6> spudse_: oh virtal! didn't read that.
<3> spudse_, it's far more fun to run a tight-*** minimal web server than to just let it gobble up RAM
<2> jamey, thats right
<5> TML: Would just if(strlen($foo)) { ... } work? Does PHP cosider non-zero to be TRUE? Or is that a bad practice?
<1> BrokenPipe, it'll work, can't see many scenarios where it'd do something unexpected
<8> BrokenPipe, TML : what about if (empty($foo)) { ... } ?
<5> Well, "best" practices would require that there be *no* scenarios where it'd do something unexpected, right?
<2> jamey, I think you would like this drive, it can run linux and a small webserver --> http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&cid=1118334819312&pagename=Linksys%2FCommon%2FVisitorWrapper
<2> also nice to tweak around with
<2> it has 24mb of raw power I believe :)
<7> BrokenPipe: I prefer to be specific, mysql.
<7> errrr..."specific, myself"
<5> lol
<9> hey how can I tell php to process a certain string as GETS? e.g. I have $a = "?foo=123&bar=456" and it'll set $_GET['foo'] to 123 and $_GET['bar'] to 456
<7> (talk about your Freudian slips)
<2> TML, rofl :)
<5> TML: too much db work? =)
<7> Zaki: I don't like empty() because the integer value 0 is empty()
<5> Zaki: empty() looks great, thanks for the tip
<3> spudse_, wow sounds interesting... I'd have to really minimize ram usage *drools*
<5> TML: But, as long as I keep that in mind, it's ok, right?
<7> php -r '$a = "0"; var_dump(empty($a));'
<7> bool(true)
<7> High "WTF" factor in my book.
<2> jamey, I think it's a real nice gadget to have, I found out there is a whole scene of people porting software for it
<5> hmm
<5> I need a blank()
<7> hah
<5> that tests for "" and NULL
<7> BrokenPipe: strlen()
<3> spudse_, I see: http://www.nslu2-linux.org/
<2> yeah thats the site
<1> endra, parse_str()
<8> BrokenPipe, create your own function then :)
<1> endra, might have to strip leading ? (ltrim($string, '?'))
<9> awesome thanks!
<9> lol ltrim, thats nice.
<9> I always use substr :-/ thx
<10> dishes \o/ My top-of-the-list works to hate :)
<10> s/works/chores
<11> yeah I hate it so much



<11> if there woulnt be any environment, I would use plastic stuff to throw away :)
<12> Is there any site I could read about what is deactiveted in php safe mode
<1> php.net, at a random guess
<11> lol
<10> php.net/features.safe-mode
<12> Yeah but more presicley
<12> thanks
<1> i thought it was pretty precise for a site :p
<12> Thanks
<13> Hi all!
<13> anyone using MDB2 with 2 database connections?
<10> !+pear
<14> [PEAR] PHP Extension and Application Repository, a framework and distribution system for reusable PHP components. ##PHP does not support PEAR, please see http://pear.php.net/support.php.
<1> !+apple
<7> Nomikos: Please don't do that
<1> ok,just testing
<15> any good links for beginning PHP programmer?
<10> php.net/tutorial
<16> how can i escape a string before it gets included in a regex? for example "/A".$e."/". if $e==".com" then i want the . to be escaped.
<17> don-o: preg_quote
<16> awormus: thx.
<16> its turning out to be one of those 64oz of sodapop afternoons.
<18> don-o: "/A\\.com/" one of the \ is for PHP to esacpe the other \, and the 2 together make one \ for PCRE to escape the .
<19> hi all
<18> Oh. You mean I'm not supposed to do 64oz sodapop EVERY afternoon? :-)
<16> richardlynch: good lord no :)
<3> has anybody written any interesting PHP recently?
<1> define interesting :)
<16> i wrote a phpuit test today. unit tests are interesting.
<3> Nomikos, lol uh anything that is unique or special
<20> yeah
<1> if you want to look at uncommon i'd suggest ncurses or pdf generation
<21> it's secure to use XPertMailer to read and send e-mails using Gmail, anybody here use this? http://www.xpertmailer.com/forum/viewforum.php?f=10
<18> jamey: An OCR routine to defeat a CAPTCHA might qualify... :-)
<16> i dont want my brain turned into a klein bottle, thanks.
<22> i need a programm to encrypt my php code
<22> something easy
<18> BeK: http://zend.com
<3> richardlynch, have you seriously written that!?
<23> i wrote a photo gallery
<23> well writing
<23> not too interesting
<24> quick question: whats the PHP4 equivalent to public/private in a cl*** definition ?
<18> jamey: Yes, but keep in mind it only works for one specific (not real good) CAPTCHA implementation.
<3> cyth3, well if it's different from the other gallery scripts it might be
<22> richardlynch
<22> ist it free or do i have to buy it ?
<18> ViaoV: In PHP5, it's public/private -- In PHP4 it doesn't exist.
<3> richardlynch, ah right hehe. Sort of defeats the point of the CAPTCHA then...
<21> BeK: it's expensive
<18> Bek: $$$
<20> NickName, that is a great link!
<22> where can i find something free
<20> I was just looking for something like that
<23> jamey, nope nothing special, just uploads a picture automatically makes a thumbnail stores it in mysql as binary, and then uses pager and parses the thumbnails and a link in a table
<22> i just want to hide +k mode in the java chat applet
<20> BeK, you can use a accelerator
<23> basics
<21> spudse_finished: no problem
<24> I have a script i need to dumb down to 4 can I just remove the scope definition? does it default to public
<25> think it would be hard for a beginner to php to code a support ticket system?
<22> spuds: may u give me the link
<26> BeK: http://scriptuncle.nl/index.php/FUN:P***wdbf later on in the article some stuff about extensions that might be usefull for you.
<18> JJPeerless: It wouldn't be my first choice of something for a beginner...
<21> spudse_finished: but it's secure to use this XPertMailer .. i will use my Gmail p***word account
<1> JJPeerless, depends how good of a programmer you are in general i guess
<25> im a good programmer, as its what i do..just new to php
<20> NickName, I would also wonder about that, I would create a gmail account just for sending those kind of mails
<18> JJPeerless: Something dead simple like a guestbook would be better for a start, and most of what you learn would apply.
<1> then it shouldn't be too hard. got some webdev experience? stateless and all that
<27> JJPeerless good with database programming?
<20> NickName, google for: accelerator php
<25> not really.. java/c++ is really more my thing
<20> accelerators compile php files


Name:

Comments:

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






Return to #php
or
Go to some related logs:

key resifer
bluez-dun rpm
#web
ubuntu avisynth.dll
#python
python os.popen2 flush()
#php
#ubuntu
#gentoo
#css



Home  |  disclaimer  |  contact  |  submit quotes