[PHP] Help with SSH2

2008-05-30 Thread Gonzalo Bettancourt
Hello, I'm from Chile, so, I don't write great in English.

My cuestion is:

I'm programming a Website where you can see the files that you have in a
remote PC. (In my University Computer Room)
I don't know how to Download a file from the remote pc to my computer
and, also, how to Upload a file to the remote computer.

The remote host is cipres.cec.uchile.cl... and  i'm using the ssh2
library..


Thanks!

-- 
Gonzalo Bettancourt G.
Estudiante de Ingenieria
Universidad de Chile

http://www.cec.uchile.cl/~gbettanc


Re: [PHP] Embed images in emails

2008-05-30 Thread Iñigo Medina García
Hi Bastien,

thanks for the tip. I've already done it and it didn't run.
But I'll check it again.

  iñigo

 On Thu, May 29, 2008 at 6:11 AM, Iñigo Medina García 
 [EMAIL PROTECTED] wrote:
 
 Hi,

 I'm trying to send emails with embed and dynamic images: a normal tell a
 friend feature which sends the email with item's data: author, title,
 image-cover, etc.

 Ideas PEAR and mime classes apart?

 thanks

   iñigo

 --
 
 Iñigo Medina García
 Librería Díaz de Santos
 Madrid (Spain)
 Dpt.Desarrollo

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


 You'll need to create a HTML email, and then embed the image with the img
 tag, using the entire path to the image as the source attribute
 
 img src='http://www.mysite.com/images/thisimage.jpg'
 
 You may want to look at some email that you get that have images in them and
 just view the source.
 


-- 

Iñigo Medina García 
Librería Díaz de Santos 
Madrid (Spain)
Dpt.Desarrollo

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



Re: [PHP] Help with SSH2

2008-05-30 Thread Jim Lucas

Gonzalo Bettancourt wrote:

Hello, I'm from Chile, so, I don't write great in English.

My cuestion is:

I'm programming a Website where you can see the files that you have in a
remote PC. (In my University Computer Room)
I don't know how to Download a file from the remote pc to my computer
and, also, how to Upload a file to the remote computer.

The remote host is cipres.cec.uchile.cl... and  i'm using the ssh2
library..


Thanks!



If you do not have FTP access, then I would use something like winscp.

http://www.winscp.net

I use it on a daily basis and it works great.

--
Jim Lucas

   Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them.

Twelfth Night, Act II, Scene V
by William Shakespeare


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



Re: [PHP] Embed images in emails

2008-05-30 Thread Iñigo Medina García
Hi Per,

yep, it's true, playing with mime it can be sent as attachment, but I
don't want that but embed.

   iñigo

 Bastien Koert wrote:
 
 You'll need to create a HTML email, and then embed the image with the
 img tag, using the entire path to the image as the source attribute
 
 Not necessarily, images may simply be sent as an attachment with
 type image/jpeg etc. 
 
 
 /Per Jessen, Zürich
 
 


-- 

Iñigo Medina García 
Librería Díaz de Santos 
Madrid (Spain)
Dpt.Desarrollo

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



Re: [PHP] Embed images in emails

2008-05-30 Thread Iñigo Medina García
Hi Shawn,

ey, that content-disposition: inline is new for me. Maybe it's a
solution. I'll check it and tell us.

thanks

   iñigo

 Per Jessen wrote:
 Bastien Koert wrote:

 You'll need to create a HTML email, and then embed the image with the
 img tag, using the entire path to the image as the source attribute

 Not necessarily, images may simply be sent as an attachment with
 type image/jpeg etc.

 /Per Jessen, Zürich

 
 I haven't done it in a while but I believe you need a multipart mime
 email with:
 
 Content-Type: image/jpeg
 Content-Disposition: inline
 
 unless you want it to be a separate attachment.
 
 -Shawn
 


-- 

Iñigo Medina García 
Librería Díaz de Santos 
Madrid (Spain)
Dpt.Desarrollo

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



Re: [PHP] Embed images in emails

2008-05-30 Thread Chris
Iñigo Medina García wrote:
 Hi Bastien,
 
 thanks for the tip. I've already done it and it didn't run.
 But I'll check it again.
 
   iñigo
 
 On Thu, May 29, 2008 at 6:11 AM, Iñigo Medina García 
 [EMAIL PROTECTED] wrote:

 Hi,

 I'm trying to send emails with embed and dynamic images: a normal tell a
 friend feature which sends the email with item's data: author, title,
 image-cover, etc.

 Ideas PEAR and mime classes apart?

 thanks

   iñigo

 --
 
 Iñigo Medina García
 Librería Díaz de Santos
 Madrid (Spain)
 Dpt.Desarrollo

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


 You'll need to create a HTML email, and then embed the image with the img
 tag, using the entire path to the image as the source attribute

 img src='http://www.mysite.com/images/thisimage.jpg'

 You may want to look at some email that you get that have images in them and
 just view the source.

Using an img src doesn't embed the image, it's fetched on the fly from
the url (if you allow remote images to be displayed).

Use something like phpmailer which can embed the images in the content
for you (saves the headaches of working it all out yourself).

http://phpmailer.codeworxtech.com/tutorial.html#4

-- 
Postgresql  php tutorials
http://www.designmagick.com/

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



[PHP] PHP eg.

2008-05-30 Thread mukesh yadav
Hi,
  I'm trying to learn a PHP by myself...and i need a help.
I have learned all the basic but i dont know how to implement the stuff.
Can you please guys help me out give me a small site in PHP so that i can
study and learn.

thank you.


Re: [PHP] Embed images in emails

2008-05-30 Thread Iñigo Medina García
Hi Richard,

yep, i know your htmlMimeMail5. Ey, it's a good work! :-)

But in this case it would be easier for my work-team not to deal with
objects-jargon.

thanks anyway

  iñigo

 You'll need to create a HTML email, and then embed the image with the
 img tag, using the entire path to the image as the source attribute

 Not necessarily, images may simply be sent as an attachment with
 type image/jpeg etc.

 /Per Jessen, Zürich


 I haven't done it in a while but I believe you need a multipart mime
 email with:

 Content-Type: image/jpeg
 Content-Disposition: inline

 unless you want it to be a separate attachment.
 
 This may help:
 
 http://www.phpguru.org/static/htmlMimeMail5.html
 


-- 

Iñigo Medina García 
Librería Díaz de Santos 
Madrid (Spain)
Dpt.Desarrollo

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



Re: [PHP] Embed images in emails

2008-05-30 Thread Iñigo Medina García
Hi Chris,

yep, phpmailer is a good work too. But it works the same i said about
htmlMimeMail5.

  iñigo

 Iñigo Medina García wrote:
 Hi Bastien,

 thanks for the tip. I've already done it and it didn't run.
 But I'll check it again.

   iñigo

 On Thu, May 29, 2008 at 6:11 AM, Iñigo Medina García 
 [EMAIL PROTECTED] wrote:

 Hi,

 I'm trying to send emails with embed and dynamic images: a normal tell a
 friend feature which sends the email with item's data: author, title,
 image-cover, etc.

 Ideas PEAR and mime classes apart?

 thanks

   iñigo

 --
 
 Iñigo Medina García
 Librería Díaz de Santos
 Madrid (Spain)
 Dpt.Desarrollo

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


 You'll need to create a HTML email, and then embed the image with the img
 tag, using the entire path to the image as the source attribute

 img src='http://www.mysite.com/images/thisimage.jpg'

 You may want to look at some email that you get that have images in them and
 just view the source.
 
 Using an img src doesn't embed the image, it's fetched on the fly from
 the url (if you allow remote images to be displayed).
 
 Use something like phpmailer which can embed the images in the content
 for you (saves the headaches of working it all out yourself).
 
 http://phpmailer.codeworxtech.com/tutorial.html#4
 


-- 

Iñigo Medina García 
Librería Díaz de Santos 
Madrid (Spain)
Dpt.Desarrollo

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



Re: [PHP] Embed images in emails

2008-05-30 Thread Per Jessen
Iñigo Medina García wrote:

 Hi Per,
 
 yep, it's true, playing with mime it can be sent as attachment, but I
 don't want that but embed.
 
iñigo

OK, then you need to revisit what Bastien said.  However, instead of
img referring to an external image, you need to use
src=cid: where 'nnn' will refer to an attached image file
with a Content-ID header.  It may sound a little complicated, but it's
not really difficult - if you want to know more, see RFC2111.


/Per Jessen, Zürich


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



Re: [PHP] Embed images in emails

2008-05-30 Thread Chris
Iñigo Medina García wrote:
 Hi Chris,
 
 yep, phpmailer is a good work too. But it works the same i said about
 htmlMimeMail5.

So use either package to figure out what it does and how it does it -
you can learn a lot from other peoples code.

-- 
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: [PHP] Embed images in emails

2008-05-30 Thread Iñigo Medina García
Aha, I see.
Perfect, Per. I'll look at this RFC.

  iñigo

 Iñigo Medina García wrote:
 
 Hi Per,

 yep, it's true, playing with mime it can be sent as attachment, but I
 don't want that but embed.

iñigo
 
 OK, then you need to revisit what Bastien said.  However, instead of
 img referring to an external image, you need to use
 src=cid: where 'nnn' will refer to an attached image file
 with a Content-ID header.  It may sound a little complicated, but it's
 not really difficult - if you want to know more, see RFC2111.
 
 
 /Per Jessen, Zürich
 
 


-- 

Iñigo Medina García 
Librería Díaz de Santos 
Madrid (Spain)
Dpt.Desarrollo

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



Re: [PHP] Embed images in emails

2008-05-30 Thread Iñigo Medina García


 Iñigo Medina García wrote:
 Hi Chris,

 yep, phpmailer is a good work too. But it works the same i said about
 htmlMimeMail5.
 
 So use either package to figure out what it does and how it does it -
 you can learn a lot from other peoples code.

Thanks for the advice. :-)

  iñigo

-- 

Iñigo Medina García 
Librería Díaz de Santos 
Madrid (Spain)
Dpt.Desarrollo

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



Re: [PHP] validating # sign in php

2008-05-30 Thread Robin Vickery
2008/5/29 Sudhakar [EMAIL PROTECTED]:
 my question is about validation using php. i am validating a username which
 a user would enter and clicks on a image to find

 if that username is available. example if a user enters abc#123 php file is
 reading this value as abc ONLY which i do not

 want instead the php file should read as abc#123. following is the sequence
 of pages. please advice the solution.

You've asked this question at least three times now that I've seen,
and you've already had the answer.

The problem is not in PHP, it's in your javascript:

 var useri = document.registrationform.username
 var valueofuseri = document.registrationform.username.value
 [...]
 window.open(checkusernamei.php?theusernameis=+valueofuseri,
 titleforavailabilityi, width=680,  height=275, status=1,

You must urlencode valueofuseri.

-robin

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



Re: [PHP] PHP Code I Must find

2008-05-30 Thread Thijs Lensselink

Quoting John Taylor-Johnston [EMAIL PROTECTED]:


Seen that in the manual. I'll need a routine of some sort I guess.
I'll get my cookie cutters out tomorrow and see what I can create.
I make cool gingerbread men, for a dude.
**htmlentities() does most of what I want, sort of.

**lists-php wrote:
you might try looking at the php manual. start with:   
http://www.php.net/manual/en/function.ord.php and go from there.



?php
$mystring = [EMAIL PROTECTED];
# How can I generate $mystring in ascii characters?
echo ($mystring in ascii charachters);
?



lists-php wrote:


that's not UTF, rather just the html representation of the ascii
codes for the characters. [someone else has already pointed you to
an ascii table.]

when put in the context of the mailto:; it's actually fairly easy
for a bot to identify and decode (i'm not saying that they do, but
it's not hard). if you're going to use this approach you may want
to make the e-mail addresses user-readable, but unlinked. while
still easily decoded, most bots won't waste time trying to decode
every string like that that they encounter (at least not yet).

 - Rick


 Original Message 


Date: Thursday, May 29, 2008 07:08:34 PM -0400
From: John Taylor-Johnston [EMAIL PROTECTED]
To: PHP-General php-general@lists.php.net
Subject: [PHP] PHP Code I Must find

A web site deploys what I think are UTF characters to mask email
addresses.
Is there there a php function I can use to generate this? Or was
this hand-done?
It is crackable, but a darned good stab at the problem of spiders
at the same.
Any feedback, info or code would be appreciated,
John

John Taylor-Johnston wrote:


My source is this page:
http://www.grandlodge.mb.ca/contact.html
John



/div align=centerTo report a technical problem with this
site  please a   
href=mailto:#119;#101;#098;#109;#097;#115;#116;#101;#

11
4;#064;#103;#114;#097;#110;#100;#108;#111;#100;#103;
#1 01;#046;#109;#098;#046;#099;#097;contact  the
webmaster/a./div/

/In UTF code:

mailto:#119;#101;#098;#109;#097;#115;#116;#101;#114;#
06
4;#103;#114;#097;#110;#100;#108;#111;#100;#103;#101;
#0 46;#109;#098;#046;#099;#097;

would be this in latin characters:

mailto:[EMAIL PROTECTED]/


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


-- End Original Message --





-- End Original Message --





--


You could do something like this (knowing the strings are pure ascii)

function ascToEnt($string) {
$char = '';
$strLength = strlen($string);
for ($x = 0; $x  $strLength; $x++) {
$char .= '#' . ord($string{$x}) . ';';
}
return $char;
}

echo ascToEnt('[EMAIL PROTECTED]');



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



Re: [PHP] PHP eg.

2008-05-30 Thread Dan Joseph
On Fri, May 30, 2008 at 2:34 AM, mukesh yadav [EMAIL PROTECTED] wrote:

 Hi,
  I'm trying to learn a PHP by myself...and i need a help.
 I have learned all the basic but i dont know how to implement the stuff.
 Can you please guys help me out give me a small site in PHP so that i can
 study and learn.

 thank you.


Best thing to do is stay on this mailing list, and use php.net,
phpbuilder.com, and other php web sites as a reference.  There are a lot of
code examples out there.  Come up with a project, and start coding.

-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life.


Re: [PHP] A bit 0T - WAMPSERVER

2008-05-30 Thread Ryan S
clip
STW?

http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
/clip

Thanks,
I did STW and find that link but am just a bit unsure if  while WAMPSERVER2 I 
should go in and do it like the above url suggests... was wondering if like 
XAMPP there were specific instructions to follow.

Cheers!
R



  

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



Re: [PHP] PHP eg.

2008-05-30 Thread Gabriel Sosa
welcome,

first depending on wich OS are you running you install php mysql and
apache (at least)

over windows i recomend you
http://www.appservnetwork.com/

over linux.. you must find some tutorial on
http://www.howtoforge.com/

and then try
http://tinyurl.com/4dyblz

saludos

On Fri, May 30, 2008 at 3:34 AM, mukesh yadav [EMAIL PROTECTED] wrote:
 Hi,
  I'm trying to learn a PHP by myself...and i need a help.
 I have learned all the basic but i dont know how to implement the stuff.
 Can you please guys help me out give me a small site in PHP so that i can
 study and learn.

 thank you.




-- 
Los sabios buscan la sabiduría; los necios creen haberla encontrado.
Gabriel Sosa

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



Re: [PHP] PHP eg.

2008-05-30 Thread Jason Pruim

Hi Mukesh,

II am in the same spot... the best thing I can recommend to you, is  
when someone posts a problem to this list, try and work out the  
example and figure out how they are doing it.


One of the posters on this list, does that, and has a great code  
library with examples on his website. www.webbytedd.com lots of fun to  
look at... And to try and figure out how he did it ;)


I'm sure lots of other people have the same thing, I just don't know  
about it. :) And I am working on my own library, but it's not real  
good yet and there won't be much more for awhile since I'm going on  
vacation to sunny florida today :)


Anyway, just wanted to chime in with my experience and knowledge and  
to encourage you :)


Good luck!


On May 30, 2008, at 2:34 AM, mukesh yadav wrote:


Hi,
 I'm trying to learn a PHP by myself...and i need a help.
I have learned all the basic but i dont know how to implement the  
stuff.
Can you please guys help me out give me a small site in PHP so that  
i can

study and learn.

thank you.


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]




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



Re: [PHP] PHP eg.

2008-05-30 Thread Eric Butera
On Fri, May 30, 2008 at 2:34 AM, mukesh yadav [EMAIL PROTECTED] wrote:
 Hi,
  I'm trying to learn a PHP by myself...and i need a help.
 I have learned all the basic but i dont know how to implement the stuff.
 Can you please guys help me out give me a small site in PHP so that i can
 study and learn.

 thank you.


The way I started was just a desire to know how to make this web thing
work.  So I came  up with the idea to make a page that would show some
current information I've posted and have the ability to
add/edit/delete this information.  Everything else fell in line once I
had the idea of what I wanted to happen.  I had to research pulling
and putting records into mysql.  It was a horrible mess compared to
what I do now, but you have to get your feet wet somehow.

Find something you want to accomplish.  It gives you specific
requirements and fulfilling them is where you really learn.  After you
complete your project, do another one.  Along the way you'll learn
what does and doesn't work.

The first script I ever really tried to work on was loosely based
around this article [1].  There are lots of issues I have with the
code but it is what I started out with.  It shows the basics of
working with mysql and the whole record workflow.  Some of the main
issues I have are:
- or die() is not error handling
- no escaping of raw data on output
- lack of data validation on user input

These issues aren't as important if it is a local pet project.  If you
plan on making this more than a weekend hobby though, please make sure
to read up on the security side of things also. [2]  For a more in
depth look see the OWASP Guide. [3]

Good luck!

[1] http://www.melonfire.com/community/columns/trog/article.php?id=280
[2] http://phpsec.org/library/
[3] http://www.owasp.org/index.php/Guide_Table_of_Contents

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



Re: [PHP] Embed images in emails

2008-05-30 Thread Shawn McKenzie

Per Jessen wrote:

Iñigo Medina García wrote:


Hi Per,

yep, it's true, playing with mime it can be sent as attachment, but I
don't want that but embed.

   iñigo


OK, then you need to revisit what Bastien said.  However, instead of
img referring to an external image, you need to use
src=cid: where 'nnn' will refer to an attached image file
with a Content-ID header.  It may sound a little complicated, but it's
not really difficult - if you want to know more, see RFC2111.


/Per Jessen, Zürich



Or just send it as an inline attachment.

-Shawn

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



[PHP] phpeclipse debugging setup

2008-05-30 Thread PJ

Running FreeBSD 7.0, Eclipse SDK 3.3.2, java 1.6.0_03-p4, apache 2.2.8,
php5.2.6, postgresql 8.3.1.

I found that configuring Xdebug just does not work the way all the
manuals, instructions and hints suggest: the only way I could get Xdebug
to work (but does it?), that is, to show up under phpinfo() as both the
zend module and xdebug module was to enter only zend_extension=xdebug.so
in php.ini (with the other configuration parameters) but NOT adding it
to the extensions.ini file.

phpeclipse seems to be working - HOWEVER, it does not ignore php
comments and commented out instructions and the PHP Browser does not
seem to be working.
Such errors as pg_exec, pg_errormessage() pg_free_result(),
pg_num_rows()  others: supplied argument is not a valid PostgreSQL link
resource are not caught.
Strangely, the Firefox plugin DBGbar catches these errors...  ???

What are Bookmarks in phpEclipse? Are they meant to be breakpoints?
Why does the PHPbrowser (internal) not work?
Why does the preferences page not show PHP Web developing?
Why is only MySQL included and not postgresql in the setup?

Any suggestions, explanations, instructions, sources of information
would be appreciated.
PJ









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



[PHP] hello

2008-05-30 Thread Stéphane Boisvert
Dear Madam/sir,
 We are a wholesaler  which deal with all kinds of such electronic products
as motorcycles, TV, Notebooks, Phones, Psp,  Projectors, GPS, DVD, DV, DC,
MP3/4, musical instruments, toys, watches and so on. We can offer quality
goods with reasonable  price. We deliver our items by EMS to our customers
around the world,
When you have time, welcome to visit our website and contact us. Thanks.
If you have any question, please don't hesitate to let us know. We will glad
to help you.
Welcome to our website and enjoy your purchasing.
Our website: { www.setgert.com }
Mail:{ [EMAIL PROTECTED] }
Mail:{ [EMAIL PROTECTED] }
MSN: { [EMAIL PROTECTED] }
I hope to hear from you soon.


Re: [PHP] phpeclipse debugging setup

2008-05-30 Thread Eric Butera
On Fri, May 30, 2008 at 11:59 AM, PJ [EMAIL PROTECTED] wrote:
 Running FreeBSD 7.0, Eclipse SDK 3.3.2, java 1.6.0_03-p4, apache 2.2.8,
 php5.2.6, postgresql 8.3.1.

 I found that configuring Xdebug just does not work the way all the
 manuals, instructions and hints suggest: the only way I could get Xdebug
 to work (but does it?), that is, to show up under phpinfo() as both the
 zend module and xdebug module was to enter only zend_extension=xdebug.so
 in php.ini (with the other configuration parameters) but NOT adding it
 to the extensions.ini file.

 phpeclipse seems to be working - HOWEVER, it does not ignore php
 comments and commented out instructions and the PHP Browser does not
 seem to be working.
 Such errors as pg_exec, pg_errormessage() pg_free_result(),
 pg_num_rows()  others: supplied argument is not a valid PostgreSQL link
 resource are not caught.
 Strangely, the Firefox plugin DBGbar catches these errors...  ???

 What are Bookmarks in phpEclipse? Are they meant to be breakpoints?
 Why does the PHPbrowser (internal) not work?
 Why does the preferences page not show PHP Web developing?
 Why is only MySQL included and not postgresql in the setup?

 Any suggestions, explanations, instructions, sources of information
 would be appreciated.
 PJ

I used to use phpeclipse.  I dumped it for PDT though.  I never could
get the debugging to work with phpeclipse.  PDT for Eclipse debugging
features work with xdebug  the zend debugger.  Give it a look.

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



[PHP] Fake emails sent on my behalf

2008-05-30 Thread Stéphane Boisvert
Please disregard all emails received from this account with a subject line
hello,
my password and security question were compromised through what seems to be
a  Cross Site Scripting attack.

My sincerest apologies to everyone.

-Stéphane


[PHP] PHP and Web Services [JIVE]

2008-05-30 Thread VamVan
Hello All,


I am trying to make a web service call using SOAP and PHP to create a new
community. I keep on receiving unauthorized exception. Please let me know
what I forgot in my code here.
How is it possible to send authentication headers in a SOAP call?

I would appreciate if some one could post some code here to make things
clear.


Thanks

CODE



$sso_wsdl_url_getemail = 
http://:8080/rpc/soap/CommunityService?wsdl;;http://:8080/rpc/soap/CommunityService?wsdl%22;
$client = new SoapClient($sso_wsdl_url_getemail, array(
'login' = XX,
'password'= X,
'proxy_host' = XXX,
'proxy_port' = 3128,
'exceptions' = 0,
'encoding' = UTF-8,
'connection_timeout' = 60
));

$input = array();

$input['name'] = Just A Small Test;
$input['disp'] = Just Check it;
$input['desc'] = Check it;

$result = $client-createCommunity($input);

print_r($result);


[PHP] going from procedural style to object orientated style coding

2008-05-30 Thread Adam Williams
I was wondering if anyone knew of some books/tutorials/howto's, etc on 
going from procedural style coding to object orientated coding with 
PHP?  I've been using PHP since version 3 and am used to the procedural 
style, but I'm noticing that PHP's trend is going to the object 
orientated style, but I'm not familiar with that style.  Any suggestions 
on how to make the switch to coding in object orientated style?



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



Re: [PHP] going from procedural style to object orientated style coding

2008-05-30 Thread Bastien Koert
On 5/30/08, Adam Williams [EMAIL PROTECTED] wrote:

 I was wondering if anyone knew of some books/tutorials/howto's, etc on
 going from procedural style coding to object orientated coding with PHP?
  I've been using PHP since version 3 and am used to the procedural style,
 but I'm noticing that PHP's trend is going to the object orientated style,
 but I'm not familiar with that style.  Any suggestions on how to make the
 switch to coding in object orientated style?


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


There are a couple of books that I have been using

Object Oriented PHP Concepts
http://www.amazon.com/Object-Oriented-PHP-Concepts-Techniques-Code/dp/1593270771/ref=pd_bbs_sr_1?ie=UTF8s=booksqid=1212179023sr=1-1

headfirst OO AD
http://www.amazon.com/Head-First-Object-Oriented-Analysis-Design/dp/0596008678/ref=pd_sim_b_img_4

PHP architects guide to PHP Design patterns
http://www.amazon.com/PHP-Architects-Guide-Design-Patterns/dp/0973589825/ref=sr_1_3?ie=UTF8s=booksqid=1212179213sr=1-3


-- 

Bastien

Cat, the other other white meat


Re: [PHP] going from procedural style to object orientated style coding

2008-05-30 Thread Dan Joseph
On Fri, May 30, 2008 at 4:17 PM, Adam Williams [EMAIL PROTECTED]
wrote:

 I was wondering if anyone knew of some books/tutorials/howto's, etc on
 going from procedural style coding to object orientated coding with PHP?
  I've been using PHP since version 3 and am used to the procedural style,
 but I'm noticing that PHP's trend is going to the object orientated style,
 but I'm not familiar with that style.  Any suggestions on how to make the
 switch to coding in object orientated style?


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


If you want to go the book route, look for Design Patterns on Amazon.com,
its a good general overview.  That's how I got started, from there it starts
to become natural for you.  Maybe search around different PHP 5 OOP
tutorials and look at some frameworks.

-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life.