Pages

Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Wednesday, January 29, 2014

Fat Zebra


Fat Zebra was built as a simple way for merchants to accept credit card payments online while still maintaining a strong focus on security, reliability and great user experience.
Our online payment gateway provides you with all the features and benefits you deserve with no hidden fees or charges to ensure you have all the right tools to trade online.

Saturday, September 28, 2013

10 Difference between PHP4 and PHP5

PHP5 is a lot different than PHP4. With the vastly improved Object Oriented model in PHP5, PHP is now a lot closer to a fully fledged object orientated programming language and looks more like ASP.NET now. Here are 10 major differences between PHP4 and PHP5 that you need to know:

Thursday, September 12, 2013

PHPExcel - OpenXML - Read, Write and Create Excel documents in PHP - Spreadsheet engine

Project providing a set of classes for the PHP programming language, which allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project is built around Microsoft's OpenXML standard and PHP.

Wednesday, July 31, 2013

set up a 403 - forbidden access

You can choose whether to show the index of files or not in your cPanel using the Index Manager. If you set the public_html folder to not show indices then that would be the default for all folders.

Its very easy to setup custom error documents, and forbid access to directories and indexes.
403 "Forbidden" is acomplished by first creating the custom error page, then adding a link to it in a .htaccess file in the public_html, and adding "Options All -Indexes" directive to the .htaccess

like so:

Step 1:
create your custom error page

step 2:
create file, name it .htaccess

Step 3:
edit file and add the following:

.htaccess

Quote:
## Error Page
ErrorDocument 403 /page/22.html

Thats it! Your done.

Wednesday, June 26, 2013

Create an Infinite Scrolling Gallery, Content


Pagination is a technique used to break large data sets into small blocks in order to reduce the server load. We used to create pagination buttons with page numbers and next/previous links. Now pagination has gained a new perspective with infinite scrolling.

Saturday, June 8, 2013

Real Ajax Multi Uploader


Real Ajax Multi Uploader is a jQuery javascript plugin for creating with simplicity multiupload file system for web applications. It is based only on javascript and supports html5 uploading but also is compatible with html4. No flash, no silverlight or other plugins only JavaScript and Html. Ajaxupload is very simple to use does not need any special skill to set it up. Support Drag n Drop upload and make preview of images. It is applied to any container tag (div, span, p) and all file inputs, forms and buttons are automatically created by the plugin. The CSS and buttons are highly customizable. The upload server side script is written forPHP and ASPX, but it can be adapted in all server side languages (JSP,PERL).

Monday, May 20, 2013

Create a REST ful Services API in PHP

Are you working with multiple devices like iPhone, Android and Web then take a look at this post that explains you how to develop a RESTful API in PHP.  Representational state transfer (REST) is a software system for distributing the data to different kind of applications. The web service system produce status code response in JSON or XML format.

XML Web Service using PHP and SOAP


The basic Web services platform is XML and HTTP. XML provides a language which can be used between different platforms and programming languages. The HTTP protocol is the most used Internet protocol. Web services platform elements are SOAP (Simple Object Access Protocol), UDDI (Universal Description, Discovery and Integration), WSDL (Web Services Description Language).
Here I have talking about SOAP, NuSOAP and how it will use in PHP with example. So now let's start. Simple Object Access Protocol (SOAP) is a simple XML-based protocol to let applications exchange information over HTTP.  Today's Web Service (SOAP) is most popular and it provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.

Wednesday, March 13, 2013

mysql to csv export using php

mysql to csv export using php

The following PHP code is intendend to be used to export a MySQL table in CSV format in
order to be used with MS Excel.

Tuesday, March 5, 2013

Web based IP geolocation lookup


Web based IP geolocation lookup

IP Geolocation is a technique to identify the subject party's IP address, then determines what country, state, city, ZIP Code, organization, or location the IP address has been assigned to. There are several IP geolocation providers in the industry supplying IP address databases. These databases contain IP address data which may be used in firewalls, domain name server, ad servers, routing, mail systems, web sites, and other automated systems where geolocation may be useful.

Friday, January 11, 2013

Get Twitter timeline to your website

For this you have to disable Tweet privacy in your tweeter settings

Get facebook timeline to your website

Before you need to get ACCESS_TOKEN using following link for your facebook id

https://developers.facebook.com/docs/reference/api

then click post -> click link -> Get access token

php limit text by word


function limit_text($text, $limit)
{
  $words = str_word_count($text, 2);
  if ( count($words) > $limit)
  {
 $pos = array_keys($words);
 $text = substr($text, 0, $pos[$limit]) . '...';
  }
 return $text;
}

Thursday, October 4, 2012

PHP : get the browser name

To my surprise I found that none of the get_browser alternatives output the correct name / version combination that I was looking for using Opera or Chrome. They either give the wrong name eg Safari when in fact it should be Chrome and if the ua string includes a version number as with the latest versions of Chrome and Opera the wrong number is reported. So I took bits and pieces from the various examples and combined them and added a check for version.

Wednesday, September 5, 2012

Country list with ISO codes

This will create and then populate a MySQL table with a list of the names and # ISO 3166 codes for countries in existence as of the date below.