Test website performance [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a PHP and MySQL website using the XAMPP server.
I was just wondering is there any software, online websites etc that can test (network performance, load balance, stress tests etc) for websites that are running on a localhost (local environment)?
Thanks for any help

You can't test network speed of a site on localhost, since it's going to be instant since it's local. The only thing you can test is how fast PHP can execute and there is a great extension for PHP called php_xdebug. It will tell you how long each function call takes to execute.
You can view the results using tools such as WinCacheGrind and view which function is taking up all your time.
For the network stuff, you need to first deploy your website and then run the tests for load balancing, stress testing, etc.
From my experience, most of the delay from websites is from PHP and not the web server (unless you are on a shared host).

Related

What source control is available for PHP / SQL projects [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am working with a PHP web application that has a MS SQL back end. The development copy is hosted on a Windows server.
There will be a few developers joining me on the project, and I need some sort of source control so that (obviously) we don't over-write each other's work. But since a PHP/SQL project has to be run from the server, we can't each work with local copies and then push the updates to the server...we all have to be working on the server itself.
So I have three questions:
My initial thought was a simple check-in, check-out system, which should be ok for our small team of 3-4 programmers. So, what is (currently) a good program for that?
I also thought about each developer having his own folder in the wwwroot folder, his own full copy of the program, then pushing updates to a master copy, also on the same server. Is there a good program for doing that (file merging and conflict management)?
Which method do you think would be better?
Run servers all your local machines. There’s lots of ways of doing this. If you’re using Laravel, it has a server built in php artsian serve. PHP 7 also has its own server built in.
Use a version control system like Git. You can learn here
Do this as soon as you can!
Sadly however, this question is not a suitable Stack Overflow question, so will be likely be closed soon. Good luck!

Is it realistic to implement PHP daemon, which will keep a constant connection with websocket-server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
The essence of the situation:
There website is a call-center (websocket-server located at a site different from the server).
The site must receive relevant information for now with this websoket server, the information received by the site is the same for all users (the number of available telephone lines).
Now it is implemented as follows: each visitor at each transition on the pages connects with websocket-server via javascript and receives the data. As a result, created a large number of compounds and websoket server drops.
Change anything on websoket server is not possible.
How should work:
On the site server running PHP daemon that establishes one connection to vebsoket server and receives every N seconds to date information and writes it to a file.
question:
Is it realistic to implement PHP daemon, which will keep a constant connection with websocket-server? If so, what additional libraries needed for this?
here is very useful lib with simple examples. Tested on real projects.
https://github.com/lukaszkujawa/php-multithreaded-socket-server
Here is example page
http://systemsarchitect.net/multi-threaded-socket-server-in-php-with-fork

Offline version of a web site [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I've written a web app in PHP and MySQL that permits users to insert orders from a catalog.
The customer now asked me to create a version of the website that runs on the agent's PC even when they are not connected to the Internet. they must insert orders and then, when connected, send the orders to the DB. The agent's webserver has to be synchronized with the product images and previous orders.
Do you know what can I use to obtain this result? I've seen Server2go, but it runs only on Windows. I would like something more portable.
You'll probably need to look at html5 and client-side databases, which you can sync next time a connection is made.
You'll need to do some magic as you won't be running PHP anymore, it will all be on the client machine, so Javascript will probably be your weapon of choice.
server2go looks like it will not synchronize once a connection to the server has been made.
There may be some turn key solutions for this, however, these type of off-line web applications usually require that they be designed with this in mind.
This question offers some more insight on the topic:
Offline web application

PHP server statistics script? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm not really sure where to put this question (it's not really webapps or superuser) but I'm sure something similar already exists. I'm looking for a php script that gives me detailed info about things such as:
CPU load
Network load
Temperatures
I/O
RAM
etc
Any suggestions?
Thanks,
Dennis
phpSysInfo is good for this.
These scripts are good:
phpSysInfo: a customizable PHP script that displays information about your system nicely.
eZ Server Monitor: a lightweight and simple dashboard monitor for Linux.
PHP Server Monitor: a script that checks whether your websites and servers are up and running.
These scripts are FOSS.

Free, portable, all included, all in one, php Apache based server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Free, portable, all included, all in one, (opensource is + ) php server? I have a USB FLASH 16gb card. I want to install on to it some kind of PHP server - some programm.exe which i could run on different computers without installing - call some localhost/phpserver and get my php scripts running.
So where to go to get such thing?
XAMPP and instructions:
http://www.pendriveapps.com/xampp-portable-web-server/
I'd try WAMP; hopefully it has what you are looking for.
I suggest XAMPP also but instead of pendriveapp fork, you can use the original "xampp lite" package served from their offical site. I's pretty portable and you can use without setup.
By the way, your problem will not be the choosing package. Problem is, you'll need an extremly fast flash drive or card.

Categories