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



Comments:

<0> KimmoA: Are you executing a script?
<1> Stormchaser: This is PHP CLI, yes...
<2> your code turns the error reporting back on?
<3> KimmoA: php -r 'echo ini_get( "display_errors" );'
<4> Oh.. was wondering why I wasn't seeing what Stormchaser is typing
<4> they're in my ignore list for some reason
<0> KimmoA: I don't know, what 'yes' is... Are you running a script?
<1> Stormchaser: Of course... I don't know what to answer on that.
<1> kuja: Returns nothing.
<5> KimmoA: it ****s the system up with php 5.1 only or you mean with any php versions?
<1> Akuma_: Only if you force it to install on PHP 5.1.
<0> KimmoA: Then your script has internally display_errors on
<3> KimmoA: php -r 'var_dump( ini_get( "display_errors" ) );'
<1> string(0) ""
<5> thanks
<3> Ouch



<1> "display_errors = Off" <-- Taken directly from /usr/local/etc/php.ini, which php -i mentions as the PHP config file.
<3> KimmoA: sudo updatedb; locate php.ini
<6> php -r 'ini_set("display_errors", false); var_dump( ini_get( "display_errors" ) );'
<0> KimmoA: I repeat: You have display_errors set to on in your script
<1> Stormchaser: No... it's my own script!
<7> This is apparently platform dependent, but I'm asking anyway. I'm sending X-Powered-By HTTP header from my scripts, and it overrides the one apache sends. But it does not work in MSIIS. Any idea to hide it ?
<1> itrebal: string(0) ""
<0> KimmoA: Pastebin the script
<3> It sure sounds like display_errors is being set elsewhere
<1> But where? :|
<0> KimmoA: If php -r 'echo $nothing;' returns nothing without errors, then you have set that in your script.
<2> sure that's the only copy of display_errors in the ini file?
<1> php -r 'echo $nothing;'
<1> PHP Notice: Undefined variable: nothing in Command line code on line 1
<1> Xyphoid: Yeah.
<8> is it possible to download .php files?
<0> yes
<8> Stormchaser, how?
<8> i used wget..but it downloads rendered html page
<8> not the source code itself
<4> glen_quagmire: take the AddType application/x-httpd-php out of your httpd.conf
<0> glen_quagmire: By inapropriate webserver setup.
<4> If you want the source code, add "AddType application/x-httpd-phps .phps" to httpd.conf
<8> Jabberwock, i worked on a school server..and graduated so my account is disabled
<4> and then link to the php file in the folder
<8> i didn't back up!!!
<4> ln -sf blah.php blah.phps
<4> Then visit blah.phps
<4> and you'll see the code, highlighted
<0> glen_quagmire: We can't help you with that... Talk to your admin.
<9> Xyphoid have you see the notice
<10> does PHP 5 support interfaces?
<6> glen_quagmire: most admins at Universitys & colleges, and some highschools are usually rather agreeable
<9> can you see yourself please ?
<6> ee99ee: wuddya mean by 'interfaces' ?
<11> problem: i want to style my (well, actually not mine, it's hosted elsewhere) Apache/1.3.33 dir-listing (you know, the one seen when there's no index file in a dir and you've got "Options +Indexes" indexes in your .htaccess) at http://www.domain.com/files/. right now i'm using this [ http://pastebin.com/532731 ] solution but the files are not listed/sorted according to their names. also, when i click a link to a sub-directory [ http://www.do
<8> i dont even know who's the admin
<0> ...
<10> itrebal: a definition of a part of a cl*** that any cl*** which impliments it must implimented what is defined within the interface
<6> mikae1: that uses alot of work... i've got a script you can borrow - lemme find it
<10> I can't find anything about it, but I thought I saw something one time
<10> surely it does
<0> glen_quagmire: Do you know the name of your school?
<8> oh i remeber
<6> Stormchaser: i'd certaintly hope so :D
<4> ee99ee: http://us3.php.net/manual/en/function.interface-exists.php
<8> qc.edu
<0> itrebal: :)
<10> Jabberwock: thanks
<10> ah ha, here's an even better way: http://us3.php.net/manual/en/language.oop5.interfaces.php
<11> itrebal: thanks alot!
<11> itrebal: *standing by*
<6> mikae1: this is *very* basic, but here: http://repository.itrebal.com/dirlist.php and you will have to modify it
<12> Is there a way to make a switch dynamic in the sense that inside a loop the switch could get bigger with each iteration?
<6> dlb: only with eval, IIRC, but its not worthit
<3> Make an array and use in_array()
<10> dib: sounds like a design flaw, really.... there's prob a better way to do whatever your doing
<11> itrebal: thanks alot... i dont' think there'll be much modifications to the php. yes, i know. i should really learn php... but i rarely do php stuff like this and it feels a little untempting just to accomplish a simple listing.
<1> I give up. There is no error, yet there is...
<3> Make an array and use in_array() <-- to you, dlb
<6> mikae1: for instance, it will show the dirlisting even if theres an index.php



<4> dlb: sounds like for what you need a switch isn't the best choice
<12> um ill explain a bit more then - i am using to arrays to achive this ->
<12> /s/to/2
<13> O_O
<6> dlb: did you just switch 'to' for aolbonics? or was it the 1st two, which says you are using two arrays
<6> Dangermouse: O_O?
<14> Can I have {$var} escaping work on single-quoted strings, just like it works in double-quoted string? E.g. print 'Value of $var is {$var}';
<13> itrebal: pair of eyes, :P
<6> caramb1: no, you do print 'Value of $var is '.$var.' woot.';
<3> caramb1: No, why would you need that?
<12> um i have a text list say and i want to figure out the duplicates and then give each word how many times it appeared. at present im opening up the text file each word gets looked at then another loop in an other array checks to see if it exists if so it adds 1 to the counter if it doesnt then it creates a new entry in the array.
<4> with an inverted unibrow
<13> lol
<3> caramb1: Interpolation won't work, that is.
<6> Jabberwock: hehe
<0> C:= 3 <-- a ghost :)
<4> Looks like a retarded squid
<6> Stormchaser: wtf? how?
<4> with testicles
<0> lol
<6> hehe
<13> lol
<11> itrebal: Fatal error: Call to undefined function: scandir() in ... on line 42
<11> itrebal: hmm...
<6> mikae1: you're using php4, eh?
<0> which PHP?
<14> itrebal: kuja: Ok, I wondered just because I think it would be a little more neat than 'Value of $var is '.$var.' woot.';
<0> caramb1: scandir() is PHP5-only
<11> itrebal: i'm afraid
<3> mikae1: Use glob()
<11> kuja: where? :)
<6> mikae1: look up the function, learn how to use it, and replace scandir with glob
<4> There's always readdir()
<11> hmm. i'm sorry. as i said, i zero php knowledge... don't know where to start and i just need something simple.
<0> mazzy!
<11> i'm not trying to be arrogant. it just feels a little untempting to learn php just to accomplish a simple listing. this is the first time it'd actually be good if i had known a little php
<6> mikae1: in that case, it will become usefull later on - learn it
<3> mikae1: I don't mind if I'm rude to say this, but we aren't exactly here to (re)write any of your code or explain how things work (without the individual having the slighest clue as to what they're doing).
<3> So honestly, in my opinion the way for *you* to go is to upgrade your PHP to PHP5.
<3> If this person who wrote the code is using scandir() then he is probably aware that the software was meant to be used on PHP5 and thus probably added much more PHP5-specifics to it.
<3> So your solution, well *easiest* is to upgrade your PHP.
<15> hi, how can i create a daemon php script that stays running in memory, without using an infinite loop?
<0> edobefe: no
<3> You cannot.
<4> How do you think a daemon runs?
<4> http://www.phpcl***es.org/browse/file/8958.html
<16> pitchfork in hand so she doesn't step on her tail
<4> lol
<4> cute
<6> Jabberwock: wtf?
<4> ?
<17> you forgot "mate"
<4> ?
<4> I didn't write it just googled and found it.
<6> i know
<4> Still can't have a daemon run indefinitely without an infinite loop
<4> ^ edobefe
<18> hello
<18> i've got a big pb with
<4> a what?
<4> peanut butter?
<19> yum, I love peanut butter. and you say you have a big one?
<4> penile bump.
<19> I'm not sure that came out right...
<4> It didn't.
<20> thats sick
<0> Wee... Fun... That's grabbed from pcntl_fork example :P
<4> Stormchaser: lol
<6> http://repository.itrebal.com/table_cls/table.cls.php <-- was bored
<15> Jabberwock: so, its an infinite loop the way to do it, with sleep()'s on each iteration and a cron job to check if its alive?
<4> Sleep? For what?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

ppdev0: claim the port first
shell_exec et accents
perllinux kernel in perl
#css
invalid module format gentoo loop.ko
#linux
n00b talking
#asm
#lisp
#css



Home  |  disclaimer  |  contact  |  submit quotes