if I have 2 scripts:
includes/ajax_dir/script_1.php
and
includes/script_2.php
From script_1.php I know I can include srcipt_2.php like so:
include("../script_2.php");
however how could i do this include using an absolute link?…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
dirname(__FILE__)."/../"will work great I think.The reason I use
dirname(__FILE__)."/somepath/everywhere is:Imagine you have this folder structure