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



Comments:

<0> also stuff like array_rand() instead of a key etc. is a bit smarter
<0> and please, stop doing <?php ?> all the time
<1> TheDeathArt: Thanks, I'll look into it.
<0> eventually use sprintf some more
<2> hello all
<3> hello
<4> hi
<2> guys, some sites use query string parameters splitted by slash /, instead of ? &
<5> AymanNJ: mod_rewrite apache module :)
<5> AymanNJ: For added security, catchability and elegant looking URIs :)
<2> aha thanks
<6> anyone know where i must enter to obtain a bnc?
<7> which one better: Smarty or Savant? or do you have other recommendation, please don't say you use your own template and that's the best :(
<0> XSLT
<0> php.net/XSL
<0> template language created by w3c



<7> TheDeathArt is that for me?
<7> oh
<0> yes, thats for you
<0> its very nice , you can write a template engine on 10 lines with it and the php functions
<0> smarty is btw. crap, since you can't use it under 5.1.x E_STRICT
<7> have you compare them? i mean have experience use them and you think XSLT is the best?
<0> 1. XSLT is more advanced, have better template features, and is 2. faster (special in theroy where you don't convert to xhtml via. php)
<7> i would like compare, because i don't want learn twice... waste time :)
<0> and 3. much lesser php code
<7> thanks... :)
<7> i would ask other channel opinion :) thank you so much for valuable information
<0> (and its not protected by GPL and other shiat, + easy to implement in a MVC framework)
<8> i'm running php5 .. and having a bit of a problem with double quotes(") not getting escaped with addslashes() for an INSERT(MySQL) .. has neyone had such a problem?
<0> [11:49] <0> !php echo addslashes('"');
<0> [11:49] <cT-PHP> TheDeathArt: \"
<0> quite test in php5 , no problems here
<0> perhaps your magic_quotes_gpc is on ?
<9> zoyd: maybe you adding slashes somewhere then php is adding them again with magic quotes
<9> check your raw input
<8> checking
<10> i have a line in code, <input type="button" name="continue" value="Continue" onclick="this.disabled=true;validatefrm();"> i want to remove validatefrm complete from onclick, what all i have to remove?
<0> #javascript ?
<10> yeah
<9> satsonic: wrong channel but onclick="this.disabled=true;"> will remove the validatefrm
<10> Elliot_, ok thanks, actually its a php code i am talking about only thing is here there is no php code to talk about
<6> anyone knows how can i obtain a bnc?
<0> stiil, its teh evil javascript (eveil because of it giving me headice)
<7> dude... http://id2.php.net/XSL or http://id2.php.net/XSLT ?
<0> php5 or php4 ?
<7> 5
<0> first one
<7> oh... that's the difference.. thanks
<7> looks like it's very hard to understand ;)
<0> nah, its just some new syntax
<0> its very more powerfull than any other language
<0> + a very strict syntax
<7> hehe.. is there any better documentation than that?
<0> w3.org/TR/XSL
<0> w3schools.com have tutorials
<1> Is there a way to resize images *in* PHP and have the thumbnails generated from that output onto a given site?
<1> So image1.jpg being 800x600 becomes thumbnail_image1.jpg at 40x30
<1> With no actual files being saved.
<1> Er.. like image1.jpg is on the site, but thumbnail_image1.jpg is just served up.
<0> nitishp php.net/gd RTFM =)
<1> Sure thing :)
<11> hi guys. would you use array() to "unset" or reinitialize an array with values in it ?
<11> i tested this, it works... but is it ok ?
<5> I have no idea if it's good practice, but I've been doing it.
<11> that's what i mean : good practice or not
<11> i could do array_pop() but... :/
<5> vinadelmar: Well, are you making a script which is runned on-the-fly, or a daemon?
<11> on-the-fly
<11> like many php scripts i would say
<5> reset -- Set the internal pointer of an array to its first element
<5> Description
<5> mixed reset ( array &array )
<12> pnk: that doesn't change the values in the array at all
<5> GarethAdams: ok



<12> array() is an empty array, so $var = array() does just set $var to an empty array
<12> simple as that
<13> if its on the fly, just do the array(); method that you're doing now.. its not gonna kill you
<12> I don't see why it being 'on the fly' makes any difference
<5> GarethAdams: Memoryleaks
<13> there's memory issues regarding daemons
<5> GarethAdams: The OS will fix it after it's done.
<5> GarethAdams: But if you have a running process... like a daemon it'll memleka..
<5> memleak*
<13> the array(); method is a bad idea on php deamons.... i always unset() first otherwise memory use will grow fast
<11> Vylen, what about unset() on object attribute ?
<11> would it "destroy" my attribute or just leave it empty/null ?
<13> it should destroy it
<11> testing... will send report in a few minutes
<13> its beyond me why you would destory and object though.... well, ive never needed to heh
<13> *an
<14> hi
<14> what editor should I use for php ??
<15> hmm keylogger?
<15> Interesting.
<15> Ok I'll bite
<15> What exactly is that saying?
<11> Vylen, i dont want to destroy the attribute, i just want to reset it
<7> i-e textpad is enough
<7> but some people use Zend as php editor
<14> but is there sth that could check the project
<14> but zend isn't freeware
<7> i-e use from zend
<7> i-e find free text editor and browser ;) just need to ALT + TAB in windows
<11> Vylen, here are the results if you are interested http://pastebin.com/570051
<14> ok thx
<11> unset an attribute destroys it... (expected behaviour tough), reset an array to void could be done by array() simple as
<11> my conclusion
<1> TheDeathArt: Hey man, thanks a lot for the array_rand pointer :)
<16> hi, one quick question - how can i write into an xml file, usign some xml functions, what are they?
<16> also, is there any way to actually read xml without having the scripit to take up a lot of memory?
<0> php.net/DOM RTFM
<17> hi
<17> <? include("header.php?reduced=yes");
<17> I know this is wrong, but how do I do this?
<17> IE include a file but p*** it $_GET[] stuff as well
<11> just read the manual dude...
<18> laurens_, lol
<19> hi
<19> looking for a env variable that display me the current url with ?var=...
<17> I realize that include usually simply pastes the file
<20> Why strip_tags() doesn't work?
<17> hence: 12:47 < laurens_> I know this is wrong, but how do I do this?
<17> you could have just told me to use a variable
<21> Hmm, im wondering. Does php4 not support " cl*** cart extends sale { ". Im getting an error 'Call to undefined function: countcartitems()' but this function is in the cl*** sale...
<22> UltimateB|kloppe: PHP4 supports inheritance, yes.
<22> You'll have to give us more info than just that.
<21> Hmm, then i've made a problem somewhere else.
<21> Just being sure, im sure i can find the fault myself
<21> just makeing sure*
<21> making*
<23> Hello
<21> olleH
<24> UltimateB|kloppe, how are you calling the countcartitems method?
<23> The php.net search is broken, it seems to not p*** the correct url to google
<21> syf: tried $this and $_SESSION['cart']
<23> So can anyone here tell me what is the arguments to format_date()?
<24> UltimateB|kloppe, try sale::countcartitems()
<21> sredna: http://nl2.php.net/datetime
<21> probably to be found there
<21> syf: will do
<23> No
<21> syf: that reads: use funtion of parent cl***->countcartItems()?
<23> I could manage to find my way there all on my own, but no luck
<23> Broken POS
<24> UltimateB|kloppe, yeah
<21> syf: Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM ? :X Never used the "::" thingie before.
<23> The last argument is the time zone, but what is the format?
<23> Is it a string? A number? A what?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

phpnuke FATAL ERROR: register_globals is disabled in php.ini, please enable it!
#bash
ed2k ubuntu dapper 6.06 link
Intel 80801BA router page
guestos=openbsd
which version of debian do I have?
#qemu
#gentoo
#javascript
Server replied: 111 Can't open SMTP stream + qmail



Home  |  disclaimer  |  contact  |  submit quotes