[FX.php List] [OFF] PHP question: Pulling in text from a file

Bob Patin bob at patin.com
Sat Mar 7 17:10:53 MST 2009


Michael,

So is there any advantage to using your method over what I used? They  
both require the file to be uploaded first...

What I was trying to get to work was this:
---
$postText = trim(file_get_contents('php://input'));
echo $postText;
---

But it never worked; I fooled with ENCTYPE, since the php.net site  
mentioned that it wouldn't work with multipart/form-data, and set it  
to text/xml, but that didn't work either, on XML or any other kind of  
text document.

It would be great if I could figure out a way to do it so that the  
file didn't have to get uploaded, which would keep me from having to  
clear these out every now and then, but so long as it works, which it  
does now, I'm at least up and running...

Thoughts welcome!

Best,

Bob Patin


-------------- next part --------------
A non-text attachment was scrubbed...
Name: new_logo_idea3_120w.jpg
Type: image/jpeg
Size: 15728 bytes
Desc: not available
Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20090307/26cc01bc/new_logo_idea3_120w-0001.jpg
-------------- next part --------------


Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
iChat: bobpatin
AIM: longterm1954
FileMaker 9 Certified Developer
Member of FileMaker Business Alliance and FileMaker TechNet
--------------------------
FileMaker hosting and consulting for all versions of FileMaker
PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting

On Mar 7, 2009, at 6:04 PM, Head Honcho wrote:

> Hi Bob,
>
> On 08/03/2009, at 10:37 AM, Bob Patin wrote:
>
>> Thanks; I was all over php.net this afternoon,
>
> BTW, I use PHP Function index <http://www.artissoftware.com/phpfi/>  
> which allows me to seach for php stuff right on my desktop.
>
> Regards
>
> Michael Ward
> --
> Head Honcho
> CustoMike Solutions
> Member, FileMaker Business Alliance
> Member, FileMaker Technical Network
> FileMaker 7 Certified Developer
> FileMaker 8 Certified Developer
> FileMaker 9 Certified Developer
> 10 Wandoo Crt
> Wheelers Hill, 3150
> ph 0414 562 501
> headhoncho at customikesolutions.com
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list