| |
| |
| |
|
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
Comments:
<0> Pollita: gd is installed, but still error .. any other suggestion ? <1> Dr-Linux: is it installed for apache module or CLI? <2> it looks like if you require_once the same file inside the scope of multiple different functions, the variables defined in the required file only get into the first function scope <3> can i redirect the ouput of a print_r to a log? <2> hax: use the output buffering functions <2> hax: ob_start()et al <4> no dont use output buffering. <5> hax, print_r($var, true) will return the output of print_r <4> hax: use var_export() <3> mfonda: oh, ok, awesome <2> heh, well there you go, three ways to skin that cat <4> mfonda: I think you're thinking of var_export... <0> Stormchaser: i'm not sure about apache module but i compile it and i edit in php.ini and php -m output shows gd <0> Stormchaser: do i need in httpd.conf as well? <5> AcidReign, no, I am thinking of print_r <0> JpGraph Error This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)
<4> mfonda: ok, well I'm trying to double check the manual, but its not responding right now :-| <4> ah yes, there it is, added in 4.3 <1> Dr-Linux: do not repeat anymore. <0> Stormchaser: ok <6> Has anyone here used PHPUnit? I'm not looking for support for it, just some feedback if it's any good, or if there are any caveats. <7> gah just wrote an error handler and then found out about xdebug :-/ <8> heh <7> well i knew about xdebug before but i'd forgotten about it <7> still it might not email and log errors which my handler does <7> need to find out how to produce dumps to feed into kcachegrind though <7> enygma: it was your article that reminded me about it :) <8> :D <9> Does php have a problem reading new php.ini settings. I get an error message no matter how much I change the memory setting <10> professorchen: have you restarted the webserver? <4> professorchen: did you restart apache for every change? <0> php module and php library is different things? <9> it is a cli, not an apache script. Does that matter? <6> professorchen: Yes, your cli version may read a different php.ini. Mine does (SuSE 10). Call phpinfo() from your cli version to double check. <4> professorchen: php -i | less <5> php -i | grep 'ini' :) <11> is it enough code for compressed output: ob_start("ob_gzhandler"); <12> lng: you shouldn't do that at the PHP level <12> lng: use mod_gzip for apache then it's transparent <11> why not? <12> lng: because then you have to worry about doing it in everything that outputs something <11> if i just include that line in all my pages? <12> not to mention, you then have to worry about whether or not apache is already doing it <9> there was another php.ini in /etc/ and that is where the script was reading its settings from. I thought it used the combined in settings <9> doing php -i | less - gave me this error - Allowed memory size of 32 bytes exhausted (tried to allocate 9 bytes) - things are getting really weird <11> caffinated, mod_gzip might not be isnstalled on some hosts <12> lng: so? <2> professorchen: sounds like you forgot to put M <11> caffinated, my example should be used <2> professorchen: edit php.ini and change it to 32 megs instead of 32 bytes <12> lng: honestly, I'd rather have uncompressed output, than run the risk of double compressing output. <12> lng: no, your example should not be used. <13> I need some help.. I'm p***ing html+js+php plaintext code through a php echo statement to a js function (this be for ajax). Its been working fine for a while, untill I try to p*** javascript code through as well - it doesnt load the javascript code at all. <12> compression of output should occur at the webserver level. <11> caffinated, does it speed up page load? <14> is this possible: $match[0] = 'a'; $match[1] = 'b'; if (strstr('aaaa',$match)) { foo; } <12> lng: no, it speeds up transfer of the page. <11> caffinated, that's what i meant <12> however, that doesn't change the fact that using php to do it is a bad idea. unless you've already gone a step further in your bad idea and implemented your webserver in php <11> caffinated, "no, your example should not be used" explain pls <12> lng: i already have, several times. <11> double compression? <15> spuds, yes <15> spuds, is match an array or a string ? <11> is there any way to find out what apache modules are installed w/o contacting admin? <14> colder, $match is a array <15> its its a string -> yes, if its an array -> RTFM http://fr.php.net/strstr strstr only accepts strings <14> colder, it doesn't seem to work. Is there a function that will ? <14> which FM should I read on matching arrays ? <15> use a foreach and a strpos <15> do you want it to return true if one of them is matche, or if everyone is ? <15> matched* <12> lng: probably. check http://php.net/apache - however, you're ***uming that the application will always run on apache, which is also a bad idea. <14> colder, one or more matches. <11> caffinated, do you accomodate your apps to other httpds? <11> apache_get_modules()
<11> caffinated <12> lng: a well written app shouldn't care what webserver it's using <11> caffinated, agree <16> can i ask a dumb question? <12> anyhow, it's php->httpd->client - the logical place for compression is in the layer before the client. <17> lng: HTTP compression should be done by the httpd. All the PHP ways of doing it are kludges, and most of them are buggy kludges. <17> TANKER_: You just did. <16> hahahahah <11> TML, thanx <12> s/x/ks/ <11> caffinated, thanx to you too! <17> caffinated: Hey, you can have the thanks. I want the Than X. <16> well like when i ./configure ---XXXXXXXXXXXX stuff is there a file or a way i can edit it in there? <17> TANKER_: What do you mean? <12> TML: heh <18> let see i have <18> style=\"width: 100%\">"; <18> if I wish to add a font property to that <18> style:\font: arial 10x\"width:100%\">" <18> something like that <17> d3vlabs: #web for HTML and CSS questions. <18> TML: yeah but i love you guys more <1> ... <16> like can i do something like ./configure --include-myphp.conf and put all the configure lines into that file? <17> d3vlabs: Don't mistake that for a request. <5> TANKER_, if you want to change, you have to recompile with what you want to change it to <4> d3vlabs: you wont when you get kicked <11> TML, did you mean mod_gzip? <18> AcidReign: i still will <1> ...and #void for everything else... Just for you. <17> TANKER_: No, but phpinfo() always shows you what options the running PHP was compiled with. <4> Stormchaser: is that something like #shell ? :-) <19> d3vlabs the feeling is not mutual <20> Hi everyone <16> i know but im a noob and i want an easy way to recompile <1> AcidReign: ;) <17> lng: If you happen to be using Apache, and you happen to choose mod_gzip, sure. Apache isn't the only HTTPD, and mod_gzip isn't the only HTTP compression module. <17> TANKER_: phpinfo() <20> I'm trying to install libpdf and when I do pear install libpdf it complains about phpize not found <5> TANKER_, php -i | grep 'configure' ... this will say, what your current is, change it as you wish when you recompile <20> I've been looking around and it should be included in php cli, which I have installed <1> KoMpLoT: Have you installed php-devel package? <5> TANKER_, or write it down, copy+paste, etc... <20> Stormchaser, mmm, will check <11> TML, it's hard tomake it compattable then <16> can i just C&P with the ' ' on everything? <5> yes <17> lng: I don't understand what you mean. <1> KoMpLoT: Well.. phpize has nothing to do with CLI, but it does have to do with devel part of PHP., so... :) <21> cya <11> TML: i meant that it's hard to make portable apps <20> Stormchaser, I'm installing the dev tools right now ;) :) thanks!! <1> np <17> lng: Your app shouldn't be aware of HTTP compression or lack thereof. <17> lng: You let the *HTTPD* handle that. <11> TML, right... <11> TML, and one can just ask for it his hoster provider? <17> lng: I don't understand what you mean. <12> lng: i'm starting to think you have a nice solid chunk of granite between your ears. <11> caffinated, :) <11> caffinated, thank you <1> lng: That's not a compliment <11> Stormchaser, i know <14> can I break out of a foreach() loop with break;? <17> spuds: Hmm...I wonder how you could find out? <2> I'm kinda stuck now because require_once doesn't re-import variables if you call it again in a new scope. I have a library that needs to include a configuration file that has a dynamically constructed name. Because the name is dynamically constructed, I wanted to require_once it in each function in the library that needed it, p***ing the name in. The "configuration file" also has some functions in it, so I can't just use require() instead. I th <2> ink I've coded myself into a corner. <1> TML: By rip[ping the computer appart? <17> Stormchaser: What's with you today? Are you drunk? <17> Or maybe have a swollen finger? <1> TML: No idea... Certanly not drunk... Could be everything else, tho :) <20> I'm getting this error at installing pdflib (pear install pdflib): <11> TML, we do not have control of apche modules on shared hosting environments...
Return to
#php or Go to some related
logs:
wwallace kanotix
#lisp #perl md5sum encript #linux swapElementText kiosktool +kde +menue user-defined ObjectClass has inappropriate SUPerior: inetOrgPerson update S3G Unichrome SUSE 10 -j nfqueue queue-num
|
|