Serve PDF files on your website by requesting the user to register their email address. The PDF file is sent to the given email address and the user details registered on a database. This is a very simple script and relies on four main features.
Apache mod_rewrite (via the .htaccess file)
the simple-register.php script itself
Read more »
.htaccess files (or “distributed configuration files”) provide a way to make configuration changes on a per-directory basis in an Apache HTTP Server. This file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.
This 301 Redirect can be used anytime you want to redirect a URL. Here are some examples of its use:
- Single page – Redirect 301 /old_page.html http://www.mysite.com/new_page.html
- entire site – Redirect 301 / http://www.new_site.com/
- change file extension (html to php in this case) – RedirectMatch 301 (.*)\.html$ http://www.mysite.com$1.php
There are many other uses for Redirect 301 and mod_rewrite on Apache, if you are moving a site or redesigning a site with a new CMS make sure you redirect your old URLs to your new site. By failing to do so any user that clicks on a link to your old site (page) will hit a 404 ERROR page, this will affect your search rankings.
The book “Professional SEO” has a good chapter in mod_rewrite and URL redirection, and is also great SEO manual
For a full tutorial on .htaccess visit the official Apache website.
the PHP version 5.2.7 was removed from distribution due to a bug that caused a security hole in some configurations. The bug was related to the magic_quotes_gpc which will be deprecated in version 2.6.
The PHP development team has officially announced the immediate availability of PHP 5.2.8. This release addresses a regression introduced by 5.2.7 in regard to the magic_quotes functionality, that was broken by an incorrect fix to the filter extension. All users who have upgraded to 5.2.7 are encouraged to upgrade to this release, alternatively you can apply a work-around for the bug by changing “filter.default_flags=0” in php.ini.
Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries.
The Python developers have released the final version of Python
3.0, a major reworking of the programming language. It’s said to be intentionally incompatible
with the Python 2 series.
According to Guido van Rossum (Project Founder)
“… the new features in Python 3.0, compared to 2.6.
Python 3.0, also known as “Python 3000” or “Py3K”, is the first ever
intentionally backwards incompatible Python release. There are more
changes than in a typical release, and more that are important for all
Python users. Nevertheless, after digesting the changes, you’ll find
that Python really hasn’t changed all that much – by and large, we’re
mostly fixing well-known annoyances and warts, and removing a lot of
read the official “What’s New in Python 3.0” release.