Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Inorder to create a SaaS application..
How many requests PHP can handle per second ?
How to handle millions of requests per second?
What is the best database technology to handle millions of requests?
This has nothing to do with PHP. This is a server-related issue. PHP does not interpret the requests , It's the webserver which does it.
Get a high-precision server that can balance loads of requests. You can also avail for pay-as-you-use services from different webhosting providers.
It's awkward to provide you links for such webhosting services since you can easily google it up and find some of them out. However, r---space and med----mple offers great services (names masked to avoid advertizing)
This is totally hardware dependent. With infinite resources and perfect load balancing PHP can handle all requests that could ever originate in the universe.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
My website is entirely written by me in php on notepad, no WordPress or the like. The only known weakness is that due to a complicated hardware situation, I can not use HTTPS for the login area. It runs on a shared hosting account at iPage. It's 'LAMP'.
I am setup to monitor reasons why the 404 page is called. This is where my concern comes. Someone is making attempts on folders in all lower case. This more alarming because these folders words are in the login area sometimes. For example, if I have a file at /loginArea/myHidden/index.php these odd requests are aimed at /myhidden for some reason. Notice no caps and lack of the first directory. This has been happening at a rate of one per day, from random IP addresses all around the world. You might assume this was a coding mistake on my part at first, but I am 100% certain that has been ruled out by now. They are moving around my folder structure, poking like they are searching for something.
They seem to be limited to folder words they could sniff from http traffic of logged in users. They have not hit one that is known only to me.
No damage seems to have been done, but I am getting DAILY attempts and want to know what they are hoping for.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have a network of sites which comminicate to eachother all sorts of events and functionality.
Having a combined analytics system, I realized the need for a central clock, to put them all, perfectly, on the same schedule down to the millisecond.
Right now I'm using a typical timestamp format:
<?php date('Y-m-d H:i:s') ?>
This is different for all servers, of course. I was hoping to achieve a way to get that very same 'Y-m-d H:i:s' from an online, central clock or service.
Does such a thing exist? It should be as reliable as getting jquery from google.
Its with pain that I write this, I simply cannot stop myself from compulsively asking this knowing it will get a downvote! But it is a serious issue and good question!
You can sync with NTP. NTP is a central clock, where various computers can get their time from.
So, you can either set all your machines to get their time from a single NTP server, or just use a PHP NTP client to pull the time from a central clock. Your call. Check out an example here: http://xlo.co/blog/general/php-ntp-client
Is this what you are looking to do?
You have to query a time server for that. These servers/communication use the Network Time Protocol to give a unified time across global network of computers.
Check http://www.ntp.org/
As far as querying these servers are concerned, it is a normal fsockopen
Maybe this SO answer will help you as well
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I built a Website using PHP and want to deploy it on internet. I want to know what is the best option as to host on web server or cloud and what will be pros and cons doing that.
Resources needed for my site:
PHP
Mysql
Apache or lighttpd
My site is simple CMS with 10 pages (max).
A web server has defined hardware specifications, meaning that if too many users try to access it, it will fail to answer their requests.
Cloud hosting providers will restrict you in what you can do (what language, what APIs you can access, ...), but they usually allow for automatic scaling, meaning: If the first instance's ("server's") load exceeds a certain limit, a second instance may start automatically to handle half of the load, and so on.
A single server often is sufficient for PHP sites, but you may suffer the slashdot effect, i. e. a sudden peak of attention to your site may bring it down quickly.
You didn't specify the kind of application you are going to deploy and kind of resources you application need. Anyhow below are the points you need to consider to decide cloud vs non-cloud.
1) Availability
2) Scalability
3) Security
4) Cost effective
Prons:
1) Security
2) Limited control.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I've finished building my website only to discover the loading time is around 8 seconds, this is not good obviously... I'm running the server from my house on a Dell Vostro 200 with Ubuntu and Apache2 which is a secondary OS to Windows XP. The computer is connected to a netgear wireless extender with an Ethernet cord. I have a 1.37 Mbps upload speed. The website itself uses several mysql databases and lots of css, and all of the pages are .php and linked by includes. Basically I'm overwhelmed with everything and I would be extremely grateful if anyone could tell me where my problem is, or if it's just everything combined. You can visit the site at www.dawnspy.com. Thanks!
Your banners are taking 8 seconds to load:
Possibly look at a CDN or some alternate means of hosting your banner images. In the future, I recommend using an HTTP debugger such as Fiddler.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
We are building an Intranet system using Drupal. We estimate 200 users to start using this site by next year.
At the risk of sounding such a noob (my role in non-profit requires me to), is there anything at all that I should be concerned with this amount of users? Anything on the server side?
Drupal is great enough to handle lot of traffic and users. Mine handles 3k users with daily average traffic of 10k. You should read load testing reports of drupal like this one http://loadstorm.com/2009/09/load-testing-drupal-anonymous-users/
Still consider doing load testing of site before putting it to production environment.