| |
| |
| |
|
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> i use it now. DB and HTML_AJAX <1> but that depents on my webspace provider ... so they need the peer:irc packages <0> thank you pear developers :) <2> I don't really like PEAR. I mostly write my own stuff or use the PHP pre funcs. <3> pear is just a bunch of php cl***es, basically, you can install yourself <4> peer:irc?!? <0> PEAR is simple,faster and easy.. <5> I think I said it before, but I'll say it again... Yeay for code reuse <3> heh <0> Wolfpaws: perhaps pear::socket ? <3> pear.php.net has a search, use it :) <0> irc protocol is realy easy, NICKSERV REGISTER p*** email :) <4> ack <5> syn
<0> PRIVMSG #php: foo <6> that's hardly yhe irc protocol <5> syn/ack <5> lol <0> etc. <4> mine is just fsockopen()... No external libs and other junk <2> me too <6> ditto <0> fsockopen and fputs and fread :) <4> *nod* <2> fclose :P <7> guys im still stuck, i need to take the "$user_id/$filename" part of this code and add it to a command : btmaketorrent.py mytrackerip mypath/to/file/$user_id/$filename <0> L1nX: :PP <7> http://pastebin.com/770300 <7> im crap <7> meh <8> hello #php <6> {$user_id}/{$filename} <4> L1nX|afk: Why fclose? <7> McFly i dont know how to run the command using php <0> Wolfpaws: you may want to restart your irc bot.. <9> hi :) <10> zzzmac www.php.net/system <0> Wolfpaws: i'ts required when restarting and closing :) <4> ErenTurkay: I had no problems with that <9> i'm trying to an script which allows you to display pages only if their ip's are listed in a txt file <9> it seems simple, but i just wanted to know where i should start <9> *trying to write <4> briantumor: Yes, and? <7> system('/sw/etc/btmaketrrent.py mytrackerip mypath/to/file/$user_id/$filename') <9> *where should i start? <7> like that? <9> yes, something like that <5> Wolfpaws: from: http://us3.php.net/manual/en/function.fclose.php : Generally, it's always a good idea to close a file when you're done with it. It's very easy for something to go wrong and corrupt a file that hasn't been closed properly. If you're concerned about efficiency, the overhead is negligible. <9> .py? <7> python <0> ohh and you must remind it with coding php bot, ping/pong. you must catch the ping number and you must put it to server not to diseconnect from server.. <4> Python \o/ <9> i know <9> why would it require python? <4> ... <7> its to try and take an uploaded file and make it into a torrent <9> oh heh <7> i have to run the command with the extension <9> nvm <7> im not very good at this php malarky <7> lol i paint not code <4> bhundven: Yes, and? You're not dealing with a file, but via stream... And that is handled by PHP itself. <7> system('/sw/etc/btmaketrrent.py mytrackerip mypath/to/file/$user_id/$filename') <7> so can anyone see any faults in this <4> oh, that is so wrong <5> just advise. <4> !+repeat <11> If nobody answers your question, don't just repeat it; we all heard you the first time. more likely, nobody knows the answer (/msg php-bot ask), or you need to provide more information (/msg php-bot sicco)) <7> sorry i do want to learn im just confused by the many ways to do things <7> ok, fair point <3> know ' cs " is important <3> er, a " vs ' <3> php.net/types.string
<6> using ' will not expand your $vars <4> *nod* <4> um... "expand" <4> ? <9> ah wait a minute... i don't need to write any script, it can already be handled by the .htaccess file :-P <6> expand....for lack of a better term <4> "translate" :P <6> yeah, for that lack of coming up with the term translate :) <4> heh <3> the manual uses "expanded" :) <12> ye it makes sense <7> so if i put system('/my/path/to/terminal/command') at the end of something, will it be run? <3> it could <7> sorry thats my problem i dont know if im running commands or not, im so new to this <3> end of something? <7> end of some other script <7> i dont know if im running commnds or defining things <7> nvm im being dumb <13> myu <13> yay! <13> hugs! <14> aww <3> yes! <15> Hello. I just want to confirm a language question. <4> false. <15> (is_null($x)) === ($x == NULL) === (!isset($x)) <15> Does that hold true? <6> I'd say no <16> I'd say try. <6> but it's a guess :) <15> Well, is_null($x) === !isset($x) is true according to http://www.php.net/manual/en/types.comparisons.php <15> Is is_null() <=> ==NULL? <4> yes <4> is_null ==== null <15> OK, then the statement should hold true. That's what I thought. <15> Which comparison is fastest? isset()? <13> $foo === NULL is faster than is_null($foo) <13> !isset($foo) is also effective <13> But it's all quibbling over nanoseconds <15> OK. I think I recall hearing that isset() is faster than ===NULL, but I'm not certain. <15> But nanoseconds are fun! :-) <13> !isset() is maginally quicker <15> ok <13> Stormchaser! <13> Make your bot shut the hell up <13> before I kick it <4> Pollita: php-bot reacted on *everything* that started with ! <4> erf <17> I'm trying to compile PHP with imap support and I get "configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation." I have imap-devel (/usr/include/imap) and imap-lib (provides libc-client.so) here is a part of my config.log: http://pastebin.com/770344 <13> Wolfpaws: But not in msg responding to a public msg <4> Pollita: I'll just shut him up... I'll kill messages with invalid queries <13> msg response to a msg'd command is one thing <4> of course... but php-bot responded to !factoid publiushed in public as well <4> !quit <4> !slkdjf <11> exceptions.ValueError: empty range for randrange() (0,0, 0) <13> phpbot responded publicly to public commands <4> oops <4> !quit <18> hi all... trying to get php working with PEAR. I did do --with-pear, and I have lib/php/PEAR directory, but no DB.php anywhere <13> misty: pear install DB <18> have I done something wrong? everything about PEAR talks about DB.php <18> ohhh <13> DB is an individual package within the PEAR repository <18> now I feel stupid :) <18> Didn't receive 200 OK from remote server. (HTTP/1.0 403 Forbidden) <18> that's different <13> erm? <13> try lowercase <18> I get that from pear
Return to
#php or Go to some related
logs:
/etc/mail/sendmail.cf: line 279: ecdemo debian etch genrsa #suse #perl nvidia drivers no swedish keyboard ubuntu BLKROGET failed: Inappropriate ioctl for device hdparm #css irssi userlist howto dvdcss suse
|
|