[lpsg] Scripts for meeting (in PHP)

Jesus Castagnetto jcastagnetto at zkey.com
Thu Jul 6 18:25:43 CDT 2000


Sorry for not sending this before. The net connection from
my machine in the lab was slow and flaky, a problem somewhere
in the building.

I made some files (attached):

convert.php, takes a CSV file (data.csv) and outputs an XML file with
the data (data.xml). This shows how PHP can be run from the command
line.

readxml.php read data.xml and creates an array of "EmailEntry"
objects, and prints out an HTML table. The class definition is in
class.emailentry.php

querymdb.php sends a POST query to a script I have in the MDB, and
just prints out the response (data coming back is in WDDX format).
This shows how to use sockets.

That's it for now. These are simple scripts I came out on short
notice.

--- Jesus M. Castagnetto

-------------------------------------------------
Created by Zkey.com - http://www.zkey.com
Awarded PCMagazine's Editors' Choice
-------------- next part --------------
A non-text attachment was scrubbed...
Name: data.csv
Type: application/octet-stream
Size: 257 bytes
Desc: not available
Url : http://mail.pm.org/archives/san-diego-pm/attachments/20000706/8c6db22c/data.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: data.xml
Type: application/octet-stream
Size: 675 bytes
Desc: not available
Url : http://mail.pm.org/archives/san-diego-pm/attachments/20000706/8c6db22c/data-0001.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/archives/san-diego-pm/attachments/20000706/8c6db22c/data.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: convert.php
Type: application/octet-stream
Size: 520 bytes
Desc: not available
Url : http://mail.pm.org/archives/san-diego-pm/attachments/20000706/8c6db22c/convert.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class.emailentry.php
Type: application/octet-stream
Size: 630 bytes
Desc: not available
Url : http://mail.pm.org/archives/san-diego-pm/attachments/20000706/8c6db22c/class.emailentry.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: readxml.php
Type: application/octet-stream
Size: 1456 bytes
Desc: not available
Url : http://mail.pm.org/archives/san-diego-pm/attachments/20000706/8c6db22c/readxml.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: querymdb.php
Type: application/octet-stream
Size: 817 bytes
Desc: not available
Url : http://mail.pm.org/archives/san-diego-pm/attachments/20000706/8c6db22c/querymdb.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/archives/san-diego-pm/attachments/20000706/8c6db22c/querymdb.html


More information about the San-Diego-pm mailing list