Jump to content
The Uniform Server Community
Heinz Stapff

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

Recommended Posts

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:

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...