انجمنهای فارسی اوبونتو
		کمک و پشتیبانی => برنامهسازی => نویسنده: rahmani در 06 بهمن 1389، 03:41 بظ
		
			
			- 
				
 hi
 i have a problem on PHP. I work in eclipse & debian5.
 eclipse installed has downloaded eclipse.org and it is
 
 i need to use function require_once with variable.
 
 when i call this function with constant value, the browser executes my program correctly.
 
 but when i call this function with variable (as constant value), the browser not show any things.
 what is different of these code's.
 
 $path = 'http://../../admin/index.php';
 require_once $path;
 
 require_once 'http://../../admin/index.php';
 
 
 if is  below code mistake??
 include('path.php');
 variable $path is  global on file path.php
 $path_file = 'index.php';
 $path = $path.$path_files;
 require_once $path;
 
 thank you very much.
 i has seen similar codes on Ebook Andi Gutmans.
 
- 
				اول اینکه بهتر بود فارسی میپرسیدی و انگلیسی هم تو فرومهای انگلیسی.
 ۲- یه چیز عجیب اینه که شما در شروع آدرس فایل از http استفاده کردید. یه کم عجیبه به هر حال
 ۳- require_once اگه موفق نشه باید خطا بده. log رو چک کردید؟ شاید بد نباشه که display_errors رو فعال کنید تا ببینید چه خطایی داده میشه. در کل برای require_once فرق نمیکنه چی باشه، یه رشته میخواد که آدرس فایل باشه.