Jump to content


Photo

Path to php.ini pointing to C: When Uniserver in D:


  • Please log in to reply
3 replies to this topic

#1 Heinz Stapff

Heinz Stapff

    Member

  • Member
  • PipPip
  • 80 posts
  • Gender:Male
  • Location:Riberas Del Pilar, Chapala, Jalisco, Mexico
  • Interests:Architecture, AutoCAD,
  • Main OS: Windows 8

Posted 08 August 2011 - 12:37 PM

Am getting fatal error: Call to undefined function() in D:/UniServer/www/getSilver.php on line 9

Checked phpinfo in Admin panel and it tells me
Configuration File (php.ini) Path = C:\WINDOWS
Loaded Configuration File = D:\UniServer\usr\local\php\php.ini

Hints from web searches indicate that I should change the file path to the D:\UniServer\usr\local\php\php.ini
To stop this error.
I am using UniServer Orion 7.1.3 and the PHP configuration link dosen't provide a path to php.ini change?
Not even sure that it would work :rolleyes:

#2 Coral

Coral

    Junior Member

  • Member
  • Pip
  • 40 posts
  • Main OS: Windows XP

Posted 08 August 2011 - 02:31 PM

You are running Uniform Server from D: drive
“Loaded Configuration File = D:\UniServer\usr\local\php\php.ini”
The loaded configuration is correct.

Problem is with line 9 can you post getSilver.php line 9

#3 Heinz Stapff

Heinz Stapff

    Member

  • Member
  • PipPip
  • 80 posts
  • Gender:Male
  • Location:Riberas Del Pilar, Chapala, Jalisco, Mexico
  • Interests:Architecture, AutoCAD,
  • Main OS: Windows 8

Posted 08 August 2011 - 03:22 PM

Coral, BobS spoted the error and I havent testeted the result yet. Let me know if you see anything else or recomend anything else. BobS is correct when he says this isn't the forum for Ajax and php tutorials but it is for UniServer working correctly questions.
<?php

$link=mysql_connect("localhost","root","root")or die(mysql_error( ));

mysql_select_db("bwi",$link) or die(mysql_error( ));

$query=mysql_query("SELECT Code,Item,Description,Href,Src FROM silver")or die(mysql_error( )); // had msql_query not mysql!!!!!!!!!!

echo "<table border='1'>
<tr>
<th>Code</th>
<th>Item</th>
<th>Description</th>
<th>Href</th>
<th>Src</th>
</tr>";

while($row = mysql_fetch_array($query))
{
echo "<tr>";
echo "<td>" . $row['Code'] . "</td>";
echo "<td>" . $row['Item'] . "</td>";
echo "<td>" . $row['Description'] . "</td>";
echo "<td>" . $row['Href'] . "</td>";
echo "<td>" . $row['Src'] . "</td>";
echo "</tr>";
}

echo "</table>";

mysql_close($link);
?>

:) Hay Coral, BobS was right and it worked, the div innerHTML gets the output from query the only thing is that the getSilver.php returns the #comment at the top of the php page along with the table. Is there a way to write the SELECT that dosen't return the #Comment in the php page? :rolleyes:

#4 Heinz Stapff

Heinz Stapff

    Member

  • Member
  • PipPip
  • 80 posts
  • Gender:Male
  • Location:Riberas Del Pilar, Chapala, Jalisco, Mexico
  • Interests:Architecture, AutoCAD,
  • Main OS: Windows 8

Posted 08 August 2011 - 03:57 PM

Hay Coral, BobS was right and it worked, the div innerHTML gets the output from query the only thing is that the getSilver.php returns the #comment at the top of the php page along with the table. Is there a way to write the SELECT that dosen't return the #Comment in the php page?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users