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

Introduction To PHP Programming For Beginners

PHP Logo
PHP is a web programming language on the server side that very popular. PHP is widely used by programmers to build a web-based application. PHP is also popular among the hosting provider where PHP is always included in the package of facilities provided by the web hosting service providers. Some Content Management System (CMS) which is quite popular among webmasters and bloggers such as Wordpress and Joomla! developed using PHP programming language. Currently, has been developed various PHP frameworks such as CodeIgniter, Laravel, Yii Framework that allows web programmers to do the coding neater and shorter with maximum results. At this time, PHP still relevant to be learned for beginners who want to engage in web programming.

Choosing PHP Editor For Web Programming

Illustration of Text Editor
For a Web Programmer, particularly PHP that is a scripting programming language, text editor's role is extremely important. Because with the help of these tools a web programmer will do the coding to produce their work. In this article, I will discuss about how to choose a good PHP Editor is used to perform the coding. Indeed option text editor for PHP is a lot, but not all of them will be used as a web programmer will focus on the project they are doing rather than spend a lot of time to find and select a text editor. However, choosing PHP Editor is the right thing to do. Here are some important points to consider in choosing PHP Editor.

Apache Document Root In XAMPP

Apache Document Root in XAMPP 
Document Root on Apache web server is the location or directory where to save files that are the source of web application. Files that are stored in the document root directory are files that contains scripts written in web programming language or other file types such as images which these files are the sources used to create web application. Before performing coding using PHP programming language, found the location of the document root is important because in this directory PHP script will be saved with the extension (*.php). Web Server will search the files in the document root when receiving requests from users. It means that the PHP files will only be recognized by the Web server when placed in the document root directory.

XAMPP Installation Step On Windows 7

XAMPP Logo
XAMPP is an application or software that wraps some applications in one package in order to facilitate the process of installing a web server. XAMPP is commonly used by beginners who are practicing web programming or even a web programmer to test web applications on the local server, in this case the XAMPP installed on the local computer or localhost.  The main application that included in a package of XAMPP are Apache Web Server, PHP and Perl as web programming language and MySQL as database management system. In addition to the main application XAMPP also provides the OpenSSL module to handle the traffic data via SSL using https protocol, and phpMyAdmin as MySQL interface that makes easy way to manage the database.

Use date and time Functions in PHP


In developing a web-based application, processing date is often required. For example, recording the date of the transaction, record the date and time of the last time a user logged in, also the date settings on publishing an article or website content. On this occasion I will share about the basics of using date and time functions in PHP. In the real case, using date and time function customized on the conditions and needs, as well as the format of the date that results from a function. PHP as a web programming language that is very popular among webmasters has been providing functions to manipulate date and time are quite complex.

Protect Uploaded Files by .htaccess and Download using PHP Header

Using the internet to share the data, chat with friends or colleagues via social media is a common activity at this time. And people are not ignorant to upload or download a file through the Internet to share with many people who are connected.  On this occasion I will share about how to protect a file that is uploaded using .htaccess so that users can not download directly.

Validate Input FIle From HTML Form Using PHP

Upload File

In developing a web-based application developers often have to provide a facility to upload files on their application. Several factors were behind the developer to provide a facility to upload files, for example, upload a picture (jpg, png), document (doc, pdf), archive (zip, rar) and others. But granting users to upload files, open the gap to the attackers in which the attacker can upload malicious files to the server.

Send Email Using PHP Script

In building a web application, sometimes we need a function to send email. For example, to verify the registration, send the latest product information to customers, send information lost passwords, or send articles for the readers. When we use PHP, we could use the function mail() to send email to the user.

Syntax :
mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]]);

Create Web Thumbnail and Screenshot using PHP

In this post will discuss how to create a web screenshots or web thumbnail using a simple php. Web-screenshot or Web thumbnail is an image of a web presence that is the result of capture. So how do we capture a web page using PHP? We can use the class Web Thumbnail from www.phpclasses.org. This class was created by Lukasz Cepowski, thank him for the class, we can capture a screenshot of a page. This service supports the Firefox, Google Chrome or Opera browsers.

Web Pagination Using PHP and MySQL

What is web pagination? Previously, we'll know a little about web pagination. Web pagination is a method of presenting data on web pages by dividing it into several pages and make the numbering on the pages where data is displayed quite a lot. Web pagination is often found on the homepage or on the page that displays the search results. The easiest example is found on a Google search results page.

Creating Content Excerpt Using PHP


Content Excerpt Using PHP Script
Hi Guys, in this post will discuss about how to create content excerpt using php. Previously, we'll try to understand what that content excerpt. If you're familiar with the world of blogging either using wordpress, blogger or any other blog service providers, you will probably notice that the article on the homepage of your blog does not show up as a whole, but rather in the form of excerpts article. Now we will try to make a simple article excerpt using PHP.

We will use MySQL to store the data content and PHP as a scripting language that will handle the process and sends a response to the client. The first we have to create a database first. I'm not going to explain how to create a database in MySQL, but you can get a database dump file export results that have been made. Download my_db.sql.

Manage and Enable Image Upload in TinyMCE with PHP

TinyMCE Interface
The development of the website has allowed users to interact via the form, the user can send comments, messages or articles. Websites that allow users to interact with form interface called Dynamic Website. In building Dynamic Websites need a text editor or web-based word processing program (HTML WYSIWYG). TinyMCE is a platform WYSIWYG HTML editor control that is quite popular. TinyMCE released as open source under LGPL by application Moxiecode Systems AB. Source : www.tinymce.com.