PHP Tutorial

Welcome to the PHP Knowledge Base and Tutorial

Laravel "Framework" Basic Task List Tutorial

Application ImageBasic Task List Introduction Installation Prepping The Database Database Migrations Eloquent Models Routing Stubbing The Routes Displaying A View Building
Read More »

Laravel "Framework" Installation

Install Composer Laravel utilizes Composer to manage its dependencies. First, download a copy of the composer.phar. Once you have the
Read More »

PHP program to Happy Holi

PHP program to Happy Holi Here is the simple php program to print Happy Holi.   <!DOCTYPE html> <html> <body> <?php
Read More »

php include pages or files

php include pages or files The include (or require) statement takes all the text/code/markup that exists in the specified file and copies it
Read More »

how to get date of yesterday using php

how to get date of yesterday using php   <?php $test=date('d.m.Y',strtotime("-1 days")); echo $test; ?> or <?php $test=date('d-m-Y',strtotime("-1 days")); echo
Read More »

PHP readfile() Function - file handling

PHP readfile() Function – file handling The readfile() function reads a file and writes it to the output buffer. Assume we have
Read More »

PHP print Statement

PHP print Statement The print statement can be used with or without parentheses: print or print(). Display Text The following example shows how to output
Read More »

PHP substr() function

<?php   // PHP program to illustrate substr() function Substring($str){     $len = strlen($str);     echo substr($str, 8), "\n";     echo substr($str, 5,
Read More »

How to identify server IP address in PHP

How to identify server IP address in PHP   or the server ip: $_SERVER['SERVER_ADDR']; and this for the port $_SERVER['SERVER_PORT'];
Read More »

Saving a curl response into a php variable

Saving a curl response into a php variable Here is example to save a curl resonse into a variable in
Read More »

get the last 7 characters of a PHP string

get the last 7 characters of a PHP string Use substr() with a negative number for the 2nd argument. $newstring = substr($dynamicstring,
Read More »

refresh an iframe in php page

refresh an iframe in php page   <script type=”text/javascript”> var timer; function refreshIframe(){ if(timer) clearInterval(timer) timer = setTimeout(refreshIframe,5000) var iframe
Read More »

Curl in html forms : Use of curl

Curl in html forms : Use of curl Forms are the general way for the user to enter data in,
Read More »

curl to automate HTTP jobs : Working with Curl command

Curl is a command line tool for doing all sorts of URL manipulations and transfers. Curl is not written to
Read More »

curl api using variable post/get method

HI every one there are lot of confusion about curl may be you understand easily …    $url= “phone=$phone&leadid=$leadid”; //initialized
Read More »

Older Entries » For any query or issue, feel free to discuss on http://discuss.eduguru.in