Welcome To Snipplr
Everyone's Recent Snippets Tagged server
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Hello Php Coders,
Here's a useful php code block for your projects to control server status.
Use this code blokc to report a server status result. I hope you'll like it.
Also; i suggest you to rest for a while on [2 KiÅŸilik Oyunlar](http://...
2
958
posted 14 years ago by jackoder
Many scripts rely on `$_SERVER[SCRIPT_URL]` which is sometimes missing. This function detects it from other server variables and fixes the missing field.
1
1599
posted 14 years ago by drwitt
This is based upon a debian guide, it seems to work well for ubuntu as well, all these steps can be performed via remote ssh (no need to access the machine).
0
765
posted 14 years ago by narkisr
This is excellent for testing (mocking a SOAP server for example), we use an in memory http server in order to answer client requests.
0
1078
posted 14 years ago by narkisr
Bash
Print the number of established and listening connections to your server on port 80 per each IP address
1
1576
posted 15 years ago by tobewan
If you need to list all of the MySQL databases managed by Plesk along with their corresponding domains and login credentials, you can use this query:
1
879
posted 15 years ago by tobewan
Bash
lists all network protocol connections filtering out column 6 and sorting the unique entries by count
0
831
posted 15 years ago by tobewan
Bash
all network connections filtering out anything in column 6 that matches '/tcp/' and sorts the unique entries by count
0
1053
posted 15 years ago by tobewan
Create two new bookmarks - one for dev, one for live and add the following corresponding code to each.
1
893
posted 15 years ago by Meander365