Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged server



« Prev 1 Next »
If you want to enable GII in your live server in YII you can do by following small steps.
0 22 posted 5 years ago by adesara_jaydeep
Prints all $_Server variables to table
0 29 posted 6 years ago by kidmizere
*Example:* if (!isRewriteMod()) exit('Please install Apache mod_rewrite module.');
0 34 posted 6 years ago by phpdev
Easy PHP script for uploading and unpacking zip files to the server much faster Steps to follow: 1. create folder on the webserver called "zipper" or something else 2. copy the following PHP code into a file called "zipper.php" into this folde...
2 212 posted 7 years ago by jvandemerwe
Get Current URL Path on Apache / IIS
1 38 posted 7 years ago by rickygri
Get the absolute webroot URL.
1 32 posted 7 years ago by o0110o
This PHP code is made to help people using the ActionScript 3 AlivePDF library to save PDF files from a Flash app to a server. ActionScript 3 AlivePDF save code: _pdf.save(Method.REMOTE, "save.php", Download.ATTACHMENT, "MyFile.pdf");
0 34 posted 8 years ago by vamapaull
Serverside script for a personal DynDNS service. Works together with a clientside script written in ruby [ http://snipplr.com/view/55484/own-dyndns-service-clientside-script/ ] . Redirect to current saved IP(http, port 80): http://dynDns.yourver...
0 19 posted 8 years ago by madc
0 15 posted 8 years ago by jcquintero
Tiny script to write a daily logfile with the serverload. Can be run every X minutes using a cron for example. Result in logfile: 13.40 | 2.45 2.45 2.43 13.45 | 1.62 2.02 2.25
0 19 posted 8 years ago by remko
AddHandler application/x-httpd-php .php .htm ... worked for me (directory: xampp/apache/conf)
0 19 posted 8 years ago by stephcode
0 16 posted 9 years ago by metoikos
0 22 posted 9 years ago by batfan
1 17 posted 9 years ago by yeremiloli
0 19 posted 9 years ago by metoikos
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 35 posted 9 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 27 posted 10 years ago by drwitt
Here's a pretty comprehensive list of Server variables I use.
1 22 posted 10 years ago by chrisaiv
Returns only the directory path to the current file — no host or filename, just URI directory structure.
1 11 posted 10 years ago by radarseven
How to replace sleep(2), for your PHP code. Ideal testing hosting/dns ping.
1 23 posted 10 years ago by nicolaspar
A basic PHP script that I simply FTP to the server and use to evaluate extensions on the server. I simply supply the extensions I require and the script does the rest of the work.
1 17 posted 11 years ago by fackz
0 10 posted 11 years ago by fredaudet
0 19 posted 11 years ago by iTony
1 20 posted 12 years ago by llbbl
« Prev 1 Next »