prosoxi.com | Archive | PHP

Increase the WordPress RSS Widget Refresh Rate

While working on the redesign to this blog, I wanted to add the “Interesting Stuff” column you see just to the right. Using the RSS feed widget built into WordPress would be perfect, except for the fact that it only updates ever 12 hours. In today’s Quick Tip, we fix that problem.

Continue Reading

Posted in PHP0 Comments

suPHP

suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.

suPHP

Continue Reading

Posted in PHP, Plesk0 Comments

PHP ftp upload tutorial

To upload a file to ftp you need a html form where you can insert the ftp details, like the ones described above:

Continue Reading

Posted in PHP0 Comments

Localizing PHP web sites using gettext

Developing multi language web sites using PHP is actually very easy. A common approach is having an include file for every supported language which contains an array that maps string ids to localized text (for example "WelcomeText" => "Welcome to our homepage." would be included using something like <?= $strings["WelcomeText"] >). However there are several problems with this approach. First of all, when the application is updated and additional strings are added, there is no way to determine which new strings were added and if they are present in every language (unless you write a script for it). What happens if a newly added string is not yet translated into a specific language?

Continue Reading

Posted in PHP0 Comments

wp Add Facebook Open Graph Meta Tags

Add Facebook Open Graph Meta Tags

Place the following code in custom_functions.php (making changes where noted): Continue Reading

Posted in PHP0 Comments

Convert Numbers to Words

Convert Numbers to Words

This little script was whipped up to convert numbers to words for use in a cheque book, it has an upper limit of 999999999 but that should take care of most sane amounts of cash. Should you require a function that needs to spell out more cash than this, my rates are $7474.00/hr ;) Continue Reading

Posted in PHP0 Comments

Prevent Duplicate Form Submission

You can use the method below to prevent duplicate form submission or form re-submission using PHP. This method is simple to implement and does not require JavaScript.

Continue Reading

Posted in PHP0 Comments

PHP 5.4 Features

PHP 5.4 Features

PHP 5.4

PHP 5.4.0 is planned to be released on February, 2 2012. By the time you are reading this, it may already been out. It is a result of many months of development.

Continue Reading

Posted in News, PHP0 Comments

php gettext

gettext — Lookup a message in the current domain

Continue Reading

Posted in PHP0 Comments

Greek UTF-8 Special Characters

Here are the capital and small Greek letters for HTML 4.0 special characters from the UTF-8 Character Set.

Continue Reading

Posted in PHP0 Comments

Domain Finder

Domain Finder Tool by Truste.gr

read more for domains

Advertisers

Wedstar all about wedding - gamos - γαμος
Κατασκευή ιστοσελίδων
Domain Names | Hosting

Adds