I am trying to include a php document which name is news.php, but because I am doing this on a local server files navigate trough \ and not /
My code looks as follows:
<?php include("\xnews\news.php");?>
But because of the \n which in php means newline (I believe) the output views the error:
Warning: include(\xnews\ews.php): failed to open stream: No such file or directory in C:\Users\Johanne-PC\Desktop\EasyPHP-12.0\www\my portable files\Homepage\news.php on line 44
Is there any way I can bypass this and include it successfully?
Use \:
You can also use single quotes (which don’t escape):
Additionally, you can (edit: on all systems), use /: