For example, if the server is in & #039; C: AppServwww & #039; 01. php In & #039; C: AppServwwwYB-PHPPathDemoChina01.php & #039; is such as 01. php loads 02.php in the same directory and can write: {code ...} but how can I directly write an absolute path on the local machine? This is the case: {code...} I tried... for example, the server is in 'C: AppServwww ';
01. php In 'C: AppServwwwYB-PHPPathDemoChina01.php ';
For example, 01.php loads 02.php in the same directory,
Writability:
include('./02.php');include('/02.php');include('02.php');
But how can I directly write an absolute path on the local machine?
This is the case:
include('http://localhost/YB-PHP/PathDemo/China/02.php');
I tried it but I couldn't.
Reply content:
For example, the server is in 'C: AppServwww ';
01. php In 'C: AppServwwwYB-PHPPathDemoChina01.php ';
For example, 01.php loads 02.php in the same directory,
Writability:
include('./02.php');include('/02.php');include('02.php');
But how can I directly write an absolute path on the local machine?
This is the case:
include('http://localhost/YB-PHP/PathDemo/China/02.php');
I tried it but I couldn't.
An absolute path is a local path, not a network path.
For your file:
C:\\AppServ\www\YB-PHP\PathDemo\China\01.php
You must use http instead of http.