Re: [PHP] sharing info between websites with XML?

From: Jason Wong (php-general_at_gremlins.biz)
Date: 12/12/04


To: php-general@lists.php.net
Date: Mon, 13 Dec 2004 00:15:14 +0800

On Sunday 12 December 2004 22:33, p80 wrote:

> > eg do you want to only make available
> > specific pre-defined bits of data to client websites,
>
> yes this is how I'd like to proceed

OK, if there are only a limited number of these "pre-defined bits of data"
then the easiest way is probably just output it as plain text (you don't say
what kind of data you're sharing) in an easy to parse format (CSV, XML,
whatever you're comfortable with).

> I'm not sure about this yet. I know XML is pretty unsecure when it's not
> encrypted as it's only text. does php provide functions to ecrypt XML while
> on transit or should I use other technics than XML?

If your webserver is SSL enabled you could just make the data available only
via login on SSL. It's relatively easy to setup the clients to login
automatically. PHP supports encryption if you install the necessary libraries
and configure PHP accordingly (manual > Mcrypt Encryption Functions). However
the client has to be configured similarly so that it can decode the stuff.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
GOOD-NIGHT, everybody ... Now I have to go administer FIRST-AID to my
pet LEISURE SUIT!!
*/


Relevant Pages

  • Re: Ruby performance woes
    ... Now here's my take on all this: PHP and JSP and what I inquired ... S-expressions used as a directly alternate expression of SGML or XML. ... By the way, I've never had access to a Web server that can run ASP, ...
    (comp.lang.lisp)
  • Re: Object Oriented Content System - the idea
    ... >I expected php to be smarter then that. ... >form like bytecode in memory for the next request. ... each action added some stuff to a "response" XML document. ... that map/object/data and formats it for HTML display using an includeed PHP ...
    (comp.lang.php)
  • Re: Need help with PHP DOMXML - get_elements_by_tagname
    ... PHP as a supported platform. ... uses the built in XML handler CF MX provides. ... in newer versions of PHP and the method will *not* support xpath. ...
    (comp.lang.php)
  • Re: AJAX Help - responseXML always NULL
    ... to the PHP script I am calling, the XML file shows up just fine. ... the Content-Type header of the response does not fit. ... PHP Script on Server Side ...
    (comp.lang.javascript)
  • Re: Windows Anwendungmit einer Web mySQL als Backend?
    ... und das sind dann eben PHP und mySQL. ... Wenn ich also auf der Serverseite PHP verwende, ... dass sie Parameter entwender über URL oder POST erhält. ... Bei der Antwort der PHP Seite kann ich dann so eine Art XML Datei mit Daten ...
    (microsoft.public.de.german.entwickler.dotnet.vb)