Drop-Cap’s without using images… …using CSS3 pseudo elements.
Monthly Archives: June 2010
Creating a ‘Search Engine Friendly’ URL
Creating a ‘Search Engine Friendly’ URL automatically from another field, ie: the Title
Continue reading
PHP Classes – quick example
How To Download and Upload Files Over FTP
Taken from http://mypaaji.com/Index.php/how-to-download-upload-transfer-files-over-ftp/
The below given listing illustrates the process. First, a connection to the FTP server is initialized with a call to ftp_connect(); this function returns a connection handle that is used in all subsequent calls. The ftp_login() function is then used to log in to the server, while the ftp_close() function is used to terminate the connection and end the session. Between the calls to ftp_connect() and ftp_disconnect(), it is possible to perform all the actions commonly associated with an FTP session.
The below given listing illustrates four of the most common: listing files using ftp_nlist(); uploading files with ftp_put(); downloading files with ftp_get(); and deleting files with ftp_delete(). Note that ftp_put() and ftp_get() must be supplied with the remote and local file name, together with the transfer type (binary or ASCII).
PHP Sessions…
Using $_SESSIONS… Forgot the syntax… Here-ya-go.
Continue reading
Creating a ‘slug’
SEO is becoming more and more important, and URL’s need to be more visible. Here’s a function for creating a ‘slug’ which I used as an add-on to a site, using the page title.
Continue reading