Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Aaron Axelsen
Option 2 is what I'm trying to do, but the problem is that when curl sends the file over the command line, when it's processes via PHP the attached file comes over $_FILES. But, added the postdata obviously doesn't allow it to come over that way. Is there any way to use option 2 and transmit

Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Nathan Nobbe
On Sun, Apr 13, 2008 at 1:07 PM, Aaron Axelsen [EMAIL PROTECTED] wrote: Option 2 is what I'm trying to do, but the problem is that when curl sends the file over the command line, when it's processes via PHP the attached file comes over $_FILES. im lost here. in option 2 from Bojan's post

Re: [PHP] Need a simple one time search utility

2008-04-13 Thread Nathan Nobbe
On Sat, Apr 12, 2008 at 4:31 PM, Al [EMAIL PROTECTED] wrote: I know how to script one to do the job; but, I was hoping to save a few hours.. here; ill spare you the few hours ;) as it stands this is designed to be invoked from the cli, but theres a class in here that does all the heavy

Re: [PHP] Importing / Adding Fields Into MySql From A List

2008-04-13 Thread Wolf
revDAVE wrote: Newbie question! I have a list of field names from another database (not mysql) - like: name phone1 phone2 street city state zip info etc (a bunch more fields) Q: Is there a way I can add these to an existing empty/blank table? I have phpMyAdmin and If there's a way add

Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Aaron Axelsen
The problem is that it is a 3rd party API that I am trying to submit data to. I have submitted a request to make the necessary changes for what I'm trying to do. Nathan Nobbe wrote: On Sun, Apr 13, 2008 at 1:07 PM, Aaron Axelsen [EMAIL PROTECTED] wrote: Option 2 is what I'm trying to

Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Bojan Tesanovic
You should read PHP manual more often it is a bible for us :) http://www.php.net/curl_setopt there is example on that page how to upload files. You need to save data to disk first though, which I guess is not a big deal to do the job On Apr 14, 2008, at 2:47 AM, Aaron Axelsen wrote:

[PHP] Writing MySQL Update Query with NULL value

2008-04-13 Thread Bill Guion
I'm trying to write a MySQL UPDATE query where one or more variables may be NULL. So, I'm trying something like: $last_name = $_POST['last_name']; $first_name = $_POST['first_name']; $suffix = $_POST['suffix']; $suffix = empty($suffix) ? NULL : $suffix; $phone = $_POST['phone'];

Re: [PHP] Writing MySQL Update Query with NULL value

2008-04-13 Thread Chris
Bill Guion wrote: I'm trying to write a MySQL UPDATE query where one or more variables may be NULL. So, I'm trying something like: $last_name = $_POST['last_name']; $first_name = $_POST['first_name']; $suffix = $_POST['suffix']; $suffix = empty($suffix) ? NULL : $suffix; $phone =