About phptuts

Author Archive | phptuts
PHP OCR with GD – Example 2

PHP OCR with GD – Example 2

Read this article first: Simple PHP OCR with GD Step 1: Goto http://chotot.vn we can see many pictures contain telephone number. We find that these pictures that contain a maximum of 11 digits, and have the same font, same size. We use 3 pictures contain all number from 0 to 9: http://www.chotot.vn/pg/0Njg2ODY2AAAAAAAAAAAAAJl+piriBW+L/QY=.gif http://www.chotot.vn/pg/0Njg3NTA0AAAAAAAAAAAAALuxb72u/MXOO9k=.gif http://www.chotot.vn/pg/0Njg3NTA3AAAAAAAAAAAAACXjI28Lu8wq5LCY.gif Step […]

Read full story Comments { 0 }

How to install Ioncube loader on Appserv

A little shared information to you that an error when using localhost in this kind of error: Site error: the file D\appserv\www\aplication\file.php requires the ionCube PHP Loader ioncube_loader_win_5.2.dll to be installed by the site administrator. To resolve you can follow the following steps: 1. Download first ionCube Loader 2. Then you extract file zip / […]

Read full story Comments { 0 }

How to configure Virtual Hosting on AppServ

With this tutorial, we are going to take a look at the best way to configure a local web server to serve fake domain/subdomains (or virtual hosts) accessible via our browser of choice. Using virtual hosts is a really useful solution to isolate configurations for each virtual host–and it’s easier to migrate code. We are […]

Read full story Comments { 0 }

How to installing Remi Repository on LINUX

In this tutorial we will learn how to install and add the Remi Repository into LINUX (RHEL/CentOS 5-6, Fedora 12-17). Follow the simple steps below and the rpmforge repo will be installed in seconds. 1. Verify 32 Bit or 64 Bit: Verify if your server is 32 bit or 64 bit. Use this tutorialspots.com article […]

Read full story Comments { 0 }

MYSQL: How to DELETE with INNER JOIN

MYSQL: How to DELETE with INNER JOIN There are 2 tables, proxy and proxy2, and I need to delete data from proxy. proxy.md5 = proxy2.md5 is the only thing that “connect” the tables. I have tried this script but it doesn’t work: Result: #1064 – You have an error in your SQL syntax; check the […]

Read full story Comments { 0 }

How to save animated GIF in Adobe Image Ready

Question: I want to make an animated GIF in Adobe ImageReady and save it out as a .gif file. I’ve made the animation Ok, but when i go to ‘saved optimized as’ and i can’t see Gif type. How to save animated GIF in Adobe Image Ready? Answer: Go to Window>Optimize and a panel will […]

Read full story Comments { 0 }

How to find out version of CentOS Linux via SSH

Step 1: Log in to SSH. Step 2: You can check centOS version installed on your dedicated derver / VPS using below SSH command: cat /etc/*release* Result: [root@vps ~]# cat /etc/*release* CentOS release 5.3 (Final) version of centos ssh How to check version of CentOS Linux by SSH The easiest way to check your CentOS […]

Read full story Comments { 0 }

PHP: function strtoul

We know function strtoul in C++: converts the string into an unsigned long int according to the base of the number unsigned long int strtoul ( const char * str, char ** endptr, int base ); Convert string to unsigned long integer Parses the C string str interpreting its content as an integral number of […]

Read full story Comments { 0 }

PHP: How to extract string between 2 words

How to extract string between two words. How to parse a string between two strings. We offer 3 functions to obtain a string delimited between tags: Example: Result: tutorialspots.com | Free Online Tutorials | Tutorials, Resources and Snippets 6.31809234619E-5 tutorialspots.com | Free Online Tutorials | Tutorials, Resources and Snippets 9.01222229004E-5 tutorialspots.com | Free Online Tutorials […]

Read full story Comments { 0 }
PHP: How to determine the center of a Polygon

PHP: How to determine the center of a Polygon

How to determine the center of a Polygon. Read first: PHP: How to calculate signed area of a Polygon Method 1: Result: array(2) { [0]=> float(1.55555555556) [1]=> int(3) } Example 2: Result: array(2) { [0]=> int(0) [1]=> int(0) }

Read full story Comments { 0 }