prosoxi.com | Archive | Programming

Archive | Programming

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

Vinilla forum default css and template paths

Vanilla default templates and styles

Continue Reading

Posted in Programming0 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

Typetester

The Typetester is an online application for comparison of the fonts for the screen. Its primary role is to make web designer’s life easier. As the new fonts are bundled into operating systems, the list of the common fonts will be updated. Continue Reading

Posted in CSS, News0 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

multiple background images using CSS

Is it possible to have two background images? For instance, I’d like to have one image repeat across the top (repeat-x), and another repeat across the entire page (repeat), where the one across the entire page is behind the one which repeats across the top.

Continue Reading

Posted in CSS0 Comments

Domain Finder

Domain Finder Tool by Truste.gr

read more for domains

Advertisers

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

Adds