Re: [PHP] Php Error Output Redirection

2006-12-18 Thread Saqib Ali

Use the set_error_handle function:
http://us2.php.net/manual/en/function.set-error-handler.php

saqib
http://www.full-disk-encryption.net

On 12/18/06, Sancar Saran <[EMAIL PROTECTED]> wrote:

Hi,

Is anyone know that errors generated by php (like Notice: Uninitialized string
offset: 0 in ...) may stored in a php variable and print out later ?

I want to put them some other location and show them in a debug window. I do
this for my error reporting and I could not manage how to do with php
messages.

Regards

Sancar

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
Saqib Ali, CISSP, ISSAP
http://www.full-disk-encryption.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Active Directory password change utility in PHP

2006-12-13 Thread Saqib Ali

Another reader on the usenet suggested the followng MS link, which
seems pretty helpful:
http://support.microsoft.com/kb/269190

saqib
http://www.full-disk-encryption.net


On 12/13/06, Saqib Ali <[EMAIL PROTECTED]> wrote:

Another reader on the usenet suggested the followng MS link, which
seems pretty helpful:
http://support.microsoft.com/kb/269190

saqib
http://www.full-disk-encryption.net

On 12/8/06, Mike Smith <[EMAIL PROTECTED]> wrote:
> How about adLDAP (http://adldap.sourceforge.net/). I haven't used 2.0,
> but it reportedly lets you add/change users.
>
> Mike
>


--
Saqib Ali, CISSP, ISSAP
http://www.full-disk-encryption.net




--
Saqib Ali, CISSP, ISSAP
http://www.full-disk-encryption.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHPDIG

2006-12-11 Thread Saqib Ali

r u planning to use it for intranet site or a internet site?

if for a internet site: try http://www.google.com/coop instead of
phpDig or HTDig

saqib
http://www.full-disk-encryption.net

On 12/11/06, Leonard Burton <[EMAIL PROTECTED]> wrote:

HI Guys and Gals,

Has anyone used PHP Dig lately?

Is the new version any better than it used to be?

--
Leonard Burton, N9URK
[EMAIL PROTECTED]

"The prolonged evacuation would have dramatically affected the
survivability of the occupants."

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
Saqib Ali, CISSP, ISSAP
http://www.full-disk-encryption.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] LAMP appliance for non-profit use

2006-12-07 Thread Saqib Ali

Hello All,

I know this is little bit off-topic but I think users of this group
can give good advice on this topic.

We have a in-house built application using MySQL + PHP + Apache. It is
essentially a elaborate collection of online forms that will be used
for managing school scholarship in the 3rd world countries. The
student/teachers will either come to the office or fill out the forms
online.

We have identified few pilot location and would like to deploy this
application. However due to lack of IT support at the location we have
decided to use a pre-configured appliance which support the LAMP
stack. All we want to do is directly ship the appliance to the
location, and remotely install our app.

We want the appliance to require minimal maintenance and
administration, and have a auto-update feature to get security patches
etc.

I had previously worked on a similar project and used Sun Cobalt 550
servers. But now I think Sun has stopped making them and you can only
buy them refurbished and the auto-update features are severely
limited.

Any other suggestion??? We want the appliance to cost us $1,000 / unit.

Thanks
saqib
http://www.full-disk-encryption.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Active Directory password change utility in PHP

2006-12-07 Thread Saqib Ali

Hello All,

Last year I wrote a small ASP utility which allowed domain users to
change their Active Directory password using a web site. The utility
used ADSI (Active Directory Service Interfaces) so it was quite easy
to implement.

However now we would like to integrated this into our LAMP based
stack, so I am planning to re-write the application in PHP.

Would it be possible to write such a application in PHP? If so, can
you please give me some pointers. My other PHP apps talk to AD using
LDAP libraries, but I haven't tried password change for a directory
that spans multiple domains.

Any suggestions would be greatly appreciate.

saqib
http://www.full-disk-encryption.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Best practices for deleting and restoring records - moving vs flagging

2005-08-11 Thread Saqib Ali
Hello All,

What are best practices for deleting records in a DB. We need the
ability to restore the records.

Two obvious choices are:

1) Flag them deleted or undeleted
2) Move the deleted records to seperate table for deleted records.

We have a  complex schema. However the the records that need to be
deleted and restored reside in 2 different tables (Table1 and Table2).

Table2 uses the primary key of the Table1 as the Foriegn key. The
Primary key for Table1 is auto-generated. This make the restoring with
the same primary key impossible, if we move deleted data to a
different table. However if we just flag the record as deleted the
restoring is quite easy.

Any thoughts/ideas ?

-- 
In Peace,
Saqib Ali
http://www.xml-dev.com/blog/
Consensus is good, but informed dictatorship is better.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread Saqib Ali
Why code this yourself, when Google can do it for you. Google provides
an API for this. See the book called "Google Hacks" for details.

> I was wondering if one could create Spiders/Crawlers in PHP?
> I need for the PHP code to email me a list of emails, of domains listed in
> that page.

-- 
In Peace,
Saqib Ali
http://www.xml-dev.com/blog/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] isUserInRole equivalent in PHP

2005-07-29 Thread Saqib Ali
> Have you checked http://www.php.net/ldap ?

yes. couldn't find one. 

i can implement the function myself. i was just wondering if there is
something already available.

-- 
In Peace,
Saqib Ali
http://www.xml-dev.com/blog/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] isUserInRole equivalent in PHP

2005-07-29 Thread Saqib Ali
Hello All,

Java has a function to check if the logged in user is assigned a
certain Roles in LDAP.  The function is called:

isUserInRole 
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequestWrapper.html#isUserInRole(java.lang.String)

Is there a PHP equivalent of this? 

-- 
In Peace,
Saqib Ali
http://www.xml-dev.com/blog/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php