بدست آوردن مقدار کوئری استرینگ بصورت url در rewriting و انتقال به صفحه مشخص شده

hassancd

Active Member
شما می توانید از تابع strpos(); استفاده کنید که در زیر می توان یک مثال از عملکرد این تابع را ببینید
[LTR]<?php

$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);

// Note our use of ===. Simply == would not work as expected
// because the position of 'a' was the 0th (first) character.
if ($pos === false) {
echo
"The string '$findme' was not found in the string '$mystring'";
} else {
echo
"The string '$findme' was found in the string '$mystring'";
echo
" and exists at position $pos";
}
?>
[/LTR]

 
با سلام
از راهنمایی شما ممنونم، فقط دو تا نکته:
1- اتظیمات فایل .htaccess را چجوری تنظیم کنم که آدرس http://rd.test.ir/http://www.google.com معتبر باشه؟
2- اون ادرس وارد شده را چجوری بدست بیارم یا اینکه چجوری در صفحه در زمان لوود شدن ادرس http://www.google.com را دریافت کنم ؟
با تشکر
 

جدیدترین ارسال ها

بالا