473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

secure server-to-server transmissions

Can anyone tell me the easiest or best way to do secure
server-to-server transmissions using PHP? Does SSL work for
server-to-server? Thanks for any replies.

Oct 3 '06 #1
7 1693
runner7 wrote:
Can anyone tell me the easiest or best way to do secure
server-to-server transmissions using PHP? Does SSL work for
server-to-server? Thanks for any replies.
Hi,

Did you look up ftp at www.php.net?
Just type ftp in the searchbox, select the functions, and go.
Read it. :-)

It contains a link to a function named ftp_ssl_connect() which does what you
need.

Regards,
Erwin Moller
Oct 3 '06 #2
runner7 wrote:
Can anyone tell me the easiest or best way to do secure
server-to-server transmissions using PHP? Does SSL work for
server-to-server? Thanks for any replies.
You could call exec() to use SCP, given both your server and the
recipient system are running *nix.

-Nick

Oct 3 '06 #3
I guess I should have mentioned I may need to use SOAP securely, and as
far as I can tell SOAP only works over HTTP(S?). Any solutions for
using SOAP securely?

Oct 3 '06 #4
On 2 Oct 2006 20:35:50 -0700, "runner7" <ru*****@fastmail.fmwrote:
>Can anyone tell me the easiest or best way to do secure
server-to-server transmissions using PHP? Does SSL work for
server-to-server? Thanks for any replies.
When you've got one server communicating to another, then one of the servers
is just a client, so all the usual secure client-server methods are available:
https, ssh, etc.

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Oct 3 '06 #5
Andy Hassall wrote:
When you've got one server communicating to another, then one of the servers
is just a client, so all the usual secure client-server methods are available:
https, ssh, etc.
Would it be safe to assume, then, that I could do the following with a
SOAP kit such as NuSOAP and expect secure communications as long as the
server subdomain is properly set up with an SSL certificate? In other
words, all I have done is add "s" to the scheme:

$client = new soapclient('https://sub.domain.com/soap_app.php');

Is anything else needed? Which software is actually handling the
client-side aspects of the secure connection: the web server, the
operating system, NuSOAP, or PHP runtime?

Oct 3 '06 #6
On 3 Oct 2006 15:58:35 -0700, "runner7" <ru*****@fastmail.fmwrote:
>Andy Hassall wrote:
> When you've got one server communicating to another, then one of the servers
is just a client, so all the usual secure client-server methods are available:
https, ssh, etc.

Would it be safe to assume, then, that I could do the following with a
SOAP kit such as NuSOAP and expect secure communications as long as the
server subdomain is properly set up with an SSL certificate? In other
words, all I have done is add "s" to the scheme:

$client = new soapclient('https://sub.domain.com/soap_app.php');
Yes, that'd get you at least SSL encryption for the communication.
>Is anything else needed? Which software is actually handling the
client-side aspects of the secure connection: the web server, the
operating system, NuSOAP, or PHP runtime?
The PHP runtime. PHP can act as an HTTP, HTTPS and FTP client (and more):
http://uk.php.net/manual/en/wrappers.php

There is also an interface to the cURL library which implements many
protocols, and offers more options in some areas than PHP's built in support:
http://uk2.php.net/curl

I don't know which one NuSOAP uses, but I would expect that it'd be
configurable and probably use PHP's native support by default with the option
to use cURL.

HTTPS gets you two things; encryption for the traffic to avoid eavesdropping,
and verification of the identity of the site through the certificate to avoid
impostor sites. Encryption may well be enough for you; but if you want to also
verify the certificate, then cURL does this by default (see the
CURLOPT_SSL_VERIFYPEER option), and the PHP HTTPS client doesn't but has an
option for it (see verify_peer at the bottom of
http://uk2.php.net/manual/en/transpo...ransports.inet and then backtrack
through the page to find how to set it).

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Oct 4 '06 #7
Thanks so much Andy. I'm quite impressed with your knowledge. Would
you mind passing on to us some idea of how you learned what you know
about PHP so we could do the same? Do you have a degree in computer
science?

Oct 4 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: BKDotCom | last post by:
Perhaps not PHP specific, but: Both http://www.bankofamerica.com/ and http://www.bankone.com/ have account login forms on their non-secure main pages. How on earth are they accomplishing this?...
6
by: d z e k y l | last post by:
Hello, I'd like to write a small backup utility in Python, which would take advantage of Secure FTP to upload backup archives. Is there a library implementing SFTP in Python (something like...
21
by: Boris Genc | last post by:
Hi everybody. I was wandering is there a method or a function already implemented in python that supports secure deletion of data? I'm interested in something which is able to securely wipe data...
12
by: Rainer Rosenberger | last post by:
Hello, in an intranet we have the requirement to communicate between two browser windows, e.g. read hidden fields or execute functions in other window. This works fine as long as both windows come...
4
by: John | last post by:
I am writing some JavaScript code and need to write one set of code if on a standard page and a different set if on a secure page. Does anyone know if there is a JavaScript function that tests...
2
by: Wayne Aprato | last post by:
I have been given a secure .mdb file, the .mdw file and the appropriate user name and password. How do I actually open the mdb using the mdw and the supplied username and password. Thanks in...
6
by: sintacks | last post by:
Does anyone have the source, class, or link for a secure login using sessions? Preferably with MySQL. Any help would be greatly appreciated. Thank you very much.
14
by: knal | last post by:
Hi there, I'm looking for a secure login script for a sort-of-community site... (PHP, MySQL, sessions, or maybe something else ... ) I know there are a lot of scripts out there, but none of them...
4
by: Joel Barsotti | last post by:
I'm working on shipping rate calculator going back and forth via XML. The thing I'm confused about is that the code works, but after a few hours and I don't know how many requests, I start getting...
2
by: =?Utf-8?B?Tkg=?= | last post by:
Looking for a recommendation for a community forum product that is secure. This is for a company so security is important. Anyone got a recommendation? Thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.