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



Comments:

<0> i'm a bit stoned atm :P
<1> i just thought of something that can save me time... alias php-lint='for i in *.php; do `php -l $i >> .php_lint_log`; done; cat .php_lint_log | grep -v "No";' :-D
<2> NoBeard: you do know the difference between a "hello world" script and a complex application, don't you?
<3> CryWolf: no, tell me
<2> offhand, I'd say the "hello world" script is the one you have a chance of understanding.
<2> I hope.
<0> heh
<0> almost as worthless as cake
<1> anyone know if there is a replacement for PHPUnit? (last time it was updated was 2002)
<1> basically I'm looking for something like JUnit for PHP (if it wasn't obvious already)
<4> mmm my script has a error, but i dont know what is the mistake, can somebody help me?
<4> please
<2> matadamas: in general, if you read the error message, it gives information useful to fixing the problem.
<5> hi, what language does a site like google use for their preloaded forms?
<4> CryWolf, i think as you, but it doesn't give me output error, and its good cinfigured, it is a form and i wanna get it in my server in some text file, it is good, but i doesnt work, when press button ok, i dont get it in my server. do you understand me?



<2> matadamas: I think so, but without an actual error, there's nothing I can do.
<2> matadamas: use echo, print_r, and var_dump to check your variables in the script.
<6> G Night all
<7> is there any way to get php's PCRE to stop matching $ to newline in multiline mode?
<1> noone here create unit tests?
<3> b0nk3r: why not ask them?
<3> dranger: dont use $ use z
<7> or is there \Z in PCRE
<7> ah nm RTFM
<7> \z that is
<3> dranger: yep
<3> dranger: http://www.phpro.org/tutorials/Introduction-to-PHP-Regular-Expressions.html
<0> b0nk3r: "pre loaded forms"?
<0> b0nk3r: google uses a mix of python and javascript
<1> ok, i found like 5 different Unit testing frameworks for php: http://www.phppatterns.com/docs/develop/unit_testing_in_php
<1> anyone have a particular preference?
<5> Jmax, for example, on clicking a radio box or maybe selecting an option from a dropdown menu, i'd like an input box show beside it
<1> use javascript
<1> read up on the DOM (and ask in #web as that is not php specific)
<5> thank you
<1> later
<1> o/
<8> morning
<8> I have abit trouble with getimagesize()
<8> i get Warning: getimagesize(/var/www/images/temp/1144738671.jpg) [function.getimagesize]: failed to open stream
<8> It works on small pictures, but not big ones, is it possible to fix?
<9> night all
<10> night
<11> you're slow
<10> I"m busy
<11> in that case.. she simply didn't give enough time
<11> i'm out\n/quit
<12> anyone can suggest a good solid dao library ?
<12> kinda like activerecord for rails
<3> rhalff: hahahahahahaaa
<12> NoBeard, ?
<3> activerecord for rails, sorry, reflex
<12> what's funny in that sentence..
<13> I have a hypothetical situation.
<13> A user clicks on something, for the sake of argument, my cooking page.
<13> Now the querystring is ?page=cooking
<3> I have a cooking page
<13> If he clicks on rate this page, how would I know which page he was rating?
<3> http://talklikeacanadian.com/index.php?p=recipes
<10> !+gv
<14> Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre>
<3> AI_coder: it will be in $_GET
<13> Cool clouds.
<15> Hey. I just recieved a new fedora installation with php5. Can i somehow install both mysql 4 AND mysql 5 so i can get my scripts working like before taking the time to update them for mysql 5... mysql() to mysqli() ?
<3> AI_coder: well, I could not find a good ice background
<13> NoBeard: hehe :D
<3> fukeneh!
<13> So if I have many ?name=value on a particular querystring, how would I point him to a "deeper" level in the page?
<13> I want to take the existing ?name=value.... and append it by another one.
<3> AI_coder: append it to what?
<13> The current querystring
<3> like file.php?page=cookiing&name=value ?
<13> ?page=cooking&recipe=duckstew --> ?page=cooking&recipe=duckstew&style=cajun
<13> yeah
<16> AI_coder, $_SERVER['REQUEST_URI']
<17> if I read out an mysql array with mysql_fetch_array and want to traverse the array again, I get no results. how can I reset the query to be able to traverse with a while loop again?



<3> nk need to rewind
<3> nk_: the array pointer is at the last member
<17> NoBeard: ok, so how do I?
<3> nk_: mysql_field_seek()
<3> err, data_seek
<3> not field_seek
<17> oh reset
<17> i see
<18> what would be a good name for a cl*** that reads the $POST vars and constructs DB queries?
<19> hi all
<17> huh, reset seems to be for arrays only
<19> Form_Query_Builder
<19> ?!
<3> electrofreak: cl*** thatBuildsPostVarsIntoDbQueries
<20> how do i display all values of an array
<18> NoBeard, my name is 'eleftherios' and the name is too long :-)
<19> cl*** Form_Query_Builder { // }
<19> rulez :P
<17> yeah works, thx a lot NoBeard
<3> nk_: just doing my job
<19> can you give me an advice...
<19> i have used my handler to manage error with trigger_error
<19> when occur an unmanaged error like internal error fatl object creation and other
<19> in that case i need to use die() ?
<3> time to use exceptions
<3> try/throw/catch
<19> yes NoBeard i work on php4
<21> if i load a php file by file_get_contents and want to parse it as php, what function do u use?
<3> flaccid: eval()
<19> NoBeard can you give me an advice
<3> kioto: sure, update to latest stable version of pohp
<3> php
<21> thanks y0
<19> :P i cannot
<3> php4 is yesterday, php6 is on the horizon
<3> kioto: why not?
<19> yes i know i'm big fun of php future release
<19> i cannot because my isp use php4
<3> kioto: get a decent host
<21> how do i avoid the Parse error: parse error, unexpected '<' in error because of the <?php tag ?
<19> NoBeard i don't have choose the host but my customer
<3> flaccid: what are you doing?
<21> need to parse a php script which has php and html in it to a variable
<19> NoBeard i use for example into fatal error that i cannot manage a code like this
<19> trigger_error('error', type_error) || die('unmanaged error was occured')
<3> flaccid: eval ('?>' . file_get_contents($file));
<21> thank u
<3> errr, try it first
<3> then thanks or abuse is welcome
<22> I'm having a slow day. grep ^# file.txt <-- this will show me all lines that start with #, how do I get it to show all lines that *don't* start with # ?
<3> fyrestrtr: [^*]
<3> or something
<3> fyrestrtr: [^#]
<3> even
<7> is this command line?
<22> tried that, that just showes me all lines.
<3> grep [^#] file.txt
<7> fyrestrtr if its the normal GNU grep try -v
<22> ah, -v
<22> must remember this.
<23> isnt it ^[^#] ?
<7> for inVert
<7> kon: that works too
<3> kon: would show all lines beginning with #
<23> no
<23> it would show all lines not beginning with #
<3> does here
<3> # grep -v ^[^#] meh
<3> # thre
<3> # fout
<23> if you dont use -v of course
<23> ^[^#] == ^# -v
<3> kon: yep, that works
<3> grep ^[^#] file


Name:

Comments:

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






Return to #php
or
Go to some related logs:

db4.2_recover not found ubuntu
ati-gatos ebuild xorg-7
#ai
#sdl
RECOVERY fedora logical volume recover fc5
#perl
#perl
Libipq WinXP
DeckOfCards pygame
#math



Home  |  disclaimer  |  contact  |  submit quotes