RSS
people

PHP connect to LDAP

I am working with a project that require connect to a AD to perform the user authorization.
Before configure my application to login using the AD profile, I always using a simple PHP script to connect the AD setting that provided by my customer.

Here is a simple script that let me know that those AD setting is correct or wrong.
read more »

No Comments | Tags: ,

PHP call oracle store procedure

For PHP, it is not a difficult task to connect to Oracle database.
But recently, I am working on a project that require me to execute the oracle store procedure with pass in some input & retrieve the output.

It should be pretty easy, just I never try it before.
So I write a simple Oracle Store procedure & a PHP page.

Below is my testing.
read more »

2 Comments | Tags: , ,

Apache PHP unable connect remote MySQL

Recently I am setup a new server for one of my company client.
After finish configure the server & I am trying to setup SugarCRM inside the server, I found that the database connection part is not able to connect to a remote database server.
Then I try to fill in database information to local database server & everything is working fine.

Then I googled a while & found that it is a SELinux issue. It seem like block apache connect to a remote database server.

Below is my solutions:

read more »

No Comments | Tags: , , ,

php telnet to mail server pop3

Previously I had work on the telnet to some mail server & trying to send out the email (refer here).
Recently I am working on some with the mail server again, but is receiving this time.

I am using PHP + MySQL to access to a mail account & try to clean up the email account due to it contain 100k+ emails (1.7G) inside the inbox. This is a headache problem & I cant even login the mail account by webmail. That’s why I decided to write an backend script to delete “SPAM” emails.

read more »

No Comments | Tags: , ,

Zend php connect to oracle using tnsnames

This few days I am trying to configure my Linux server Zend PHP to connect oracle by using the tnsnames.ora profile.

For my finding, there are several ways to do so.

read more »

1 Comment | Tags: , ,