prosoxi.com | Archive | PHP

Sending e-mails via SMTP with PHPmailer and Gmail

Why using GMail for sending mail messages?

First of all it’s FREE! Sure most website owners can use their own SMTP server for sending email messages from their website,

Continue Reading

Posted in PHP0 Comments

php: howto control page caching header

Controlling how web pages are cached is basically done using 2 kind of headers: Expires and Cache-Control Continue Reading

Posted in PHP0 Comments

Drupal image Rotator / Slider modules

This page came about as a result of this post that lists Tabs and Slideshow Modules in the Similar Module Review group. The linked post lists several modules that provide either tabbed content or rotating content.
There are two general use cases here:

Continue Reading

Posted in PHP0 Comments

date_default_timezone_set

date_default_timezone_set

(PHP 5 >= 5.1.0)

date_default_timezone_set — Sets the default timezone used by all date/time functions in a script

Continue Reading

Posted in PHP0 Comments

php

List of Supported Timezones

Continue Reading

Posted in PHP0 Comments

How to fix ‘Function eregi() is deprecated’ in PHP 5.3.0?

I used to use eregi for validating email address input that matches to the regular expression.

Continue Reading

Posted in PHP0 Comments

Pingback in php

Motivation: For a side project I am working on, I wanted to be able to send a trackback to WordPress blogs (or any blog with an XMLRPC endpoint), using PHP.   Simple enough. Continue Reading

Posted in PHP0 Comments

jQuery Mobile PHP MVC Framework

In my Introduction to jQuery Mobile, I mentioned that I had plans for a simple MVC framework using jQuery Mobile and that I would release it if there was enough interest (there was!). While it’s not completely finished yet, I’ve decided to release it in hopes that others find use in it and can perhaps even contribute towards it’s development. Continue Reading

Posted in Mobile / Tablet, PHP0 Comments

Short If-Else Structure

In addition to the enlarged if – else statement that you will use in most cases, there is also a short structure for an if – else statement. This format uses the so-called “ternary operator ‘. The syntax of this shorthand structure is as follows:

Continue Reading

Posted in PHP0 Comments

PHP, how do you change the key of an array element?

I have an associative array in the form key => value where key is a numerical value, however it is not a sequential numerical value. The key is actually an ID number and the value is a count. This is fine for most instances, however I want a function that gets the human-readable name of the array and uses that for the key, without changing the value. 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