You pretty much have to give the directory 777 permissions. On a shared
server, this is not the ideal solution, but it's the only one. No
worries if you're on a dedicated server.

---John Holmes...

> -----Original Message-----
> From: Matt Neimeyer [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 29, 2002 11:55 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Problems with dbase_create function
> 
> I considered that...
> 
> Problem is I'm not 100% certain how to set that the correct way... (so
as
> not to screw anything else up)
> 
> Recommendations?
> 
> Thanks
> 
> PS It's good to know I wasn't completely off base... thanks millions!
> 
> >Does the web server have permission to write to the directory where
you
> >are trying to create the database? PHP runs as the web server when
> >installed as a module and it needs permission to write in that
> >directory.
> >
> >---John Holmes...
> >
> > > -----Original Message-----
> > > From: Matt Neimeyer [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, September 29, 2002 2:19 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] Problems with dbase_create function
> > >
> > > Hey All,
> > >
> > > I'm trying to build a DBF for exporting selected data as a
download to
> >the
> > > end users... But I can't get further than this...
> > >
> > >       error_reporting(E_ALL);
> > >       $DBFName = "Test.dbf";
> > >       $Fields = array( array ("Test","C",32) );
> > >       if(dbase_create($DBFName, $Fields))
> > >               { echo "Good!"; } else { echo "Bad!"; }
> > >
> > > It doesn't show an error... and it doesn't create the dbf... it
just
> >shows
> > > "Bad!" and nothing else.
> > >
> > > Any ideas where I should begin looking? I admit I'm not the most
savvy
> > > Linux user but I at least got it to admit that the function
existed
> >(under
> > > a freshly compiled php with --enable-dbase on Redhat Linux 7.2)
> > >
> > > I've also tried $DBFName="./Test.dbf" and
> > > "/full_path_from_root_to_html_folder/Test.dbf" and neither work.
I've
> >also
> > > looked through the archives for this list and for the php-db list
and
> > > haven't seen anything that helps (other than my earlier problem of
not
> > > having enabled dbase, which appears to be fixed, before it
wouldn't
> >even
> > > show "Bad!". )
> > >
> > > Thanks in advance for any ideas...
> > >
> > > Matt
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to