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



Comments:

<0> cgi:applicatin says it used jsut cgi but its enuf for MVC framwork =websites
<1> star-trekio: What is in your oppinion "CGI"?
<2> hello, i have a project where i have to create an image on the fly, anyone has suggestions for a good framework that let's me easily align portions of text?
<3> anyone got a good way to validate forms via php? there must be some sort of framework or something i can use heh. this is SOOOO tedious
<1> ekimus: The voodo-ninja framework sounds good
<4> Eww
<4> anyone knows a linux color picker ?
<1> o.O
<1> orogor: Is this ##linux?
<5> orogor: er?
<5> orogor: in the gimp?
<4> it doesnt works on desktop apps
<5> what doesnt?
<4> worksonly in the gimppicture open
<2> Stormchaser: any link to it, google just gives me thread posts for a guy with that nick name :(
<4> ijust tried :)



<5> orogor: use a desktop langauge like java and jColorChoose ;)
<1> orogor: ##linux.. Now.
<4> Ewww
<4> ... serious channel
<1> sure
<6> gone!
<5> lol
<1> \o/
<6> he kicked me out once, too, but forgot what for
<1> Dammit, Zule! You got me hooked!
<6> it was for something off topic
<5> i get kicked at least once a week from my regular channels ;)
<7> is it possible to override/redefine a function in PHP5 (or anything to that effect)
<7> (a cl*** function)
<8> Olipro: yes
<1> Olipro: I believe it's __set()
<9> anyone using the Zend framework in production?
<8> Olipro: You mean like inheritance?
<7> no, I don't want to extend a cl***
<7> it's basically for hack purposes;
<7> imagine you want to extend a cl***
<10> Olipro: No, PHP doesn't support overloading of an existant cl***.
<7> (well, extend probably isn't the right word)
<9> i think he wants something like missing_method in ruby
<10> Maybe
<8> Olipro: yeah... i thought you were asking about inheritance...
<10> jonbaer: More like he wants to redefine a method that already exists.
<7> well, imagine if a script instantiated Foo, and then accessed Foo->bar();
<7> and I wanted to change what bar(); did
<11> hi all
<10> Olipro: You cannot, not in PHP.
<11> i'm trying to save a POST request to a file, but that doesn't work? is there any way to log a POST?
<12> hi, I need a regex that tells me if a string of text contains two or more http links, I tried this but it tells me that { is an unknown modifier. Is there something trivial I am missing?
<7> thought so
<12> $a = preg_match('(a href="http://.*){3,}',$str);
<7> cheers anyhow
<7> actually, one more question
<9> i think you can, with __call
<7> if I can't do that
<10> Olipro: The closest you get is by subcl***ing.
<7> yes, I was going to say
<13> andream: You're missing expression delimiters
<12> you
<11> i can't just echo the POST because the client doesn't show the ouput it gets back
<10> jonbaer: Well the point is that you can't just "open a cl***" in PHP as you would in Ruby.
<7> if I create a new cl*** that extends the current cl***
<10> jonbaer: You would have to subcl***.
<12> you mean '/(a href ..../' ?
<7> can I apply a new meaning to bar() that way?
<9> true
<13> andream: php.net/pcre, read the first paragraph
<10> Olipro: I believe so, read php.net/oop5
<9> http://phpbuilder.com/manual/en/language.oop5.overloading.php
<8> Olipro: yes that works great
<12> gotcha thanks tml
<7> lovely cheers
<11> how can i log any request that gets send to a script, the content of the request?
<14> apache logs
<11> archivist but that wouldn't include the contents of the request? i only have the client,date,URL,etc. in there
<11> i need to log a POSTed xml



<9> anyone know of a page comparing cake, symfony, and the dozen or so other frameworks available? or what a good google query for it should be
<13> jonbaer: Nope, but you could make one, and tell php-bot where to find it
<10> Contribution, what a wonderful thing.
<9> nice: http://cooletips.de/htaccess/
<15> how can i test if the first character of a string is a "."
<10> $str[0] == '.'
<15> hmm did not work but i used ""
<16> $str{0}
<10> [EaK]Konky: php.net/types.string and php.net/substr
<16> [] is for array's, {} is for string indexing
<15> ah yea
<15> thnx
<10> ||cw: {} was also about to be deprecated, AFAIK.
<17> is there a stripslashes() function?
<16> is it? cool
<10> nanotech: php.net/stripslashes
<16> nanotech: if your php.net broken?
<18> is there any simple way to protect email address in output' somehow to encode it?
<17> ; )
<19> If mysql_connect fails because access was denied for the user/p*** provided, will php attempt to log in using the account running the server ('apache')?
<20> hi
<10> Vlet: No
<19> hmm.. Any idea why I would be getting access denied for apache@localhost errors when I know other values are being p***ed to mysql_connect() ?
<20> I want to build a dynamic page which I can link like that:test.php?func=foo I know that I have to do it with a switch statement but I don't know what to search for for doing the rest??
<20> I don't know how to integrate the ?func=foo part
<21> I need a soap service that is bound to a specific IP (for security reasons): .173. PHP (specifically nusoap) uses ONLY .170 for all connections. How do I change this?
<22> Tigahhh: In order to get the data from the URL (func is set to foo), you'll need to look up the superglobals $_POST and $_GET
<22> http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.server is supposed to be the information on them, although I suppose it's a bit short on examples.
<23> Stormchaser: \o/
<10> Tresnar: You want to be reading about $_GET.
<22> kuja: Wrong nick, although I'll agree $_POST is not immediately relevant.
<10> Tigahhh, even.
<10> I suppose telling anonymous nicks apart at 4 AM isn't as easy a task as one would think.
<20> I was just reading the same page but can't get any clue form that
<24> i get an error on my page, and i cant find the error - i know its something with latest.img http://burow.pastebin.com/737655
<22> Apocs: What is the error on your page?
<10> Tigahhh: You suggest you need a switch, and maybe you do, then learn how to use a switch. $_GET is just another variable.
<20> I found that in a guestbook which functions the way I want it:define('FUNC', isset($_GET['func']) ? $_GET['func'] : NULL);
<24> Tresnar: Warning: fopen(latest.img): failed to open stream: No such file or directory in /home/rene/www/burow.dk/beta/index.php on line 702
<20> is that the line I am searching for?
<24> Tresnar: Warning: filesize(): Stat failed for latest.img (errno=2 - No such file or directory) in /home/rene/www/burow.dk/beta/index.php on line 703
<22> And those map to lines 3 and 4 in pastebin?
<24> yup
<22> My feeling is that the uploaded file is not being moved where you want it to [Possibly to your apache directory, or wherever else].
<22> For now, you might consider being more precise about where you're moving the file to: Actually specify /home/rene/www/burow.dk/beta/latest.img
<21> fixed it!
<24> ok
<24> made no difference
<22> Mmmm.
<22> And there is no file in /home/rene/www/burow.dk/beta/ ?
<24> nothing like latest.img
<22> A lot of the other thoughts I have (bad upload, permissions issue writing to the destination folder) really should have given more errors than what you're seeing. :/
<24> Warning: fread(): supplied argument is not a valid stream resource in /home/rene/www/burow.dk/beta/index.php on line 699
<24> i've edited a few lines
<22> You might also consider echo'ing out $_FILES['imagefile']['tmp_name'] and then doing an exit; right afterward (Inserting before Line #2)
<24> but that one comes too
<22> At that point, you could verify that the temp file at least exists, and is what you expect.
<22> My hope, is that I can narrow the break down to the line with " move_uploaded_file "
<24> how to you echo that out?
<24> echo"$_FILES['imagefile']['tmp_name']";
<24> ?
<22> the " are optional, but yeah.
<22> Hrm.
<22> Actually, I'm not sure whether PHP cleans up its tmp folder after executing.
<22> If it does cleanup, this is kinda pointless <sighs>
<24> it doesnt echo anything out
<22> Really.
<22> Do a print_r on $_FILES then
<22> And see if you have any files being recognized by PHP at all.
<22> print_r( $_FILES ); [ http://us3.php.net/print_r ] will show you everything inside the $_FILES array - Handy, in this case.
<24> how would that look? - whats the command?
<24> print_r $_FILES
<24> ?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

download sdhci fc5
gcc 3.3.6 4.1.1 wrong version gentoo
#centos
freebsd phpsysinfo requires the xml module for php to work
dd opening '/dev/hda': permission denied
MSWMExt totem plugin
#python
#suse
#physics
#perl



Home  |  disclaimer  |  contact  |  submit quotes