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



Comments:

<0> Yango: That function expects only numbers.
<1> CopyNinja: Yeah, php has a fully featured set of file manipulation functions.
<2> That seem to be a nice way! Thanks Ahroun :)
<3> ||cw: simple, like if a file is missing, I can add a little note to the user that the file foo should be around
<3> basically I wanna use die to do exception handling
<4> die for exception handling?
<4> instead of throwing errors?
<4> or using exceptions (PHP5, though)
<3> this is PHP4
<4> still
<4> error handling is there
<3> I want to use die for when a function fails, but not stop the script
<5> !+enter
<6> Don't use the enter key as puncuation. Think in complete thoughts, then type.
<5> PantherMachina: That doesn't makes sense.



<3> Sure it does
<4> die is meant to stop the script
<5> no it doesn't.
<3> I'm aware
<2> One thing though... I use cURL which prints out a hell lot of information that I want... can I return that information to a variable aswell?
<4> then use the darn error handling which is there for that particular reason
<4> make a custom error handler or something
<3> What error handling?
<2> I use CURLOPT_NOPROGRESS = FALSE
<4> RTFM?
<5> Mithrandir_: That php-bot's message was for you too... Please don't abuse enter.
<7> I have a function that defines one variable (x) as static $x. This is fine for most cases when the funciton is called; but a couple places in my code, I want to call that function multiple times but reset $x to 0 between each call (rather than having it remember the value of $x)--is there a way --outside-- of the function to do this?
<8> PantherMachina: perhaps you want to try/catch, and in the catch, echo the error and perhaps echo the backtrace?
<3> point me at the section that covers error handling
<3> Vlet: that's for PHP5 though
<5> PantherMachina: Manuals.
<3> I don't see that for 4
<4> www.php.net/manual/en/function.set-error-handler.php
<5> Mithrandir_: spoilsport.
<4> hmm?
<3> there we go
<8> Is anyone here familiar with 5.x's XsltProcessor? When I try to transform using xslt which uses xsl:include's, it only transforms against the include.
<9> Hello everyone, I've been using php for a little while and I was curious about zend and how it figures into use for my code. I've been to the zend site but it seems pretty much a product / support sales site.
<9> can anyone suggest where I can look to get an Idea of how I can use it?
<0> Remo: Mmmmmm, Zend/ZDE is my friend.
<4> Remowylliams, be a little more specific. Zend is a company that develops PHP and PHP related stuff
<4> They have commercial products (Zend Development Environment, Zend Platform) and free products (Zend Framework - but it's still in beta)
<9> Mithrandir_: I'm sorry I think I thought if I came here I would be asking/talking about the zend module in php and how it's used.
<5> Remowylliams: Er... Zend engine powers your PHP :P
<9> Stormchaser: So php automatically sends my code to the zend engine and it gets cached so it doesn't have to do it over again?
<5> Remowylliams: no.
<5> Remowylliams: zend engine isn't caching mechanism. Here: http://en.wikipedia.org/wiki/Zend_engine
<9> Stormchaser: so PHP can't run without the Zend engine?
<5> you're close to correct statement.
<10> Nothing technically stops someone from implementing PHP with another parser.
<9> Stormchaser: Sorry the wikipedia was pretty vague about Zends actual interaction with PHP
<0> Remowylliams: The words you are reading right now mean nothing by themselves, they only have meaning when they are "parsed" by your brain. PHP=text, Zend=brain
<9> And I'd be on #Zend in a heart beat if it existed. The Manual doesn't talk much about it.
<11> Remowy: "Zend" has different meanings in different contexts.
<12> Pollita, The wife is coming to FL, right? :)
<13> FWIW, it's from ZEev+aNDy
<14> I just posted code at http://pastebin.ca/48375.... I am trying to populate the option values in a select menu and all I am getting is the first record and not the rest. Please ***ist me in trying to figure out why it is not generating all the listings... There is about 50
<11> Remowy: The scripting engine built into PHP is known as the "Zend Engine" and was originally written by Zeev Suraski and Andi Gutsman (who later formed the company also known as Zend)
<15> how to get the complete path to the folder the current php file is executing in.. including the http://
<11> Today the engine is maintained primarily by the company of the same name, however not exclusively
<11> The Engine is only one piece of what you know as PHP however and does not include the Extensions, the SAPI interfaces, or the "Core" (what ties it all together)
<1> FWIW?
<14> Anyone have any ideas....?
<16> !+fwiw
<6> [FWIW] For What It's Worth
<9> Pollita: See this is why I"m confused and their website isn't terribly clear. Ages ago I was of the understanding that zend as a virtual machine that you could p*** php code to, it would compile it into intermediate code that it could run very very fast compared to the php parser and the intermediate code could be saved or cached.
<1> Thank you
<11> Remowy: Zend (The company) makes a few products that would fit that description (Zend Accellerator, Zend Encoder) however these products are NOT the engine
<12> Remowylliams, they are just plugins to the engine
<17> gabrielone: use while, not foreach. foreach is for use on arrays.
<11> Remowy: Under ordinary circumstances, the engine parses and compiles a script to opcodes. Then it runs those opcodes.
<9> Pollita: Davey|Work: thanks muchly that clears up the confusion.
<14> CryWolf: Okay I will change that... does everything else look right?
<11> Remowy: What ZA/ZE and others do is place themselves into the middle of that process to cache the results of compilation and save that step for future executions



<18> hello, how can i send a multi statement Query to mysql?
<11> It doesn't make them run faster per se, but it makes the overal execution appear to speed up as the compilation step is skipped
<2> Anyone knows if its possible to retrieve the output that is returned by cURL if option CURLOPT_NOPROGRESS is set to FALSE? I want to retrieve it's output to a variable.
<17> gabrielone: no, you're using ereg instead of preg or, probably better, two strpos calls. Or even better than that would be to put those conditions in the sql query.
<9> dracflamloc: You need to open the connection as a CLIENT_MULTI_STATEMENT (usually) and then use start transaction; and finally commit;
<11> Though if you're looking for an accellerator, I try to recommend APC (http://pecl.php.net/APC)
<18> k
<14> CryWolf: I just changed it to while and I get the same result....
<17> gabrielone: and you corrected the syntax of what's in the ()?
<14> CryWolf: I am just getting the first record return and not the rest
<19> oi, anyone what why this statement always returns false? if (in_array($itemid, $junkitemarray)) {
<14> CryWolf: while ($row = mssql_fetch_row($city_return)) {
<11> It's entirely free, has a good group of devs behind it, and plays nicely with PHP 5.1 (which I can't entirely say for ZA)
<17> gabrielone: you have a return within a while loop
<14> CryWolf: is it not?!?
<17> fatalblu: is it returning FALSE or 0? var_dump() to verify
<20> Pollita, apc is indeed working very nice, for over years now
<9> Pollita: thanks for the info. I'll peek at APC
<11> Remowy: If you plan on being at php|tek this month, I'll be going over all this kinda stuff in my "How PHP Ticks" talk
<21> in Orlando?
<11> yeah
<21> I wanna go.
<21> not gonna be able to.
<17> fatalblu: nevermind, I was thinking of something else. But you should verify $itemid and $junkitemarray with var_dump()
<21> unless you got a comp p***
<21> ;-)
<11> If you don't have your ticket yet, you're too late
<14> CryWolf: Okay I just changed it to return within the while loop and I am getting just the last record now
<12> `Rewt, sold out
<21> I live like 15 min away
<11> It's been sold out for awhile now
<21> I could crash it.... ;-)
<17> gabrielone: I don't think you want a return inside the loop.
<12> `Rewt, heh, I live about 90 minutes away, I'm speaking :)
<9> Pollita: Sorry I don't get paid enough to get to work half the time. Let alone go to a nice meaningful convention/seminar but thanks.
<21> nice. Where you live? Tampa?
<14> CryWolf: Okay...
<12> `Rewt, damn close :)
<21> St. Pete? ;-)
<14> CryWolf: I returned it outside the while loop and I get the last record
<22> hey all, I have some problem with money_format(); it's outputting my money correctly but it's in () ... I dont want (), how do I fix that ? money_format('%=0(#2.2n',$row[4])
<12> no, BFE
<21> lol
<11> Davey is speaking in the EXACT SAME timeslots as me.... :(
<21> lakeland, huh?
<15> how to get the complete path to the folder the current php file is executing in.. including the http://
<23> good news: you can run windows on mac: http://www.apple.com/macosx/bootcamp/
<11> No heckling :(
<12> `Rewt, rofl, that is where I work (and am right now)
<17> gabrielone: post what you have now.
<21> hahah
<12> Pollita, yeah, you can't heckle me :)
<21> I work from home.
<19> trying CryWolf brb
<12> Gudid, dude, get something better to do than spam us with that ****.
<21> Davey|Work: put me on your guest list
<24> lol how is that spam
<24> you guys hate macs eh
<9> I'm waging a quiet war trying to keep companies from replacing php and perl with Java
<11> ghbb: He's been spamming for days now
<25> ghbb: no, theres just a low tolerance for idiocy
<12> ghbb, because he joined #web and the first thing he said (like here) was the same thing
<11> Once is informational. Twice is enthusiastic. 100x is annoying
<14> CryWolf: Look at http://pastebin.ca/48380 I put what I did in there in comments
<26> how is that GOOD news anyways? :P
<11> dr1: That was my position....
<12> dri : LOL
<11> FANTASIC! WE CAN RUN WINDOWS WITH A SINGLE BUTTON MOUSE!
<11> wait...
<12> and btw, I'm right in the process of buying my Mac Mini right now :)
<11> >****<
<24> ah
<12> Pollita, LMAO
<15> thats a bad news for windows i guess


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#suse
hp scanjet 4670 ubuntu
#perl
puppy linux cs4232
#physics
#css
php html_identities
kanotix unable to write to /var/cache/apt
+takes exactly one argument +python +connect
etch socks5



Home  |  disclaimer  |  contact  |  submit quotes