I have the two php files as listed below
calling_include.php
<? include_path='c:\phpdev\www\tests'; include 'included.php'; echo $a; ?>
and included.php
<?php $a=5; ?>
So the error that it is displayed every time is that below : Parser error (when i am executing the calling_include.php) at the point where i am setting the include_path. The odd is that this path exists, and the error remains everytime.
What have i done wrong?
include_path='c:[/B]phpdevwww\tests';
Nothing happened, i don't know where is the problem. Is my php core broken?
I am sorry i have made a mistake, the correct path is that c:\phpdev\www
then my include path would be like that
include_path='c:\phpdev\www';
but i get an error like "Parser error".
i am using windows 98 sec. Could you help me?
It might be a problem with the slashes. Have you tried swapping the '\' slashes for '/' ones ?
The '\' in PHP tells it to 'escape' the next character.
So maybe the solution is to double up all the '\' slashes.
OR
include_path='c:/phpdev/www'
It didn't work 🙁🙁🙁 What i did wrong?
Any help?