Re: [PHP] Need help adding dBase support to PHP

2007-10-12 Thread Jon Westcot
Hi Nathan:

The page you referenced in the PHP documentation is exactly what I saw that 
indicated that the dBase functions needed to be compiled in with the 
--enable-dbase directive.  What I need to know is HOW to do this, even in 
general terms.  GoDaddy is being very little help (no big surprise there).  
Their last message indicated updating values in the php.ini file would let this 
work, but, as you pointed out, this isn't an option with the php.ini.  I looked 
in the phpinfo data and couldn't find anything that matched dbase anywhere; 
certainly, no section in the output indicated any dBase settings whatsoever.

I'm fearing that I'm going to have to find some other way to handle the 
extraction of data from DBF files if I can't get this to work.

Thanks again for your help.

Jon



- Original Message - 
From: Nathan Nobbe 
To: Jon Westcot 
Cc: PHP General 
Sent: Thursday, October 11, 2007 6:06 PM
Subject: Re: [PHP] Need help adding dBase support to PHP


On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote:
  Hi again:

  Thanks for the info.  From what I can see, GoDaddy does NOT provide 
access to ssh.  Any other thoughts?  Or is there some way to tell me, in 
general terms, how to configure PHP to allow the dbase functions to be used? 


if  godaddy is recommending that you place values in a .htaccess file they 
probly mean you should upload a .htaccess
file via ftp.  im assuming thats how the give you access to the system (since 
there is no ssh access). 
im a bit unsure of the .htaccess setting, though i recently posted a small 
how-to on using .htaccess files to override
settings in php.ini; this is common in shared hosting environments.
http://gentoo-wiki.com/HOWTO_php.ini_overrides_w/_.htaccess

basically, to have dbase support, php must be compiled w/ --enable-dbase, per 
the documentation.
http://www.php.net/manual/en/rlef.dbase.php

perhaps, it is compiled in and the php.ini settings are preventing you from 
using the functions (though that sounds hard to believe).
you might try tossing a phpinfo script on the box and looking for dbase in the 
output; particularly look for --enable-dbase, or --disable-dbase. 
you should see a dbase section also, if its compiled in.  if it is there we can 
get a better idea of what sort of values could be placed in the
.htaccess file that would influence the behavior of the dbase component on that 
system. 

-nathan





Re: [PHP] Need help adding dBase support to PHP

2007-10-12 Thread Nathan Nobbe
On 10/12/07, Jon Westcot [EMAIL PROTECTED] wrote:

 Hi Nathan:

 The page you referenced in the PHP documentation is exactly what I saw
 that indicated that the dBase functions needed to be compiled in with the
 --enable-dbase directive.  What I need to know is HOW to do this, even in
 general terms.


basically you run about 3 commands.
configure
make
make install
and configure is the command you would pass --enable-dbase to.
windows systems typically have binary installs available; but i really have
never setup php on a windows box.

anyway, the reason i asked about the distribution to begin with is many
distributions handle php configuration / installation so its quite simple.
on gentoo you just add or remove a use flag and emerge it again if you want
to make a change.  on debian there are modules so i believe you can just
apt-get a new module if it isnt already installed.
seems nice, but ill tell you, on gentoo you spend time compiling; on debian
you spend time saying where is that package i want and how do i trick
apt-get to install it correctly.  but i digress... :)

GoDaddy is being very little help (no big surprise there).  Their last
 message indicated updating values in the php.ini file would let this work,
 but, as you pointed out, this isn't an option with the php.ini.  I looked
 in the phpinfo data and couldn't find anything that matched dbase
 anywhere; certainly, no section in the output indicated any dBase settings
 whatsoever.


if you havent done so i would just use the search feature of your browser
and type in dbase on that page.  you should see something in the configure
directive; either --enable-dbase or --disable-dbase most likely.

I'm fearing that I'm going to have to find some other way to handle the
 extraction of data from DBF files if I can't get this to work.


are you really committed to godaddy at this point ?

-nathan


Re: [PHP] Need help adding dBase support to PHP

2007-10-12 Thread Jon Westcot
Hi Nathan:

Thanks for the info.  Unfortunately, it's not my call which host to use.
I'm just being asked to help write some code, and I know that there are DBFs
in the process that need to be examined and brought into MySQL on a daily
basis, if not more often.

From what I've been told, the GoDaddy server is a shared server, which I
guess means that we, the underlings using it, can't really get in and make
whatever changes we'd like to make.

I did use the browser search to look for any occurence of dbase in the
phpinfo-returned data, but nothing showed up.

I appreciate the help you've given.  I'll just have to wait and see if
the person who owns the site is able to get anywhere with the GoDaddy tech
support.

Thanks again,

Jon

- Original Message -
From: Nathan Nobbe [EMAIL PROTECTED]
To: Jon Westcot [EMAIL PROTECTED]
Cc: PHP General php-general@lists.php.net
Sent: Friday, October 12, 2007 12:27 AM
Subject: Re: [PHP] Need help adding dBase support to PHP


 On 10/12/07, Jon Westcot [EMAIL PROTECTED] wrote:
 
  Hi Nathan:
 
  The page you referenced in the PHP documentation is exactly what I
saw
  that indicated that the dBase functions needed to be compiled in with
the
  --enable-dbase directive.  What I need to know is HOW to do this, even
in
  general terms.


 basically you run about 3 commands.
 configure
 make
 make install
 and configure is the command you would pass --enable-dbase to.
 windows systems typically have binary installs available; but i really
have
 never setup php on a windows box.

 anyway, the reason i asked about the distribution to begin with is many
 distributions handle php configuration / installation so its quite simple.
 on gentoo you just add or remove a use flag and emerge it again if you
want
 to make a change.  on debian there are modules so i believe you can just
 apt-get a new module if it isnt already installed.
 seems nice, but ill tell you, on gentoo you spend time compiling; on
debian
 you spend time saying where is that package i want and how do i trick
 apt-get to install it correctly.  but i digress... :)

 GoDaddy is being very little help (no big surprise there).  Their last
  message indicated updating values in the php.ini file would let this
work,
  but, as you pointed out, this isn't an option with the php.ini.  I
looked
  in the phpinfo data and couldn't find anything that matched dbase
  anywhere; certainly, no section in the output indicated any dBase
settings
  whatsoever.


 if you havent done so i would just use the search feature of your browser
 and type in dbase on that page.  you should see something in the configure
 directive; either --enable-dbase or --disable-dbase most likely.

 I'm fearing that I'm going to have to find some other way to handle
the
  extraction of data from DBF files if I can't get this to work.
 

 are you really committed to godaddy at this point ?

 -nathan


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



[PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
Hi all:

I'm not versed at all with Linux, and I need some help in configuring PHP 
to allow me to use the dBase-related functions.  From what I read in the help 
files, it seems that I need to recompile PHP with the --enable-dbase command, 
but I don't know how to do this.

Can someone out there help me out?  All help will be greatly appreciated!

Thanks,

Jon



Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote:

 Hi all:

 I'm not versed at all with Linux, and I need some help in configuring
 PHP to allow me to use the dBase-related functions.  From what I read in the
 help files, it seems that I need to recompile PHP with the --enable-dbase
 command, but I don't know how to do this.

 Can someone out there help me out?  All help will be greatly
 appreciated!


what linux distribution are you using?

-nathan


Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
Hi Nathan:

I have no idea.  Where would I look to find this out?  Will phpinfo() give 
me this?  And, if so, where would I find it?

Jon

- Original Message - 
From: Nathan Nobbe 
To: Jon Westcot 
Cc: PHP General 
Sent: Thursday, October 11, 2007 5:00 PM
Subject: Re: [PHP] Need help adding dBase support to PHP


On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote:
  Hi all:

  I'm not versed at all with Linux, and I need some help in configuring PHP 
to allow me to use the dBase-related functions.  From what I read in the help 
files, it seems that I need to recompile PHP with the --enable-dbase command, 
but I don't know how to do this. 

  Can someone out there help me out?  All help will be greatly appreciated!

what linux distribution are you using?

-nathan




Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote:

 Hi Nathan:

 I have no idea.  Where would I look to find this out?  Will phpinfo()
 give me this?  And, if so, where would I find it?


you might try

uname -a

from the command line; but theres no guarantee it will show the
distribution.  it will show the kernel, and sometime kernels
are named after the distro since they are often modified by the
distribution.

-nathan


Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
Hi again, Nathan:

I'm not certain how to get to a command line.  The server is a shared 
server provided by GoDaddy, if that's any help.  They told me that I needed to 
change something in the .htaccess file, but that didn't sound right at all.

Thanks again for your help.

Jon

- Original Message - 
From: Nathan Nobbe 
To: Jon Westcot 
Cc: PHP General 
Sent: Thursday, October 11, 2007 5:08 PM
Subject: Re: [PHP] Need help adding dBase support to PHP


On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote:
  Hi Nathan:

  I have no idea.  Where would I look to find this out?  Will phpinfo() 
give me this?  And, if so, where would I find it?

you might try

uname -a

from the command line; but theres no guarantee it will show the distribution.  
it will show the kernel, and sometime kernels 
are named after the distro since they are often modified by the distribution.

-nathan





Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote:

 Hi again, Nathan:

 I'm not certain how to get to a command line.  The server is a shared
 server provided by GoDaddy, if that's any help.  They told me that I needed
 to change something in the .htaccess file, but that didn't sound right at
 all.



they may be right.  did they give you some sort of documentation you could
point us to?
also, to determine if you have command line access, look around and see if
they provide ssh
access to the machine.  if so i can tell you how to ssh in, even if you have
windows or mac.
that will give you a command line prompt on the remote machine.

-nathan


Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Jon Westcot
Hi again:

Thanks for the info.  From what I can see, GoDaddy does NOT provide access 
to ssh.  Any other thoughts?  Or is there some way to tell me, in general 
terms, how to configure PHP to allow the dbase functions to be used?

Jon

- Original Message - 
From: Nathan Nobbe 
To: Jon Westcot 
Cc: PHP General 
Sent: Thursday, October 11, 2007 5:34 PM
Subject: Re: [PHP] Need help adding dBase support to PHP


On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote:
  Hi again, Nathan:

  I'm not certain how to get to a command line.  The server is a shared 
server provided by GoDaddy, if that's any help.  They told me that I needed to 
change something in the .htaccess file, but that didn't sound right at all. 


they may be right.  did they give you some sort of documentation you could 
point us to?
also, to determine if you have command line access, look around and see if they 
provide ssh
access to the machine.  if so i can tell you how to ssh in, even if you have 
windows or mac. 
that will give you a command line prompt on the remote machine.

-nathan





Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote:

 Hi again:

 Thanks for the info.  From what I can see, GoDaddy does NOT provide
 access to ssh.  Any other thoughts?  Or is there some way to tell me, in
 general terms, how to configure PHP to allow the dbase functions to be used?



if  godaddy is recommending that you place values in a .htaccess file they
probly mean you should upload a .htaccess
file via ftp.  im assuming thats how the give you access to the system
(since there is no ssh access).
im a bit unsure of the .htaccess setting, though i recently posted a small
how-to on using .htaccess files to override
settings in php.ini; this is common in shared hosting environments.
http://gentoo-wiki.com/HOWTO_php.ini_overrides_w/_.htaccess

basically, to have dbase support, php must be compiled w/ --enable-dbase,
per the documentation.
http://www.php.net/manual/en/rlef.dbase.php

perhaps, it is compiled in and the php.ini settings are preventing you from
using the functions (though that sounds hard to believe).
you might try tossing a phpinfo script on the box and looking for dbase in
the output; particularly look for --enable-dbase, or --disable-dbase.
you should see a dbase section also, if its compiled in.  if it is there we
can get a better idea of what sort of values could be placed in the
.htaccess file that would influence the behavior of the dbase component on
that system.

-nathan


Re: [PHP] Need help adding dBase support to PHP

2007-10-11 Thread Nathan Nobbe
On 10/11/07, Nathan Nobbe [EMAIL PROTECTED] wrote:

 On 10/11/07, Jon Westcot [EMAIL PROTECTED] wrote:
 
  Hi again:
 
  Thanks for the info.  From what I can see, GoDaddy does NOT provide
  access to ssh.  Any other thoughts?  Or is there some way to tell me, in
  general terms, how to configure PHP to allow the dbase functions to be used?
 



 if  godaddy is recommending that you place values in a .htaccess file they
 probly mean you should upload a .htaccess
 file via ftp.  im assuming thats how the give you access to the system
 (since there is no ssh access).
 im a bit unsure of the .htaccess setting, though i recently posted a small
 how-to on using .htaccess files to override
 settings in php.ini; this is common in shared hosting environments.
 http://gentoo-wiki.com/HOWTO_php.ini_overrides_w/_.htaccess

 basically, to have dbase support, php must be compiled w/ --enable-dbase,
 per the documentation.
 http://www.php.net/manual/en/rlef.dbase.php

 perhaps, it is compiled in and the php.ini settings are preventing you
 from using the functions (though that sounds hard to believe).
 you might try tossing a phpinfo script on the box and looking for dbase in
 the output; particularly look for --enable-dbase, or --disable-dbase.
 you should see a dbase section also, if its compiled in.  if it is there
 we can get a better idea of what sort of values could be placed in the
 .htaccess file that would influence the behavior of the dbase component on
 that system.

 -nathan



oh,
i just spent and extra second and discovered:
(from documentation :)

This extension has no configuration directives defined in php.ini.

if dbase does not appear to be installed on the system when you look at
phpifno output i would draft an email to them expressing that it
doesnt appear to be compiled in and ask them if they can add it.

-nathan