I don't have access to edit any PHP install hosting with netsol.com Problems is
i put this in so you know my root how to i tell my code to find root for the includes to work code will be below. Can i get the code and were to put it please to fix this.
can i put it somewhere in my access area htdocs.
if i go to my log in netsol.com and go to file manager area i see directory:root:
then under that i see folders:
backup owner root -w- rwx r-x r-x
cgi-bin owner root -w- rwx rwx r-x
htdocs owner root -w- rwx rwx r-x
all my files and folder are in htdocs and in my index.php in any folder the include code will not work right can any one help to fix this problems.
==========================================================
Root is: /data/17/1/133/110/1622599/user/1748873/htdocs
Root Include is: /data/17/1/133/110/1622599/user/1748873/htdocs/header.php
===============START WEB BROWSER VIEW=======================
Warning: include(d1.php) [function.include]: failed to open stream: No such file or directory in /data/17/1/133/110/1622599/user/1748873/htdocs/Testsite/php/index.php on line 25
Warning: include(d1.php) [function.include]: failed to open stream: No such file or directory in /data/17/1/133/110/1622599/user/1748873/htdocs/Testsite/php/index.php on line 25
Warning: include() [function.include]: Failed opening 'd1.php' for inclusion (include_path='.:/usr/services/vux/lib/php') in /data/17/1/133/110/1622599/user/1748873/htdocs/Testsite/php/index.php on line 25
page1 page2 page3
Warning: include(1.php) [function.include]: failed to open stream: No such file or directory in /data/17/1/133/110/1622599/user/1748873/htdocs/Testsite/php/index.php on line 49
Warning: include(1.php) [function.include]: failed to open stream: No such file or directory in /data/17/1/133/110/1622599/user/1748873/htdocs/Testsite/php/index.php on line 49
Warning: include() [function.include]: Failed opening '1.php' for inclusion (include_path='.:/usr/services/vux/lib/php') in /data/17/1/133/110/1622599/user/1748873/htdocs/Testsite/php/index.php on line 49
===============END WEB BROWSER VIEW========================
=============== START CODE BELOW============================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<?
// test.php
// test to see if $DOCUMENT_ROOT is set.
$root = "$DOCUMENT_ROOT";
$root_include = "$DOCUMENT_ROOT/header.php";
echo "Root is: $root <br>";
echo "Root Include is: $root_include <br>";
?>
<?
switch ($_GET['page'])
{
case "main": include 'd1.php'; break;
case "2": include 'd2.php'; break;
case "3": include 'd3.php'; break;
default: include 'd1.php'; break;
}
?>
</head>
<body>
<table width="200" border="1">
<tr>
<td><a href="index.php?page=main">page1</a></td>
<td><a href="index.php?page=2">page2</a></td>
<td><a href="index.php?page=3">page3</a></td>
</tr>
<tr>
<td colspan="3">
<?
switch ($_GET['page'])
{
case "main": include '1.php'; break;
case "2": include '2.php'; break;
case "3": include '3.php'; break;
default: include '1.php'; break;
}
?>
</td>
</tr>
</table>
<p> </p>
</body>
</html>
=============== END CODE BELOW=============================