Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 18:23:19 +1100: > So far I have had no luck with simpleXML at all. So far I am not convinced you have tried it at all. Show us the code you wrote and describe how its behavior differs from your expectations. -- How many Vietnam vets does it take to screw in a li

Re[2]: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Richard Luckhurst
Hi Jochem, Thanks for your reply. Here is a short sample of the XML I have to parse. I need the data in the attributes as well as the data in the character fields. VLOX2 VLOX2 VLOX2

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Jochem Maas
Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-10 12:09:40 +1100: >> RN> What makes you think simplexml is not for you? I don't say it is, but >> RN> you need to tell us exactly what you need. >> RN> >> >> From what I can see, unless I am mistaken, SimpleXML can not deal with >> attributes

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Andrei
Hi, From all XML parsers I tried I loved the most: www.phpclasses.org/browse/package/1328.html The advantage is that you don't need any extra addons to php or anything else. It's pure php. Andrei Richard Luckhurst wrote: > Hi List > > I am sending this to the list again with a

Re: [PHP] Javascript detection , working version

2007-01-09 Thread Curt Zirzow
On 1/1/07, Jürgen Wind <[EMAIL PROTECTED]> wrote: well, no cute css, but (hopefully) working - here is my quick & dirty version : http://149.222.235.16/public/ I dont understand the point. Curt, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Javascript detection , working version

2007-01-09 Thread Jürgen Wind
you additionaly can surround the meta redirect with noscript tags: tedd wrote: > > At 9:55 PM +0100 1/2/07, Satyam wrote: >>- Original Message - From: "Robert Cummings" <[EMAIL PRO

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 12:09:40 +1100: > RN> What makes you think simplexml is not for you? I don't say it is, but > RN> you need to tell us exactly what you need. > RN> > > From what I can see, unless I am mistaken, SimpleXML can not deal with > attributes within a tag. It only seems to

Re[2]: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Richard Luckhurst
Hi Roman, RN> What makes you think simplexml is not for you? I don't say it is, but RN> you need to tell us exactly what you need. RN> From what I can see, unless I am mistaken, SimpleXML can not deal with attributes within a tag. It only seems to deal with data contained between a start tag and

Re: [PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-10 09:47:39 +1100: > I have spent most of last night and today looking at XML parsing and now am > totally confused. Some testing I have done suggests that SimpleXML is not the > way to go however I am open to suggestions if it might be an answer. What makes you think

[PHP] Re: whois Domain??

2007-01-09 Thread Colin Guthrie
Marcelo Ferrufino Murillo wrote: > Hi ereryone I need to do an script into a web page to know if a domain is > registered so I don´t know how to send a query to "internic" or what I have > to do to get this. > > Thank you, I hope your help. You've already asked this question earlier today and peo

Re: [PHP] unzip openDocument in safe mode

2007-01-09 Thread Chris
Jochem Maas wrote: Bernhard Zwischenbrugger wrote: I try to unzip openDocument files with pclzip. At my laptop this is no big problem, but the target server has "safe mode" switched on (no way to change that). The problem with safe mode and unzipping openDocument ist, that a openDocument zip fi

Re: [PHP] whois Domain??

2007-01-09 Thread Curt Zirzow
On 1/9/07, Ashley M. Kirchner <[EMAIL PROTECTED]> wrote: Curt Zirzow wrote: > Assuming paths is evil :) To add to what Curt says here, so is assuming the command actually exists. :) ha! nice any shell command should really be used like: $cmd = '/bin/command ' . escapeshellcmd($userinput

Re: [PHP] whois Domain??

2007-01-09 Thread Ashley M. Kirchner
Curt Zirzow wrote: Assuming paths is evil :) To add to what Curt says here, so is assuming the command actually exists. :) -- H | It's not a bug - it's an undocumented feature. + Ashley M. Kirchner

Re: [PHP] whois Domain??

2007-01-09 Thread Curt Zirzow
On 1/9/07, Wickham, Larry <[EMAIL PROTECTED]> wrote: If you are running under linux you can use one of the many exec functions in php to execute the whois command. i'd rather like to see a path used from from `which whois` Assuming paths is evil :) Curt. -- PHP General Mailing List (http:/

RE: [PHP] whois Domain??

2007-01-09 Thread Wickham, Larry
If you are running under linux you can use one of the many exec functions in php to execute the whois command. $output"; ?> Larry -Original Message- From: Marcelo Ferrufino Murillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 09, 2007 4:20 PM To: php-general@lists.php.net Subject

[PHP] whois Domain??

2007-01-09 Thread Marcelo Ferrufino Murillo
Hi ereryone I need to do an script into a web page to know if a domain is registered so I don´t know how to send a query to "internic" or what I have to do to get this. Thank you, I hope your help.

[PHP] Parsing an XML return from a POST - resend with a little more information

2007-01-09 Thread Richard Luckhurst
Hi List I am sending this to the list again with a bit more information in the hope I can get some help. There is a requirement to send a request to a server and I now have that working using cURL, thanks to help from this list. I now have the responses coming back as an XML response. What I need

Re: [PHP] Introduction and questions...

2007-01-09 Thread Jochem Maas
Jason Pruim wrote: ... >> http://php.net/htmlentities >> > > Okay, So after this post I have 1 more before everyone throws the manual > at me... So lets make this good, I added that as you suggested, but > think I may have put the entries in the wrong place... As it sits right > now the $img

[PHP] Re: SOLVED: [PHP] Sort Array not working

2007-01-09 Thread Kevin Murphy
Once you see it in email, sometimes the obvious jumps out at you. Fixed this on my own. -- Kevin Murphy Webmaster: Information and Marketing Services Western Nevada Community College www.wncc.edu 775-445-3326 On Jan 9, 2007, at 10:41 AM, Kevin Murphy wrote: I'm having trouble sorting an arra

Re: [PHP] Sort Array not working

2007-01-09 Thread Fredrik Thunberg
Hi sort returns a bool, the sorted array passed by reference. So try: $result = sort( $array ); //Now $array is sorted print_r( $array ); /Fredrik Thunberg Kevin Murphy skrev: I'm having trouble sorting an array. When I do, it empties the array for some reason. Take the following code: $d

[PHP] SOLVED: RE: [PHP] storing date in datetime column

2007-01-09 Thread afan
WORKS PERFECT! Thanks Brad! -afan > [EMAIL PROTECTED] wrote: >> hi, >> $date = "January 8 2007 11:23 pm"; >> and have to store it on db in datetime column as -mm-dd HH:ii:ss. >> Is there any function that will "translate" $date in format I >> need to store it in DB? >> >> Right now I was thin

[PHP] Sort Array not working

2007-01-09 Thread Kevin Murphy
I'm having trouble sorting an array. When I do, it empties the array for some reason. Take the following code: $data = "bird,dog,cat,dog,,horse,bird,bird,bird,lizard"; $array = explode(",",$data); // Create the array $array = array_diff($array, array("")); // Drop the em

RE: [PHP] storing date in datetime column

2007-01-09 Thread Brad Fuller
[EMAIL PROTECTED] wrote: > hi, > $date = "January 8 2007 11:23 pm"; > and have to store it on db in datetime column as -mm-dd HH:ii:ss. > Is there any function that will "translate" $date in format I > need to store it in DB? > > Right now I was thinking to do like this: > > $date_new = explo

[PHP] Re: unpack on offsets in binary data in variable?

2007-01-09 Thread Greg Beaver
Markus Fischer wrote: > Hi, > > I'm searching for an efficient way to use unpack on binary data within a > variable (php 5.1.something). In the past I was doing > > fopen > fseek > unpack( fread(...) > fseek > etc. > > Now this time I need to do the same, but I don't have an actual file: my > da

Re: [PHP] Introduction and questions...

2007-01-09 Thread Jochem Maas
Jason Pruim wrote: > Hi Everyone, I'm very new to php and to this list. I'm hoping to be able > to suck up as much knowledge from this list as I possibly can and be > able to help and contribute in the future. > > But until that time, I'm in need of some help. > > I'm trying to write an image gal

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread tedd
At 5:36 PM + 1/9/07, Dave Goodchild wrote: Wow, there are some really bitchy, unattractive people here. No wonder some people bail out of IT. Don't confuse knowledge for wisdom. Dave: I don't understand your comment. What I said below is good coding. Never trust any input to be what you

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Robert Cummings
On Tue, 2007-01-09 at 18:41 +, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-09 17:36:55 +: > > Wow, there are some really bitchy, unattractive people here. No wonder some > > people bail out of IT. Don't confuse knowledge for wisdom. > > I don't see anything bitchy in the whole e

[PHP] Introduction and questions...

2007-01-09 Thread Pedro Mpa
-Original Message- From: Jason Pruim [mailto:[EMAIL PROTECTED] Sent: terça-feira, 9 de Janeiro de 2007 17:37 To: php-general@lists.php.net Subject: [PHP] Introduction and questions... Hi Everyone, I'm very new to php and to this list. I'm hoping to be able to suck up as much knowledge f

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Dave Goodchild
Read the reponses.

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-09 17:36:55 +: > Wow, there are some really bitchy, unattractive people here. No wonder some > people bail out of IT. Don't confuse knowledge for wisdom. I don't see anything bitchy in the whole email. Don't confuse terseness with bitching. Oh, and also don't top

[PHP] Introduction and questions...

2007-01-09 Thread Jason Pruim
Hi Everyone, I'm very new to php and to this list. I'm hoping to be able to suck up as much knowledge from this list as I possibly can and be able to help and contribute in the future. But until that time, I'm in need of some help. I'm trying to write an image gallery script(Or program/appli

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Dave Goodchild
Wow, there are some really bitchy, unattractive people here. No wonder some people bail out of IT. Don't confuse knowledge for wisdom. On 1/9/07, tedd <[EMAIL PROTECTED]> wrote: At 9:17 PM -0500 1/5/07, <[EMAIL PROTECTED]> wrote: >You'll probably get 50 answers to this, but here's probably what

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread tedd
At 9:17 PM -0500 1/5/07, <[EMAIL PROTECTED]> wrote: You'll probably get 50 answers to this, but here's probably what happened. There's a setting called "register globals" that will turn your name=me and age=27 into $name = "me" and $age = "27". It used to be turned ON by default. This was ge

Re: [PHP] unzip openDocument in safe mode

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-09 17:57:40 +0100: [ safe_mode-induced usability problems] > http://www.php.net/manual/de/function.ziparchive-addfile.php > and > http://at.php.net/manual/de/function.ziparchive-getfromname.php > would be fine. > If there is a package for BSD that would be a solution

Re: [PHP] Javascript detection , working version

2007-01-09 Thread tedd
At 9:55 PM +0100 1/2/07, Satyam wrote: - Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Jürgen Wind" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, January 02, 2007 8:57 PM Subject: Re: [PHP] Javascript detection , working version On Tue, 2007-01-02 at 11:32 -0800, Jürgen

[PHP] storing date in datetime column

2007-01-09 Thread afan
hi, $date = "January 8 2007 11:23 pm"; and have to store it on db in datetime column as -mm-dd HH:ii:ss. Is there any function that will "translate" $date in format I need to store it in DB? Right now I was thinking to do like this: $date_new = explode(' ', $date); switch($date_new[0]) { ca

Re: [PHP] IE, Word documents and Content Types

2007-01-09 Thread tedd
At 11:36 PM +0100 1/4/07, Jochem Maas wrote: Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-03 15:48:31 -0600: >> On Wed, January 3, 2007 2:52 pm, Philip Thompson wrote: I have a form where a user can upload different types of documents. A valid file type they will be able to upload

Re: [PHP] IE, Word documents and Content Types

2007-01-09 Thread tedd
At 2:09 AM + 1/5/07, Roman Neuhauser wrote: ... the opening remark was completely unwarranted, unasked for. You mean like the closing remark in your sig? What do you know about unwarranted and unasked for? tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.c

Re: [PHP] unzip openDocument in safe mode

2007-01-09 Thread Bernhard Zwischenbrugger
Am Dienstag, den 09.01.2007, 17:21 +0100 schrieb Jochem Maas: > Bernhard Zwischenbrugger wrote: > > I try to unzip openDocument files with pclzip. > > At my laptop this is no big problem, but the target server has "safe > > mode" switched on (no way to change that). > > > > The problem with safe m

Re: [PHP] unzip openDocument in safe mode

2007-01-09 Thread Jochem Maas
Bernhard Zwischenbrugger wrote: > I try to unzip openDocument files with pclzip. > At my laptop this is no big problem, but the target server has "safe > mode" switched on (no way to change that). > > The problem with safe mode and unzipping openDocument ist, that a > openDocument zip file contain

[PHP] unzip openDocument in safe mode

2007-01-09 Thread Bernhard Zwischenbrugger
I try to unzip openDocument files with pclzip. At my laptop this is no big problem, but the target server has "safe mode" switched on (no way to change that). The problem with safe mode and unzipping openDocument ist, that a openDocument zip file contains directories. It is not possible to write t

[PHP] Re: Domain Search

2007-01-09 Thread Colin Guthrie
Jochem Maas wrote: > without getting into the specifics of what the OP might be looking for, > I'd like to add that I think the above should (?) use escapeshellarg() rather > than escapeshellcmd() although escapeshellcmd() will, AFAICT from the docs, > also keep you safe in the current example. In

Re: [PHP] Re: Domain Search

2007-01-09 Thread Jochem Maas
Colin Guthrie wrote: > Marcelo Ferrufino Murillo wrote: >> I have to make a domain search so I don´t know if there is an API or >> something that could help me in this o if you know how I could make this. > > Should just be a matter of spewing out the results of the command "whois > mydomain.com"

[PHP] Re: Domain Search

2007-01-09 Thread Colin Guthrie
Marcelo Ferrufino Murillo wrote: > I have to make a domain search so I don´t know if there is an API or > something that could help me in this o if you know how I could make this. Should just be a matter of spewing out the results of the command "whois mydomain.com". There may be a specific PHP

RE: [PHP] Domain Search

2007-01-09 Thread Peter Lauri
Most domain wholesale sites have it. www.onlinenic.com has it, I am sure that godaddy.com has it as well. Joker.com has it. 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:

Re: [PHP] Domain Search

2007-01-09 Thread Stut
Marcelo Ferrufino Murillo wrote: I have to make a domain search so I don´t know if there is an API or something that could help me in this o if you know how I could make this. What do you mean by a domain search? -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] Domain Search

2007-01-09 Thread Marcelo Ferrufino Murillo
I have to make a domain search so I don´t know if there is an API or something that could help me in this o if you know how I could make this. Thank you.

[PHP] PHP milter SAPI: problem with smfi_getsymval

2007-01-09 Thread Atpic
Hi, I compiled the milter sapi, the example in the distribution works well. BUT when I try to get the values of the sendmail macros with the smfi_getsymval function, i desperately get a blank string. I used strace and I do see the "i" sendmail macro in a red system call but I can no red its value

[PHP] Re: Table contents not updated

2007-01-09 Thread David Robley
Wikus Moller wrote: > Hi. > > I am new to uising html forms with php and I am having a problem with > database contents not being updated although it seems my coding is > correct. > > It's a xhtml formatted site with html forms: > > Here are my functions: lots of code Judicious use of mysql_