473,378 Members | 1,609 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,378 software developers and data experts.

Capturing xforms standard input via PHP?

I'm working with a JavaScript implementation of Xforms (FormFaces) and
am trying to capture the standard input of a submit via a POST method
(XML data). I've found I can capture the standard input with a shell
script but not with a PHP script. I've tried to capture the standard
input with both the system command ( cat >file ) and using fopen/fwrite
but neither technique works (I can run my PHP script from command line
fine).

My server is Linux running Apache 1.3.34 with PHP 4.4.2. My question
is whether I should be able to do this with PHP or whether this is an
Apache configuration issue for my server. Anyone know?

If this is not possible, my work around is to use a shell script to
capture stdin to a file and then invoke a PHP program to do the rest of
the processing but I'd rather avoid the kludge if possible.

Denis

Jun 5 '06 #1
2 1199
On 2006-06-05, Denis <sy****@wowway.com> wrote:
I'm working with a JavaScript implementation of Xforms (FormFaces) and
am trying to capture the standard input of a submit via a POST method
(XML data). I've found I can capture the standard input with a shell
script but not with a PHP script. I've tried to capture the standard
input with both the system command ( cat >file ) and using fopen/fwrite
but neither technique works (I can run my PHP script from command line
fine).


The last time i tried to gather (unmodified) XML data that was posted i
did it with $input = file_get_contents('php://input');

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>
Jun 6 '06 #2

Tim Van Wassenhove wrote:

The last time i tried to gather (unmodified) XML data that was posted i
did it with $input = file_get_contents('php://input');


Great - this works. The "secret" is using php://input rather than
php://stdin. Thanks!

Denis

Jun 6 '06 #3

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

Similar topics

0
by: Victor Engmark | last post by:
I am quite new to XForms, but I need to do a feasibility study to see whether a system I'm supposed to make can be done without any scripting or programming language (to make it simple and not need...
1
by: - | last post by:
I am using XSmiles 0.91 to evaluate W3C XForms. Everything is the below example is working OK, with the exception of the maxLength restriction on the "email" control, which the browser seems to...
1
by: Coralsnake | last post by:
Hi group, I would like to experiment with xforms. But the problem is, whatever I do, I don't get a submit button, not in IE en not in FF. Have you've got any idea what could be wrong? Some...
9
by: jazzslider | last post by:
I have a headache. I've done a LOT of research lately into XForms, and I am thoroughly convinced that a good implementation of this technology would help me immensely in converting my...
7
by: ClarkePeters | last post by:
Can anyone tell me why my CSS style sheet isn't styling my xhtml (using xforms)? I'm using firefox 1.5.0.8 with the xforms extension. Here is the xhtml, it's only a single text area for input. ...
4
by: Andrew Taylor | last post by:
I've been struggling for a long time with HTML_Quickform from PEAR. The concept is ideal, but, the implementation is (IMHO) a bit of a kludge. As a developer I want a quick and easy way to...
1
by: spark86 | last post by:
I currently have an xform where I'm trying to have the user input first and last name and then when it submits it goes to a file with the path first_last.xml. Here is what I have currently: ...
2
by: li72 | last post by:
Hi. I’m new to XForms society and struggling with a basic concepts. However, I’m trying to transform an xml doc into XForms using XSLT. The browser renders the Xforms just fine but there is no...
0
by: li72 | last post by:
As you can see in binding part, the node<age /> should be returned as a calendar or any form of date picker instead of an input box. In addition, none null values submission is not achieving. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...

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.