php-windows Digest 14 Feb 2006 17:32:17 -0000 Issue 2888

Topics (messages 26698 through 26704):

Re: Strange access violation
        26698 by: Dbird..
        26700 by: George Cherian
        26701 by: Armando
        26703 by: Dbird..

System integration
        26699 by: dale.kwikitsolutions.co.za
        26702 by: Martin Alsinet
        26704 by: Matt Murphy

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Armando,

I appreciate the response.  Hopefully we can track it down better.  The
websites which are functioning properly are actually much more complex than
this one.  lol.

The only real difference is that I have some javascript running a countdown
clock which is displayed using images which are replaced through the js...
But it's code that has run cleanly for a long time in other applications and
I cannot see how this would cause the problems I am seeing now.

But if it were a memory leak wouldn't it translate across the other websites
as well?

"Armando" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If it goes away on a server reboot for a period of time, then it sounds
> suspiciously like a memory leak, ie; the application is trying to
> reference an area of memory it doesn't have access to. I've seen this
> problem with other applications... they'd run fine for a period of time
> after a reboot then start throwing out errors in the event log. Reboot,
> fine for another period of time. Maybe check your event log for any
> errors? Can you perhaps expand on the differences between this site and
> your others? Are there other modules it's using that your other sites
> are not? Cheers.
>
> Armando
>
> Dbird.. wrote:
> > To make this even more interesting is that when I reboot the server, the
> > error goes away for a period of time, usually about 30 minutes.
> >
> > Any ideas?
> >
> > ""Dbird.."" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>I'm running php version 4.3.7 on Windows 2003 Server and IIS 6.0
> >>
> >>I have several websites which are all using php extensively but I have
one
> >>website where I am consistantly getting the following error:
> >>"PHP has encountered an Access Violation at 01930AFD"
> >>
> >>The error occurrs on every page, but where on the page it shows up
varies.
> >>I have NO loss of functionality on the website so this really has me
> >>baffled.
> >>
> >>Where is the error coming from?  How can I find out more information as
to
> >>the source of the error?  How can I simply remove that error message
from
> >>being displayed into my web pages and wreaking havoc on their format?
> >>
> >>I've been on this one for a couple of days and I'm really stumped on
this
> >>one.
> >>
> >>Thanks in advance.
> >
> >

--- End Message ---
--- Begin Message ---
 Check COM accesses. I have seen php crash if wrong values are passed to COM. 
Hash out the COM code and see it the error occurs.

--- End Message ---
--- Begin Message --- Yes, that's what I'd assume too. The problem *looks* like a memory leak yet only affects one particular site which is why it's so strange. I did some Googling but came up with little. The only other suspects I found were related to information being passed to a COM object, and possibly if you're running it as an ISAPI module. Also if the page is trying to access an area of the filesystem that it does not have permissions to do so, but this is not likely the issue since you mentioned you don't lose any functionality. It's also not likely that the js is causing it either. Unfortunately, it also appears as though this error is probably one of the most unhelpful errors that IIS can ever display when using PHP.

Perhaps try looking for a common denominator? You said that the error is generated in different spots. Maybe review your code in each of the places it appears and see if there are any common elements that might give you a better clue as to what's causing it. Cheers.

Armando

Dbird.. wrote:
Armando,

I appreciate the response.  Hopefully we can track it down better.  The
websites which are functioning properly are actually much more complex than
this one.  lol.

The only real difference is that I have some javascript running a countdown
clock which is displayed using images which are replaced through the js...
But it's code that has run cleanly for a long time in other applications and
I cannot see how this would cause the problems I am seeing now.

But if it were a memory leak wouldn't it translate across the other websites
as well?

"Armando" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

If it goes away on a server reboot for a period of time, then it sounds
suspiciously like a memory leak, ie; the application is trying to
reference an area of memory it doesn't have access to. I've seen this
problem with other applications... they'd run fine for a period of time
after a reboot then start throwing out errors in the event log. Reboot,
fine for another period of time. Maybe check your event log for any
errors? Can you perhaps expand on the differences between this site and
your others? Are there other modules it's using that your other sites
are not? Cheers.

Armando

Dbird.. wrote:

To make this even more interesting is that when I reboot the server, the
error goes away for a period of time, usually about 30 minutes.

Any ideas?

""Dbird.."" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


I'm running php version 4.3.7 on Windows 2003 Server and IIS 6.0

I have several websites which are all using php extensively but I have

one

website where I am consistantly getting the following error:
"PHP has encountered an Access Violation at 01930AFD"

The error occurrs on every page, but where on the page it shows up

varies.

I have NO loss of functionality on the website so this really has me
baffled.

Where is the error coming from?  How can I find out more information as

to

the source of the error?  How can I simply remove that error message

from

being displayed into my web pages and wreaking havoc on their format?

I've been on this one for a couple of days and I'm really stumped on

this

one.

Thanks in advance.




--- End Message ---
--- Begin Message ---
I haven't touched the com code so I'm not even sure where to look....

"George Cherian" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>  Check COM accesses. I have seen php crash if wrong values are passed to
COM. Hash out the COM code and see it the error occurs.

--- End Message ---
--- Begin Message ---
Hi guys,

Does anyone know or got an idea of how to access the user accounts of
Active Directory using PHP?

I need to integrate my intranet application's authentication with that of
Active Directory.

Any help or ideas will be greatly appreciated.

Kind Regards,
Dale

--- End Message ---
--- Begin Message ---
On 2/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> Does anyone know or got an idea of how to access the user accounts of
> Active Directory using PHP?
You can use adLDAP:
http://adldap.sourceforge.net/
..."adLDAP is a PHP class that provides LDAP authentication with
Active Directory."...

Martin

--- End Message ---
--- Begin Message ---
The easiest way I've found, if you just want to verify their username &
password, you can do this:

$ds=ldap_connect("ldap://yourdc.yourdomain.com";);

// Fix for Windows 2003 AD
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ds, LDAP_OPT_REFERRALS, 0);

if ($ds) {

[EMAIL PROTECTED]($ds, $aduser, $adpass);
$adauth = "No"; // prevent insertion
// verify binding
if ($r) {
$adauth = "Yes";
} else {
$adauth = "No";
}
// end ad check
}
ldap_close($ds);

If you need groups and such, good luck.

Matt

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 13, 2006 11:34 PM
> To: [email protected]
> Subject: [PHP-WIN] System integration
> 
> Hi guys,
> 
> Does anyone know or got an idea of how to access the user 
> accounts of Active Directory using PHP?
> 
> I need to integrate my intranet application's authentication 
> with that of Active Directory.
> 
> Any help or ideas will be greatly appreciated.
> 
> Kind Regards,
> Dale
> 
> --
> PHP Windows Mailing List (http://www.php.net/) To 
> unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---

Reply via email to