CODE
<? echo "I should see this!"; ?>
just to see if php is working
( NOT WORKING ON OTHER SITES TOOOOOOOOOT! )...
when I was able to run the script... i created another directory named coresClass
then uploaded a class named coresMysql.php ( database connection ).
so the file is in coresClass/coresMysql.php
after that, i went back to file manager and edited louie.php added a line on top of the DTD thing... like
CODE
<?php
require "coresClass/coresMysql.php";
?>
require "coresClass/coresMysql.php";
?>
so i was actually including the class i've created... it works fine on my computer but when i uploaded it to any site hosting...
it gives me error and this is what i always got!
require(coresClass/coresMysql.php) [function.require]: failed to open stream: No such file or directory in /www/vndv.com/c/o/r/cores/htdocs/louie.php on line 2
and
Fatal error: require() [function.require]: Failed opening required 'coresClass/coresMysql.php' (include_path='.:/usr/lib/php') in /www/vndv.com/c/o/r/cores/htdocs/louie.php on line 2
this is the actual code...
CODE
<?php
require "coresClass/coresMysql.php";
?>
<!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-1" />
<title>Untitled Document</title>
</head>
<body>
Louie Bacani Foronda;
<?php
echo "I should see this?";
?>
</body>
</html>
require "coresClass/coresMysql.php";
?>
<!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-1" />
<title>Untitled Document</title>
</head>
<body>
Louie Bacani Foronda;
<?php
echo "I should see this?";
?>
</body>
</html>
HOPING FOR A POSITIVE ANSWER! THANKS!
