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



Comments:

<0> my problem is my aedating installation is not accepting payment, there is a folder called checkout and it it t has several payment systems, I chose paypal, and moved the pre-checkout.php and post-checkout.php files as the default but when I test buying credits it just spits out "database error" would you like to look at the codes?
<1> whats the best way to encrypt a p***word using PHP?
<2> TML: Actually, it was kind of useful at the time I thought of it, then I thought of doing it in a more sane way. Let's say, I want to keep the OO logic in perspective, so in my IRC cl***, my parsed IRC commands may contain a message. If the parsed commandc contains a message (parsed['message'] in the dict/hash), then I would add a method to the String instance of that message. Something where I can do: args = data['message'].trigger('botcommand'). It seemed
<2> like a decent idea at the time.
<2> TML: Then I figured, "this is retarded", so I just did irc.trigger('command', data['message])... so I guess there really isn't much use :)
<3> OT: anyone know an application for windows that will allow different IP/network setups for wireless connections, based on the network it connects to?
<2> TML: You stand firm, and quite correct.
<2> TML: The only thing it's quite very useful for is metacl***es.
<4> davey: doesnt XP support some kind of profile settings ?
<0> my problem is my aedating installation is not accepting payment, there is a folder called checkout and it it t has several payment systems, I chose paypal, and moved the pre-checkout.php and post-checkout.php files as the default but when I test buying credits it just spits out "database error" would you like to look at the codes? pls msg me
<5> gurreny: The company that sells that has online support. Why don't you ask them?
<6> and stop PM'ing people asking for help
<7> Little question, from a programmers point of view, would one NEVER use the database for calculations? So things like getting the total price of a list of products.
<2> UltimateB|: You should always try to do that as much as possible if you don't need to preserve the original value in the result set.
<2> UltimateB|: The database is going to be faster at handling the data than PHP.



<7> kuja: so you say that performance is more important then not using the database for bussiness logic?
<3> p0windah, I don't know, does it? :)
<7> kuja: i made a query for just the above example, but an weary of my ehrm, intership handler (?) from my school will not be happy about that kind of use :X
<8> is YEAR a data type?
<7> anil: date would be a data type imo.
<2> UltimateB|: If I didn't need the original value of data in the database, and I needed to perform math on some of the data, I would use the database features. "SELECT name, price + $taxes AS price FROM products"
<9> hi all, I'm having problems translating with gettext under php4. this is the testcode: http://pastebin.com/580356. using the utility gettext I can get the translation, but that code doesn't. I run it from the console under strace and i see it tries to do something w/ the textdomain I set, but not mauch. here is the ouput: http://pastebin.com/580367. any hints?
<7> kuja: thanks for proving me not being alone in my thought process :)
<2> =)
<7> im quite fond of the query ;x love doing things ive never done before
<2> UltimateB|: There's nothing wrong with using the database to do those things, in fact, if they were useless they wouldn't be there. 1) It's much faster to do that than in PHP, 2) It's not illogical in any way.
<7> kuja: well as i said, i was told that using the database layer for business logic was just wrong. But ill be able to argument my choice so i guess they will be ok with it ;)
<7> kuja: if i can see the database aas the database layer... hmm, been so long since i learned all that crap :(
<10> hello all
<2> UltimateB|: If you plan on switching out databases, it *can* be bad.
<7> kuja: true, yet most (all?) databases support some kind of math i presume?
<2> UltimateB|: Math, yes.
<2> Anything more complex gets scary.
<11> I have a question with inheritance (php4). If the parent cl*** has a public member called $test and the child cl*** has a public member called $test, will the child member override the parent member?
<7> kuja: like CASE in mysql? :X
<10> i'm having problems while unserializing a serialized variable... unserialize() returns boolean "false" ... how can I know what the problem is? .. (i'm serializing large chunks of html code) ...
<2> UltimateB|: Well, that is useful. You have control over your data before even selecting it. That is a Good Thing.
<7> jasz: how do you store the serialized code?
<2> UltimateB|: But then again, anything you need can usually be done in a WHERE claus.
<2> clause*
<10> UltimateB|, .. i serialize it.. then base64_encode .. and insert it in a "text" field in a mysql db ..
<2> jasz: serialize() is for PHP datatypes.
<2> When you serialize() an array, if gives the string representation of the array, so that when you unserialize() it, you can proceed to use that array normally. Same with other datatypes.
<7> kuja: well, its more like a construction like: COUNT( CASE id = 1 THEN price * 8 CASE id = 2 THEN price * 3 ELSE price END ), get the total of the shopping cart in just a single query (mostly build cause i heard i could ;))
<7> kuja: havent benched the php counterpart, just for it being ehrm, a horny query ;)
<2> heh
<2> Jymmmy boy!
<12> GF's can broken into last night.
<12> GF's car got broken into last night.
<7> :(
<10> kuja, .. i start with an array... one of the elements in the array is html code.. i addslashes() and htmlentities() .. then i serialize.. then i base64_encode .. then i store it in the db ...
<12> She carrys a bag that LOOKS like a laptop, they went straight to the trunk; didn't even bother the stereo or anything in the car itself.
<2> Jymmm: Whaaat!
<2> Jymmm: So what's missing?
<12> AND the ****ing cops won't even come out and take a report...
<10> when i retrieve the field.. i can base64_decode .. but i cannot unserialize it back ... :(
<12> kuja Not a ****ing thing except the broken drivers window.
<2> :S
<10> Jymmm, .. that ****s... my dad's been broken into a few times too :(
<10> my dad's car..
<12> $189 to replace the gl***
<13> hi folks
<12> The thing is, it looks like an inside job... like they knew about the case.
<10> but thieves in colombia dont break gl***es.. they cut the plastic around the back gl*** and pull out the whole thing without breaking anything.. ****ers..
<13> I'm trying to checkout pecl/pfpro from cvs.php.net but I'm getting a connection refused. Any suggestions? Thanks.
<10> i need food
<13> I'm trying to login with cvs -d :pserver:cvsread@cvs.php.net:/repository login and the phpfi p***word. no luck.
<8> KingDavid: stop with spamming
<14> I have list of many chceckboxes - after submit I need to delete cecked from database - how is it the best way to do this?
<15> Anil: ???
<8> your quit msg? :P
<15> whats wrong with that?
<16> radone... <input type="checkbox" name="ids[]" value="<?=$data->id?>">
<16> then loop through and delete the ids
<17> roue: you'll need to email someone at the php.net site about that. we are not affiliated with them.
<13> caffinated - I figured it out just now. The p***word is correct, but my local firewall wasn't letting traffic through. I moved to an external host and the login worked fine.



<13> thanks
<14> m1chael: ids[] will be array in next form?
<7> raden: it will.
<7> well the post value will be
<18> I need a loop that will run constantly and work as close to 100% processor usage as possible, what's a good task for this?
<7> ...?
<7> Why do you need that Skorgu|Work?
<12> Skorgu|Work: factoring prime numbers
<18> I'm setting up a background process and I need to know how it will handle when 1) the system is under heavy load and 2) if my handling of the max execution time works
<7> :)
<14> If I will have: <input type="checkbox" name="ids[]" value="11"> and <input type="checkbox" name="ids[]" value="22"> and they will be chcecked.
<14> Could anyone help me how can I loop throught that values?
<19> I'm working on a regex to extract the the values from a string such as '/2006/03/02/my_string/', or '/2006/03/02' etc using the pattern '%/?(\d{4})?/?(\d{2})?/?(\d{2})?/?(\w+)?/?$%' (trailing /'s optional), but i dont want it to work with the string '/2006/02/my_string/'
<18> so is there something quick and easy that will do a lot of CPU work inside PHP (i.e. without branching to a shell or anything)?
<12> Skorgu|Work: I already told you.
<18> well, let me rephrase
<12> raden quit repeating, you were already told too.
<12> Skorgu|Work: No no rephrase, just listen.
<19> using preg_match with the last string produces an array('<full match>', '2006', '02', '', 'my_string')
<7> radone: just do a print_r($_POST['ids']) and see what values are checked, you should be able to handle it from there ;)
<18> *ahem*
<12> Skorgu|Work *ahem*
<7> \o/
<14> UltimateB: thanks
<12> Skorgu|Work: I'm not in mood for bull****, listen, scroll bakc and go google.
<19> i'm looking to have it return array('<fullmatch>', '2006', '02')
<18> "factoring prime numbers" isn't the answer to the question I was asking, but I see I'm not going to be helped here
<18> Thank your for your help anyway
<7> fredb: just read the first few array keys? :X
<12> !+pafy
<20> [P***ive Agressive Fsck You] We aint buying your crap, so knock it off!
<18> *sigh*
<7> hehe
<7> why didnt you flex Jymmm ;)
<12> if factoring prime numbers isn't gonna peak his cpu to 100% for regresion testing, nothing will.
<12> which IS what he asked for, the dumb***
<19> UltimateB|, true. Was checking to see if I could avoid populating the array with the final string if the format isn't correct.
<12> UltimateB| : It would be so much simpler is ppl would just listen.
<7> fredb: just saying what i think, im not that good with regex's ;)
<12> !+mre
<20> [MRE] 'Meal, Ready to Eat' used by the military in the field and others during a disaster as they have a long shelf life. But you probably wanted 'MRE - Mastering Regular Expressions' the bible of regex http://www.oreilly.com/catalog/regex2/ Use this utility for learning/understanding/troubleshooting your RegEx --> http://www.weitz.de/regex-coach/
<19> UltimateB|, np.
<12> fredb ^^^^^^^^^^^^^
<7> Jymmm: hard for the avarage user :)
<12> UltimateB| no tthe regex coach
<7> Jymmm? what?
<12> UltimateB| http://www.weitz.de/regex-coach/
<7> I have no intention to learn regex properly when i dont really need it for now
<18> ok, let me try this again. Is there a php command that is known to take a long-ish time to execute in PHP's process that I can use in a delay loop? Put another way, what is the slowest PHP command that would normally be avoided?
<21> surely anything in a while(1) loop?
<7> Skorgu|Work: like he said, so some hard*** calculation :/
<22> Greetings. http://us2.php.net/manual/en/ini.core.php#ini.auto-prepend-file - This says that the include_path is used. However, it doesn't specify the working directory for relative paths. Is the working directory that of whatever script is being accessed, or of the .htaccess file that specifies the prepended file, or that of the prepended file itself?
<23> can anyone tell me if there is a replace command in php? (as in to replace "x" with "y")
<8> what is wrong with this: http://rafb.net/paste/results/hLj6UU14.html
<2> hodoh: php.net/str-replace
<23> anil you are missing an;
<23> after text)
<24> can anyone tell how to get the users ipaddress?
<25> hi! what empty methods ectually do in abstract cl***? if i don't declare them?
<23> anil on line 9 move the ; to befor the "
<14> is it possible to define array in PHP with brackets? Something like c {1, 2, 3} ??
<26> blaah
<26> I got the readfile thingy working
<26> but it keeps showing me uknown size
<26> header("Content-Disposition: attachment; filename={$file}"); is in my code
<26> header ("Content-Length: " . filesize($file));
<26> aswell
<22> radone: $c = array(1, 2, 3);
<23> no sorry anil only the first one i said
<14> Crell42: thanks
<27> hey
<22> PHP arrays = da bomb.
<28> Hello. What would be the best way to write a script to replace/delete a given line in a flat file?
<22> sed :-)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

remove easyubuntu from command line
#fedora
#gentoo
#sdl
#debian
IPP request failed with status 1030 suse
error stdio.h 103 getline mplayer
#debian
ykstort zmagic
gentoo ati opengl gcc-4.1.1



Home  |  disclaimer  |  contact  |  submit quotes