Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-19-2005, 09:36 AM   PM User | #1
jjshell
New Coder

 
Join Date: Jan 2005
Posts: 93
Thanks: 4
Thanked 0 Times in 0 Posts
jjshell has a little shameless behaviour in the past
php://input example

hello,
could someone show an example of how to use the php://input wrapper? couldn't find one in the manual.

any help would be greatly appreciated.

jjshell is offline   Reply With Quote
Old 06-19-2005, 09:51 AM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
http://uk2.php.net/wrappers.php

That any help?
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 06-21-2005, 09:16 AM   PM User | #3
jjshell
New Coder

 
Join Date: Jan 2005
Posts: 93
Thanks: 4
Thanked 0 Times in 0 Posts
jjshell has a little shameless behaviour in the past
hi, thanks for your reply
unfortunately, this page is at the origin of my question... so unfortunately it doesn't help, but thanks anyway

Can something like this be done?
PHP Code:
$roughHTTPPOST php://input; 
I hope you know what I'm trying to do now.

jjshell is offline   Reply With Quote
Old 06-21-2005, 11:07 AM   PM User | #4
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
Yeah, had a look at the page myself and couldn't really see any examples. Can't even find any on google and I've never used it before, so unfortunately can't help you
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 06-21-2005, 12:54 PM   PM User | #5
delinear
Regular Coder

 
Join Date: Feb 2005
Location: West Midlands, UK
Posts: 623
Thanks: 0
Thanked 0 Times in 0 Posts
delinear is an unknown quantity at this point
You can use it the same way as it shows on that page for php://filter, in other words:
PHP Code:
$roughHTTPPOST readfile("php://input"); 
That works for me, anyway. Try this little script to see if it works for you:
PHP Code:
<?php
if(!isset($_POST) || empty($_POST)) {
    
?>
    <form name="form1" method="post" action="">
      <input type="text" name="textfield"><br />
      <input type="submit" name="Submit" value="Submit">
    </form>
    <?php
} else {
    
$roughHTTPPOST readfile("php://input");
    echo 
$roughHTTPPOST;
}
?>
__________________
~ Bazzy
delinear is offline   Reply With Quote
Old 06-26-2005, 03:09 PM   PM User | #6
jjshell
New Coder

 
Join Date: Jan 2005
Posts: 93
Thanks: 4
Thanked 0 Times in 0 Posts
jjshell has a little shameless behaviour in the past
thank you very much
worked great
jjshell is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:14 AM.


Advertisement
Log in to turn off these ads.