RE: [PHP] HTTPS

2007-01-28 Thread Peter Lauri
http://php.net/curl Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: chetan rane [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 8:31 AM To: php-general@lists.php.n

[PHP] HTTPS

2007-01-28 Thread chetan rane
hi everyone i am writing a progrram for a Jabber COnnection manager. I want to access the client XML using HTTPS. do any one know a way to so it Have any one the -- Have A plesant Day Chetan. D. Rane Location: Pune , India Contact: +91-9890792762 otherID: [EMAIL PROTECTED] [EMAIL P

[PHP] XSLTProcessor->transformToURI() error handling

2007-01-28 Thread Jason Karns
If there is a failure in 'XSLTProcessor->transformToURI()' (it returns false) is nothing written to the file specified? I ask because I'm implementing a caching system. I'm having the output written to a cache file and want to be guaranteed that in case of error, the specified file remains as it wa

Re: [PHP] Select record by ID

2007-01-28 Thread Craige Leeder
As someone else already stated, my best guess according to that error is that $user_id has a null, or inappropriate value. The error occurs at the last character of the query, so it has to be something like hat. Echo the query and let us know what it outputs. - Craige On 1/28/07, Francisco M. Ma

Re: [PHP] Select record by ID

2007-01-28 Thread Francisco M. Marzoa Alonso
On dom, 2007-01-28 at 18:20 -0600, Larry Garfield wrote: > On Sunday 28 January 2007 5:54 pm, Francisco M. Marzoa Alonso wrote: > > On dom, 2007-01-28 at 18:51 -0500, nitrox . wrote: > > > I took the quotes off. I thought that quotes around numbers was wrong > > > also. > > > > Quotes are no necess

Re: [PHP] Sporadic MSSQL connection error

2007-01-28 Thread Chris
[EMAIL PROTECTED] wrote: Hi I'm having a sporadic connection problem with MSSQL. I have a php script which is called by a folder scanning application and sometimes it can run for hours without problem but other times it will run for just a few minutes and return connection errors. I tried usi

[PHP] Fwd: Entries no longer appear in search

2007-01-28 Thread Kevin Jordan
This was originally sent to the OpenLDAP list, but it was rejected because I mentioned PHP and phpLDAPadmin and said I should send it to the appropriate lists there. -- Forwarded message -- From: Kevin Jordan <[EMAIL PROTECTED]> Date: Jan 27, 2007 4:24 PM Subject: Entries no longe

Re: [PHP] Select record by ID

2007-01-28 Thread Larry Garfield
On Sunday 28 January 2007 5:54 pm, Francisco M. Marzoa Alonso wrote: > On dom, 2007-01-28 at 18:51 -0500, nitrox . wrote: > > I took the quotes off. I thought that quotes around numbers was wrong > > also. > > Quotes are no necessary around numeric values, but they aren't wrong > neither, simply op

Re: [PHP] Select record by ID

2007-01-28 Thread Francisco M. Marzoa Alonso
On dom, 2007-01-28 at 18:51 -0500, nitrox . wrote: > I took the quotes off. I thought that quotes around numbers was wrong also. Quotes are no necessary around numeric values, but they aren't wrong neither, simply optional. > I added the error checking and this is the error: > > Could not perfo

Re: [PHP] Select record by ID

2007-01-28 Thread Paul Novitski
At 1/28/2007 03:21 PM, nitrox . wrote: Im trying to display one record at a time by ID. Well im getting a blank page. Ive looked over my code and tried 20 different ways to get it to work to no avail. So any pointers on what Im doing wrong would be great. here is the code im working with so far

Re: [PHP] Select record by ID

2007-01-28 Thread Francisco M. Marzoa Alonso
Ops!, Better this one: $query = "SELECT inf_member WHERE user_id='$user_id' "; $result = mysql_query($query); if ( ! $result ) { die ("Could not perform query $query: ".mysql_error()."\n"); } I did copy and paste from my own code and you've not $que

Re: [PHP] Select record by ID

2007-01-28 Thread nitrox .
I took the quotes off. I thought that quotes around numbers was wrong also. I added the error checking and this is the error: Could not perform query : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at li

Re: [PHP] Select record by ID

2007-01-28 Thread Francisco M. Marzoa Alonso
The first thing that I probably do is to check for possible errors from DB: $result = mysql_query("SELECT * FROM inf_member WHERE user_id='$user_id' "); if ( ! $result ) { die ("Could not perform query $query: ".mysql_error()."\n"); } Regards, On dom, 200

[PHP] Select record by ID

2007-01-28 Thread nitrox .
Before I ask my next question I just wanted to thank you all for being in this mailing community and sharing your knowledge. Its communitys like this that make life easier for all of us. Ok enough with the mushy stuff Im trying to display one record at a time by ID. Well im getting a blank pag

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-28 Thread Larry Garfield
On Sunday 28 January 2007 5:55 am, Jochem Maas wrote: > > And yes, I agree that MySQL has fairly decent date manipulation routines. > > But at work we do try for database independence when possible, so except > > on specific projects we try to avoid it. > > again we differ :-) I have never bought

Re: [PHP] DATE

2007-01-28 Thread Ron Piggott
Someone sent me the strtotime function. This was the command I was needing. Ron On Sun, 2007-01-28 at 08:57 -0600, David Giragosian wrote: > Ron Piggott wrote: > > I have date in the variable $date_reference in the format > -MM-DD. > > How do I find out the d

Re: [PHP] DATE

2007-01-28 Thread David Giragosian
Ron Piggott wrote: > I have date in the variable $date_reference in the format -MM-DD. > How do I find out the date before this and the date after this? Ron > Not enough information, Ron. Do you mean: 1. as exists in some data set that you've created or stored, like in an array or a datab

RE: [PHP] __construct __destruct in PHP 4

2007-01-28 Thread Peter Lauri
Of course __destruct (in php5) is not meant to be called by "userland" (as you called it). I just want to make sure all objects are stored as they should when a script ends. This kind of wrapper method is of course "lame" as you called it, but it would do what I need it to do, thought it is lame :)

Re: [PHP] __construct __destruct in PHP 4

2007-01-28 Thread Jochem Maas
Peter Lauri wrote: > Hi, > > Yes I have been reading both sections and is aware of the different sections > for PHP 4 and 5. I was just hoping there was something missing in the manual > for PHP 4 as I'd love to have a __destruct method to work with. There are > other solutions around this. Basica

RE: [PHP] __construct __destruct in PHP 4

2007-01-28 Thread Peter Lauri
Hi, Yes I have been reading both sections and is aware of the different sections for PHP 4 and 5. I was just hoping there was something missing in the manual for PHP 4 as I'd love to have a __destruct method to work with. There are other solutions around this. Basically I just want to make sure th

Re: [PHP] __construct __destruct in PHP 4

2007-01-28 Thread Larry E. Ullman
I have been trying going thru the PHP manual to find if there are any equivalent to the __contruct and __destruct in PHP 4, but I cannot find any solution for this part. I know it was introduced in PHP 5, but as __sleep and __wakeup exist in PHP 4 already I was hoping there is something like

[PHP] CMS Engine(s) with Savant (or other non-compiling template engine)

2007-01-28 Thread Andrei Verovski (aka MacGuru)
Hi ! Anyone knows if there any CMS engine(s) which PHP Savant template engine or any similar non-compiling template system ? Unlike other template systems, Savant by default does not compile your templates into PHP; instead, it uses PHP itself as its template language so you don't need to lea

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-28 Thread Satyam
- Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> To: "Larry Garfield" <[EMAIL PROTECTED]> Cc: Sent: Sunday, January 28, 2007 12:55 PM Subject: Re: [PHP] SQL Readability.. (was Re: most powerful php editor) Larry Garfield wrote: On Saturday 27 January 2007 1:14 pm, Joche

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-28 Thread Jochem Maas
Larry Garfield wrote: > On Saturday 27 January 2007 1:14 pm, Jochem Maas wrote: > query builders are alot more fiddly to get 'right' than one might imagine, dealing with NULLs, booleans and dates for example (as Satyam pointed out) can be a right PITA. >>> I actually almost never us