@dgreenhouse: Thanks for this. Is there a way to parametrise the URL?
And... afraid I know nothing about php: do I make a file with just your code in it, or does it need to be wrapped in <?php ... ?> tags or something?
Also: I'm not planning to expose this on a real site, but why is this risky?
User Profile
Collapse
-
visitor2010 started a topic How to get a PHP script to load an arbitrary text file and return a modified version?in PHPHow to get a PHP script to load an arbitrary text file and return a modified version?
Suppose there's an arbitrary text file on the web at
http://somedomain.com/original_text.t xt
which contains some text like "This is my original text."
I'd like to have a page (say it's called my_modifier.php ) on my site which accepts a URL as a parameter, and returns a modified version of that text.
So for example, when I browse to my page...
http://www.mydomain.co m/my_modifier.php ?http://somedomain.com/original_text.t xt...
No activity results to display
Show More
Leave a comment: