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 morephp 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 morehow 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 morePHP readfile() Function – file handling The readfile() function reads a file and writes it to the output buffer. Assume we have
Read morePHP 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 // PHP program to illustrate substr() function Substring($str){ $len = strlen($str); echo substr($str, 8), “\n”; echo substr($str, 5,
Read moreHow to identify server IP address in PHP or the server ip: $_SERVER[‘SERVER_ADDR’]; and this for the port $_SERVER[‘SERVER_PORT’];
Read moreSaving a curl response into a php variable Here is example to save a curl resonse into a variable in
Read moreget the last 7 characters of a PHP string Use substr() with a negative number for the 2nd argument. $newstring = substr($dynamicstring,
Read morerefresh an iframe in php page <script type=”text/javascript”> var timer; function refreshIframe(){ if(timer) clearInterval(timer) timer = setTimeout(refreshIframe,5000) var iframe
Read moreCurl in html forms : Use of curl Forms are the general way for the user to enter data in,
Read more