Check the ini variable max_input_time as well. There is a bug that can cause certain versions to use that instead of max_execution_time for script execution:
http://bugs.php.net/37306
Search found 41 matches
- Thu Apr 01, 2010 11:10 am
- Forum: PHP - Theory and Design
- Topic: Problem with long running script
- Replies: 4
- Views: 1338
- Tue Mar 30, 2010 3:37 am
- Forum: PHP - Theory and Design
- Topic: PHP - Atomicity
- Replies: 3
- Views: 2354
Re: PHP - Atomicity
I'm not sure what you are getting at, a) is basically right. This is why "double posting" is a relatively common term on forums. Some forum software can detect double posting by checking the contents of the previous message the user posted and seeing if it matches identically, but most do ...
- Tue Mar 23, 2010 6:05 pm
- Forum: Coding Critique
- Topic: UTF-8 String Walking/Functions
- Replies: 6
- Views: 6298
Re: UTF-8 String Walking/Functions
I've run the profiler and done some tweaking and brough more organization to the previous mess of redeclarations. I found that though there was a small performance hit from implementing basic inheritance with the string class, it was more than offset by simply unrolling the _go and _simulate functio...
- Tue Mar 23, 2010 7:47 am
- Forum: PHP - Code
- Topic: Please Explain
- Replies: 4
- Views: 127
Re: Please Explain
You have asked in every single post what a line containing "isset" in regards to some session variable does. You are blindly thrashing about and asking redundant questions. Stop doing that and actually learn a little bit on your own and come back with a real question. Have problems with is...
- Tue Mar 23, 2010 7:43 am
- Forum: PHP - Code
- Topic: recommended way to call php scripts
- Replies: 3
- Views: 324
Re: recommended way to call php scripts
It is called a "function" and it looks like this: function SomeCodeHere($value1, $value2){ $resultValue = $value1 + $value2; return $resultValue; } $result = SomeCodeHere(10, 20); echo $result; //outputs 30 If you want multiple returns you can achieve that with a pass by refere...
- Tue Mar 23, 2010 7:34 am
- Forum: PHP - Code
- Topic: Please Explain
- Replies: 4
- Views: 127
Re: Please Explain
Stop asking the same question over and over again.
Either learn how to program, read some manuals, look up the individual statements you are having difficulty with... Or stop mucking about in code.
Either learn how to program, read some manuals, look up the individual statements you are having difficulty with... Or stop mucking about in code.
- Tue Mar 23, 2010 2:55 am
- Forum: PHP - Code
- Topic: While loop failing
- Replies: 2
- Views: 133
Re: While loop failing
Ok... But you're still looping through all the rows. Why not do this instead: $rank = 0; $query = mysql_query("SELECT * FROM `sites` ORDER BY `site_id` DESC"); while($row = mysql_fetch_array($query) && $rank <= 20) { $rank++; doWork(); ...
- Mon Mar 22, 2010 7:36 am
- Forum: PHP - Code
- Topic: php unable to create folders
- Replies: 2
- Views: 344
Re: php unable to create folders
People say setting things to 777 is not a safe solution, but that said, it just indicates which users can modify things. The person still has to get access to your server or be able to run an arbitrary script in order to actually do anything in the first place, so generally it isn't actually "u...
- Mon Mar 22, 2010 7:32 am
- Forum: PHP - Code
- Topic: Doubt on PHP
- Replies: 3
- Views: 441
Re: Doubt on PHP
It's just checking if the variables are not set. $_SESSION variables are special in that they are stored as cookies for the duration of a browser session. But other than that the code is pretty straight forward.
- Mon Mar 22, 2010 7:29 am
- Forum: PHP - Theory and Design
- Topic: Troubles with Building PHP Source
- Replies: 0
- Views: 735
Troubles with Building PHP Source
I'm interested in checking out how to build an extension. I have Visual Studio 2010 and am trying to run the buildconf.bin and configure.bin files which came with PHP 5.3.2. I am running Windows XP. When I run configure.bin I get this message: "Saving configure options to config.nice.bat Checki...
- Mon Mar 22, 2010 3:26 am
- Forum: PHP - Theory and Design
- Topic: @ error suppressor
- Replies: 18
- Views: 3687
Re: @ error suppressor
Yeah, what I mean is, if you are already generating a solid error message with a callstack included it seems redundant to then also store the php generated message with less information (not always, it depends on the function being called.) Sometimes if I'm handling the error myself I will use error...
- Fri Mar 19, 2010 5:35 pm
- Forum: Coding Critique
- Topic: UTF-8 String Walking/Functions
- Replies: 6
- Views: 6298
Re: UTF-8 String Walking/Functions
Oh, cool, I'll take a look at that iterator support... That said, the focus is to keep code both PHP4 and PHP5 compatible and if the SPL iterator is not available in PHP4 then it misses one my constraints. I will still take a look at it though as it is clearly useful if someone doesn't want to adher...
- Fri Mar 19, 2010 3:29 pm
- Forum: HTML, CSS and other UI Design Technologies
- Topic: a serious bug .I have worked it for 2 days..help
- Replies: 7
- Views: 2799
Re: a serious bug .I have worked it for 2 days..help
Well, about my pop quiz remark, linking to this is actually linking to your own computer: http://127.0.0.1 That is typically localhost. That means you are trying to provide a link for me to click on and it is not on the internet at all. It would only work if you sent the files to every person readin...
- Fri Mar 19, 2010 3:24 pm
- Forum: Coding Critique
- Topic: UTF-8 String Walking/Functions
- Replies: 6
- Views: 6298
Re: UTF-8 String Walking/Functions
- The class needs the functions included, but only uses two functions. Could you implement that code in the class to remove the dependency? Or combine the files? Great question! I could do this, organizationally I prefer the two in different files as they tackle different things. In my own project ...
- Fri Mar 19, 2010 5:32 am
- Forum: PHP - Code
- Topic: php script which can convert pdf to image
- Replies: 1
- Views: 210
Re: php script which can convert pdf to image
Hand holding here.
The top 5 or so results all cover the topic. This isn't something you can just hack out easily, you do need to get a library built for doing that.
The top 5 or so results all cover the topic. This isn't something you can just hack out easily, you do need to get a library built for doing that.