Re: [PHP-WIN] Windows Server 2003 Installation Problems

2009-02-09 Thread Phillip Terry
- Original Message - From: "Shaun Thornburgh" To: Sent: Monday, February 09, 2009 8:19 AM Subject: [PHP-WIN] Windows Server 2003 Installation Problems Hi, I am trying to get PHP to run on IIS on our Windows 2003 server. It has been running up until recently however I have just re

[PHP-WIN] PHP MySQL - ON DUPLICATE KEY UPDATE

2007-06-19 Thread Phillip Terry
Is there an easy way to overwrite a row (e.g. using replace) if a duplicate key already exists? For instance, is there something like ON DUPLICATE KEY REPLACE (as opposed to UPDATE)? Or do I have to: key_exists = query database for key if (key_exists){ REPLACE... } else{ INSERT... } T

[PHP-WIN] Difference Between Two Dates

2007-05-03 Thread Phillip Terry
What's the easiest way to calculate the difference between two dates in PHP? I've seen some examples of custom functions on Google, but I was wondering if anyone here came up with another clever solution. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

Re: [PHP-WIN] PHP rendering

2007-02-09 Thread Phillip Terry
If the query analyzer runs directly on the server, it would probably be faster than the extra steps required by php to query for and render out the data through a browser, especially if its on a shared server, but 9 seconds of difference does seem like a lot. - Original Message - Fro

Re: [PHP-WIN] using preg_replace or equivelent

2007-01-31 Thread Phillip Terry
Try str_replace. $string = "whatever"; $invalidChars = array("(", ")", "\\", "\"", "'"); //put whatever characters here trim(str_replace($invalidChars, "",$string)) - Original Message - From: "Derek C Hopkins" <[EMAIL PROTECTED]> To: Sent: Wednesday, January 31, 2007 1:10 PM Subject

[PHP-WIN] Alternative to ldap_mod_replace and ldap_modify...

2006-10-30 Thread Phillip Terry
For a user attempting to reset their active directory password over ldap via php, If I use ldap_mod_replace or ldap_modify, SELF must have "Reset Password" permissions as opposed to only "Change Password" permissions for that user account. Is there another php command I can use, so that I don'

Re: [PHP-WIN] Using PHP to Bind over LDAPS.

2006-10-19 Thread Phillip Terry
.IAD.MIG:Systems Architect http://vtmig.w2k.vt.edu -----Original Message- From: Phillip Terry [mailto:[EMAIL PROTECTED] Sent: Thursday, October 19, 2006 12:42 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Using PHP to Bind over LDAPS. I configured LDAP for SSL (LDAPS) on the Active Direc

[PHP-WIN] Using PHP to Bind over LDAPS.

2006-10-19 Thread Phillip Terry
I configured LDAP for SSL (LDAPS) on the Active Directory (AD) Domain Controller (DC). The DC is a Windows 2003 Server box. To do this I: 1) Setup the DC as a Certificate Authority (CA) 2) Issued a Certificate to itself 3) Issued a Certificate to the client that would be connecting via LDAPS The