RE: [PHP] Problems with dbase_create function

From: Date: Sun, 29 Sep 2002 15:55:05 +0000
Subject: RE: [PHP] Problems with dbase_create function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-118079@lists.php.net to get a copy of this message
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:matt@neimeyer.org] Sent: Sunday, September 29, 2002 2:19 AM To: php-general@lists.php.net 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


« previous php.general (#118079) next »