Category : PHP Guide

What are the most surprisingly useful PHP functions?

Amazing: date() : http://us2.php.net/manual/en/fun… strtotime() : http://us2.php.net/manual/en/fun… These two functions alone are worth using PHP. In fact, I often download them from http://phpjs.org/ so that I can use them in my JavaScript-heavy apps (especially useful in Node.JS). I’m also a huge fan of (just like pretty much everyone else): print_r() var_dump() json_decode() and json_encode() isset() empty() number_format() ucfirst() and ucwords() base64_decode() and base64_encode() mail()    

WordPress whatsapp and social post share with whatsapp credit

WordPress whatsapp and social post share with whatsapp credit of 50 credits. You can see this service is working here , when you click you can share this post on any whatsapp number ,even any of your visitor can send to another user on whatsapp number.   You can go to shop to buy this product. Link click here      

Developing A Facebook Tabs iFrame Application

Developing A Facebook Tabs iFrame Application   Writing………………………………………

datatable tabletools mutiple tab not working

$( “#tabs” ).tabs(); $(“#tabs”).tabs( { “show”: function(event, ui) { var jqTable = $(‘table.display’, ui.panel); var jqTable = $(‘table.dataTables’, ui.panel); if ( jqTable.length > 0 ) { var oTableTools = TableTools.fnGetInstance( jqTable[0] ); if ( oTableTools != null && oTableTools.fnResizeRequired() ) { /* A resize of TableTools’ buttons and DataTables’ columns is only required on the * first visible draw of the table */ jqTable.dataTable().fnAdjustColumnSizing(); oTableTools.fnResizeButtons(); } } } datatable tabletools mutiple tab not working write this function in jquery so […]

Why use Php for make website?

Why use Php for make website? At this time 30-40 % website developed in Php. It is open source i.e. everyone has free access to the source code and can use it for their own development purposes. Lots of advantage using PHP …….1. Easy to learn in comparison of other technology.2. 8 to 10 times faster than other technology.3. It is highly secure. ex- Paypal (payment gateway) website.4. PHP is html embedded.5. Platform independent.6. It offers great flexibility during and […]

How do you import a large MS SQL .sql file

How do you import a large MS SQL .sql file?   Method 1: Bigdump http://www.ozerov.de/bigdump.php I used a script called BigDump.php, a staggered SQL dump importer. It executes only a small part of the huge dump and restarts itself. The next session starts where the last was stopped to keep you from running into your server’s limits. Instructions for using it are on the BigDump website. Basically you place your SQL file in a folder on your server, along with […]

apptha marketplace magento nulled

 

http://www.vendorkart.com

php-frontend-developer-test-v2-answer

php-frontend-developer-test-v2-answer Fantastic three sequence The fantastic three sequence is a series of numbers in which each subsequent number is the sum of the previous three,minus one. The first few numbers in fantastic three sequence are: 0, 1, 1, 1, 2, 3, 5, etc Write a function that prints the Nth number in the fantastic three sequence to standard output. <?php function fantastic3($n) { $series = array(0,1,1,1); for($i=3 ; $i<=$n ; $i++){ $a = (isset($series[ (int)$i-3 ]))?$series[ (int)$i-3 ]:0; $b = […]

when website open in mobile redirect to subdomain

when website open in mobile redirect to subdomain $_SERVER – Server and execution environment information <?phpecho $_SERVER[‘HTTP_USER_AGENT‘];?>My Android browser Output:Mozilla/5.0 (Linux; U; Android 2.1-update1; en-in; HTC_Wildfire_A3333 Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari user_agent.phpUsining strpos() function find position of first occurrence of a string. <?php $iphone = strpos($_SERVER[‘HTTP_USER_AGENT’],”iPhone“);$android = strpos($_SERVER[‘HTTP_USER_AGENT’],”Android“);$palmpre = strpos($_SERVER[‘HTTP_USER_AGENT’],”webOS“);$berry = strpos($_SERVER[‘HTTP_USER_AGENT’],”BlackBerry“);$ipod = strpos($_SERVER[‘HTTP_USER_AGENT’],”iPod“);if ($iphone || $android || $palmpre || $ipod || $berry == true) { header(‘Location: http://mobile.site.com/’);//ORecho “<script>window.location=’http://mobile.site.com'</script>“;} ?> Index.php or Home.phpYou have to include like […]

Image cannot be displayed on Website

image cannot be displayed on Website because it contains errors when upload filezilla   File is there in server but images cannot display due to various reasons. check .htaccess file url rewrite or any permission/restrictions etc. upload any png image and try to open it browser using direct path to ur png file. such ashttp://localhost/images/test.png (if it works fine, it means your apache process your png successfully fully) check if you have created any symbolic link your images directory in […]