مسیری که میگه وجود نداره ولی واقعا وجود داره !!
//in my common.php there is a function:
function fullBaseUrl(){
global $config;
return 'http://' . $_SERVER['HTTP_HOST'] . $config['base'];
}
......................................
//my htaccess code :
Options -Indexes
DirectoryIndex index.php index.html
RewriteEngine On
RewriteBase /framework/
RewriteCond %{REQUEST_URI} !\.(jpg|png|css|js)$
RewriteRule .* index.php [L]
....................................................
//in my loader.php there is :
<?
session_start();
date_default_timezone_set('Asia/Tehran');
require_once('/system/common.php');
require_once('/system/db.php');
require_once('/system/view.php');
my intellejet ideaa say that /system/common.php' but it reALLY exist!!!
......................................................
in my index.php :
require_once('/system/loader.php');
but intlijent ida say that this path not found but it really exist!!!!
................................................
//i didnt write framework folder in 'framework/system/loader.php' because of RewriteBase /framework/
so what is wrong with my code
why all of the require_once doesn't work !?
i should say where is my project folder :
C:\dev\workspace\web\framework
and my direct root when i print $_server is :
[DOCUMENT_ROOT] => C:/dev/workspace/web
my httpconf-vhost in wamp and php 7.2.10 is :
<VirtualHost *:80>
ServerName project.uncox.local
DocumentRoot "c:/dev/workspace/web"
<Directory "c:/dev/workspace/web/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
...................................
could you please help me why i have this error that the path doesn't exist while it exist !
i have this error for all of require file !
thanks!
my real name is fati!
in my common.php there is a function:
function fullBaseUrl(){
global $config;
return 'http://' . $_SERVER['HTTP_HOST'] . $config['base'];
}
......................................
my htaccess :
Options -Indexes
DirectoryIndex index.php index.html
RewriteEngine On
RewriteBase /framework/
RewriteCond %{REQUEST_URI} !\.(jpg|png|css|js)$
RewriteRule .* index.php [L]
....................................................
in my loader.php there is :
<?
session_start();
date_default_timezone_set('Asia/Tehran');
require_once('/system/common.php');
require_once('/system/db.php');
require_once('/system/view.php');
my intellejet ideaa say that /system/common.php' but it reALLY exist!!!
......................................................
in my index.php :
require_once('/system/loader.php');
but intlijent ida say that this path not found but it really exist!!!!
................................................
i didnt write framework folder in 'framework/system/loader.php' because of
RewriteBase /framework/
so what is wrong with my code
why all of the require_once doesn't work !?
i should say where is my project folder :
C:\dev\workspace\web\framework
and my direct root when i print $_server is :
[DOCUMENT_ROOT] => C:/dev/workspace/web
my httpconf-vhost in wamp and php 7.2.10 is :
<VirtualHost *:80>
ServerName project.uncox.local
DocumentRoot "c:/dev/workspace/web"
<Directory "c:/dev/workspace/web/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
...................................
could you please help me why i have this error that the path doesn't exist while it exist !
i have this error for all of require file !
thanks!
my real name is gooz!
چون به همچین مشکلی خوردم و مشکلم حل شد ، اینجا پاسخی قرار میدم برای بقیه ی بچه هایی که به این مشکل میخورن ...
وقتی نسخه ی php رو عوض میکنید. فراموش نکنید که اگه شورت اپن تگ استفاده کردید دوباره تو تنظیمات نسخه ی جدید php که دارید استفاده میکنید فعالش کنید
php.ini
short_open_tag = On/Off
یا اینکه تمام جاهایی که شورت اپن تگ استفاده کردید رو به حالت تگ های نرمال php در بیارید.
php?> <-- ?>
<? echo / or ... <-- =?>
پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .