@# 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> AlexW: what distro?
<1> CentOS
<2> hi
<0> erm that uses rpms right?
<2> how come the php i inserted in this html page dont work ? its ine the <?php ?>
<0> jaggg: is the file saved as a .php file
<2> no.html or else my CSS wont work with it
<2> it will only show my first two divs if its a .ph
<2> php*
<2> http://testathess.freezee.org/hardware.html http://testathess.freezee.org/hardware.php
<3> hey people, how to insert a variability from bash shell into php script ??
<2> th .html is what it should look like, but it dont execute my php
<1> Liquid|Silence: cPanel is building it
<4> Hello All
<2> hi
<3> somebody ?



<4> I am writing a php script which will download some file to user machine
<2> can anyone help me ?
<4> jagg: please ask your question?
<5> As Salaam e laikum (means: peace b upon u) .............. http://www.submission.org/ .......... [112:0] In the name of God, Most Gracious, Most Merciful [112:1] Proclaim, "He is the One and only GOD. [112:2] "The Absolute GOD. [112:3] "Never did He beget. Nor was He begotten. [112:4] "None equals Him."
<6> hmmm this is PHP channel?
<2> garyB i got this .php page that will only show 2 of my CSS divs, but when i rename the page .php i can only se two divs... but the code is executed
<7> im_a_muslim: shalom, is there a reason you feel the need to paste that here?
<2> lmao
<8> im_a_muslim, why should you bring your religion to here ?
<2> yeah, this is a phph chanell...
<7> im_a_muslim: we usually don't bring dogma in here.
<4> im_a_muslim: Sorry, this is technical channel, find a religious one
<9> jaggg: fatal errors stop execution of the page from the time the error occurs... fix the error and things should be fine
<1> imap is installed but
<1> checking whether IMAP works... no
<2> Vylen thank you
<9> AlexW: if it doesnt work, then it doesnt.... have you tried testing if it works through command line?
<4> I need some help for header function
<4> Is it possible to get response for header sent?
<9> garyB: check for any cl***es that may help you at http://pear.php.net/
<4> Vylen: thanks for response, actually i want to check wheather file sent using header function is downloaded or not?
<9> best you can do is a file_exists(); ... theres no way to check if the download succeeded
<9> and when i say succeeded, i mean if the entire file was downloaded and not partially
<0> AlexW: hmmm
<0> is imap install on the box?
<9> he sait it is
<10> hmmm
<10> AlexW: all I can suggest is go look on cpanels forum
<10> if its a legal copy I presume
<11> Hi... I want to parse through a file. The file contains multiple segments. Each one starts with "\n\rFrom <" and goes until the next instance of that. I need to put each of these instances into an array
<10> brb
<12> MattH: explode() might be your friend.
<13> hmm
<14> hi
<14> what is the difference between a function and a cl*** ?
<11> CodeDragon, Can I actually split on "\n\r Blah" ?
<12> MattH: Yep. explode("\n\r From<", $string);
<11> alrighty, honestly wasn't 'sure what that would do.. and had not tried it... will see what I can blow up :)
<12> MattH: If you melt your server, let us know :)
<11> hehe
<11> yeah well let's just say I'm trying to migrate from IMail's aweful mail store to qmail
<11> hehe yeah fun
<15> MattH, I went the postfix/courier route... and vmail fun... which is worst?
<16> ok, I feel like I'm missing the point of interfaces?
<16> why would I use an interface over an abstract cl***?
<12> cjaymes: Because an interface doesn't need to be implemented to be useable.
<15> cjaymes.. did you read the imb article about dyanmic cl***es?
<16> no
<16> am I missing this because I'm a 'single' coder ?
<16> is it more useful for corp devel?
<16> & what's imb? :)
<15> it is useful for all devs: http://www-128.ibm.com/developerworks/opensource/library/os-php-flexobj/
<15> lol @ "what's ibm"
<16> ahhh, the great HAL
<15> lol.. sry.. imb apparently = ibm in my world.. :D
<16> oh my: bendy cl***, heh
<2> hi (again)
<2> whats a subsitute ?
<15> what do you guys use for refactoring cl***es? I hoped the the Zend Editor would... then I hoped that php+eclipse would have.. but I havent found a good way to do it yet...
<16> someone who isn't really a teacher, but tries to act like one for a short period of time?



<2> cjaymes.. lol
<11> smllpx, yeah I dunno... anything is better then imail
<11> sorry late responce
<17> smllpx - never had to 'refactor a cl***' -- i just write clean code and it seems to work .. I'm not following the purpose of it.
<17> its very likely my ignorance.
<16> smllpx, that article doesn't seem to deal with interfaces
<15> well throw yourself into a group of developers and you don't want to rewrite what you have written a year ago... then refactoring becomes really attractive... writing clean code from the get go doesn't get you out of that bind.
<12> smllpx: Think of interfaces as a contract between the system and the object implementing them. Implementing the interface just means that the object will definitaley offer methods X, Y and Z, but the system doesn't care how they're implemented.
<12> cyberix: ^^ Sorry.
<15> lol
<16> heh
<12> Twice, too. Not doing well today folks.
<16> I'm just having trouble with figuring out why an abstract cl*** with abstract methods X Y Z wouldn't do the same
<12> It would, but the difference is that an abstract cl*** can actually implement some of the methods that it offers, where as an interface doesn't care about implementation.
<16> hmmm
<15> isn't this where the RoR people usually comes in? ;)
<16> I see what you're saying now
<16> it's the LACK of implementation that you're looking for
<12> Exactly
<16> ok, I don't see where I would ever use it, but I see what the purpose is
<12> It also means that you can have two very different objects supply one same set of methods without tying them into a cl*** hierarchy, which an abstract cl*** wouldn't allow.
<16> kind of like getting around multiple inheritance problems
<12> Yes
<15> exactly.
<16> dammit, this is going to make rewrite # 6
<12> You don't have to use them if you don't really need them. It's a matter of deciding what's the best solution for the situation.
<18> is PHP and MySQL for the Absolute Begginer a good learning book?
<19> hm guys, if i have an array using keys instead of normal 0,1,2,3,etc, is there still any way to access the first element of the array, if i don't know they keys it's using?
<16> cool, ok, I don't think I'll use them for this project, but at least they're out there
<12> Knowledge is power :)
<16> heh
<16> as you typed that, the Chieftains - Dueling Chanters came on
<16> seemed sort of appropriate or something
<20> Does anybody know what I should do if I have an array and I want to md5 it but I allowed php to set its keys so I cant use extract. Are their any alternative functions to getting arrays into variables?
<12> lol
<15> you can access most PHP vars as an array...
<21> whiteline: You want to MD5 the array itself or each element value in the array?
<20> each element. =\
<21> $array = array_map("md5", $array);
<22> Howdy.
<23> is it possible to run a database query based on previous query?
<22> You mean "select * from table where field = (select field from otherTable)" ?
<23> no
<19> hm guys, if i have an array using keys instead of normal 0,1,2,3,etc, is there still any way to access the first element of the array, if i don't know they keys it's using?
<19> $array[1] won't work anymore
<21> whiteline: For getting them out of the array, you could try using list($var1, $var2, ...) = each($array)
<23> Etriaph, wait a moment and I try to build a example
<24> is there a way to link to another page with a filter and at the same time ***ign values to the filter?
<16> Hijacker|work, array_shift
<21> Hijacker: foreach
<19> lol :D
<25> Hijacker|work: there's no "first" key in a predictable sense, I don't think.
<19> erm, [0] , sorry ;)
<21> Hijacker: array_shift will work, too. :P
<19> ok will try, thx :)
<23> Etriaph, or whatta heck, i'll just paste it: runquery("SELECT asiakas, asiakasid, SUM(summat) As summa, COUNT(DISTINCT mrt) As mr (SELECT SUM(lasketut-tehdyt) AS tekemtt
<23> FROM todata.dbo.HAE_ASIAKASTUNNITTEKEMTTMT
<23> WHERE todata.dbo.HAE_ASIAKASTUNNITTEKEMTTMT.asiakasid = HAE_ENNUSTETTULASKUTUS.asiakasid AND (toimitusaika >= '".$alkupvm."' AND toimitusaika <= '".$loppupvm."')) AS tekemtt
<23> FROM dbo.HAE_ENNUSTETTULASKUTUS
<23> WHERE (pvm >= '".$alkupvm."' AND pvm <= '".$loppupvm."') GROUP BY asiakas, asiakasid ORDER BY summa DESC");
<22> If you want to iterate through the array and you don't know the keys, you can use foreach($arr as $key => $value) { .. }
<16> array_shift is destructive, tho, just so you know
<21> Stringer: DUDE! #1, this isn't #mysql. Read the topic. #2, do NOT paste that much code in the channel!
<20> Elazer the array_map will do the same thing as a while containing list() and each() right?
<21> Stringer: Use a pastebin.
<23> wait a second
<22> He's not using MySQL
<23> and let me explain
<21> Etriaph: Regardless...
<22> But he should be using pastebin I agree


Name:

Comments:

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






Return to #php
or
Go to some related logs:

Libipq WinXP
#suse
invalid PORTDIR_OVERLAY
jetscreemer
tm1300 ubuntu
#web
#web
kelaouchi
conflict: winesetuptk
#math



Home  |  disclaimer  |  contact  |  submit quotes