Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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:

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

  • Author

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:

  • Author

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?

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.