RE: [PHP] Recursion to sanitize user input

2004-10-08 Thread Yoed Anis
Simple your code should look like this: ... if ( is_array($userInput) ) { foreach ( $userInput as $key => $value ) { return sanitize( $value ); //< needed to return it or else its not recurssive } } else { ... . Should work, not tes

RE: [PHP] Need some ideas

2004-09-29 Thread Yoed Anis
ECTED] Subject: Re: [PHP] Need some ideas * Thus wrote Yoed Anis: > Hi guys, > > OK I need some ideas. > > Somebody created the stupidest XML file I've ever seen. And of course > they can't change it, and I *must* be able to read it. I'm all out of >

RE: [PHP] Re: Need some ideas

2004-09-28 Thread Yoed Anis
Well, that is one approach. >how about ignoring them? :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Need some ideas

2004-09-28 Thread Yoed Anis
Hi guys, OK I need some ideas. Somebody created the stupidest XML file I've ever seen. And of course they can't change it, and I *must* be able to read it. I'm all out of brain power on thinking how to go about reading it. I typically use simplexml to read xml and that's where my

RE: [PHP] Secure SOAP connections

2004-09-22 Thread Yoed Anis
>From my experience some enterprise level systems do this. As long as you use https and a user/pass combo though I don't see what the problem is. You can always create a server-side login mechanism that will associate an id with the client and automaticaly expire after 30 minutes or so as well. Be

RE: [PHP] how to concatenate php variables in mysql query

2004-09-22 Thread Yoed Anis
Luke, MySQL has a built in CONCAT function. This will concat two strings togther. In your example it would look like telephone_number = CONCAT('$telcode', '$telnumber') ... See the MySQL manual for more info on the concat function. Of course using this function will force the data to be a string.

RE: [PHP] simplexml and xpath

2004-09-21 Thread Yoed Anis
For this simple query simple do a call to $item->date to get your time. If the query is more complex in reality, do a foreach using xpath. See the example on Xpath at www.php.net/simplexml Yoed -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2

[PHP] How do I send XML attributes via Soap?

2004-09-21 Thread Yoed Anis
Hi, I'm having trouble sending a request containing XML attributes in a soap request. I don't know how to go about doing it. Previously to pass XML as a soap request from my client to the server I would go throw the following steps: (1) Create the XML string. (i.e xmlstr = << XML;) (2) Than I

[PHP] last entry in mysql

2001-12-12 Thread Yoed Anis
hey guys, quick question I'm having trouble finding an answer too. In a mysql database, how can I select that last row entry. This might be done mins after i put that entry there and i tried to use: $lastid=mysql_insert_id(); to get the last id but to no avail. Thanks Yoed -- PHP General Ma

[PHP] thanks

2001-11-28 Thread Yoed Anis
thanks guys it would have taken me forever to discover your tips. "Yoed Anis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey Guys, > > I'm having a trouble I can't seem to solve and hoped maybe one of you mig

[PHP] Using a file to make an array

2001-11-27 Thread Yoed Anis
Hey Guys, I'm having a trouble I can't seem to solve and hoped maybe one of you might take a look and see if you can help me. (If you don't want to learn my approach just skip to the bottom to help me with the final bit.. skip to "hear") What I want to do is open the text file testtext.txt (atta