Re: [PHP] Update or add?

2006-06-30 Thread Venkat Venkataraju
Hi All, there is not-so-used format of SQL format that is INSERT INTO table SET col1=data1, col2=data2... ON DUPLICATE KEY UPDATE col1=data1, col2=data2...; you have to define a primary or unique key in the table and all will work well. for more info http://dev.mysql.com/doc/refman/4.1/en/

[PHP] Wired WSDL Error

2006-04-05 Thread Venkat Venkataraju
Hi All I'm currently developing a SOAP server/client using NuSOAP. I have rigged my apache so that i can work on multiple applications at the same time. So, as all my apps are in virtual hosts, i'm getting 404 error while parsing the WSDL file. The wired thing is, the parsing breaks somewher

[PHP] FQDN of the server thru CLI

2006-04-04 Thread Venkat Venkataraju
Hi All I'm writing a bunch of cron scripts that send reports periodically using phpmailer. I'm having a hard time trying to find the FQDN of the server. I need that information to construct the from address for the emails. The $_ENV['HOSTNAME'] works only if the script is executed manually.