file upload error
i have drupal running. when i run a php program which uses mysql data base i receive error messages
warning: include_once() [function.include-once]: URL file-access is disabled in the server configuration in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\drupal-6.6\includes\common.inc(1547) : eval()'d code on line 2.
warning: include_once(http://localhost/drupal/drupal-6.6/?q=node/53) [function.include-once]: failed to open stream: no suitable wrapper could be found in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\drupal-6.6\includes\common.inc(1547) : eval()'d code on line 2.
warning: include_once() [function.include]: Failed opening 'http://localhost/drupal/drupal-6.6/?q=node/53' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\drupal-6.6\includes\common.inc(1547) : eval()'d code on line 2.
warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\drupal-6.6\includes\common.inc(1547) : eval()'d code on line 4.
warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\drupal-6.6\includes\common.inc(1547) : eval()'d code on line 4.
warning: include_once(opendb.php) [function.include-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\drupal-6.6\includes\common.inc(1547) : eval()'d code on line 3.
warning: include_once() [function.include]: Failed opening 'opendb.php' for inclusion (include_path='.;C:\php5\pear') in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\drupal\drupal-6.6\includes\common.inc(1547) : eval()'d code on line 3.
i do not know what exactly i have to change in the common.inc file
thank you

what do u mean by "run a php
what do u mean by "run a php program"?
u wrote your own php program (script) and run it? is it a drupal module?
did u follow the standard to write a drupal module?
drupal issue
in a drupal page i inserted php programs which i had previously run on localhost of my computer. the program with no files ran fine, but as soon as the programs using include or using mysql i received error messages
thanks
because drupal is a big php
because drupal is a big php program...it controls all other php script lines (as u insert in the page).
if u want to insert php lines, u have to follow the drupal way.
post your code if u still can fix it.
thanks but i do not
thanks
but i do not understand what "the drupal way" is to insert the php lines. i can show here one part which received an error.
<?phpinclude_once "http://localhost/drupal/drupal-6.6/?q=node/53";
include_once "http://localhost/drupal/drupal-6.6/?q=node/54";
include_once "http://localhost/drupal/drupal-6.6/?q=node/55";
include_once "http://localhost/drupal/drupal-6.6/?q=node/56";
//include_once "opendb.php";
//include_once "insertgrades.php";
//include_once "specificfieldupdate.php";
//include_once "printgradetable.php";
$action="";
$grade=$_POST[grade];
$id=$_POST[studentid];
$studentname=$_POST[studentname];
$action=$_POST[dbaction];
$year=$_POST[year];
$operatorname=$_POST[name];
$password=$_POST[password];
$tablename=$_POST[grade];
$coursename="math";
mysql_query("UPDATE tempid SET tempid='$id' WHERE entrynum='1'");
mysql_query("UPDATE tempid SET tablename='$tablename' WHERE entrynum='1'");
print "tablename runchoices".$tablename."entry".$action."<br/>";
$a=$_SERVER['PHP_SELF'];
$b=$_SERVER['HTTP_REFERER'];
print "php self".$a." <br/>";
print "php REFERER".$b."<br/>";
print "tablename runchoices".$tablename."entry".$action."<br/>";
if ($action=="new entry") {entername($id,$grade,$studentname,$year,$tablename);}
else
{
if ($action=="add grades") {updatedb($studentname,$id, $year, $grade, $coursename,$tablename);}
else
{
if ($action=="change grade"){updateonecourse1();}
else
{
if ($action=="printout"){printout1();}
else
{
print "do not enter grades program.";}}}
}
print <<<end
</br>
<a href="http://localhost/work/hotmail/choices.php">click here to continue the program </br>
<a href="http://localhost/work/hotmail/exit.php">click here to exit the program</br>
<a href="http://localhost/drupal/drupal-6.6/?q=node/29">click here for francus website
end;
?>
thanks
yaacov