Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to open a php project which is in C:\xampp\htdocs\unigoa.indowordnet

thr z some problem when i am writing this code
<?php
$path=$_SERVER['DOCUMENT_ROOT']."C:\xampp\htdocs\unigoa.indowordnet";
?>

Error: Do not access superglobal $SERVER array directlty
use some filtering function instead.( eg filter_input())


please help me. i m learning php.
Posted

1 solution

Than learn from here: http://php.net/manual/en/function.filter-input.php[^]
By the way you are trying to concatenate absolute path to an other absolute path... what do you expect as result?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900