RE: [PHP] Fun with SOAP.

2008-04-30 Thread Warren Vail
You should be able to parse it manually in PHP, but probably not with a XML parser or reader. Simply var_dump() the responses you are getting and write the code to break it up into values you can use. In some respects I've found this easier than XML, which tends at times to be somebody else's

[PHP] Graphical Site Map

2008-04-30 Thread John Comerford
Hi Folks, Does anybody know of a product (php or otherwise) that enables the creation of a graphical site map ? I have had a shimmy around the web but just keep finding classes to create the .xml format site maps. TIA, JC -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Sending data to PS

2008-04-30 Thread Richard Luckhurst
Hi List In Perl it is possible to use the syntax $0 = $LISTENER: accepting connections on $SERVER_PORT; to set a meaningful test string for ps. Is such a thing, or anything similar, available for PHP? Regards, Richard Luckhurst -- PHP General Mailing List

Re: [PHP] web based chat app

2008-04-30 Thread paragasu
You want light outta it?use the jabber2 server as a backend. It'll be done serving while you try to access the database. No need to do a square wheel, when a round one is invented is there any free jabber2 server i can use?

Re: [PHP] web based chat app

2008-04-30 Thread paragasu
On Wed, Apr 30, 2008 at 4:28 PM, paragasu [EMAIL PROTECTED] wrote: You want light outta it?use the jabber2 server as a backend. It'll be done serving while you try to access the database. No need to do a square wheel, when a round one is invented is there any free jabber2 server i

Re: [PHP] PHP debugger

2008-04-30 Thread J. Manuel Velasco - UBILIBET
NOTE: If you are interesting in PHP Debuggers, this is not the mail, check the start of the thread since after I decided to try JasonPruim Debug :p we are trying to solve one specific problem. Now, to who is following the thread ... don't hung me, but i think the problem was there was because

Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Shelley
On Wed, Apr 30, 2008 at 5:14 PM, Aschwin Wesselius [EMAIL PROTECTED] wrote: Shelley wrote: Hi all, I am currently responsible for a subscription module and need to design the DB tables and write code. I have described my table design and queries in the post:

Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Aschwin Wesselius
Shelley wrote: Hi all, I am currently responsible for a subscription module and need to design the DB tables and write code. I have described my table design and queries in the post: http://phparch.cn/index.php/mysql/38-MySQL-configuration/152-best-practices-for-using-mysql-index The problem

Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Aschwin Wesselius
Shelley wrote: Don't index just all integer fields. Keep track of the cardinality of a column. If you expect a field to have 100.000 records, but with only 500 distinct values it has no use to put an index on that column. A full record search is quicker. Hmmm... That's new. :) Well,

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Eric Butera
On Tue, Apr 29, 2008 at 5:07 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: i know this has nothing to do w/ getting it to work w/ php, eric, but have you tried hitting the service w/ soap ui? http://www.soapui.org/ although its written in java, its an indispensable testing tool, imho, and i

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Eric Butera
On Wed, Apr 30, 2008 at 2:53 AM, Warren Vail [EMAIL PROTECTED] wrote: You should be able to parse it manually in PHP, but probably not with a XML parser or reader. Simply var_dump() the responses you are getting and write the code to break it up into values you can use. In some respects

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Eric Butera
On Wed, Apr 30, 2008 at 7:35 AM, Eric Butera [EMAIL PROTECTED] wrote: On Tue, Apr 29, 2008 at 5:07 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: i know this has nothing to do w/ getting it to work w/ php, eric, but have you tried hitting the service w/ soap ui? http://www.soapui.org/

Re: [PHP] Xampp question, pretty much 0T

2008-04-30 Thread Ryan S
clip After reading a bit I see that if I just copy the data directory in the mySql directory, I can restore it from there? any idea if I have that wrong? Hmm I guess, but I'd take the safer road and open a console and run: mysqldump.exe -u username -p --all-databases --add-drop-database --opt

RE: [PHP] Xampp question, pretty much 0T

2008-04-30 Thread Wolf
Top posting from my cell... 1. Format hard drive 2. Install redhat fc8 or Ubuntu 8.04 3. Load the new MySQL installation with your backup file If you really have to stay with windoze, remove and re-install apache. Look at the system log files as they SHOULD tell you what was causing the

Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Robert Cummings
On Wed, 2008-04-30 at 11:14 +0200, Aschwin Wesselius wrote: Shelley wrote: Hi all, I am currently responsible for a subscription module and need to design the DB tables and write code. I have described my table design and queries in the post:

RE: [PHP] Xampp question, pretty much 0T

2008-04-30 Thread Daevid Vincent
Alternatively, I suggest you look into VMWare. There are several free versions (player, server, etc) if you don't want Workstation (which I absolutely love!) Workstation will give you such life-savers as multiple Snapshots amongst other things. http://www.vmware.com/products/player/

[PHP] php 5 and mysql failure

2008-04-30 Thread Yehudi Alexis Garrett
I'm using a php script which performs three xml queries to other three servers to retrieve a set of ids and after I do a query to mysql of the kind SELECT * FROM table WHERE id IN ('set of ids'); Although I'm sure the connection to the database is ok, I sometimes get an error of this kind:

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Larry Brown
I'm not sure how it looks etc with with soapui but I noticed you mentioning you don't want to mess with nusoap. I've used nusoap for both client and server uses for years and I'm really impressed with how easily it works. Using $soapInstance-request and $soapInstance-response the xml is

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Nathan Nobbe
On Wed, Apr 30, 2008 at 1:53 PM, Larry Brown [EMAIL PROTECTED] wrote: Sorry no quick silver bullet, but I would highly recommend looking at nusoap if only as a test. additionally, i could not find any occurrence of 'attachment' grepping through the c code in the soap extension or the rpc

[PHP] Re: php 5 and mysql failure

2008-04-30 Thread Shawn McKenzie
Yehudi Alexis Garrett wrote: I'm using a php script which performs three xml queries to other three servers to retrieve a set of ids and after I do a query to mysql of the kind SELECT * FROM table WHERE id IN ('set of ids'); Although I'm sure the connection to the database is ok, I sometimes

Re: [PHP] php 5 and mysql failure

2008-04-30 Thread Dan Joseph
On Wed, Apr 30, 2008 at 2:31 AM, Yehudi Alexis Garrett [EMAIL PROTECTED] wrote: I'm using a php script which performs three xml queries to other three servers to retrieve a set of ids and after I do a query to mysql of the kind SELECT * FROM table WHERE id IN ('set of ids'); Although I'm sure

[PHP] check if any element of an array is not empty

2008-04-30 Thread afan pasalic
hi, as a result of one calculation I'm receiving an array where elements could be 0 or date (as string -mm-dd hh:ii:ss). I have to check if any of elements of the array is date or if all elements of the array is 0? If I try array_sum($result) I'll get 0 no matter what (0 + $string = 0). I

Re: [PHP] check if any element of an array is not empty

2008-04-30 Thread Nathan Nobbe
On Wed, Apr 30, 2008 at 2:36 PM, afan pasalic [EMAIL PROTECTED] wrote: hi, as a result of one calculation I'm receiving an array where elements could be 0 or date (as string -mm-dd hh:ii:ss). I have to check if any of elements of the array is date or if all elements of the array is 0?

Re: [PHP] check if any element of an array is not empty

2008-04-30 Thread Richard Heyes
but I was thinking if there is the function does that. array_filter(). Note this: If no callback is supplied, all entries of input equal to FALSE (see converting to boolean) will be removed. http://uk3.php.net/manual/en/function.array-filter.php -- Richard Heyes

Re: [PHP] check if any element of an array is not empty

2008-04-30 Thread afan pasalic
yup! that's the one :D thanks richard Richard Heyes wrote: but I was thinking if there is the function does that. array_filter(). Note this: If no callback is supplied, all entries of input equal to FALSE (see converting to boolean) will be removed.

Re: [PHP] check if any element of an array is not empty

2008-04-30 Thread Nathan Nobbe
On Wed, Apr 30, 2008 at 2:58 PM, Richard Heyes [EMAIL PROTECTED] wrote: but I was thinking if there is the function does that. array_filter(). Note this: If no callback is supplied, all entries of input equal to FALSE (see converting to boolean) will be removed.

Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Chris
Index on most integer fields only. Text fields can be indexed, but is not important when you design your DB well. Don't index just all integer fields. Keep track of the cardinality of a column. If you expect a field to have 100.000 records, but with only 500 distinct values it has no use to

[PHP] Variable varialbe with array not working

2008-04-30 Thread kronostar
I am trying to use variable variables in an array. ?The last line of code does not work. ?More specifically the last variable in the last line of code does not work in this setup. ?The array gets created with the appropriate indexes however the values are blank. ?I can echo item_value and it

Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Larry Garfield
On Wednesday 30 April 2008, Chris wrote: Index on most integer fields only. Text fields can be indexed, but is not important when you design your DB well. Don't index just all integer fields. Keep track of the cardinality of a column. If you expect a field to have 100.000 records, but

[PHP] problem imap_headerinfo

2008-04-30 Thread Richard Kurth
I get a *Catchable fatal error*: Object of class stdClass could not be converted to string on this line $mail_head = imap_headerinfo($conn, $i); if I remove it it works fine what would be casing this I really need to read the header. I am using php version 5.2.5 $conn = @imap_open({ .

Re: [PHP] problem imap_headerinfo

2008-04-30 Thread Chris
Richard Kurth wrote: I get a *Catchable fatal error*: Object of class stdClass could not be converted to string on this line $mail_head = imap_headerinfo($conn, $i); RTM. http://www.php.net/imap_headerinfo It's an object, not a string. print_r($mail_head); -- PHP General Mailing List

Re: [PHP] problem imap_headerinfo

2008-04-30 Thread Kalle Sommer Nielsen
Hi Richard Like Chris replied, then the returned value of imap_headerinfo() is an stdClass object. You can iterate though all the object properties like this: $header = ''; foreach($mail_head as $headerbit = $value) { if(empty($value)) { continue; } $header .= $headerbit .