DBA_Open() Wont work! Yes I have searched.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply

Are you mad at me?

Yes
0
No votes
Why did you try to deleate your last post? When other's might of needed help.
1
100%
No
0
No votes
 
Total votes: 1

User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

DBA_Open() Wont work! Yes I have searched.

Post 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.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Hmm

Post 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
Post Reply