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
2300
posted 16 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
3066
posted 16 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
2031
posted 16 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
2361
posted 16 years ago by narkisr
Bash
Print the number of established and listening connections to your server on port 80 per each IP address
1
4486
posted 16 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
1990
posted 16 years ago by tobewan
Bash
lists all network protocol connections filtering out column 6 and sorting the unique entries by count
0
1863
posted 17 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
2318
posted 17 years ago by tobewan
Create two new bookmarks - one for dev, one for live and add the following corresponding code to each.
1
2225
posted 17 years ago by Meander365
Returns only the directory path to the current file — no host or filename, just URI directory structure.
1
2100
posted 17 years ago by radarseven