Re: [PHP] PHP with XML database

2007-01-26 Thread Bernhard Zwischenbrugger
Hi Some questions As part of my research under my professor I have to implement a web interface to their benchmarking data. PHP is the chosen web language but we are little worried about the database. The benchmark data comes to us in XML format (e.g.

Re: [PHP] PHP with XML database

2007-01-26 Thread Bernhard Zwischenbrugger
Hi again I don't know what the DB should do for you. If you simple want to select subtrees from your big XML, you can put the XML Files to the filesystem and use XPointer for query. Here an example: ?php $xml=END result

Re: [PHP] Parsing AJAX post data -- The Way

2007-01-25 Thread Bernhard Zwischenbrugger
hi The X in AJAX says that the data are XML Data. To parse XML I use DOM. It is also possible to validate the data using RelaxNG, DTD or XMLSchema before processing. A receiver in PHP looks like ?php //read the string ($HTTP_RAW_POST_DATA is by default //not active - use php://input)

[PHP] unzip openDocument in safe mode

2007-01-09 Thread Bernhard Zwischenbrugger
I try to unzip openDocument files with pclzip. At my laptop this is no big problem, but the target server has safe mode switched on (no way to change that). The problem with safe mode and unzipping openDocument ist, that a openDocument zip file contains directories. It is not possible to write to

Re: [PHP] unzip openDocument in safe mode

2007-01-09 Thread Bernhard Zwischenbrugger
Am Dienstag, den 09.01.2007, 17:21 +0100 schrieb Jochem Maas: Bernhard Zwischenbrugger wrote: I try to unzip openDocument files with pclzip. At my laptop this is no big problem, but the target server has safe mode switched on (no way to change that). The problem with safe mode

Re: [PHP] Downloading utf-8 encoded files

2006-12-26 Thread Bernhard Zwischenbrugger
Hi Try this: ?php ... $contents=file_get_contents($link); file_put_contents(kml/$.kml,$contents) ? There shouldn't be a character encoding problem with this two lines. Don't forget the mime type: http://earth.google.com/support/bin/answer.py?answer=25094topic=1139 bernhard Am Dienstag, den

Re: [PHP] Are PHP5 features worth it?

2006-12-21 Thread Bernhard Zwischenbrugger
server can very well be PHP of any flavor, or any other web app scripting language or even just regular HTML I suppose. I love statements like Bernhard's. -TG = = = Original message = = = At 3:14 PM +0100 12/20/06, Bernhard Zwischenbrugger wrote: AJAX Webapplications

Re: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Bernhard Zwischenbrugger
All the XML things are new Start with DOM. If you know DOM in Browser you can use DOM in PHP5. AJAX Webapplications are not possible in PHP4. The experimental DOMXML in PHP4 is NOT standard conform and has DIFFERENT syntax than DOM in Javascript. To retrive data from AJAX is simple.

RE: [PHP] Are PHP5 features worth it?

2006-12-20 Thread Bernhard Zwischenbrugger
Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 8:37 AM To: Robert Cummings Cc: Bernhard Zwischenbrugger; php-general@lists.php.net Subject: Re

Re: [PHP] DOMDocument Size limit

2006-12-19 Thread Bernhard Zwischenbrugger
Hi When calling |-createElement($name, $value) My content is truncated to around 4k. If what is in $value is less than 4000 bytes then it works fine but if it is more, the data is truncated. Is there a setting I don't know about that will change that limit? I need it to be more like

[PHP] Byte order Mark (BOM, UTF-8, Header)

2006-12-06 Thread Bernhard Zwischenbrugger
The Problem: If I edit a php file with Microsoft Notepad and save with UTF-8 encoding there is a problem with headers. example: ?php header(Content-type: text/xml); echo somexml/; ? PHP tells me, that the header is already set, because of the (invisible) BOM

Re: [PHP] alternative method

2006-12-02 Thread Bernhard Zwischenbrugger
Am Samstag, den 02.12.2006, 13:57 -0600 schrieb Larry Garfield: If you're talking about getting user data into a web script, then GET, POST, and cookies are the only options. All three are insecure, because they're coming from the user. The user is guilty until proven otherwise. Sanitize

[PHP] Webbased Visual DOM Training Tool

2006-11-30 Thread Bernhard Zwischenbrugger
Hi all I made a web based visual Document Object Model (DOM) Training Tool for my students: http://test.datenkueche.com (you need Firefox !!!) Before I torture my students with this tools, I would like to have some feedback from php mailinglist. This tool should help to learn the DOM Object

Re: [PHP] Webbased Visual DOM Training Tool

2006-11-30 Thread Bernhard Zwischenbrugger
Hi http://test.datenkueche.com (you need Firefox !!!) I found it annoying that I couldn't break out of demo1 by clicking on demo2 I have so many setTimout in javascript... but good point, I will change that. Reload the page can be a workaround for now. demo1 demo2 demo3 should