Reply to Is there a reverse $_GET?

Your name:

Reply:


Posted by VHfc on 03/09/06 08:44

I'm quite experienced in JavaScript, but needed some PHP to access
plain text data on my server. No sweat to communicate the file name
from JS by the POST/GET method to my PHP snipplet, and to read the text
file contents into a PHP variable $txt.
($txt = fread($fhandle,filesize($fname));)

Then I'm stuck, since I need the content of $txt back in my JS, either
in a global JS variable or as the value in a <textarea>, whatever.
I tried the cookie mechanism, writing $txt as an escaped string in a
cookie in the PHP snipplet, then reading that cookie back in JS and
unescape it. That worked fine, but...

It works with short text files, it doesn't with longer ones. Obviously
there is a size limit to a cookie (4K as I remember).

So my question is, does anybody know how to tackle this one? It can't
be done by a cookie, it can't be done, as far as I can see, by the
$_GET. Since that one only communicates from HTML to PHP, not the other
way round, as far as I could find out (and yes, I Googled *alot* on
it).

I don't need an extensive answer, just a magic hint. I can find the
tutorials and code it myself. Thanx in advance!

VHfc

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация