|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Question for xs0
Hey xs0, in one of your posts for the last contest (pegs), you mentioned using an ob_start callback function to output your results after the time limit is up.
Did you follow through with that in your submitted solution? Did it work? The reason I ask is that it doesn't seem to work on my server. I get the feeling it might be a windows-only problem as I've seen some references to that. I submitted a bug report for it, but obviously that won't help for this contest. Hopefully, you used it and it worked on Matt's system. If you can let me know, that would be great. Thanks, Andy |
|
#2
|
|||
|
|||
|
RE: Question for xs0
Yup, I used it and it seems to work, otherwise I guess I'd get disqualified...
Your bug number is 22401, right? I tried your code on Linux, and it works for me, so it does indeed seem that the problem lies in Apache2/Win SAPI... |
|
#3
|
|||
|
|||
|
RE: Question for xs0
ob_start() has been used by several other participants of previous contests.
It doesn't seem to help on this one :-( It seems to be the function to buffer the output (a callback way to extract the echo output, for a C++ coder, it's like creating an output stream). On Windows, I found a really annoying bug: Windows PHP version is not compiled in Debug mode, so we cannot set the memory limit (my program heavily uses memory for various caches). JC |
|
#4
|
|||
|
|||
|
RE: Question for xs0
Yep, 22401.
I plan on using that technique so I'll have to borrow a friend's server for a few minutes before I submit to make sure my code works properly. Thanks for the help! |
|
#5
|
|||
|
|||
|
RE: Question for xs0
Well, there's really no progress on the bug report. Oh well, they'll get to it eventually I'm sure.
In related news, though, this whole thing was the straw that broke the camel's back (as they say). I finally shelled out the $180 to get the last few parts I needed to get another machine up and running at home. It will allow me to move my webserver, etc, over to linux so I won't have to worry about this bug anymore. |
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > Question for xs0 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|