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!
for last couple of hours I'm trying to access MsAccess db - which is on win xp pc - from GNU/Linux machine (they are in LAN). The code works on winXp machine, but I don't know what to do to access from another machine. The page with script just doesn't load.
(Linux machine is running PHP 4.3)
That's the code, it's from php documentation.
stab in the dark here..
is the M$Access DB listening for calls on local or IP address?
ie,(from cmd console netstat -n)
From the two examples below 1st is taking local requests the other is taking IP requests.
127.0.0.1:2826 127.0.0.1:2825 ESTABLISHED
192.168.0.12:1029 63.247.70.254:80 TIME_WAIT
uuppsss
it's taking only local requests. I know that it's not windows board
but what should I do, do I need Samba or sth like that ???
I'm not familiar with microsoft products. Being honest for last 3 years I have been working only on Linux. One more time, PLease help.
yours
Korb
when I tried to execute script from the command line it says:
Warning: SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQLConnect in /srv/www/htdocs/catalog/korb/csv.php on line 3
maybe I'm using wrong livrary for php,
with php-odbc-6...:
linux:/srv/www/htdocs/catalog/korb # php -n csv.php
Fatal error: Call to undefined function: odbc_connect() in /srv/www/htdocs/catalog/korb/csv.php on line 3
linux:/srv/www/htdocs/catalog/korb # php csv.php
Warning: SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQLConnect in /srv/www/htdocs/catalog/korb/csv.php on line 3
with php-unixODBC which comes with this SUSE dist:
linux:/srv/www/htdocs/catalog/korb # php csv.php
php: symbol lookup error: /usr/lib/php/extensions/unixODBC.so: undefined symbol: SQLAllocEnv