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



Comments:

<0> ill use print_r instead
<0> thanks, i appreciate it, i just didnt get what was going on :P
<1> why would phprunner not work on linux? it's php right?
<2> McFly: according to their site, it only runs in windows
<3> maybe it runs some external app or something
<1> try e107.org
<2> McFly: ok, thanks i'll look
<4> McFly: sometimes when your programming, you program to that specific environment (yes, even in PHP)
<1> Purchase a PHPRunner license
<1> PHPRunner license is $199.
<1> $199 !!
<2> McFly: yeah, i know, but this is for a client... they want a way to generate maintenance forms for tables
<1> ahh, I thought it was just a CMS...looks like something else
<5> McFly: We appreciate your enthusiasm, but enough shilling for e107, ok?
<6> Hello, I have made an auto-account-creation ftp script right, but someone can instantly gain root access simply putting any number of spaces as their address choice... eg. if they put in " " as their address, PHP would make their DIR "/var/www " "/var/www" being root.. how would I resolve this?
<7> Hello.



<7> Is there any php function which will resolve dns to ip address? So I just call that function with dns as parameter and it resolve to ip?
<5> [M4rk0]: php.net/gethostbyname
<8> hello
<8> i have a question about fopen_url_wrappers
<8> allow_url_fopen boolean
<8> is what the php manual says
<8> and i have it enabled in my php.ini
<9> thomazzz: so, what you are saying is that you have a form that any user can fill out, for which you do absolutely no validation of submitted data before doing work with it?
<10> hi there
<10> how do I know if exec() behaviour has changed from php3 to php4?
<5> dim: I can't think of any way in which it changed. Why do you ask?
<6> JAJMaster, I tried some validation, although its simply over come by placing a space or two...
<11> dim: It would probably be documented in the manual, and there would be stuff in ChangeLog -- But I don't think it changed.
<5> Thomazzz: That's pretty weak validation
<8> the problem is that when i do a: scandir(http://someurl.com); php returns an error like this: [function.scandir]: failed to open dir: not implemented in
<6> TML, Please teach me otherwise
<12> php.net/exec
<8> someurl.com is a apache server that is just a directory listing of a bunch of files
<10> TML: because old production server is doing fine (exec is used to invoke zip -j on archive and files)
<9> tml: hehe, go ahead :)
<5> Thomazzz: Well, personally, I'd never allow them to enter their own file system path
<11> Shadowhand: Perhaps you would want to call http://php.net/is_dir first.
<10> and on new server it won't run (Allowed memory size exhauster)
<12> dim, thats a general PHP issue
<5> dim: That doesn't have anything to do with exec().
<10> the configuration is more generous on the new server than on the old
<8> richardlynch, the url is a dir
<12> rather, the problem is not exec specific
<8> richardlynch, i'm very sure of it
<10> I though it was not
<5> dim: More than likely, the zip(1) on the two systems is different
<13> TML: Heh... that stats is just another proof of me talking too much ;)
<11> Shadowhand: Okay, then check if it's NOT a URL by using http://parse_url
<14> back
<6> TML, it is a dir they are creating though?
<10> TML: i'd have to figure this out
<13> Thomazzz: What do you mean "though"?
<5> Shadowhand: What does the error say?
<9> thomazzz: allowing a user to enter data which creates a folder inside your web tree, without seriously m***aging the data first is asking, no, BEGGING to get a red *** beatdown
<8> TML, [function.scandir]: failed to open dir: not implemented in
<10> not sure than zip 2.30 vs zip 2.31 is the key though
<5> Finish the sentence , Shadowhand
<5> "not implemented in"
<5> what?
<8> TML, the rest is the path to the executing script
<8> which i'm not going to paste :D
<5> Shadowhand: And after tha path to you script
<5> s/tha/the/
<8> TML, the function line, function stuff
<12> Shadowhand, PASTE IT DAMMIT
<15> lol
<12> dear god
<11> Shadowhand,TML,Davey: All it's saying is that scandir does not work on URLs.
<6> Would this work as a validation script? if ($subject == "") {
<8> Warning: scandir(http://myurl.com/files) [function.scandir]: failed to open dir: not implemented in /home/woodrow/public_html/compete/index.php on line 102
<12> richardlynch, *we* know that, Shadowhand is the one who can't wrap his brain around it
<6> That wouldn't work for spaces though would it.. :(
<5> Shadowhand: By this line of questioning I mean to say, stop ***uming you know what the problem is and actually READ the error message it's presenting to you. scandir() is not implemented for HTTP URLs.



<15> Thomazzz use trim($subject)
<8> TML, uh
<8> yes it is
<12> Shadowhand, no, its not
<8> Tip: You can use a URL as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename and Appendix M for a list of supported URL protocols.
<5> Shadowhand: Uh...no, it isn't.
<8> http://us2.php.net/manual/en/function.scandir.php
<8> uh, yes it is
<6> thanks
<5> Shadowhand: Supports stat() No
<6> !tell trim
<5> Shadowhand: Right in appendix M, as you've been instructed to read
<5> HTTP does not support stat(), so cannot support scandir() (which uses stat())
<11> Shadowhand: PHP simply CANNOT do a scandir on an HTTP URL. It just plain can't be done with HTTP protocol. It would probably work for FTP, and other stuff like WAIS, gopher, etc, ***uming PHP supported those in the first place.
<15> Thomazzz not "!tell trim" use www.php.net/trim
<5> Shadowhand: Try actually pulling your head out of your own *** and read what you're quoting, instead of ***uming you know what you're talking about.
<8> oh god
<8> thanks
<5> ...
<1> lol...he finally read it
<5> !+TML
<16> TML is always right. Do not argue. Nonono... I don't care what you think you know, just don't argue. Period.
<13> richardlynch: Well... Pollita said something about imprementing GOPHER in PHP... Not sure hoe many sites are still using that one, but...
<5> Wolfpaws: I still run Gopher
<6> xshad, how would you use it in validation?
<12> TML, thats just plain scary man
<11> Those were the only things other than FTP I could think of that made any sense... I'm old. I remember when gopher was neck-and-neck with HTTP as hot new thing.
<13> TML: you're exception :)
<6> xshad, if (trim($subject) == ?
<12> richardlynch, WebDAV should support it ;)
<11> Someday, when I'm bored (read: dead) I'll have the free time to play with WebDAV...
<15> Thomazzz you'd like to check if $subject == "" (removing spaces), so you would use if (trim($subject) == "") { /* do something cool */ }
<5> Davey: http://27.org/gopher-manifesto/
<6> Genious
<11> Thomazzz: Your homewhere is to go read this ENTIRE website: http://phpsec.org
<15> richardlynch I'd point him to php.net/manual (entire site) :)
<11> That's too big. phpsec is at least digestible, within a reasonable amount of time. Maybe not totally comprehensible and internalized, perhaps, but digestible.
<17> hmm this isnt working :(
<9> one should read every page, about every single function/process/feature on the PHP website before attempting much more than a "Hello World" app.
<11> JAJMaster: Nonsense. You've got no need to read crap about AOLServer, for example, if you have no intention of ever using it. And something arcane like YP? Even the semaphore stuff is pretty niche-use.
<14> also
<14> stuff like
<17> am i suid'ing my script wrong or something?
<13> !+enter
<16> Don't use the enter key as punctuation. Think in complete thoughts, then type.
<14> "propertery-server-used-by-nobody" extentions
<17> when i execute it, i get "Cannot create database for alias file /etc/listserv.aliases"
<18> hi, whats the right method to build a DB-PHP system, one connection per user to a DB, or i connect everytime that im going to do something inside the DB ?
<9> richardlynch: meh, it's good reading in any event. Not like it takes that long, and my statement is only valid if you already know how ot program in another language. php.net is not the place to "learn" how to program.
<11> ak_work: One connection per script.
<17> php is executing 'dosm.sh' via 'exec()'
<13> dosm? Death Of Some Machine?
<17> no :) 'do sendmail stuff' .. dosm
<13> scary
<18> richardlynch u mean by script, every .php file
<17> w/e. its not working tho :(
<15> !tell ak_work about u
<13> !+typing english
<16> ##PHP does not allow aolbonics (or leetspeak) such as "u for you, r for are, ic for i see -- etc" and typing like this will result in you being silenced; furthermore, inability to adapt may result in a ban.
<11> TML: Do you really believe that if gopher managed to take off, it wouldn't get commercialized and advertized, just like HTTP did? I still remember when the IMG tag was controversial. Imminent Death of the 'net was predicted.
<15> Wolfpaws I'm faster ;)
<19> serious business!
<11> ak_work: Yes. (Inlucding all the include files etc that get pulled in by the main PHP script.)
<15> here he comes... with his "serious business" thingie
<18> thanks richardlynch
<13> cythrawll: *blink*
<20> I am running into an odd bug and wondering if anyone has an idea.
<11> ak_work: Have a 'connect.inc' file OUTSIDE THE WEB TREE and include it at the top, just once.
<20> Running Linux 2.6.16.18.
<17> you could just rename 'connect.inc' to 'connect.php' :P
<13> yeah! revision 18 is da l33t!
<20> fopen with a url will not work on PHP 4.4.x (tested and confirmed against 4.4.0 and 4.4.2)


Name:

Comments:

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






Return to #php
or
Go to some related logs:

xgl acroread failure
bittorrent edunbuntu
mushrooomprince
gkrellem
SAS5iR slackware
ubuntu logitech dinova
#kde
smurftech
#linux
sudo oem



Home  |  disclaimer  |  contact  |  submit quotes