Hi
I have included this in my index.php
include $page;
but it is not working on live server BUT WORKING FINE on my Localhost.
I have also included include ('includes/_ini.php'); on the top of index.php page in which $page is defined.
Please suggest
On server it giving the following WARNING
Warning: include(?pgid=1&parid=&rid=1&lang=1) [function.include]: failed to open stream: No such file or directory in /opt/lampp/htdocs/mysite.com/index.php on line 290
Warning: include(?pgid=1&parid=&rid=1&lang=1) [function.include]: failed to open stream: No such file or directory in /opt/lampp/htdocs/mysite.com/index.php on line 290
Warning: include() [function.include]: Failed opening '?pgid=1&parid=&rid=1&lang=1' for inclusion (include_path='.:/opt/lampp/lib/php') in /opt/lampp/htdocs/mysite.com/index.php on line 290
The
include()statement includes and evaluates the**specified file**.Look at your warning:
Compare to this (your code)
So =>
**specified file**not like your format here:?pgid=1&parid=&rid=1&lang=1(it is just the URL not the path of existing file)for example:
More take a look here:
http://php.net/manual/en/function.include.php