Month: June 2017

How to Create a File in PHP

File Create The fopen function needs two important pieces of information to operate correctly. First, we must supply it with the name of the file that we want it to open. Secondly, we must tell the function what we plan on doing with that file (i.e. read from the file, write information, etc). Since we

PHP Strings

PHP Strings variables are used for values that contain character strings. A string can be used directly in a function or it can be stored in a variable. For example The output of the code Hello World The Concatenation Operator There is only one string operator in PHP. The concatenation operator (.) is used to

PHP variables

Variables PHP variables are used for storing a values, like text strings, numbers or arrays. When a variable is set it can be used over and over again. Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive. The correct way of setting a

How to upload files in php

This example explains how to upload files in PHP. PHP makes uploading files easy. You can upload any type of file to your Web server. But with ease comes danger and you should be careful when allowing file uploads. In spite of security issues that should be addressed before enabling file uploads, the actual mechanisms

Preload images with jQuery

Using jQuery it is very easy to preload images with jQuery on a web page. All you need to do is form a JSON object with image paths as data and pass that JSON object to preload function then the function will iterate the JSON and assign each path as a source to an img

Solution for Fatal Error: Allowed Memory Size Exhausted

This example gives you the solution for Fatal Error allowed Memory Size Exhausted which causes to stop application running all of sudden. I have purchased the GOOD DOMAIN Hosting w/ Cpanel and tried to install various WordPress plugins to make my website more flexible to users with  design and content However I got this error

jQuery noconflict example

WordPress is wonderful publishing platform with many JavaSript Framework including jQuery. Until today jQuery is one of the favorite JavaScript library, it’s more easy, a lot of plugin available in the internet. Some problem on jQuery and other JavaScript library is, conflict between this library. To eliminate this problem, jQuery has method by added some