@# 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> AHA
<1> and i have no other line into my .htaccess
<0> damn. maybe not
<1> what could be wrong ?
<0> AHA
<0> woo
<2> Sp4rKy_: You Apache tells you PRECISELY what's wrong. Your configuration does not allow php_flag or php_value in .htaccess files.
<2> Sp4rKy_: Which isn't at all unusual for shared hosting
<1> yes
<1> but i've the same error with my local webserver
<1> where could i see if php_flag are allowed ?
<1> phpinfo() ?
<2> Sp4rKy_: No, it's an Apache setting, not a PHP setting.
<2> I don't know of any way to "query" Apache settings that way
<1> ok
<1> can i do the same thing with ob_start("gz_compress") ?



<3> you might look for things like AllowOverride in your httpd.conf
<3> but, if you can't set it on your hosting site, then it is pointless :)
<1> ok
<1> thx
<3> the super lame thing about the ob_ functions is they can't be nested. total disaster and suffering awaits people who use that deeply. and php's virtual function is fake, so you can't easily get around it by having page-parts cached up by having them in sub-scripts.
<1> i'll try to use ob_* function
<3> but if you're doing something simple, then the output buffering is good
<1> ok
<1> i'll try ...
<2> earth: What do you mean they can't be nested?
<1> the ob_gzhandler seems to do the same thing
<2> earth: I've nested ob_start() *very* deeply, as many as 16 buffers, with no problems.
<3> huh. well, I will have to revisit it. with php 4?
<2> Yes
<2> I only use 4
<4> better question is -- WHY would you want to nest it
<3> page caching
<3> i have a test case for the php5 dom appendChild space problem. I'll try a nested output buffer now
<2> earth: What's the "appendChild space problem"?
<3> the thing I came on here to ask about
<5> Can anybody here recommend me a good PHP5 host?
<3> DOMNode->appendChild blows away any pre or post spaces or line returns for the child being added. or it is happening at the DOMDocument->loadXML stage, hard to tell
<1> the ob_gzhandler seems to works
<1> http://www.port80software.com/tools/compresscheck.asp?url=http%3A//www.sos-sts.info
<2> Sp4rKy_: Why do you have so many garbage HTTP headers?
<2> X-Meta-Identifier-URL? X-Meta-Copyright? X-Meta-Robots?
<1> i don't know
<1> i haven't set them
<2> earth: That should be fine. Do you have a test case where it's invalid to do so?
<1> TML, where do you see that ?
<3> white space is not meaningless in xml.
<3> but, mainly it is ugly.
<3> I have humans that have to look at the output
<2> earth: It's meaningless in XML in some contexts.
<2> DOM isn't intended as a pretty printer
<3> heh
<2> There are other solutions for pretty printing a DOM tree
<6> can't you use tidy for XML?
<3> the workaround is to use a document fragment and appendXML instead of DOMDocument's loadXML
<2> earth: The question remains: Do you have a test case where it's discarding whitespace you think it shouldn't be?
<3> yeah
<2> Can we see it?
<3> 'invalid' i ***umed you meant invalid XML
<2> earth: Where it's invalid to discard consecutive whitespaces
<7> later
<3> should i use paste bin ? if you don't run php5, it won't run.
<2> I wouldn't rely on your "workaround" too heavily, either. It can (and probably will) change.
<2> earth: I have access to PHP5 for confirming bugs
<2> pastebin is fine
<6> TML: are you on the dev team for PHP?
<2> Yes
<3> http://pastebin.com/655166
<8> hi, could someone pls tell me how i can reload a form each time a different radioelement is selected. i'm having trouble with this...
<3> I'm new to PHP5's DOM. I am used to dom4j on the java side
<6> TML: i submitted a php5 bug and it kept getting marked as bogus and i kept reopening it because it's not bogus and now there's been no activity on it. what do you think i should do? i submitted a patch along with the bug
<2> dools: What's the bug number?
<2> _zz: That's not a PHP question. Try a javascript channel.
<9> i have a php page which is an html layout, wioth php scripts executed throughout it. for some reason on internet explorer, the more results printed out through a table, the more that whole table is pushed down toward bottom of the page
<9> anmyone know what that could be
<3> html / css cross platforming is hard.
<3> but not really a php issue :)



<9> i figured
<9> but it just happens whenever the php code is in ther
<6> TML: http://bugs.php.net/bug.php?id=36675&edit=1
<2> killer-instinct: Which means your PHP is spitting out invalid HTML. Make your HTML valid, and the problem should go away.
<6> TML: the bug report is quite long and protracted by now, sorry
<3> TML: in the example code I pasted, the second XML set has line breaks after the /event
<2> dools: Do you have ZE1 compat. mode turned on?
<6> TML: i turned it one after looking through that piece of code, which then created many more notices. the thing is that the bug report that i refer to says something like "we should at least return the same as in compatibility mode, what do you think?" (tony2001 to dimitry), which seems to be quite similar to what my patch does in that piece of code.
<2> dools: Your patch does absolutely the wrong thing, but that doesn't mean the bug is invalid.
<2> Which is probably what's causing the problem from Tony's end
<3> ok, I have a case for ob nesting problems.
<3> :]
<6> TML: yeah, i thought that the patch was probably wrong, but seeing as i was unable to provide a simple test case i thought i had better do something to the code which prevented the notice from occuring in order to help (hopefully) fix it. as i stated, this behaviour doesn't occur in 5.0.4... but yeah, i had absolutely no idea what that patch does
<3> but, I realize I should keep the bug reporting queue one deep :]
<3> anyway, TML, when you have time to look at the DOM issue, say my name, I'm heading to another window
<2> dools: What your patch does is make it so that PHP always behaves as though ZE1 compat mode were turned on
<6> TML: in that function yes. i wasn't even aware of what compatibility mode was until i read that other bug report
<6> but when i saw tony's comments about 'at least doing the same as when in compatibility mode' it made me think "hmmm maybe i should make it return as if it were in compatibility mode"
<10> I have a php script that caches external images locally for display on my site, now I want to add a verification to see if the original image changed, I though of using crc/md5, but apparently it can only be used on a local file, is there a simple way to do it? or should I rather use a HTTP client cl*** like Snoopy ?
<2> dools: It's the wrong thing to do
<6> TML: i should be able to do if($obj1 == $obj2) though right?
<2> dools: Depends on what $obj1 and $obj2 are.
<6> TML: objects :-)
<2> dools: I don't think they are.
<2> At least, not if you're getting the error you're reporting.
<6> TML: well, sometimes $obj1 is empty
<6> TML: i always initialise member variables in the constructor like $this->obj1 = '';
<6> TML: so yes, you're right, in that example i have if($this->obj1 == $obj2) and obj1 could be ''
<2> dools: The error you're getting occurs in convert_to_long_base(), which means one or the other of them is an integer
<11> does anyone played with apache_hooks in PHP ?
<2> ymir: apache_hooks?
<2> You mean the apache module?
<11> no, i mean phpRequire phpPostReadHandler etc...
<11> with theese you can register handlers for any of the apache request api hooks.
<2> No, I haven't played with those at all
<11> i`m curious about some benchmarks :)
<12> the PHP manual says that you can put a function declaration inside another function, but is there anyway to do that and still be able to call the outside function more than once?
<12> (it tries to redeclare the function)
<13> function_exists()
<12> oh duh thanks
<13> Hehe, np :)
<2> dranger: I'm curious why someone would ever put a function declaration inside another function
<14> Is it possible to have suPHP use a symlink owner instead of the target's owner?
<2> luke-jr_: Not many suPHP users here. You'll probably have better luck in a suPHP forum.
<12> TML: an attempt to organize the source better
<12> bad habit from perl i guess
<2> Wow...ajt is back in as DPL
<14> TML: not aware of any
<15> sure
<6> TML: so what do you think? am i going to have to rewrite every object comparison to use is_object() first?
<2> dools: No, the real bug here is in cast_object(). You're only seeing a symptom of the real issue.
<2> dools: But without a test case, it's going to be very difficult to fix, because I cannot reproduce what you're seeing.
<8> how do i compare a decimal number to a normal int? i want to check if one is less than the other but it seems as though i can't simply do if(decimal < int)...
<2> _zz: What makes you say that?
<6> TML: yeah, i can't reproduce it either... but i'll play around with cast_object() and see what i can do
<6> TML: thanks
<2> dools: cast_object() is in the Zend engine
<8> TML: i don't seem to be getting the correct result :)
<6> TML: it's in the Zend folder in php-src right?
<16> hey there
<8> TML: but now that u mention it, the bugs elsewhere i think
<16> I was curious is there is an easy way to get the file extension of a file in $_FILES ??
<2> !tell _zz about u
<2> jirwin: php.net/pathinfo
<2> dools: Yes, but it's not exactly something you should take on lightly. There's a lot going on in there. A good example is your patch...which fixes nothing, it just hides the problem.
<16> so could I do pathinfo($_FILES['pic']['name']) ??
<15> what's the bug?
<6> TML: yeah, well hiding at least means i can still have my error reporting up hi on my dev server :-)
<2> jirwin: Yes.
<15> jirwin: no. <2> jirwin: php.net/pathinfo
<2> Ciaran: He has an un-reproducable case where it fails to convert an object to an int
<2> Ciaran: He used pathinfo
<2> pathinfo($_FILES['pic']['name'])
<15> he needs ['extension']


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#oe
Xiph_path_ao gentoo
#perl
F5D7050 troubleshooting
ipw2200: Attempt to
#perl
lexmark 1185 dapper
#physics
Badness in interruptible_sleep_on_timeout
#web



Home  |  disclaimer  |  contact  |  submit quotes