Archive
How can I set php.ini values in a .htaccess file ?
Although we do not allow access to the php.ini files on our servers, many common php.ini settings can be changed in a .htaccess file. If you wish to make these changes site-wide, they should be made in the .htaccess file in your public_html folder. If you just wish a single directory and subdirectories to have these changes, create a .htaccess file in that directory.
There are two ways to change php.ini settings in a .htaccess file. The first is valid for boolean values (that is, settings that are either true or false). To set a boolean value use:
php_flag setting value
Where value can either be 0 (which also means off, or false) or 1 (which also means on, or true).
If you have a setting which requires a value or string (such as a timeout setting or error log directory), you’ll need to use:
php_value setting value
Where value is expressed just as it would be in a php.ini file.
Please see http://us2.php.net/manual/en/ini.php for more information on the various settings. Settings marked ‘PHP_INI_SYSTEM’ in the ‘Changeable’ column cannot be changed in .htaccess, they can only be changed by the system administrator.
Related articles
- Only .php files loop with .htaccess redirect (stackoverflow.com)
- Top 3 Plugins For Increasing WordPress Security (bloggingtips.com)
Free Web Hosting – Part 2
In this post I want to suggest you five interesting free web hosting services (totally Ad-Free) which offer a lot of advanced features such as FTP access, PHP and MySql support, custom domain and free sub-domains. Finding decent free web space hosting can be quite a challenge, but the resources in this post will help you quickly find the best free hosts available.
|
Web Host |
Web Space |
Upload |
Scripting |
| HelioHost | 500MB | FTP, Browser, SiteCopy | CGI, PHP, ASP.NET, SSI, FrontPage Server Extensions, Perl, Python, Ruby |
| Host-ed | 1,000MB | FTP, Browser, SiteCopy | CGI, PHP, ASP.NET, SSI, FrontPage Server Extensions, Perl, Ruby |
| X10Hosting | Unlimited disk space for file storage | FTP, Browser, SiteCopy | CGI, PHP, ASP.NET, SSI, FrontPage Server Extensions, Perl, Python |
| HostCrypt | 2,000MB | FTP, Browser | CGI, PHP, ASP, SSI, FrontPage Server Extensions, Perl, Python, Ruby |
| DearServe | Unlimited disk space for file storage | FTP, Browser | CGI, PHP, FrontPage Server Extensions, Perl, Ruby |
| FreeHostingCloud | Unlimited disk space for file storage | FTP, Browser | CGI, PHP, SSI, Perl, Python |
| PerfectZ | 800MB | FTP, Browser | CGI, PHP |
| Rowebca | 1,000MB | FTP, Browser | CGI, PHP, SSI, Perl |
| HostYous | 5,000MB | FTP, Browser | CGI, PHP, FrontPage Server Extensions, Perl |
| VlexoFree | 300MB – 2000MB (2 GB) | FTP, Browser | CGI, PHP, SSI, FrontPage Server Extensions, Perl, Python, Ruby |
| 1FreeHosting | 10,000MB | FTP, Browser | PHP |
| AwardSpace | 250MB | FTP, Browser | CGI, PHP, Perl |
| LeadHoster | 250MB | FTP, Browser | CGI, PHP, Perl |
| NoPayHost | 2,000MB | FTP, Browser | CGI, PHP, Perl, Ruby |
| Qupis | 150MB | FTP, Browser | CGI, PHP, SSI, FrontPage Server Extensions, Perl |
| FreeHostingNoAds | 2,000MB | FTP, Browser | PHP |
| AntServe | Unlimited disk space for file storage | FTP, Browser | PHP |
| ByetHost | 5,500MB | FTP, Browser | PHP |
| HyperPHP | 350MB | FTP, Browser | PHP |
| 100Webspace | 100MB | FTP, Browser | CGI, PHP, SSI, FrontPage Server Extensions, Perl |
Related articles
- Free Web Hosting – Part 1 (pathanruet.wordpress.com)
- Best PHP Hosting 2012 For Developers and Small Businesses (prweb.com)
- Website Builder – Edicy – Interview with founder (youngwebbuilder.com)
- Best Web Hosting 2012 – BlueHost – PR Web (press release) (prweb.com)
- Linux Hosting Review 2012 For Personal and Small Businesses (prweb.com)
WordPress Plugin: Auto Save Management Plugin
Manage Your Auto Save And Post Revisions From The Admin Interface. Under Settings -> General There are 3 new options to manage this wordpress functionality.
Installation:
- Upload The wp-auto-save-management folder to the
/wp-content/plugins/directory on your server - Activate the plugin in the admin interface
- That’s All!
WordPress plugin: URL Redirection
Redirection is a WordPress plugin to manage 301 redirections and keep track of 404 errors without requiring knowledge of Apache .htaccess files.
Redirection is a WordPress plugin to manage 301 redirections, keep track of 404 errors, and generally tidy up any loose ends your site may have. This is particularly useful if you are migrating pages from an old website, or are changing the directory of your WordPress installation.
New features include:
- 404 error monitoring – captures a log of 404 errors and allows you to easily map these to 301 redirects
- Custom ‘pass-through’ redirections allowing you to pass a URL through to another page, file, or website.
- Full logs for all redirected URLs
- All URLs can be redirected, not just ones that don’t exist
- Redirection methods – redirect based upon login status, redirect to random pages, redirect based upon the referrer!
Existing features include:
- Automatically add a 301 redirection when a post’s URL changes
- Manually add 301, 302, and 307 redirections for a WordPress post, or for any other file
- Full regular expression support
- Apache .htaccess is not required – works entirely inside WordPress
- Redirect index.php, index.html, and index.htm access
- Redirection statistics telling you how many times a redirection has occurred, when it last happened, who tried to do it, and where they found your URL
- Fully localized
Installation:
The plugin is simple to install:
- Download
redirection.zip - Unzip
- Upload
redirectiondirectory to your/wp-content/pluginsdirectory - Go to the plugin management page and enable the plugin
- Configure the options from the
Manage/Redirectionpage
You can find full details of installing a plugin on the plugin installation page.
http://pathanruet.wordpress.com/2011/04/23/wordpress-plug…rl-redirection
Related Article:
WordPress Plugin: Slimmity URL Redirector
This plugin is pretty simple, it masks your affiliate links or just long URLs while keeping track of clicks, it also has the option of counting the unique clicks of each redirection. This is more of a modification then an authentic job, while looking for a solution to hiding my affiliate links i encountered a plugin named Short URL while the plugin is pretty nice and gets the job done, it only uses ID’s and i like to use custom text rather then the ID’s so i started modifying it. At first i barely touched it and just edited the parts that called for an ID to call the description. But then i decided i wanted to control the unique clicks so i started to actually rewrite more and more of it. This last week i finally got my self to create a version that was safe for others to use, since i have been using my edited version since the site got a new design. Here it is, hope you like it and enjoy it.
URL Redirector allows you to create shorter URL’s and keeps track of how many times a link has been clicked. It’s useful for managing downloads, keeping track of outbound links and for masking URL’s.
Features
- Use of .htaccess to modify appearance of URLs.
- Control of unique clicks.
- Easy control of the link url.
- Easy to edit, add, delete or reset all clicks.
- Pagination of links divided by 10 per page.











