php-general Digest 4 Sep 2010 16:45:28 -0000 Issue 6924

2010-09-04 Thread php-general-digest-help

php-general Digest 4 Sep 2010 16:45:28 - Issue 6924

Topics (messages 307841 through 307847):

Re: PHP, Soap, and WDSL
307841 by: Jangita
307842 by: chris h
307843 by: SBS Computers

Re: Questions about $_SERVER
307844 by: tedd

Re: Secure Communication?
307845 by: tedd
307846 by: tedd

a test (list is too quite)
307847 by: tedd

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---

On 02/09/2010 10:51 p, SBS Computers wrote:


It's as if the data is not getting to my php page?

The view source shows the following data:

?xml version=1.0 encoding=utf-16?soap:Envelope 
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
.
.
.bunch of data
.
.
/response/soap:Body/soap:Envelope

Seems like the data is getting there OK. But a browser normally will not 
output normal xml and hides it (unless there is a body / tag or other 
tags that normally display output since it is using the text/html MIME


add this line

header('Content-type: text/plain');

before the echo and see what happens. Also make sure there is no other 
output (echo or any html tags) before the line above

--
Jangita | +256 76 91 8383 | Y!  MSN: jang...@yahoo.com
Skype: jangita | GTalk: jangita.nyag...@gmail.com
---End Message---
---BeginMessage---
Alternatively you can pass the var through htmlspecialchars...

 echo htmlspecialchars( $response );


and for a really simple solution you can echo it inside a textarea...

 echo textarea $response /textarea;


Though you'll likely want to increase the size of the textarea!  ;-)




Chris.



On Fri, Sep 3, 2010 at 3:39 AM, Jangita jang...@jangita.com wrote:

 On 02/09/2010 10:51 p, SBS Computers wrote:

  It's as if the data is not getting to my php page?

 The view source shows the following data:

 ?xml version=1.0 encoding=utf-16?soap:Envelope xmlns:soap=
 http://schemas.xmlsoap.org/soap/envelope/;
 .
 .
 .bunch of data
 .
 .
 /response/soap:Body/soap:Envelope

  Seems like the data is getting there OK. But a browser normally will not
 output normal xml and hides it (unless there is a body / tag or other tags
 that normally display output since it is using the text/html MIME

 add this line

 header('Content-type: text/plain');

 before the echo and see what happens. Also make sure there is no other
 output (echo or any html tags) before the line above

 --
 Jangita | +256 76 91 8383 | Y!  MSN: jang...@yahoo.com
 Skype: jangita | GTalk: jangita.nyag...@gmail.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


---End Message---
---BeginMessage---

Thanks guys.

Both methods worked.

Gino

 Date: Fri, 3 Sep 2010 08:31:06 -0400
 From: chris...@gmail.com
 To: jang...@jangita.com
 CC: php-gene...@lists.php.net
 Subject: Re: [PHP] PHP, Soap, and WDSL
 
 Alternatively you can pass the var through htmlspecialchars...
 
  echo htmlspecialchars( $response );
 
 
 and for a really simple solution you can echo it inside a textarea...
 
  echo textarea $response /textarea;
 
 
 Though you'll likely want to increase the size of the textarea!  ;-)
 
 
 
 
 Chris.
 
 
 
 On Fri, Sep 3, 2010 at 3:39 AM, Jangita jang...@jangita.com wrote:
 
  On 02/09/2010 10:51 p, SBS Computers wrote:
 
   It's as if the data is not getting to my php page?
 
  The view source shows the following data:
 
  ?xml version=1.0 encoding=utf-16?soap:Envelope xmlns:soap=
  http://schemas.xmlsoap.org/soap/envelope/;
  .
  .
  .bunch of data
  .
  .
  /response/soap:Body/soap:Envelope
 
   Seems like the data is getting there OK. But a browser normally will not
  output normal xml and hides it (unless there is a body / tag or other tags
  that normally display output since it is using the text/html MIME
 
  add this line
 
  header('Content-type: text/plain');
 
  before the echo and see what happens. Also make sure there is no other
  output (echo or any html tags) before the line above
 
  --
  Jangita | +256 76 91 8383 | Y!  MSN: jang...@yahoo.com
  Skype: jangita | GTalk: jangita.nyag...@gmail.com
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
  ---End Message---
---BeginMessage---

Peter and Paul:

Sorry, I went on vacation for a few days (it was a surprise vacation 
with a 2 day notice).


I think you both understand what I was looking for and found what I 
wanted was not possible. It's just one of those things in life you 
have to live with.


Thanks very much for your time and comment.

Cheers,

tedd
--
---
http://sperling.com/
---End Message---
---BeginMessage---

At 3:58 PM -0400 8/30/10, Paul M Foster 

[PHP] a test (list is too quite)

2010-09-04 Thread tedd

Hi gang:

Just checking to see if I am still receiving postings.  :-)

Cheers,

tedd
--
---
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] a test (list is too quite)

2010-09-04 Thread chris h
Evidently all is well in the world of php...  :)

On Sat, Sep 4, 2010 at 12:45 PM, tedd t...@sperling.com wrote:

 Hi gang:

 Just checking to see if I am still receiving postings.  :-)

 Cheers,

 tedd
 --
 ---
 http://sperling.com/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] a test (list is too quite)

2010-09-04 Thread tedd

At 12:47 PM -0400 9/4/10, chris h wrote:

Evidently all is well in the world of php...  :)


If it was so, we would all be out of work. Instead, I think it's the 
lull before the storm.


I'll ask a question to stir things up. :-)

Cheers,

tedd


--
---
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] a test (list is too quite)

2010-09-04 Thread metastable
On 09/04/2010 06:47 PM, chris h wrote:
 Evidently all is well in the world of php...  :)

 On Sat, Sep 4, 2010 at 12:45 PM, tedd t...@sperling.com wrote:

   
 Hi gang:

 Just checking to see if I am still receiving postings.  :-)

 Cheers,

 tedd
 --
 ---
 http://sperling.com/

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 
   

troll
It must be enterprise-ready then ;)
/troll

regards,

Stijn


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] a test (list is too quite)

2010-09-04 Thread Floyd Resler


On Sep 4, 2010, at 1:00 PM, tedd wrote:


At 12:47 PM -0400 9/4/10, chris h wrote:

Evidently all is well in the world of php...  :)


If it was so, we would all be out of work. Instead, I think it's the  
lull before the storm.


I'll ask a question to stir things up. :-)

Cheers,

tedd



Good idea.  Here's my question:

How can I make javascript communicate with MySQL using FTP while  
sending a proxy through HTML that utilizes XML and SMTP? :)


Take care,
Floyd


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] a test (list is too quite)

2010-09-04 Thread metastable
On 09/04/2010 08:03 PM, Floyd Resler wrote:

 On Sep 4, 2010, at 1:00 PM, tedd wrote:

 At 12:47 PM -0400 9/4/10, chris h wrote:
 Evidently all is well in the world of php...  :)

 If it was so, we would all be out of work. Instead, I think it's the
 lull before the storm.

 I'll ask a question to stir things up. :-)

 Cheers,

 tedd


 Good idea.  Here's my question:

 How can I make javascript communicate with MySQL using FTP while
 sending a proxy through HTML that utilizes XML and SMTP? :)

 Take care,
 Floyd


I have a wonderfully simple solution to that, but this margin is too
small to write it down.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] a test (list is too quite)

2010-09-04 Thread Marc Guay
Can I make a facebook site using PHP?  If yes, how?

Please send me the infos privately.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] a test (list is too quite)

2010-09-04 Thread chris h
On Sat, Sep 4, 2010 at 2:24 PM, Marc Guay marc.g...@gmail.com wrote:

 Can I make a facebook site using PHP?  If yes, how?

 Please send me the infos privately.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



I'm also trying to make a Facebook site using PHP; but I want mine
to incorporate all the elements from YouTube, Twitter, and Wikipedia... Also
I want it to be ecommerce so I can sell t-shirts with my picture on them...
Also I want it to be an auction site.  Hmm, maybe Wordpress can do this


Re: [PHP] a test (list is too quite)

2010-09-04 Thread a...@ashleysheridan.co.uk
http://www.bash.org/?quote=76416

Meant to post this on Friday, but it works well here too!

Thanks,
Ash
http://www.ashleysheridan.co.uk

- Reply message -
From: chris h chris...@gmail.com
Date: Sat, Sep 4, 2010 19:42
Subject: [PHP] a test (list is too quite)
To: php-general@lists.php.net

On Sat, Sep 4, 2010 at 2:24 PM, Marc Guay marc.g...@gmail.com wrote:

 Can I make a facebook site using PHP?  If yes, how?

 Please send me the infos privately.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



I'm also trying to make a Facebook site using PHP; but I want mine
to incorporate all the elements from YouTube, Twitter, and Wikipedia... Also
I want it to be ecommerce so I can sell t-shirts with my picture on them...
Also I want it to be an auction site.  Hmm, maybe Wordpress can do this


[PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Joshua Kehn
I'm working on creating a compiled extension for some code I've written. Mostly 
it's manipulating a very large multi-demensional array of values. This is some 
pseudo code for the array.

// Imagine this but much much bigger
$big_ass_array = array('5' = array('0' = 4, '3' = 6, '8' = 7), '10' = 
array('4' = 3, '5' = 10')); 

Currently I'm traversing this with

foreach($array as $key1 = $value)
{
foreach($value as $key2 = $value)
{
// Use $key1, $key2, and $value here
}
}

My question is how does this translate into the C code I will have to write? 

If anyone has a decent extension building tutorial that would be great too.

Regards,

-Josh

Joshua Kehn | josh.k...@gmail.com
http://joshuakehn.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Jim Lucas

Joshua Kehn wrote:

I'm working on creating a compiled extension for some code I've written. Mostly 
it's manipulating a very large multi-demensional array of values. This is some 
pseudo code for the array.

// Imagine this but much much bigger
$big_ass_array = array('5' = array('0' = 4, '3' = 6, '8' = 7), '10' = array('4' = 3, '5' = 10')); 


Currently I'm traversing this with

foreach($array as $key1 = $value)
{
foreach($value as $key2 = $value)
{


Well, I hope you are not using it this way.

The above will overwrite your $value variable set by the first foreach

Maybe you had a cut/paste error with the $value1 $value2 portion...


// Use $key1, $key2, and $value here
}
}

My question is how does this translate into the C code I will have to write? 


My suggestion would be to download the source code and find a comparable 
array function and see how they do it.




If anyone has a decent extension building tutorial that would be great too.


First google result for php extension tutorial

http://devzone.zend.com/article/1021
http://www.talkphp.com/vbarticles.php?do=articlearticleid=49title=creating-custom-php-extensions
http://www.php.net/~wez/extending-php.pdf

Just to list a few...

Jim



Regards,

-Josh

Joshua Kehn | josh.k...@gmail.com
http://joshuakehn.com





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question about translating assoc. arrays to C

2010-09-04 Thread Joshua Kehn
Jim-

Yes, that was a typo. The issues was I didn't cut / paste and instead retyped 
it. Should be 

foreach($array as $key1 = $list)
{
foreach($list as $key2 = $value)

I will check those links out, I had the first one not the second.

Regards,

-Josh

Joshua Kehn | josh.k...@gmail.com
http://joshuakehn.com

On Sep 5, 2010, at 12:32 AM, Jim Lucas wrote:

 Joshua Kehn wrote:
 I'm working on creating a compiled extension for some code I've written. 
 Mostly it's manipulating a very large multi-demensional array of values. 
 This is some pseudo code for the array.
 // Imagine this but much much bigger
 $big_ass_array = array('5' = array('0' = 4, '3' = 6, '8' = 7), '10' = 
 array('4' = 3, '5' = 10')); Currently I'm traversing this with
 foreach($array as $key1 = $value)
 {
  foreach($value as $key2 = $value)
  {
 
 Well, I hope you are not using it this way.
 
 The above will overwrite your $value variable set by the first foreach
 
 Maybe you had a cut/paste error with the $value1 $value2 portion...
 
  // Use $key1, $key2, and $value here
  }
 }
 My question is how does this translate into the C code I will have to write? 
 
 My suggestion would be to download the source code and find a comparable 
 array function and see how they do it.
 
 If anyone has a decent extension building tutorial that would be great too.
 
 First google result for php extension tutorial
 
 http://devzone.zend.com/article/1021
 http://www.talkphp.com/vbarticles.php?do=articlearticleid=49title=creating-custom-php-extensions
 http://www.php.net/~wez/extending-php.pdf
 
 Just to list a few...
 
 Jim
 
 Regards,
 -Josh
 
 Joshua Kehn | josh.k...@gmail.com
 http://joshuakehn.com