phporcaffeine Posted April 30, 2006 Share Posted April 30, 2006 I know this is like shooting a fish in the Pacific Ocean from 100 yards away but ....I have several scripts, and they don't do anything intense ( no arrays, no queries ... etc)All they do is take some given information and perform some mathmatical calculations.Now when you execute through a browser, sometimes PHP finishes in miliseconds, other times it takes almost 40-50 seconds (on any given execution it is processing the same data, the same way). There isn't any indentifiable pattern to when it executes quick or slow.These scripts run on a Win XP box with Apache 2.0.55, PHP 5.1.2, MySQL 5.0.19The Server has 2GB of Ram with a P4 3.8Ghz ProcessorThere is no user load - this is a dev. box.In PHP.ini the garbage collection for session data is set as 1/100I'm just looking for someone who can tell me some areas that I should "look at" to help explain this oddity.I want to know whats happening before I goto a production box, and I see this as a BIG deal because when you multiply this oddity X 200+ users .... etcTIA Link to comment https://forums.phpfreaks.com/topic/8740-long-parse-times-by-php/ Share on other sites More sharing options...
Hooker Posted April 30, 2006 Share Posted April 30, 2006 hrm maybe you can show us the code so we can take a quick look through it? Link to comment https://forums.phpfreaks.com/topic/8740-long-parse-times-by-php/#findComment-32110 Share on other sites More sharing options...
phporcaffeine Posted April 30, 2006 Author Share Posted April 30, 2006 [!--quoteo(post=370039:date=Apr 30 2006, 01:01 AM:name=Hooker)--][div class=\'quotetop\']QUOTE(Hooker @ Apr 30 2006, 01:01 AM) [snapback]370039[/snapback][/div][div class=\'quotemain\'][!--quotec--]hrm maybe you can show us the code so we can take a quick look through it?[/quote]Here is the script in question:<?php//GET STAMP$savedstamp = trim($_POST['stamp']);$seconds = $savedstamp%60;$i = floor($savedstamp / 60);?>I honestly think this has something to do with php.in and/or httpd.conf. I probably have something set I shouldn't have or vicea versa. Link to comment https://forums.phpfreaks.com/topic/8740-long-parse-times-by-php/#findComment-32137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.