Make sure dbinfo.inc.php exists, and is in the same directory as insert.php
 Alternatively put the full path to dbinfo.inc.php into your include
statement.
To break down the error, first part is the error.
Warning: include(dbinfo.inc.php) [function.include]: failed to open stream:
No such file or directory
tells you the command that failed (include(dbinfo.inc.php)) and more
specific function.include. Then it tells you why it failed. Couldn't open
the stream, no such file or directory, indicating a problem with
dbinfo.inc.php

Next part just gives you the location of the line, and the file that that
caused it so you can locate and fix it.
 in /home/..../insert.php on line 2

On Mon, Mar 14, 2011 at 8:54 PM, John Patten <johnpat...@mac.com> wrote:

> Hi All...
>
> I have a very basic mysql/php tutorial I'm attempting to make work on
> on-rev.
>
> The php/mysql tutorial is available here:
> http://www.freewebmasterhelp.com/tutorials/phpmysql/1
>
> My question is related to the insert.php code. It shows:
>
> mysql_connect(localhost, $username, $password);
>
> in line 4 of the insert.php file. However, I only get warnings such as:
>
> Warning: include(dbinfo.inc.php) [function.include]: failed to open stream:
> No such file or directory in /home/..../insert.php on line 2
>
> What should the server host name be for the mysql database, localhost or
> something else?
>
> I'd also be open to another mysql/php example if anybody has one handy...
>
> Thank you!
>
> John Patten
> SUSD
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to