Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Error 6080 in PHP

3 posts in PHP Last posting was on 2009-02-10 10:42:51.0Z
michal Posted on 2009-02-04 15:17:37.0Z
From: "michal" <advantage@wth.me>
Subject: Error 6080 in PHP
Newsgroups: Advantage.PHP
Date: Wed, 4 Feb 2009 16:17:37 +0100
X-Priority: 3
X-Library: Indy 9.00.12
X-Newsreader: <dedXmlGateway>
NNTP-Posting-Host: 213.26.58.195
Message-ID: <4989b556@solutions.advantagedatabase.com>
X-Trace: 4 Feb 2009 08:33:42 -0700, 213.26.58.195
Lines: 36
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!213.26.58.195
Xref: solutions.advantagedatabase.com Advantage.PHP:954
Article PK: 1135438

?Hi,

I have "small" problem with ADS+PHP.
My system is Windows 2003, PHP 5.2.6, ADS 8.1, ADS PHP Extension 8.1

When I run my script in plain PHP ("php file.php" in cmd) it works fine.

When I'm trying to run it on my page (apache) then in error log I have:

[Wed Feb 04 15:29:43 2009] [error] [client 172.16.100.107] PHP Warning:
SQL error: [Extended Systems][Advantage SQL][ASA] Error 6080: Error
loading the Advantage remote communication layer DLL. axServerConnect,
SQL state HY000 in SQLDriverConnect in D:&#124;&#124;Apache
Group&#124;&#124;Apache2&#124;&#124;htdocs&#124;&#124;front_page&#124;&#124;temp&#124;&#124;winpics&#124;&#124;winpics.class.php on
line 14


I added to "PATH" (environment variable) path to ads php extension
(C:\Program Files\Extended Systems\Advantage 8.1\PHP\) where I have all
DLLs - it didn't help
After that I copied all dlls (ace32.dll, axcws32.dll, adsloc32.dll,
adsodbc.dll) to C:\Windows\system32\ (didn't help), then to php folder
(didn't help) and even to a place where I have my script.

Nothing helped.

Any ideas?

Thank you in advance for your help

Regards
Michal



--- posted by geoForum on http://delphi.newswhat.com


Lance Schmidt Posted on 2009-02-04 16:06:46.0Z
From: "Lance Schmidt" <LanceSc@ExtendSys.com>
Newsgroups: Advantage.PHP
References: <4989b556@solutions.advantagedatabase.com>
Subject: Re: Error 6080 in PHP
Date: Wed, 4 Feb 2009 09:06:46 -0700
Lines: 54
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 10.24.38.117
Message-ID: <4989bd01@solutions.advantagedatabase.com>
X-Trace: 4 Feb 2009 09:06:25 -0700, 10.24.38.117
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!10.24.38.117
Xref: solutions.advantagedatabase.com Advantage.PHP:956
Article PK: 1135441

Hi Michal,

The apache server is most likely running under a different account with a
different path variable. Apache is finding a copy of ace32.dll and not
axcws32.dll. I suggest you use Process Explorer from Microsoft to find out
where ace32.dll is being loaded from and place axcws32.dll in the same
location.

Best Regards,

Lance Schmidt
Advantage R&D

"michal" <advantage@wth.me> wrote in message
news:4989b556@solutions.advantagedatabase.com...
> Hi,
>
> I have "small" problem with ADS+PHP.
> My system is Windows 2003, PHP 5.2.6, ADS 8.1, ADS PHP Extension 8.1
>
> When I run my script in plain PHP ("php file.php" in cmd) it works fine.
>
> When I'm trying to run it on my page (apache) then in error log I have:
>
> [Wed Feb 04 15:29:43 2009] [error] [client 172.16.100.107] PHP Warning:
> SQL error: [Extended Systems][Advantage SQL][ASA] Error 6080: Error
> loading the Advantage remote communication layer DLL. axServerConnect,
> SQL state HY000 in SQLDriverConnect in D:&#124;&#124;Apache
> Group&#124;&#124;Apache2&#124;&#124;htdocs&#124;&#124;front_page&#124;&#124;temp&#124;&#124;winpics&#124;&#124;winpics.class.php
> on
> line 14
>
>
> I added to "PATH" (environment variable) path to ads php extension
> (C:\Program Files\Extended Systems\Advantage 8.1\PHP\) where I have all
> DLLs - it didn't help
> After that I copied all dlls (ace32.dll, axcws32.dll, adsloc32.dll,
> adsodbc.dll) to C:\Windows\system32\ (didn't help), then to php folder
> (didn't help) and even to a place where I have my script.
>
> Nothing helped.
>
> Any ideas?
>
> Thank you in advance for your help
>
> Regards
> Michal
>
>
>
> --- posted by geoForum on http://delphi.newswhat.com


michal Posted on 2009-02-10 10:42:51.0Z
From: "michal" <advantage@wth.me>
Subject: Re: Error 6080 in PHP
Newsgroups: Advantage.PHP
References: <4989b556@solutions.advantagedatabase.com> <4989bd01@solutions.advantagedatabase.com>
Date: Tue, 10 Feb 2009 11:42:51 +0100
X-Priority: 3
X-Library: Indy 9.00.12
X-Newsreader: <dedXmlGateway>
NNTP-Posting-Host: 213.26.58.195
Message-ID: <49915077@solutions.advantagedatabase.com>
X-Trace: 10 Feb 2009 03:01:27 -0700, 213.26.58.195
Lines: 15
Path: solutions.advantagedatabase.com!solutions.advantagedatabase.com!213.26.58.195
Xref: solutions.advantagedatabase.com Advantage.PHP:959
Article PK: 1135443


>The apache server is most likely running under a different account with a
>different path variable. Apache is finding a copy of ace32.dll and not
>axcws32.dll. I suggest you use Process Explorer from Microsoft to find out
>where ace32.dll is being loaded from and place axcws32.dll in the same
>location.

Thank you. That hint helped me.
Now everything is working like a charm.

Best regards
Michal



--- posted by geoForum on http://delphi.newswhat.com