RSS

Category Archives: PHP

PHP Quiz Application Using jQuery Ajax MySQL and Bootstrap

http://www.smarttutorials.net/php-quiz-application-using-jquery-ajax-mysql-bootstrap/?utm_source=feedburner&utm_medium=email&utm_campaign=Feed%3A+SmartTutorials+%28Smart+Tutorials%29

Advertisements
 
Leave a comment

Posted by on January 2, 2015 in PHP

 

convert year or month into days, PHP

$lastdate=Authlite::instance()->get_user()->define_dat;

$currentDate = date(‘Y-m-d H:i:s’);

$ct = strtotime($currentDate);
$ct2 = strtotime(‘0 days’, $ct);
echo $ccurrentDate = date(‘r’, $ct2) . PHP_EOL;

$dateString = $lastdate;
$t = strtotime($dateString);
$t2 = strtotime(‘+365 days’, $t);
$endDate = date(‘r’, $t2) . PHP_EOL;
echo “Package will be exired on : “. date(‘r’, $t2) . PHP_EOL;

if($endDate >= $ccurrentDate) {
echo”
“;
echo”Hello”;
} else {
echo”Bye”;
}

 

http://stackoverflow.com/questions/13821427/convert-year-or-month-into-days-php

http://stackoverflow.com/questions/2191573/php-convert-timestamp-to-months-and-days

http://stackoverflow.com/questions/18269556/php-date-add-1-year-to-current-date

 
Leave a comment

Posted by on November 18, 2014 in PHP

 

backup2mail

http://www.backup2mail.com/

 
Leave a comment

Posted by on May 22, 2014 in PHP

 

php links

http://hscripts.com/tutorials/php/

 
Leave a comment

Posted by on May 19, 2014 in PHP

 

Time Stemp

$d= $row[‘cur_date’];
$timestamp = strtotime($d);
echo $date = date(‘d-m-Y’, $timestamp);

 
Leave a comment

Posted by on May 8, 2014 in PHP

 

php all script

http://www.finalwebsites.com/scripts/

 
Leave a comment

Posted by on April 14, 2014 in PHP

 

mp3 download using php

1. Suppose your Domain Name is abcxyz.com. Create a new sub-domain, say downloads.abcxyz.com and upload all your MP3/MP4 files to the root directory, so that their direct address looks like downloads.abcxyz.com/test.mp3 and downloads.abcxyz.com/test.mp4.

2. In the same directory, create and upload a PHP file, say download.php, with following code in it:

 

3. Now, use following HTML code for linking to your files:

Download TEST MP3

// force to download a file
$file = "http://localhost/test/".$_GET['file']."";

$file = $_GET[‘file’];
header (“Content-type: octet/stream”);
header (“Content-disposition: attachment; filename=”.$file.”;”);
header(“Content-Length: “.filesize($file));
readfile($file);
exit;

 

<a href=”http://downloads.abcxyz.com/download.php?file=test.mp3″>Download TEST MP3</a>

 

http://www.dailytechtuts.com/743/stop-streaming-mp3-mp4/

 
Leave a comment

Posted by on April 4, 2014 in PHP