@# 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> Kind of like saying: <?php echo 'What is your stupid*** name? '; $name = fgets(STDIN); echo "Oh okay, so your retarded name is $name\n"; ?>
<0> Notice no length in fgets()
<1> hehe, that's it, knew you had to do someting to the second param
<1> bleh..
<1> hey kuja: since you're on, how's your konwledge of using ssh based sftp in php?
<0> Jack squat :P
<1> need to build an sftp cl*** for use with wrapped up gpg files up to a bank system from an internal webapp here
<2> hello :)
<2> I had a question: how can I make an array from a string?
<0> I _KNEW_ someone was insane enough to use PHP for bank software.
<2> let's say I have the following variavle: $var = "hello";
<3> n0x - implode
<3> oh
<3> other way around
<2> how can I create the array called $test such as $test[0]="h", etc.
<3> strings already are (tehcnically) arrays



<1> kuja: hehe, nah, just for sending stuff to it
<0> n0x: On PHP5, use str_split(), PHP4 use preg_split()
<2> ok,ok
<4> why am i getting a parse error on the last line of the file, 'unexpected $'? No matter what I do, it takes issue with the last line. Halp!
<0> cheesecheese: You're probably missing a } somewhere.
<1> you think it's a bad idea for me to write my financial reporting software using php?
<4> ooh, now I get to search through 2000 lines to find where it should go :D
<4> thanks kuja
<1> kuja: why wouldn't you use php for building finacial web app?
<5> NET||abuse, not at all... some well made applications have been written in php you know
<0> NET||abuse: Financial reporting? Nah sure go ahead. Transactions, BAD
<1> Transactions?
<1> why bad?
<5> but I find php to be too forgiving, leading to programmer laziness
<5> NET||abuse, I would use Java, basically for all the libraries that were made for the kind of thing
<5> not to mention Java's Security API > than anything php has availble
<0> NET||abuse: Loose code for sensitive data, you do the math.
<5> NET||abuse, which is my point... php is too forgiving
<1> kuja: i do, and it computes correctly everyday
<0> Anyways, I finally got my FrostWire working. Time to watch TV.
<6> Hi, could someone please provide me with the mysql_query for php to create a mysql user account, (this is for my project im developing, thank you)
<1> SpotLightGuy: emmmm, no
<1> SpotLightGuy: go ask in #mysql
<5> WOOHOO!!! I gotz 984.00 in the ban
<5> *bank
<1> SpotLightGuy: you gotta figure out the specifics of what permissions you want to grant, what databases, if these elements are fixed or variable.. there's alot to it
<7> is that some sort of magic number? cause its really not all that big of one ;)
<1> and this isn't an sql q&a channel
<1> examancer: shut up rich boy!!
<5> examancer, sorry... NINE_HUNDRED + EIGHTY + FOUR;
<7> heh, no, thats more than i have in my checking
<7> once that tax return hits though...
<7> :)
<5> "Undefined constant, ***uming string 'NINE_HUNDRED' at line 2"
<5> sammit
<5> I owe $122 on taxes :(
<1> i've gotta wait 7 days for pay, have to survive on about 20 / day
<5> NET||abuse, i've maximized my capabilities to save... I can spend $50 on groceries that last a week, and not spend a dime in between :D
<8> sadly, ramen loses its magic
<1> arrrrrggg, valentines day
<8> ditto
<9> lol
<1> sobs even
<1> my gf is off to russia till sunday week so i have to get her something now
<1> today, in like 20 minutes
<8> NO PRESSURE
<9> well....you can use u're php knowlege and charge an hour
<9> ^_^
<1> nebmo: i'm on salary so i'm fine thanks
<9> :P
<1> how many working days in the year?
<9> 365
<1> minus weekends, national holidays
<9> ohh lol erm
<1> 102 weekend days
<1> about 12 national holiday days
<1> and then 20 days holidayish
<1> that do for estimation
<9> "How many working days are there in a year?... I think it's something like 264 but can't remember"



<1> so 365 - 144 = 221
<1> that seems way too low
<1> lets say 150 for arguments sake
<1> then 8 hours a day
<1> 1200 hours a year of work
<1> + overtime if you get it ;)
<1> hehe,
<9> So you want a day off. Let's take a look at what you are asking for. There are 365 days per year available for work. There are 52 weeks per year in which you already have 2 days off per week, leaving 261 days available for work. Since you spend 16 hours each day away fron work, you have used up 170 days, leaving only 91 days available. You spend 30 minutes each day on coffee break which counts for 23 days each year, leaving onl
<9> bare sozz
<9> quite kewl though --> http://www.ahajokes.com/off05.html <--
<1> yeh, read that before
<1> hahaha, what's the euro to sterling conversion?
<1> ah, 1.458
<1> so about 1.46
<1> o ill just devide my salary by the sterling conversion and see how badly underpaid i am
<9> www .xe.com/ucc/
<9> currency converter
<10> good site there
<10> committ it to memory
<10> atm, in my mail header i have: From: postmaster@mysite.com\r\n\r\n
<11> haha.. e-commerce company's site.. http://www.chabbis.com/
<10> how do i put a proper name in there so it has a name and an email?
<12> !+quotes
<13> While single quotes (') can help with the parsing speed, they don't parse variables and characters like newline, tab or linefeed (\n, \t, \r)... You would need to use double quotes ("); More info here: http://hashphp.org/knowledge_base?kb_id=11
<11> that error message makes me soo not want to apply there
<10> heh
<9> lol
<10> could i put '"some name" <someemail@somewhere.com>' in a mail header?
<11> Lojo: in the from field, yes
<10> not in the headers?excellent - got it working
<10> i had a site working on localhost and transferring it from a 'windows' localhost to a nix server has been a pain
<10> now it's just the nigglie things to sort out
<2> hello agai
<2> *+n
<2> uh, how can I create a new array from an existing array except that I don't want the very first value of the array
<12> error_reporting(E_ALL & ~E_NOTICE); <-- yum
<2> (in python, it would be like this: array = array[1:9] # if the length of the array is 9
<2> let's make it simplier:
<2> here's my code
<2> http://pastebin.com/544885
<2> and the problem is that I don't understand why there always is a "2" in the array at the beginning!
<2> :@
<2> brb
<12> $HTTP_GET_VARS[$key] = $value; <-- *sob* You got to love osCommerce
<12> $new_c = array(""); <-- what is this?
<12> $cl_ar = preg_split('//',strtolower($cl),-1,PREG_SPLIT_DELIM_CAPTURE); <-- and why this?
<14> Stormchaser, from the manual.
<12> CPUnerd: ...
<14> hehe :P Was replying to your above statements :-)
<12> CPUnerd: you should use regex as a LAST RESORT!
<14> Stormchaser, haha :P Sure, you must be a python coder right ?
<12> CPUnerd: I am, actually
<14> I knew :-)
<14> but
<14> <12> $new_c = array(""); <-- what is this?
<14> that's from oscommerce ?
<12> you know nothing, puny mortal!
<12> Ermm... no... that's from n0x's code...
<14> heh eok :-P
<14> n0x, why oh why ?
<0> Stormchaser: Regex as a last resort, damn you Pythonistas!
<0> Regex is like natural in Ruby, as much as it is in Perl :)
<0> Though, it's a good thing :P
<15> hey, how to fetch https:// page with curl? it says SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed, what CURLOPT options i must set?
<12> kuja: If you had to parse a web page, what would you use?
<0> Stormchaser: Not regex :)
<0> Then again, it depends on what aspect of a "webpage" you're talking about
<12> kuja: then what?
<0> XML/HTML parser, depends on the content. You still haven't clarified what you're exactly parsing in a webpage though.
<12> kuja: Let say you need the <table>[content here]</table>
<0> Accurately you'd use an XML parser, inaccurately you may use regex.


Name:

Comments:

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






Return to #php
or
Go to some related logs:

libxrandr Xlib.h oe miss
#debian
mepis tzdata
suse intel 915GM acceleration
#bash
X11 startx ubuntu synergy
#asm
spinzero
knoppix intel i810 82810e error
fedora update intel nic driver



Home  |  disclaimer  |  contact  |  submit quotes