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



Comments:

<0> set it with a timestamp, and take a difference between the two
<1> is there an array function that tells you how many times a value occurs in the array, example: Array ( [0] => hello [1] => test [2] => pig [3] => hello). I want it to tell me that "hello" occurs twice
<2> !+arrays
<3> [ARRAYS] Please read http://php.net/manual/en/language.types.array.php for a basic understanding of how arrays work in PHP, as well as http://php.net/array for functions to manipulate arrays. Be sure to read 'user comments' as well.
<0> ... $lastvalidcheck = mktime(); if ($lastvalidcheck - mktime() < 3600) { // more than 1 hour has expired }
<0> yellaterra: if there isnt, its dead simple to make
<4> useless endeavors: writing a PHP array of all the current timezones PHP supports, in Appendix H
<5> hrm
<4> copy paste + a lot of typing
<2> jiggster ?!
<4> lol
<4> yeah
<2> jiggster what are you babbling about now?
<4> i have the entire TZ list as a php array :P
<2> jiggster there's only 24 TZ's, so whats the big deal?



<4> i tried doing a function that used +0200/-0700 etc, but i got talked down for it
<5> bah
<5> $lastvalid isn't staying long enough
<4> then i saw date_default_timezone_set();
<4> which uses a string location
<5> I refresh the page and it's 0 again :x
<2> jiggster: what, do I really have to say it?
<4> which has a hell of a lot more than 24 "tz's"
<4> Jymmm: yeah you probably should say "it" cause i dont know what you're doing to say :P
<2> jiggster RTFM
<4> pffff
<4> i did :P
<4> anyways
<2> jiggster not before you went thru all that effort (dumb***)
<5> well..
<5> I could store it in SQL.. but that seems a tad excessive for mktime()
<5> XD
<4> Jymmm: i'm not aware of a php function that lists all the time zones.. :\
<2> jiggster RTFM
<4> oh my god you're kidding... there is?
<2> jiggster RTFM and be enlightened
<4> i ****ing looked!
<4> hmm
<2> jiggster STFM and be enlightened
<5> GEAFBBQ :-D
<2> DUH
<5> Somebody's moody.
<6> hi all, im trying to set up an ldap query on a win32 machine. Im getting call to undef. function ldap_connect() error. Ive copiedssleay32.dll and libeay32.dll to my system dir, restarted apache - what am i missing?:)
<2> Lothri1 in no mood for bs
<7> hi guys.. I have a for that inserts data into mysql.. I have inside this for a function to check if the data was inserted.. how do I break the for if that function returns 0?
<4> Jymmm: no i read the manual, i know exactly what i'm trying to do, you dont so you cant throw the rtfm in my face :P
<8> euhm, if I got like 400 functions in a project.. and I got some variabled that I need everywhere like user id's etc. Would you simply do a global for every variable in every function? Cause I've been using an include file with globals in it.. and that sux when a function is being called 300 times :D
<2> Lothri1 Yeah, that's the smart thing to do, keep bringing it up.
<5> o.o
<2> jiggster No, but I can boot ya for being stupid.
<9> d_l0rd: oop
<7> how do I break a for?
<4> on the contrary.
<7> stop a for
<9> Sysop_Kn1F3: hammer()
<2> two()
<2> nine iron
<2> putter
<9> continue;
<7> aidan hahaha
<9> d_l0rd: php.net/oop
<10> Sysop_Kn1F3, when you find out how you break; a for loop, let me know.
<7> Lucidix I'm a begginer
<7> But i've just saw... it's just put break in the for
<8> ah, you mean I could put the data in a struct or cl***?
<11> hi irc
<7> if I was skilled with php I wouldn't ask :(
<11> i want restar hours and days
<11> i want subtract hours and days
<2> !+f date
<11> im want the time elapse
<9> d_l0rd: you would put all your functions in a cl***, which can then access $this->user_id
<3> Try looking at http://php.net/date
<11> between one date and other



<8> aidan: couldn't I just put the variables in the cl***'s public part, and use it everywhere?
<9> d_l0rd: how is that different from using global everywhere? do it properly first time
<9> d_l0rd: once your applications start getting beyond 10 or so functions, you probably should be using OOP. Start learning about it, it's really the only way to build large apps
<12> aidan: wazzaaaaaaaaaaaaaaaaaaaaaaap
<9> hey man
<12> How goes it?
<9> yeh good, spent like 10 hours installing apache-fop
<12> fop?
<9> updating _everything_ ... God I need a new box
<9> I had to upgrade like 10 different libraries
<12> lol, what's fop?
<9> apache-fop, it's an XML renderer
<12> ah
<9> renders XML into PDF via XSL
<12> Had any chance to play with Python?
<9> nah, this stuff pays the bills, python is later :)
<12> lol
<8> aidan: What is the difference then by putting all the functions in the cl*** or letting all of them share the public data?
<12> Mm, fiddling with Ruby-GTK2 now, ****ing rocks
<12> d_l0rd: OOP enforces a different approach.
<12> It puts "objects" into your head.
<9> d_l0rd: how would you let them share the data? you'd have to global the object.. that's just as bad as what you're doing now. You need to learn about encapsulation
<12> I'm so sick and tired looking for a decent programmer's editor written in GTK2
<8> aidan: that would be one ugly cl*** with 400-500 functions... :)
<12> Um
<8> But I'm sure you're right.
<12> The point is you use OOP so you won't need 400-500 uncategorized functions.
<8> can't argue with that.
<12> I guess the easiest way to put OOP into a new person's mind is to think of cl***es as "categories"
<12> But then later on you'll probably learn that this isn't it at all :P
<8> I'm not new to oop.. I'm just having second thoughts about spending half my life converting this project to oop :D
<9> if you have 400 functions you'll spend half your life maintaining them
<2> aidan: Nah, you pay some other ****er todo that
<8> hehe
<2> Now, if someone can tell me where I put those datasheets
<9> I have a rather large "WTF"
<9> http://www.google.com/search?hl=en&lr=&c2coff=1&q=dotgeek&btnG=Search
<9> if I google for "dotgeek" (I meant to google for docbook), why am I 4th in the list?
<12> Probably your repository :P
<9> which makes no mention of dotgeek, and has its own domain :/
<2> aidan: Typo, on googles part, it mean tto say dumbfsck
<9> Jymmm: hah.
<8> well gnite, and thanks.
<13> Alright, I'm trying to use a script that requires the gd libs, and I'm pretty sure they aren't turned on. I have whm, cpanel, and ftp access to the host, is there any way for me to install or enable the libs?
<14> Hi !
<15> Hi!
<16> hi, how can I check if current date is later than a specific date?
<16> can I use ? with time stamp? how can I find a timestamp for a later date time?
<16> can I use > with time stamp? how can I find a timestamp for a later date time?
<14> Can someone can help me to debug this please : http://pastebin.com/529986 (The code give to me the server name, but do not display ONLINE)
<17> Nag: Where is $serv coming from?
<9> Jymmm: Adobe Acrobat PDFWriter 4.0 on Power Macintosh :)
<9> what page size is 8.26in x 11.69in? A4? US Letter?
<14> thanks alindeman, i have make a mistake, but the corrected code, not properly working too...i paste the source corrected...
<14> alindeman--> http://pastebin.com/529991
<18> hello
<18> i'm having some session issues
<14> hi kainnation
<18> hey
<2> kainnation: get a better therapist.
<18> http://
<18> oops
<18> http://www.kainnation.com/pxc/pxc/core
<18> username admin
<18> p*** admin
<2> kainnation: http://RentAShrink.med/
<18> http://pastebin.com/529997
<18> login and try to go to one of the other pages in the menu
<18> it like reverts back to the old session vars
<18> i want it to keep the set ones
<19> kainnation how come you don't have a session_start(); on the login.php page?
<14> nobody for this problem please ? --> http://pastebin.com/530000 ?
<18> there is


Name:

Comments:

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






Return to #php
or
Go to some related logs:

weechat quakenet
how to change keyboard rate debian
Unknown collation: 'utf8_unicode_ci'
#perl
#suse
#perl
Motorola WU830G and Ubuntu
acpi_os
#javascript
ubuntu live drive



Home  |  disclaimer  |  contact  |  submit quotes