Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Win32/DBD::ODBC: works from cmd.exe, not works from apache (xampp)

by alexander_lunev (Pilgrim)
on Nov 28, 2016 at 18:07 UTC ( [id://1176717]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Win32/DBD::ODBC: works from cmd.exe, not works from apache (xampp)
in thread Win32/DBD::ODBC: works from cmd.exe, not works from apache (xampp)

The same error:
Content-Type: text/html; charset=utf-8 ERROR ODBC: [Microsoft][ODBC dBase Driver] Disk or network error. (SQL +-HY000)
  • Comment on Re^4: Win32/DBD::ODBC: works from cmd.exe, not works from apache (xampp)
  • Download Code

Replies are listed 'Best First'.
Re^5: Win32/DBD::ODBC: works from cmd.exe, not works from apache (xampp)
by Corion (Patriarch) on Nov 29, 2016 at 08:27 UTC

    This means that when your Apache server / user runs your program, something in the permissions or environment or whatever ($ENV{PATH}?) is different from when you run the program manually. I don't know what knobs and levers there are to the Apache configuration, but if it is run under the same interactive user as when you start the program manually, it's either %ENV or something that should be documented somewhere in the Apache documentation...

      Thank you! Thank you very much! It seems that ODBC needs just TMP environment variable to work. When I set it, code started to work!

      $ENV{'TMP'} = 'C:\\DOCUME~1\\lan\\LOCALS~1\\Temp\\2';
Re^5: Win32/DBD::ODBC: works from cmd.exe, not works from apache (xampp)
by Anonymous Monk on Nov 28, 2016 at 22:10 UTC
    check your connection string, and db password/ip restrictions

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1176717]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found