Minggu, 17 November 2013

PHP Indonesia - Facebook: Assalamulaikum..Selamat Pagi agan-agan... ane udah...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Compare Hotels

Find great prices for amazing hotels wherever your next destination may be. It's simple to search 100+ sites at once!
From our sponsors
Assalamulaikum..Selamat Pagi agan-agan... ane udah...
Nov 17th 2013, 22:45, by Ayat Hidayat

Ayat Hidayat 10:45pm Nov 17
Assalamulaikum..Selamat Pagi agan-agan...
ane udah coba nih coding untuk download beberapa file lalu di .zip,
tapi kog gk konsisten gan antara file yg di pilih untuk di download dengan hasilnya yg udah di .zip ???
ane pake cek box untuk download per barisnya...
smoga ada pencerahan.. Terima Kasih, smoga Berkah...

Ayat Hidayat 10:47pm Nov 17
ini koding untuk tampilan file2 yg akan di download, Point cekbox nya ada pada tag <td> yg kedua gan, :

while ($data=mysql_fetch_array($hasil))
{
?>
<tr>
<td><a href="delete-file-mhs-web.php?id=<?php echo $data['id'];?>" onclick="return confirm('Anda yakin menghapus file dengan NIM <?php echo $data['nim_mhs'];?> ?');">
<i class='icon-trash'></i>Hapus</a>&nbsp;
<a href="download-single.php?id=<?php echo $data['id'];?>">
<i class='icon-download'></i>Download</a>
</td>
<td><input type="checkbox" name="data[]" value="<?php echo $data['id'];?>"/></td>
</tr>
<?php
}

Ayat Hidayat 10:51pm Nov 17
ini file untuk proses submit pilihan2 tadi (Sumber dari webinfopedia.com) :

<?php
//This script is developed by www.webinfopedia.com
//For more examples in php visit www.webinfopedia.com
function zipFilesAndDownload($file_names,$archive_file_name,$file_path)
{
$zip = new ZipArchive();
//create the file and throw the error if unsuccessful
if ($zip->open($archive_file_name, ZIPARCHIVE::CREATE )!==TRUE) {
exit("cannot open <$archive_file_name>\n");
}
//add each files of $file_name array to archive
foreach($file_names as $files)
{
$zip->addFile($file_path.$files,$files);
//echo $file_path.$files,$files."<br />";
}
$zip->close();
//then send the headers to foce download the zip file
$zipped_size = filesize($archive_file_name);
header("Content-Description: File Transfer");
header("Content-type: application/zip");
header("Content-Type: application/force-download");// some browsers need this
header("Content-Disposition: attachment; filename=$archive_file_name");
header("Expires: 0");
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
//header('Pragma: public');
header("Pragma: no-cache");
header("Content-Length: ".$zipped_size);
ob_clean();
flush();
readfile("$archive_file_name");
unlink("$archive_file_name"); // Now delete the temp file (some servers need this option)
exit;
}

if (isset($_POST['bt_download'])) {
include "../../koneksi.php";
//$data=$_POST['data'];
$data=filter_var_array($_POST['data']);//works but it's the wrong method
for ($i=0;$i < sizeof($data); $i++){
$sql="select * from file where id in('$data[$i]')";
//Mysql query to fetch file names
$query=mysql_query($sql);
//create an empty array
$file_names = array();
//fetch the names from database
while($row = mysql_fetch_array($query, MYSQL_NUM)){
//Add the values to the array
//Below 3 ,eams the the number of the mysql table column
$file_names[] = $row[3];
}
$namafile=date("d-m-y");

//Archive name
$archive_file_name="File-Praktikum-Web-Klp.".$row['kelompok']."-".$namafile.".zip";
//Download Files path
$file_path='../file_mhs/';
}
//call the function
zipFilesAndDownload($file_names,$archive_file_name,$file_path);
}
?>

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

PHP Indonesia - Facebook: Ada yg pernah test webnya di GTmetrix ? saya mau t...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Shop Best Buy

Find this week's deals in computers, cameras, phones, and more! Choose store pick up or other shipment options.
From our sponsors
Ada yg pernah test webnya di GTmetrix ? saya mau t...
Nov 12th 2013, 12:14, by Danang Vai Kurniawan

Danang Vai Kurniawan 12:14pm Nov 12
Ada yg pernah test webnya di GTmetrix ?
saya mau tanya maksut dari recomendation (expiration not specified) itu apa ?

Namikaze Radya 12:27pm Nov 12
blum set expires header di file statis um, kyk image, css, js, dll :3

Namikaze Radya 12:29pm Nov 12
coba tambahin ini ke .htacess um..
ExpiresActive On
<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css)$">
ExpiresDefault "access plus 1 year"
</FilesMatch>

Danang Vai Kurniawan 12:29pm Nov 12
iya saya coba dulu

Namikaze Radya 12:31pm Nov 12
:3

Danang Vai Kurniawan 12:33pm Nov 12
cz web ane page speed gradenya f :(

Namikaze Radya 12:42pm Nov 12
punya ane A semua :3

Danang Vai Kurniawan 12:49pm Nov 12
pengen gannn :(

Sigit Prabowo Azura 2:39pm Nov 12
ane B sama D gan :'(

Albert Septiawan 9:54pm Nov 17
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|xml|gz)$">
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>

[ask] gan Namikaze Radya,
"mod_headers.c" itu mksdnya apa ya ? file *.c kah gan?

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

PHP Indonesia - Facebook: Master, bantu ya ketika kita login dengan database...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Creating iOS Games: Beginner Course

Marin Todorov teaches you how to create an iPhone game easily and simply using Cocos2d in this $99 online course.
From our sponsors
Master, bantu ya ketika kita login dengan database...
Nov 17th 2013, 20:05, by Herbet Si Mangunsong

Herbet Si Mangunsong 8:05pm Nov 17
Master, bantu ya
ketika kita login dengan database,
unttuk menampilkan user yg sedang login, gmn ya?
newbe mas....

Heru Rahmat Akhnuari 8:07pm Nov 17
bikin sebuah field lalu valuenya aktif apa tidak :D

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

PHP Indonesia - Facebook: {ASK} para mastah mau nnya nih, maklum msi newbie....

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Creating iOS Games: Beginner Course

Marin Todorov teaches you how to create an iPhone game easily and simply using Cocos2d in this $99 online course.
From our sponsors
{ASK} para mastah mau nnya nih, maklum msi newbie....
Nov 17th 2013, 18:52, by Hendra Geng Raptoer

Hendra Geng Raptoer 6:52pm Nov 17
{ASK}
para mastah mau nnya nih, maklum msi newbie..
bgaimna klo kta mau bkin login multi user, nah yg sya bingung membuatnya itu yg sya gak ngerti. apa para mastah bsa bantuin ane??

please HELP ME!!...

Fathul Azis 6:55pm Nov 17
Maksudnya user A login sbg A, user B login sbg B ya gan?
Kalo mau, pake combobox aja usernya, jadi misal dipilih A, masukin password nya A, maka login sbg A, begitu juga yg B.

Hendra Geng Raptoer 6:57pm Nov 17
iya gan.tapi boleh minta caranya??

Fathul Azis 6:59pm Nov 17
caranya sama aja gan query loginnya juga sama, yg ngebedain adalah misal si user select combobox A, maka diget nilai username nya si A ke query, tinggal si user ketikkan password yang juga diget ke query untuk login.

Hendra Geng Raptoer 7:04pm Nov 17
ane masih kurang ngerti gan.boleh minta contohnya aja?? biar lebih jelas gan..

Heru Rahmat Akhnuari 7:06pm Nov 17
hmmm..biasanya sih mencari role use nya, contoh punya field akses, nanti dibikin session value field tersebut

username
password
akses

Thoor D'zeroheart 7:10pm Nov 17
bikin satu key khusus terserah mau field didatabase atau apa.. lalu cek user +pass itu,level login sbagai apa? admin atau enggak

Hendra Geng Raptoer 7:11pm Nov 17
ya gan ane udah bikin databasenya.cara terhubungnya yang belum tauu ane..

Thoor D'zeroheart 7:35pm Nov 17
<?php
session_start();
$db=new mysqli("localhost","root","","mydb");
if(isset($_POST['login'])){
$query=$db->query("SELECT * FROM user WHERE user='$user' && pass='$pass' ");
if($query->num_rows == 1){

$result=$db->query($query)->fetch_assoc();
$_SESSION['username']=$result['username'];
$_SESSION['akses']=$result['akses'];
header('location:home.php');}
else{
echo "username & password salah";}
}
?>

$_SESSION['akses'] uda di save...
brarti uda punya login level..
klo mau nampilin menu admin/lempar hlaman admin tinggal cek aksesnya

if($_SESSION['akses']=="admin"){
include 'adminpanel.php';}

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

PHP Indonesia - Facebook: ada yang punya coding php buat generate penjadwala...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Mobile Game Development Course

Learn how to create awesome HTML5 games that run on iPhone, iPad, Android and Desktop! Sign up today for this $99 online course.
From our sponsors
ada yang punya coding php buat generate penjadwala...
Nov 17th 2013, 18:13, by Anggi Ginanjar

Anggi Ginanjar 6:13pm Nov 17
ada yang punya coding php buat generate penjadwalan matakuliah secara otomatis ga ga? klo ada kirim ksini ya...

GhaLi 6:15pm Nov 17
wahh, sama kyak yag ane cari nih ^_^

Trias Fahrudin 6:15pm Nov 17
ya udah, kan ada temennya nyari. yang rukun ya nyarinya....

Anggi Ginanjar 6:16pm Nov 17
ya mudah" an ada master php yang baik hati kirim codingnya

Heru Rahmat Akhnuari 6:26pm Nov 17
hahahhaa.. 1 kampus ya? :D

Anggi Ginanjar 6:27pm Nov 17
ga beda

Faisal Hilmy 6:30pm Nov 17
amiennn... ^_^

Zakky 6:40pm Nov 17
ada

Izat Hamidi 6:50pm Nov 17
Anggi Ginanjar + GhaLi bikin aja . .

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

PHP Indonesia - Facebook: cara memproteksi file koneksi php gmn ya.?

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Marketing Mobile Apps

This online course focuses on marketing efforts that will increase your app's exposure and establish a mobile app marketing plan. Enroll today for $99.
From our sponsors
cara memproteksi file koneksi php gmn ya.?
Nov 17th 2013, 18:33, by GhaLi

GhaLi 6:33pm Nov 17
cara memproteksi file koneksi php gmn ya.?

Gede Lumbung Suma Wijaya 6:36pm Nov 17
chmod 400

Izat Hamidi 6:41pm Nov 17
kalo di server windows ?

Uray Yusharnadi 6:45pm Nov 17
gunain .htaccess
chmod nya juga di set :)

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions