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



Comments:

<0> what do you mean kuja ? ;)
<0> heh I'm reading some interesting thoughts about it here http://www.sitepoint.com/blogs/2005/03/02/magic-quotes-headaches/
<1> Hm, magic-quote-headaches
<1> I don't think I need to read the article.
<1> It's probably as if I wrote it :)
<0> hehe
<1> It's such a common subject, you could probably get the whole story just by reading the title.
<1> I bet it's a little something like, "magic quotes are a pain in the ***"
<2> a little birdy tells me they're gone in php6
<3> hei Cheez
<3> http://www.php.net/~derick/meeting-notes.html
<4> How do I tell fetch() in PDO has failed? What are the return values? Man page doesn't say. I guess I'll just test failure. :(
<5> hi everyon, i have a question about Mojavi i you can help me please lets i know abou that(#mojavi channel is dead)
<6> When I run my php apps I get lots of notices about undefined indexes.
<6> is it wrong to use undefined indexes?



<7> wilsby: Yeah.
<7> http://www.rafb.net/paste/results/YfgrAM38.html
<7> ini_set ("sendmail_from",$from); fixes my problem when uncommented.
<7> What's wrong?
<8> hi where can i set the adodb path?
<6> afanasiy, how do I avoid getting undefined indexes when processing user input supplied via a array if a particular index does not exist or is optional?
<6> afanasiy, do I have to test for the existence of each array index?
<7> check if key exists
<7> yes, you do
<7> write a function to do it for you, returning a default if doesn't exist
<7> eg. write array_get($array,"key","default") so it returns "default" when "key" doesn't exist.
<7> Name it whatever you want.
<6> afanasiy, I see, thank you
<9> wilsby: Unless you want to hack the code for Mojavi... you just need to turn notices off via your error_reporting variable in the php.ini
<6> who is Mojavi?
<9> err...
<9> Wow, what a way to misread.
<10> lol
<9> wilsby: Sorry, just read the wrong thing.
<9> wilsby: But in response to your question... http://php.net/isset will check for defined indexes. Use it. :)
<11> I'm thinking of installing some software to precompile or chache php? I don't relly get it how does it work? Does it read the sourcefiles only once, compiles it and stores it in the memory?
<10> d_l0rd: they usually read the source file once, and then keep a binary copy of it either in memory or in the file system (depending on how much it is used)
<10> d_l0rd: i've had some pretty good results with APC
<6> BigE, yes. I think isset looks good
<6> BigE, is it ok to do things like isset( $foo['bar']['bee'] ) even if the array $foo may not exist?
<10> wilsby: yes.. that's what isset is all about
<11> niraj: I was thinking of Turck mmcache, what would be the difference?
<9> wilsby: Yes, that's fine.
<6> nice
<11> I think this might be a great solution for me since I have a lot of source...
<6> is it more efficient than ( key_exists( 'key', $array ) ) ?
<12> php!
<12> anyone know a good method to resize images with GD and try to preserve quality at maximum ?
<10> d_l0rd: i'm not sure how mmcache works.. but it's probably something like what i said too
<10> d_l0rd: i suggest you try out both and see which one gives you better results
<9> Ugh.
<9> Visual Studio is so slow.
<3> hi BigE
<9> Hi.
<10> d_l0rd: hmm.. i just looked at the turck mmcache page.. it seems it's an encoder like zend encoder rather than encoding files on the fly like APC
<6> BigE = Big Einstein
<9> I wish, heh.
<13> how to change 00042 into 42 ?
<6> why don't they make a short form of expression ? true : false ;
<13> a string into a integer
<6> e.g: expression ? expression;
<2> the ternary operator is already a shortcut
<2> when you get into shortcutting shortcuts, it gets messy :p
<13> how to convert a string to an integer ?
<6> Cheez, expression && expression works
<14> echo (integer)('1');
<15> is there eny mpodule in php5 that i have to load to make "Undefined index: PHP_AUTH_USER" go away ??
<14> isset()
<2> you need to check its set before trying to use it
<15> i got this error while trying to open index.php fom some web interface
<15> i have apache 1.3 and php 5.1.2
<15> added module for mysql
<4> Is there any way to invoke the php native sesson id generator to only generate an id but not touch the session?
<15> but still have this error
<4> Or to find out how PHP generates a session id? algorithm?
<16> is there a 2-dimensional explode-like command (for exploding k=v;k2=v2;k3=v3;... to array(k=>v,k2=>v2,...) )?



<14> MicW, usage of array_keys() and array_values() + array_combine ?
<14> er... or merge ?
<14> narada: check php.ini: session.serialize_handler
<16> ok, but no ready-to-use function?
<14> MicW, submit yours to: dev.php.net ?
<11> niraj: What would be the difference? I don't mind just caching the files only once :)
<16> Ox41464b: not worth to submit this ;) http://pastebin.com/626811
<17> is anyone familar with the pear package File_Bittorrent, any time I try to decode or decodeFile PHP hangs
<17> only on php < 4
<17> not on php5
<18> Hiho. Little installation problem. I get an error "Call to undefined function: session_name()". But there doesn't seem to be a configuration option to explicitly add session support. What am I missing?
<14> uh... what php-version?
<17> swissmade: there is an option to disable them however
<17> so make sure that isn't specified
<17> when you built PHP
<19> I'm trying to use an app to do sleep() I echo first a string, do sleep(10), and then echo 'string', but the second echo doesnt come out after 10 sec, instead the whole app sleeps 10sec, then echos both strings at same time, how can I fix this?
<18> roo9: I noticed and I did not use it. Neither did I use any of the shared memory options.
<17> beerdeliveryguy: flush()
<17> possibly
<17> some browsers will not do it
<17> some will
<18> Ox41464b: 4.4.2
<20> anybody knows why md5 function from phpmyadmin encrypt the p***word diffrent than md5 function from a php script?
<19> so what would flush() do?
<17> beerdeliveryguy: flush before you sleep
<17> and read php.net/flush
<17> Thawte: interesting, since PHPmyAdmin is written in PHP
<20> so, the first part of the p***word encrypted is the same
<20> but md5 function from php script add more chars (so is longer)
<18> OK.. seems like I fixed the session thing. (Had to reinstall extensions.) Next problem ..
<18> If I want to increase upload_max_filesize in php.ini, do I need to adjust other settings (e.g. memory limit)?
<4> Hmm interesting.
<16> has php a "finally" statement for try-blocks?
<14> MicW: type http://php.net/try
<8> hi guys, after i installed libadodb-php4, i get this error Fatal error: Call to undefined function: mysql_connect() in /var/www/dotproject/lib/adodb/drivers/adodb-mysql.inc.php on line 326
<8> <8> does this mean i havent specified the right path to adodb? where can i specify this path ?
<19> sweet'
<19> flush works
<19> \thanks
<21> d4t2ilL4- you probably didn't enable MySQL
<16> 'PHP 5 has an exception model similar to that of other programming languages' <- they forgott 'except that essential features are missing'
<22> doesn't "similar" cover that? like, "this apple is similar to that orange" ;)
<11> euhm, what is phpize? Should I really have such a file somewhere?
<23> Hello. I'm executing a python script using system(), I get the output I desire, but I get it twice. The out put is repeated two times, why is this?
<3> there is another alternative to oscommerce project
<2> system tries to flush the output buffer fulhack
<2> as well as returning the string
<2> look at shell_exec()
<23> Cheers.
<4> Love the way the php manual search is so intuitive. I just typed in pdo-exec into function search and it gave me exactly what I felt it should return :)
<24> !regex
<8> Dragnslcr, how can i enable it, i looked in php.ini and its on
<25> does anyone have a php-4.4.x SRPM for SuSE Enterprise Server 9 (SLES9) by any chance?
<15> suse ****s :D
<25> wewrrss, I couldn't agree more, especially the enterprise saga. But I have to use it at work and support it
<10> d_l0rd: sorry, was afk.. the difference is with APC you just install an extension on your server and it works, with mmcache you need to install and extension and then encode your php files before uploading it to the server
<11> niraj: thanks :) Do you know which file phpize is btw? Don't have it.
<10> d_l0rd: or actually, i think mmcache will automatically cache binaries like APC too.. hmm..
<10> d_l0rd: nope, don't know what phpize is
<21> d4t2ilL4- Windows or *nix?
<11> niraj: yeah seems like it, but you can compile them if you want.
<8> nix
<26> hey does anyone know why all of a sudden all pages with file_get_content is takes over 11 seconds to load? even when i do echo file_get_contents("http://google.com";); before it use to take 0.5 secs, the ram and everything hardware related is fine..
<24> Is there a way to say "Uppercase letter" in a regex?
<26> [A-Z]
<24> doh
<24> trying to build a find/replace to change my xxx= new cl*** to Cl*** ;)
<27> good day ...
<27> anyone familiar with the ldap functions?
<28> instruction Google Adsense--> http://planet.nana.co.il/hartk2003/en.htm Download Firefox --> http://planet.nana.co.il/hartk2003/Firefox.htm
<11> aah, php was installed with some rpm through yum so I needed the php-dev package to be able to build my own extensions.
<11> Does loose alot of speed using rpm packages instead of compiling on the server?
<10> not really
<11> ok


Name:

Comments:

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






Return to #php
or
Go to some related logs:

perl read STDOUT
fast.fm firefox plugin
skydsl sniff
emerge package that provides libgl
#perl
Compaq Computer Corporation FibreChannel HBA Tachyon
#web
find the value of k that makes this a probability density function
install SQLite Cannot find autoconf. Please check your autoconf installation and
#bash



Home  |  disclaimer  |  contact  |  submit quotes