Sabtu, 26 Oktober 2013

PHP Indonesia - Facebook: pagi..ane mau minta bantuan.. $url = "http://exam...

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/ 
Start taking a college level music theory class today.

This beginner class is now accessible to aspiring musicians of all ages. Learn all of the basic concepts in an easy to follow manner.
From our sponsors
pagi..ane mau minta bantuan.. $url = "http://exam...
Oct 27th 2013, 02:10, by Bayang Hitam

Bayang Hitam 2:10am Oct 27
pagi..ane mau minta bantuan..

$url = "http://example.com/?gogo=abc&exp=10";

gimana yah jika ane mau ambil nilai gogo?yang lainnya ane mau remove..
jadi, result yang ane mau,
---------
abc
--------

nilai abc dan 10 sentiaasa berubah setiap request.. ane udah cuba str_replace.. tapi ga tahu gimana mau remove nilai exp kerna nilainya sering berubah

Heru Rahmat Akhnuari 2:13am Oct 27
$_GET['gogo']

Bayang Hitam 2:15am Oct 27
pembetulan:

?gogo seharusnya #gogo

kalo ? bisa pake $_GET.. tapi kalo /#gogo=abc ??

Heru Rahmat Akhnuari 2:16am Oct 27
itu urlnya pake "?" -_-

Bayang Hitam 2:19am Oct 27
ini contoh yang sebenar:
http://example.com/#gogo=abc&exp=10";

nilai abc dan 10 berubah setap request

Bayang Hitam 2:21am Oct 27
url ini bukan datang dari browser gan.. url itu akan di submit menggunakan form..jadi

$_POST['url'] itu nilainya url tsb

Thobibul Ulum 2:22am Oct 27
coba ini:
<?php
$url='http://example.com/?gogo=abc&exp=10';
preg_match("/\gogo=(.*)\&exp/",$url,$tmp);
echo $tmp[1];
?>

Ahmad Karlam 2:22am Oct 27
tinggal pake $_GET['gogo'] aja

Bayang Hitam 2:28am Oct 27
ga bisa pake $_GET kerna ia hanya variable sama sperti $abc="dddd";

ane udah cuba method Thobibul Ulum dan berhasil :) makasih yah sobat.. ane udah cuba sbelum ini, tapi ga mahir mggunakan regex :)

Thobibul Ulum 2:41am Oct 27
(y)

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