| |
| |
| |
|
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> Fusion5: Most everything under svn needdddds to be readable at least, if not writeable by the apache user <1> hello, anyone know what could be the reason of php ifnoring max_executin_time, I have set it to 40sec and after that time script still runs? <2> woobles, i understand, it seems to be working now, thanks <3> maybe it's max_execution_time , crashev_ ? <3> crashev_: work with error_reporting(E_ALL); if anything <0> crashev_: Where are you putting the max_execution_time ? <1> Drakas: little mistake, its written properly in config file <3> crashev_: did you restart the server? <1> wobbles: php.ini, phpinfo() also reports that it is set to 40 <1> Drakas: Im using suphp, and it doesnt work if I run it from shell or from webserver <1> its not enforced <3> crashev_: does it actually *run*, how do you know if it's running? <4> what is suphp ? <3> crashev_: i guess that there are two config. fies for php-cli and php-cgi :] <1> its a loop while () { echo "Second: $i\n"; $i++ } <3> crashev_: while(true)
<1> Drakas: as I said,Im sure Im using right config file, phpinfo() reports everything like it should be <1> Drakas: detail <3> crashev_: so explain again please, the script executes more than 40 sec.s when through CLI /shell? <1> myabe safe_mode affects it somehow? <1> Drakas: yep, while through shell and webserver as well <1> I checked both <3> hm <3> so what does it do, just keep on outputting? <1> yes thats right <3> 40 is in seconds if anything ;] <0> crashev_: You understand that the 40 seconds is not real time? http://us2.php.net/manual/da/features.file-upload.common-pitfalls.php <3> :] <5> hmmm.. Should things like file_get_contents take all my CPU in system time while it waits for a laggy server? <5> I ***ume it's polling like crazy, can I make that slower? <1> ahh I see <1> any way to make php respect 40seconds no matter what the script is doing? <6> i hope its using select(2) <5> my CPU temperature suggests otherwise:) <0> crashev_: Not via php afaik <6> thats evil then =) <5> indeed. <6> top suggests its php causing all the load? <5> just shows apaches using everything <6> mhm <5> I thought before it was a bug, which is still posible. <5> because it seemed to keep doing so for hours <1> will try to work with signals, maybe function.pcntl-alarm.html will help me <5> But apparently not everything is due to the script run limit <5> which apparently includes file reading <6> any log entries? or you might strace it.. <5> strace shows them waiting on a futex <5> I ***ume mmaped reads or something <4> scarfboy, how many time you use include "otherfile.php"; <5> the script I call calls a utility .php script <5> Why? <4> speak in php-language, i dont understand what you talking about <3> o_O <5> Excuuuse me for knowing some C filehandle stuff:) <1> wobbles: pcntl_alarm can du such tricks :) <7> hi <7> can i do multithreading in php? <3> damike: afaik, no <0> crashev_: OK - you have a solution :-) and you are ahead of me! <7> Drakas: thats bad :( i have to some stuff if the user does some action - and the site load time is too long .. <5> But Ox41464b, it seems to not so much a problem inside php script as a problem caused by php implentation <3> damike: do you mean background processing? <3> damike: you can execute a backgroujnd process to run in *nix easily <7> Drakas: yes - sending info mails <3> allright :] <3> that's not a problem <4> scarfboy, while (true) {} /* what do you think will happening */ <4> what will happening to your cpu load ? <7> Drakas: well i dont have shell access <5> It's using crazy amounts of CPU, much of it in system time, while all it should do is wait for servers to respond with ~30KB of data after about a a minute <5> Ox41464b, how is that even relevant? <5> I'm not a complete moron, you know... <3> damike: the php process should be able to call any other osftware <7> Drakas: ok i try <8> guys can someone help me with this. im trying to make the default of this select list dependant on what it retrieves <8> http://www.phpriot.com/2986 <3> damike: exec('/usr/bin/php myscript.php somehandle &');
<3> damike: you'll mneed to manual it <7> Drakas: ohh - i try it thx <3> my mailing list has 1200 emails :D <3> takes about 5 minutes to send out :)) <3> or more <9> can anyone help me find out what kind of SQL queries one may construct from POST/GET variables? I am creating a PHP cl*** called BuildQuery tha parses these vars and creates the SQL query. So far I cater for ORDER BY changes (?orderby=field_name), ASC, DESC (?qorder=(ASC|DESC), changing order of displayed results). What other possible common SQL queries might one construct? <5> I don't get why it's using so much system time waiting for a HTTP reply, though. That's why I figured PHP ws making the kernel do a polling select() at a crazy interval <6> scarfboy: this is weird... so apache load is because of php? what if you disable php and restart apache? <5> well, it only happens when I query a PHP script <0> eleftherios: ***umig you have simple things like select, where, and maybe joins? <5> mostly while <6> ah ok <5> possibly after, but I could be mistaken there. <8> anyone??? <6> Petre: default? you mean like selected="selected" ? <8> yes <9> wobbles, yes, for edit & delete operations <5> I think that may just be a lingering unterminated php script, though <6> Petre: i use templates for this usually <10> hi, what's the function again for knowing what function did called it? <5> ...which sort of invalidates using php for this at all. ****. <8> what do you mean by templates <11> if a external command output a certain file type, I could buffer that command and output the buffer elsewhere ? <6> scarfboy: try shutting everything down and start from a newly instnaciated apache <5> I did that several times. It'll be allright until I start querying the script again <5> and it's mostly while, so it seems to be inefficient handling of http gets <5> linux2: If it's broken, er, do something, yes, something, that's it! <5> Wasn't that windows? <5> heh <5> er, damn username completion <6> heh <5> This won't be the production environment. Maybe it'll behave better there? <6> uh, this is written in the stars. you'll have to test it =) <12> Notice: Undefined variable: login in /home/udjamaflip/www/udjamaflip.com/public_html/2/admin.php on line 3 <- any idea why i'm getting this error when $login is defined inside an incluce(); on line 2? <13> maybe the file isn't getting included? <12> it definately is, as all the html content from it is included <13> humh <13> is it defined in a sub function? <12> hmmm i may have been a tad idiotic <12> :< <12> yeh i have \o/ <12> win <0> No </php in the included file? <0> er <?php <12> was an early version of the include without the php :) <12> i thought i had uploaded but obviously not <13> lol :) <14> how can I format a number as 1= 01 8 = 08 <14> etc. <0> number_format? printf? <15> http://www.php.net/decoct <12> heh <0> krisp: Dunno how you will handle etc tho <14> hmmmm <12> wen i did it i used if (strlen($num) < 2) { $num = '0'. $num; } <14> need printf I think <14> Andy-- that's looking the best way <12> oh, i doubt it is though :> <0> Me too <0> Which is probably why the php guys gave us number_format, printf <12> idd <12> my way isnt exactly efficient :) <11> any help on this error after an exec ? Unable to fork [java -jar D:\batik-rasterizer.jar c:\blah.svg -m application/pdf -d c:\blah.pdf] ? <10> does anyone know if you can put an object in a $_GET ? <13> Aap: serialized... but I'm not sure that would be recommended :) <13> don't forget that $_GET is obtained from the url <11> $_SESSION["id"][$gid] = something <11> a sort of session array <16> Aap: yes, you can <16> Aap: not a good idea, better to store in a session <10> okay thx <16> http://www.phpro.org/tutorials/Introduction-to-PHP-Sessions.html#8 <11> Unable to fork [java -jar D:\batik-rasterizer.jar c:\blah.svg -m application/pdf -d c:\blah.pdf] ? after running with exec($cmd); the following <10> i know sessions, but i have to put it in a link
Return to
#php or Go to some related
logs:
fedora 5 networkmanager wireless problems hidden ssid unrar sionide grub append:noacpi xchat nuked #php yum groupinstall X Window System GNOME Desktop Environment servercd gentoo planeshift howto #debian XEN UBUNTU 64 #web
|
|