Page 1 of 1

DBA_Open() Wont work! Yes I have searched.

Posted: Sat Nov 01, 2003 9:46 am
by William
I dont understand. I am now trying to work with DBM. Question 1. Does this meen that i can only have 6 cause my host only gives 6 MySQL Databases. Question 2. I keep getting this Error: wile trying to create one. Here is code and then error.

index.php:

Code: Select all

<html>
<head>
<title>Creating My First DBA.</title>
</head>
<body>
Creating Database...
<?php
$dbh = dba_open( "./data", "c", "gdbm" ) or die( "<b>Error</b>: Database could not load." );
?>
</body>
</html>
I made the folder data. And I changed the folders chmod to 777 and the index.php to 777, here is the error


Creating Database...
Fatal error: Call to undefined function: dba_open() in /home/william/public_html/database/index.php on line 8


Any ideas? Please help.

Posted: Sun Nov 02, 2003 4:43 am
by twigletmac
You are trying to use a function that doesn't exist, it would appear as if the dba functions are not available to you on your hosts server. If you need them activated you're going to have to ask your host about it.

Mac

Hmm

Posted: Wed Nov 26, 2003 11:17 pm
by William
My host doesnt no veary much i might have to switch lol guess thats what happends when you buy froma 11 && 16 year old of course they told me when i payed lol