Minggu, 17 November 2013

PHP Indonesia - Facebook: Mau tanya gan, Fungsi dibawah ini apa bisa berjala...

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/ 
Learn Adobe Illustrator CS6 Master Techniques from an Adobe Guru!

With over 25 years of experience teaching, Robert Farrell has been a trusted instructor for individuals and companies who want to improve their Adobe skills.
From our sponsors
Mau tanya gan, Fungsi dibawah ini apa bisa berjala...
Nov 17th 2013, 10:37, by Ipin Caem

Ipin Caem 10:37am Nov 17
Mau tanya gan,
Fungsi dibawah ini apa bisa berjalan?

<?
$kata = include "file.txt";
?>

Jadi intinya incluce file .txt

Irham Ramadhan 10:40am Nov 17
file.txt itu isinya untuk apa dulu gan???

Ahmad Teguh Satria 10:40am Nov 17
udah dicoba blom?

Thoor D'zeroheart 10:41am Nov 17
No

Al Ghurahy 10:42am Nov 17
kl txt pake file_get_contents() aja

Muhammad Saifuddin 10:42am Nov 17
Kalau incude file.php, bisa. Kalau file.txt, gak bisa mungkin.

Muhammad Saifuddin 10:43am Nov 17
Kalau incude file.php, bisa. Kalau file.txt, gak bisa mungkin.

Thoor D'zeroheart 10:43am Nov 17
fopen

Gembel Berkelas 10:44am Nov 17
bisa, include file apa aja bisa

Muhammad Saifuddin 10:45am Nov 17
Oh...

Ipin Caem 10:46am Nov 17
ow gak bisa. Tp misal input dari user itu qt simpan di file .php apa bisa? Kan klo d .txt bisa.

Gembel Berkelas 10:49am Nov 17
jgn pusing gan, itu cuma skedar extension

Michael Amstrong Miamsi 10:51am Nov 17
gk ! cuma bisa di echo klw di php. saya sudah coba.

Chris Copon 10:52am Nov 17
mending pake fopen & fgets

Gembel Berkelas 10:55am Nov 17
<php include 'file.txt'; ?>

di file.txt kasih logika atau apa aja dgn penulisan bahasa php
ex:
file.txt
<?php
for ( $i = 0; $i < 10; $i++ ) {
echo $i;
}
?>

ketika di include ke php, dia akan d eksekusi sbg php

Gembel Berkelas 11:00am Nov 17
untuk case pada postingan,
brarti file yg di include harus memberi value yg di return

<?php return 'apa aja'; ?>

Thoor D'zeroheart 11:01am Nov 17
knapa gk skalian disimpen sbg file.php? XD

Gembel Berkelas 11:02am Nov 17
'mungkin' agar file nya ndak bisa di eksekusi via url

Thoor D'zeroheart 11:04am Nov 17
kalo itu kan bisa di chmod file/foldernya xD *ngeyel

Gembel Berkelas 11:06am Nov 17
ribet :-P kali aja pengen script nya bisa diliat sbg text/plain saat d tembak url nya, tapi tetep bisa dieksekusi saat di include ke project

Gembel Berkelas 11:07am Nov 17
suka2 ts aja lah

Ipin Caem 11:08am Nov 17
Wkwkwk ternyata ane coba bisa om. Thank semua atas komenya

Thoor D'zeroheart 11:11am Nov 17
link urlnya apa mas, biar ane tembak juga :o atau masih di localhost xD

Ipin Caem 11:11am Nov 17
Kronologi: aq punya web pencari lagu, pingin.q tiap ada orang ketik jdul lgu, jdul trsbut tak jdiin keyword. Hehehe, maaf ane newbie.

Thoor D'zeroheart 11:12am Nov 17
link urlnya apa mas, biar ane tembak juga :o atau masih di localhost xD

Ipin Caem 11:19am Nov 17
udah jdi om, cma mw modif" 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

Tidak ada komentar:

Posting Komentar