go to bug id or search bugs for
on a computer with Win 2000 pro, i try to connect to a visual foxpro db with php 5.1 function odbc_connect, but it s failed (of course odbc driver is installed). i do the same connexion with php 4.3 and all is good. more: i do both tests on a computer with Win XP and i see no troubles... did this trouble is reported before (it s seems not) and have you a solution
thanks for your help.
Add a Patch
Add a Pull Request
Please try using this CVS snapshot:
i m not sure to undestand: you offer to install php last version ? i try with easyphp (php 4.3.10) wamp (php5.1.2) and xampp (php 5.1.1) and no one with 5.1.x accept to connect with the visual foxpro db...
Yes, I want you to try plain PHP.
Not WAMP, XAMP or xxxP. Just plain PHP.
i also try on a computer with Win XP and the php 5.1.x running well but the server is on Win 2000 XP and then it s failed
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
I'm afraid "failed" is not enough to understand the problem.
i m working localy (so i can t offer you to try on-line)
Admin ODBC - User data sources:
PFLEX Microsoft FoxPro VFP Driver (*.dbf)
Config - Path:
c:\Documents and Settings\Administrateur\Mes documents\PFlex\GpDEV\STOCK
$pflexhdl = odbc_connect('PFLEX','','');
Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Visual FoxPro Driver]SourceDB, SQL state 01S00 in SQLConnect
and the problem is on a computer with Win 200 pro and with php 5.1.x, not with win 2000 pro and php 4.3.x, and not with win XP and php 5.1.x
i want to use php 5 but not re-install my server in win XP.
Can you establish a connection to the DB on Win2000 without PHP?
i can connect to the db with ms query and with php4 but not with php5
Under the ODBC Data Source Administrator, can you execute a test connection? Is this a User, System, or File DSN?
The error you're seeing (SQLState 01S00) basically says you have given an invalid connection string/DSN, at least from what I remember off hand. That suggests this isn't a bug in PHP but rather a misconfiguration.
i got no more troubles but i don t know really why.
i do nothing special... sorry and thanks