Sabtu, 03 Agustus 2013

PHP Indonesia - Facebook: Saya mao nny nih gmna cara bikin biar post jadi ka...

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/ 
Saya mao nny nih gmna cara bikin biar post jadi ka...
Aug 4th 2013, 02:07, by Alfiyana Ogawa

Alfiyana Ogawa 2:07am Aug 4
Saya mao nny nih gmna cara bikin biar post jadi kaya gini...

terima kasih

Alfiyana Ogawa 2:07am Aug 4
mohon bantuannya

Fandri Samudra 2:13am Aug 4
pake css

Wahyu Kristianto 2:14am Aug 4
Wordpress?

Rio Aditya 2:23am Aug 4
bisa pake css, bisa juga pake perulangan di phpnya

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: mohon bantuan nya master" php,, kenapa protected d...

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/ 
mohon bantuan nya master" php,, kenapa protected d...
Aug 4th 2013, 02:31, by Asep Kurniawan

Asep Kurniawan 2:31am Aug 4
mohon bantuan nya master" php,, kenapa protected di awal function di bawah error ya ?????
coding program :
<?php

include "../koneksi.php";
/**
* Method untuk menyimpan data kedalam database
* string $tabel
* array $data : $key = kolom dan $value = data yang akan disimpan.
* @return boolean true : jika berhasil, false gagal
*protected dag ttidak terbaca awal function
*/
protected function simpan($tabel, $data)//protected tidak terbaca
{
$str = "INSERT INTO %s %s VALUES (%s)";
$kolom = array_keys($data);
$kolom = "(" . implode(',', $kolom) . ")";
foreach ($data as $value)
{
$nilai[] = "'$value'";
}
$nilai = implode(',', $nilai);
$qry = sprintf($str, $tabel, $kolom, $nilai);
return $this->execute($qry);
}

/**
* Method untuk melakukan query SELECT
* string $limit : off,len : off : awal indeks yang dibaca, len : banyak data
* @return array[array] : array 2 dimensi
*/
protected function select($tabel, $kolom="*", $where="", $limit="", $order="") {

if ($kolom != "*") {
$kolom = implode(',', $kolom);
}
if ($where != "") {
$where = "WHERE $where";
}
if ($limit != "") {
$limit = "OFFSET " . str_replace(',', ' LIMIT ', $limit);
}
if ($order != "") {
$order = "ORDER BY $order DESC";
}
$qry = "SELECT $kolom FROM $tabel $where $order $limit ";
$hasil = $this->execute($qry);
# echo $qry;
while ($baris = @mysql_fetch_assoc($hasil)) {
$data[] = $baris;
}
return $data;
}

/**
* mengubah data
*/
protected function update($tabel, $data, $where) {
foreach ($data as $key => $value) {
$set[] = "$key='$value'";
}
$set = implode(',', $set);
$str = "UPDATE $tabel SET $set WHERE $where";
return $this->execute($str);
}

/**
* menghapus data
*/
protected function delete($tabel, $where="") {
if ($where != "") {
$where = " WHERE " . $where;
}
$str = "DELETE FROM $tabel $where";
return $this->execute($str);
}

/**
* Mengeksekusi perintah SQL
*/
protected function execute($string, $data=false) {
if ($data) {
$hasil = mysql_query($string);
while ($baris = mysql_fetch_assoc($hasil)) {
$d[] = $baris;
}
return $d;
}
return mysql_query($string);
}

?>

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: script "checked" ini apa guna nya ya? soal nya kal...

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/ 
script "checked" ini apa guna nya ya? soal nya kal...
Aug 4th 2013, 03:03, by Civa Annisa

Civa Annisa 3:03am Aug 4
script "checked" ini apa guna nya ya? soal nya kalo nggak aku bikin nggak ada ngaruh nya..

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: Saya menemukan artikel menarik tentang "PHP on a J...

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/ 
Saya menemukan artikel menarik tentang "PHP on a J...
Aug 4th 2013, 00:50, by Agus Suhartono

Agus Suhartono 12:50am Aug 4
Saya menemukan artikel menarik tentang "PHP on a Java application server", di situ ada pertanyaan penting :

"Since PHP has no language specification but just a single implementation, there is no guarantee that the PHP core's would be identical to Quercus in behavior."

lanjutannya :

"We had to be sure that nothing broke by running the test suite of the application, to ensure there were no corner cases in the behavior of array_search() or query size limit in PDO, or any other departure from the official PHP interpreter."

Mengapa PHP tidak membikin spesifikasi language-nya ya, padahal ia sofware open source?

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: Mau tanya.. Saya punya data begini: Google, ada nG...

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/ 
Mau tanya.. Saya punya data begini: Google, ada nG...
Aug 3rd 2013, 23:20, by Fi Nofriani

Fi Nofriani 11:20pm Aug 3
Mau tanya..
Saya punya data begini:
Google, ada nG array yang masing-masingnya terdiri dari array.
(a1, b1, c1)
(a2, b2, c2)
(a3, b3, c3)
...
(aG, bG, cG)

Bing, ada nB array yang masing-masingnya terdiri dari array.
(d1, e1, f1)
(d2, e2, f2)
(d3, e3, f3)
...
(dB, eB, fB)

Free, ada nF array yang masing-masingnya terdiri dari array.
(g1, h1, i1)
(g2, h2, i2)
(g3, h3, i3)
...
(gF, hF, iF)

Yang saya ingin lakukan adalah merge dan sort berdasarkan a, d, dan g:
1. Merge (hapus d dan g jika ada a, d, dan g yang sama. Hapus d jika a dan d sama. Hapus g jika a dan g sama. Hapus g jika d dan g sama.) Jadi jika d terhapus, e dan f juga terhapus. Jika g terhapus, h dan i juga terhapus.
2. Output hasil merge di nomor 1
3. Output isi Google yang tidak ter-merge
4. Output isi Bing yang tidak ter-merge
5. Output isi Free yang tidak ter-merge
6. Selesai.

Output (b dan c, e dan f, h dan i) sesuai dengan a, d, dan g.
Jujur saya bingung menerjemahkannya ke dalam algoritma PHP..
Minta tolong arahannya, makasih..

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: OOT Mindahin 2000 record data lebih :v INSERT IN...

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/ 
OOT Mindahin 2000 record data lebih :v INSERT IN...
Aug 3rd 2013, 22:54, by Muhammad Saleh Hafizh Fajri

Muhammad Saleh Hafizh Fajri 10:54pm Aug 3
OOT
Mindahin 2000 record data lebih :v

INSERT INTO `barang`
(`namaBarang`, `idKategoriBarang`, `idSatuanBarang`, `idSupplier`, `barcode`, `qtyMinimum`, `qtyMaximum`, `hargaBeli`, `hargaJual`)
SELECT `mstbarang`.`Nama`, `kategori_barang`.`idKategoriBarang`, `satuan_barang`.`idSatuanBarang`, `supplier`.`idSupplier`, `mstbarang`.`Kode`, `mstbarang`.`QtyMin`, `mstbarang`.`QtyMax`, `mstbarang`.`Hrg_BeliDsr`, `mstbarang`.`Hrg_Jual` FROM `mstbarang`
LEFT JOIN `kategori_barang`
ON `mstbarang`.`No_Kategori`=`kategori_barang`.`idtemp`
LEFT JOIN `supplier`
ON `mstbarang`.`Spl`=`supplier`.`namaSupplier`
LEFT JOIN `satuan_barang`
ON `satuan_barang`.`namaSatuanBarang`=`mstbarang`.`Satuan`

wakakaka

Cahya Dsn 11:00pm Aug 3
denormalisasi >.<

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: gan cara ngampil content, content2, content3 dari ...

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/ 
gan cara ngampil content, content2, content3 dari ...
Aug 3rd 2013, 18:03, by Sandi Racy

Sandi Racy 6:03pm Aug 3
gan cara ngampil content, content2, content3
dari '<p>[content]</p><p>[content2]</p><p>[content3]</p>'
gimana ? :D

Konglie Huang 6:08pm Aug 3
Coba artikel ini. Regex nya dimainkan saja.
http://stackoverflow.com/questions/11306596/regex-to-extract-the-contents-of-a-div-tag

Sandi Racy 6:09pm Aug 3
tkp dulu gan

Sandi Racy 6:09pm Aug 3
itu pake apa gan ?
asp ?

Gunawan Mujur Wibisono 6:12pm Aug 3
pake ruby, or java

Mulia Nst 6:13pm Aug 3
Di php juga ada regex. http://www.php.net/manual/en/book.pcre.php

Gunawan Mujur Wibisono 6:13pm Aug 3
btw.. disini grup PHP bahasa komputer.. ato PHP yg lain ya? -_- kok bs nanya pake bahasa apa?

Sandi Racy 6:14pm Aug 3
to the point aja yah gan :D
regex nya kira2 gimana T_T

Gunawan Mujur Wibisono 6:14pm Aug 3
-_- to the point aja.. di link teratas coba aja.. kl gagal share script gagal km kt perbaiki dr sana

Sandi Racy 6:14pm Aug 3
ane nanya link yang gan konglie kasih itu pake bahasa apa, gih aja agan lihat, kayaknya bukan pake php :D

Indra Tux Bw 6:15pm Aug 3
Rtfm

Sandi Racy 6:15pm Aug 3
baru kepikiran segini gan, hha
$result = preg_match('/\[(.*?)\]/', '$1', $content);

Konglie Huang 6:15pm Aug 3
Itu vb. Pake aja regex nya, di php salah satunya bisa dengan preg_match.

Gunawan Mujur Wibisono 6:16pm Aug 3
<div[^<>]*class="entry"[^<>]*>(?<content>.*?)</div>

Mulia Nst 6:16pm Aug 3
Yang dimaksud di atas itu ambil regex pattern nya gan

Gunawan Mujur Wibisono 6:17pm Aug 3
maksud ane.. regex yg dikasi di link itu coba aja dgn perintah regex..

Sandi Racy 6:19pm Aug 3
hmmm
bingung, hha
misal ane ambil regex ini <div[^<>]*class="entry"[^<>]*>(?<content>.*?)</div>
trus cara nerapin di php nya gimana ?
*cupu

Gunawan Mujur Wibisono 6:20pm Aug 3
$result = preg_match('/\[(.*?)\]/', '$1', $content); >> ini coba aja

Sandi Racy 6:22pm Aug 3
hasilnya 0
preg_match itu returnnya boolean ?

Gunawan Mujur Wibisono 6:24pm Aug 3
hrsnya array.. kata kuncinya salah.. btw.. sy penasaran atas ini
<p>[content]</p><p>[content2]</p><p>[content3]</p>
emang content nya ada dalam [ ]?

Sandi Racy 6:25pm Aug 3
intinya ingin ngambil kata content dari <p>[content]</p>

Gunawan Mujur Wibisono 6:27pm Aug 3
kl saya
$a=explode("</p>",$str);
foreach($a as $v)
{
$ar[]=substr($v,4,strlen($v)-1);
}
/*jawaban orang dah ngantuk*

Sandi Racy 6:28pm Aug 3
hahahaha
belum tentu ntar isi contentnya tag p, mungkin aja tag div atau tag tag lainnya :D

Gunawan Mujur Wibisono 6:29pm Aug 3
sy ngikutin dari apa yg km tulis.. km mau hapus <p>[ dan ]</p> khan :v

Konglie Huang 6:30pm Aug 3
Preg march return value nya boolean. Hasil capture subquery regex akan ditaruh di variable (parameter) ketiga kalo gak salah, dengan kata lain parameter ketiga (kalo gak salah urutannya), adalah parameter passed as reference, bukan value.

Sandi Racy 6:30pm Aug 3
hahahaha, pertanyaannya ganti jadi gini aja deh cara ngambil kata content dari [content]

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