[PHP] Use specific IP for outbound traffic.

2009-12-04 Thread shiplu
Hello, I have 3 IPs in my VPS. Everytime I request to a site it uses only 1 IP as gateway. So all the outbound traffic goes thorough that IP. What I want is one of my script will always communicate using an specific ip. Not default one. I'll use 3 scripts for 3 IPs. How can I do that? I know it can

RE: [PHP] Good SQL builder class

2009-12-04 Thread Daevid Vincent
Multi-dimensional arrays generally indicate some kind of glue/hanging table, so you'll have to special case them for your needs... But here is a generic insert and update functions that may be a groundwork for you /** * Insert a single row into a $database.$table from an array hash of colum

Re: [PHP] json_last_error

2009-12-04 Thread Ryan Sun
json_decode (PHP 5 >= 5.2.0, PECL json >= 1.2.0) so json_decode will be avaliable for php 5.2.0+ php is open source, I believe you can get an idea from their C source On Fri, Dec 4, 2009 at 2:16 PM, Jim Lucas wrote: > Kirby Bakken wrote: > > None of the servers I run on have PHP 5.3, and I hav

Re: [PHP] json_last_error

2009-12-04 Thread Jim Lucas
Kirby Bakken wrote: > None of the servers I run on have PHP 5.3, and I have no idea when > they'll be updated. The json_last_error function is in 5.3. What can I > do to provide a temporary json_last_error function until my servers get > updated to 5.3? Is there source available for json_last_er

[PHP] json_last_error

2009-12-04 Thread Kirby Bakken
None of the servers I run on have PHP 5.3, and I have no idea when they'll be updated. The json_last_error function is in 5.3. What can I do to provide a temporary json_last_error function until my servers get updated to 5.3? Is there source available for json_last_error somewhere? Thanks,

[PHP] php.ini session_auto.start = 1

2009-12-04 Thread scotdiddle
Hello All, In my previous LAMP position, I developed an intranet system from scratch, and chose to use session_auto.start = 1 for sessions. My new employer has auto-start turned off, and I have been tasked with re-writing the entire system. I would like to use auto-start, but during test

[PHP] php.ini session_auto.start = 1

2009-12-04 Thread scotdiddle
Hello All, In my previous LAMP position, I developed an intranet system from scratch, and chose to use session_auto.start = 1 for sessions. My new employer has auto-start turned off, and I have been tasked with re-writing the entire system. I would like to use auto-start, but during test

[PHP] php.ini session_auto.start = 1

2009-12-04 Thread scotdiddle
Hello All, In my previous LAMP position, I developed an intranet system from scratch, and chose to use session_auto.start = 1 for sessions. My new employer has auto-start turned off, and I have been tasked with re-writing the entire system. I would like to use auto-start, but during test

[PHP] Re: Good SQL builder class

2009-12-04 Thread Tony Marston
Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html You can also download a working example of this code from http://www.tonymarston.net/php-mysql/sample-application.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Anton Heuschen" wrote in message

[PHP] Good SQL builder class

2009-12-04 Thread Anton Heuschen
Good day. I'm looking for a good class to handle building dynamically from and array (and if it is good it will automatically determine / or even have different methods) to handle mutli-dimensional arrays or simple associative arrays ... and build the SQL statement : for example I have an array :

[PHP] How to read a certificate and compute hash of it

2009-12-04 Thread Tanveer Chowdhury
Hi Currently I am doing some coding in php to match a client certifcate with an openldap certificate of that same user just to verify. I mean the user stored one copy of this certficate in openldap previously and now when he shows his certificate to server the server will then fetch that users cer