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

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


I'm trying to do this: select a file, have PHP read in the text and  
put it into a variable.

I'm using a form, and have tried several enctypes; right now I'm  
experimenting with "text/xml" with no luck.

Question: does anyone know how to take a POSTed file and read it into  
a variable?

here's what I've got so far:

$postText = trim(file_get_contents('php://input'));
echo $postText;

Getting nothing back...

Anyone help?



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/1ea57189/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



More information about the FX.php_List mailing list