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

Jonathan Schwartz jschwartz at exit445.com
Sat Mar 7 15:47:15 MST 2009


Please clarify....

Read a text file.
Load a form.
Have text from file load into the form?

J

At 4:15 PM -0600 3/7/09, Bob Patin wrote:
>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
>
>
>
>Attachment converted: MacBook Pro HD:new_logo_idea3_120w 2.jpg 
>(JPEG/MKBY) (005C78DA)
>
>
>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
>
>
>_______________________________________________
>FX.php_List mailing list
>FX.php_List at mail.iviking.org
>http://www.iviking.org/mailman/listinfo/fx.php_list


-- 
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-370-5011


More information about the FX.php_List mailing list