php-general Digest 1 Dec 2008 17:15:27 -0000 Issue 5820
Topics (messages 283938 through 283943):
Re: Text To Speech Update
283938 by: Craige Leeder
Re: Trre/Drop Down quick app for testing database tbls
283939 by: Manuel Lemos
PHP - Jasper Report Integeration
283940 by: Johny John
Re: Parsing XML
283941 by: Peter Ford
283942 by: Per Jessen
XML RSS installation
283943 by: Joe Schoemann
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Daniel P. Brown wrote:
Any/All:
For those of you who were asking about the PHP Text-To-Speech
system I had running, it's back online now. If you have a few free
seconds, please take a look at http://www.pilotpig.net/txt2wav.php and
let me know if it's working for sure in your browser and on your OS.
With a bit more time being available to devote to non-paid
projects, and hopefully getting a bit better still in the next week or
so, I've had time to be able to work more with the PHP project and the
PHP-VOX. When I make enough improvements to the installation routines
so that folks can easily do it on their own servers, I'll have the
source available for download.
Thanks, everyone. Hope you're all enjoying the weekend.
I have to say, that is REALLY cool, and defiantly useful too. How long
have you spent on it now?
- Craige
--- End Message ---
--- Begin Message ---
Hello,
on 11/28/2008 02:19 PM bruce said the following:
> I've got a few tbls that I'm testing. I'd like to have a simple web app to
> be able to iterate through the tbls to test out what I have in them.
>
> I'd like to be able to have each tbl as a drop-down/select box, so I select
> from selecta, which lists items from TBL-A, which then uses the id from
> TBL-A, to get the items from TBL-B that matches. Selecting from drop-down
> for TBL-B, then gets me the list on TBL-C...
>
> I've got 3-4 tbls that are linked by their id.
>
> Rather than reinvent the wheel, I'm asking if anyone has a quick app that
> they can point to that I can extract/modify the functionality for my
> needs...
This is a frequent problem. You may want to take a look at this forms
generation class that comes with plug-in named linked select that
achieves precisely what you want.
http://www.phpclasses.org/formsgeneration
It can link 2 or more select inputs, without chaining limits. It can
switch to alternative set of options for one select when the previous
input value changes.
The alternative option sets may be defined statically, but there
variants of this plug-in to fetch options from MySQL databases or any
other database supported by Metabase or PEAR::MDB2 database abstraction
layers.
The plug-in may use AJAX to retrieve the alternative option sets from
the server without reloading the pages.
Here is a live demo:
http://www.meta-language.net/forms-examples.html?example=test_linked_select
Here you can see a tutorial video about the forms class with a section
about this plug-in:
http://www.phpclasses.org/browse/video/1/package/1/section/plugin-linked-select.html
Here you can see the slide presentation. Jump to slide 26 to check the
slide about this plug-in.
http://www.phpclasses.org/browse/video/3/package/1.html
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
Dear All,
Do any one know how to integrate PHP with Jasper Reports. I tried it..but
its says "Unable to create Java Virtual Machine "
Please refer this link for more details.
http://jagadmaya.com/integration-phpjasperreports.html
--
Thanks & Regards,
Johny
www.phpshore.com
--- End Message ---
--- Begin Message ---
Per Jessen wrote:
> Ashley Sheridan wrote:
>
>> On Fri, 2008-11-28 at 10:15 +0100, Per Jessen wrote:
>>> Ashley Sheridan wrote:
>>>
>>>> Do any of you have a copy of this extension, or failing that, a
>>>> suggestion of how I can parse XML files without having to install
>>>> anything on the remote server, as I do not have that level off
>>>> access to it.
>>> Parsing XML is best done with XSL - if that's out of the question,
>>> you're in for a difficult time.
>>>
>>>
>>> /Per Jessen, Zürich
>>>
>>>
>> XSL will only allow me to convert it into a different document format,
>> which is not what I want as I need to keep a local copy of information
>> in a database for searching and sorting purposes. Nathans class allows
>> me to have the entire document put into an array tree, which is fine
>> for what I need so far.
>
> That's cool, but XSL is still the more appropriate tool IMO. It does
> exactly what you need - it parses and validates the XML document,
> allows you to extract the bits you need and in virtually any format you
> need - which could be a text document with SQL statements for piping to
> mysql.
>
>
> /Per Jessen, Zürich
>
I'm with you on this, Per.
You could even use the XSL to construct a bunch of PHP which could be eval'd or
just read in as an include.
Or better yet, if you use the XSL classes, you can register PHP functions and
then call them within your XSL directly. That could potentially handle the
validation you required, and even do the database inserts.
I'm looking into using something like that on a project I'm currently working
on: maybe I can come up with some examples in a couple of days...
--
Peter Ford phone: 01580 893333
Developer fax: 01580 893399
Justcroft International Ltd., Staplehurst, Kent
--- End Message ---
--- Begin Message ---
Peter Ford wrote:
> Per Jessen wrote:
>>
>> That's cool, but XSL is still the more appropriate tool IMO. It does
>> exactly what you need - it parses and validates the XML document,
>> allows you to extract the bits you need and in virtually any format
>> you need - which could be a text document with SQL statements for
>> piping to mysql.
>>
>>
>> /Per Jessen, Zürich
>>
>
> I'm with you on this, Per.
> You could even use the XSL to construct a bunch of PHP which could be
> eval'd or just read in as an include.
> Or better yet, if you use the XSL classes, you can register PHP
> functions and then call them within your XSL directly. That could
> potentially handle the validation you required, and even do the
> database inserts.
Yep, that occured to me too. I think XSL can even do quite a bit of the
validation too.
> I'm looking into using something like that on a project I'm currently
> working on: maybe I can come up with some examples in a couple of
> days...
Here's one easy example -
we generate monthly reports for our customers based on the activities of
the most recent month. The template is an OpenOffice document (well,
several in different languages), which is merged with the activity data
to produce the report in OOo format. The data is extracted and
formatted as XML.
The process looks roughly like this:
OOo:template + XML:data -> apply XSL -> OOo document. (We then turn the
final OOo document into a PDF which is emailed).
Of course the same could be achieved using PHP, but instead of a neat
XSL stylesheet, I would have a pile of custom PHP code.
IMO, when you have a need to parse XML or otherwise extract data from
XML, you need a really good reason to disregard XSL. The only really
good reason I've heard so far was lack of XSL skills, which could be a
real issue. The learning curve IS quite steep.
/Per Jessen, Zürich
--- End Message ---
--- Begin Message ---
I previously had my web page hosted on a shared Apache server. The web hosts
installed the PEAR modules on the system for me.
I have now decided to go to Godaddy who have a shared Linux server.
They do not install PEAR modules and I have to do myself.
I found the go-pear.php program and managed to get it to install PEAR, but
the XML_RSS was not included.
I scratched around further and found there is a file called
XML_RSS-0.9.10.tar which I have downloaded to my PC.
I can upload it to my web site with FTP but I don't know where to put it or
what to do with it.
I have been at this for 3 days now and need some help, what must I do now to
get the RSS working.
Yours truly,
Joe
--- End Message ---