transfer data over SSL we must use the CURL libraries?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
montyauto
Forum Commoner
Posts: 25
Joined: Sat Jan 13, 2007 7:05 am

transfer data over SSL we must use the CURL libraries?

Post by montyauto »

If we want to transfer data over SSL we must use the CURL libraries??
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

No, I don't think so. But you do have to have an SSL certificate, and apache configured with the ssl module.

Then again, I've never used SSL before.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

You can use SSL with the FTP functions I think, and you can also open sockets with SSL or TLS encryption enabled:

Code: Select all

$sock = fsockopen("ssl://servername", $port, $errno, $errstr);
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I would probably use the ssh extension and use the ssh2_recv and ssh2_send methods.. (

As you'll see in the documentation, it's quite a powerful extension and you might choose a different option (eg: ssh2_sftp))
Post Reply