Kamis, 03 Oktober 2013

PHP Indonesia - Facebook: permisi bradah ganggu waktunya sebentar ya saya m...

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/ 
Want free Kindle ebooks?

Sign up to receive the best freebie Kindle ebook deals in your email every day.
From our sponsors
permisi bradah ganggu waktunya sebentar ya saya m...
Oct 3rd 2013, 08:24, by Restu Budi Hermana

Restu Budi Hermana 8:24am Oct 3
permisi bradah
ganggu waktunya sebentar ya saya mau konsultasi/menanyakan tentang php.

jadi kasusnya seperti ini saya kan bikin 2 website testing
1. buat penyimpanan database
2. buat penyimpanan file

contoh :

www.khususdb.com
www.khususfile.com

kira kira kira logika script download phpnya gmna ya
saya kan buat
download.php di web yang www.khususdb.com beserta dengan GET nya

jadi seperti ini
download.php?f=tes.pdf

sedangkan file tes.pdf nya berada di www.khususfile.com

saya coba begini
$url=$_GET['url'];
$query=mysql_query ("select * from tb WHERE file='$url'");
$r = mysql_fetch_array($query);

//============
$file="www.khususfile.com/$r[FileName]";

script download

mohon pencerahannya ya bradah bradah :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

Tidak ada komentar:

Posting Komentar