![]() ![]() I know there's not a huge amount of info there but based on performance figures above, is there something fundamental/trivial I'm missing or doing? Are there any known issues with the sleep methods? The sleep method used is "usleep" and I've also tried "time_nanosleep". The performance for the same test of 200 clients * 100 cycles produces 55 CAPS which is a huge drop in performance based on 150 millisecond delay. The problem arises when I introduce a "sleep" into the php code for 150 milliseconds, which is my basic idea of introducing latency to the system. The test is 200 clients requesting the same url for 100 cycles. The simple performance figures are taken from curl-loader and show 400 CAPS (Call Attempts Per Second). It all works fine and it's quite performant based on a simple curl-loader test. The whole script is just a large switch statement that does some matching against the request strings and returns a template rendered by Tenjin. I basically have a php script running with nginx and fast_cgi. I'm new to PHP and I'm probably making a fundamental mistake somewhere, however, enough time wasted, I thought you might be able to shed some light on my problem. Right now I am using javascript to display a count down and the download link is in a hidden div and I wanted to have a time in php when the user goes to the page the timer starts and then echos the download link instead it being visible in the source code.ĭocument.getElementById("hid").style.visibility = "visible" for more than a decade.I have a download page for my website and I tried using sleep to delay before the user can download an item. ![]() ![]() I, recently, acquired the role of and IT do-it-all. But, I was denied financial leeway for unnecessary expenses and this in their opinion is one. Let me begin by stating I am aware that there are tonnes of posts for this question. Would anyone care to share their thoughts about what this might indicate for things to come?Ī few weeks ago, Jay Lecroix Opens a new window made some passing references to the changes IBM has made to CentOS/CentOS Strea. Has anyone else heard anything about RHEL becoming closed source? Linux.Snap! - Space Immunities, Stretching Metal, Defining Sandwich, 3D Printed Steel Spiceworks Originalsįlashback: june 23, 1912: Computer Pioneer Alan Turing Born (Read more HERE.)īonus Flashback: June 22, 2000: Possible evidence of liquid water found on Mars (Read more HERE.).I have to walk her up and down the stairs due to her rickety bon. Well, mine mostly sleeps but they are there! This is Peanut. Let's see those pets that work right alongside you. I can't put in the hyperlinks with direct location paths as I have a Secure Download System built into the members login and a smart person could access files specific to other members by changing the file nameĭo you work from home or office? Doesn't matter. The reason I have choosen PHP is that I have a members login and an admin login and plan on adding this functionality to the admin login to keep it all in the one system and make it as easy as possible. Is there a better way to handle this guys? or am I trying to do something in a system not designed for tasks like this? I don't want t expose the mySQL database to the internet directly and do it a Win32 Application as our web-server isn't on site.but I can do this if I can't get this working in PHP.Īlternatively I have thought about having the email script processed by posting the current prospect to the script file and then processing it as a single request.but not sure how that would work if there are approx ~100 simultaneous requests to the same script.but that too would run into the same issue as even though each script is being executed.the time it would take to upload at the same time those files. It would be great to push the text I have on the screen to the page after every loop so the end user knows where its at. Is there any command I can put in the loop to let the server know the script hasn't crashed and this is completely normal to take its time? Now, this takes time to upload the attachments to Exchange before sending, so this loop although is not very complex it takes time because of the upload as our Exchange server is Local and our Web Server isn't. The part where I am stuck with is as follows, I have an email script that sends an email though our Exchange Server, it also attaches 2 pdf attachments totaling about 280KB ![]() I know PHP is a script system and as such this may not be possible, but I have opted to use PHP as it can directly talk to the database and with MySQL it is very easy to get the data I need. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |