|
Posted by Jerry Stuckle on 04/26/06 15:58
leo wrote:
> "Joshie Surber" <joshiesurber@gmail.com> wrote in message
> news:1146023017.419668.180330@g10g2000cwb.googlegroups.com...
>
>>use fread() (http://us3.php.net/manual/en/function.fread.php) to save
>>the results of the page to a variable, then use a regexp or the such to
>>process out any cruft you don't want.
>>
>
>
> the problem falls on:
>
> 1) w/o javascript onclick function, how to embed the redirect header() into
> a single click on text or icon? otherwise, infinite looping results...
>
> 2) once finished processing the result and write to a file, say,
> result.php, but if my umask is not to allow execute by default (should not
> change due to security concern), how then execute the result.php (need to be
> php in order to ensure all the php functions containing in it to be usable)?
>
>
>
>
If you have a link to another site, then yes, any link clicked on at that site
will contain that sites link. That's how things are supposed to work. You're
clicking on thiner link, after all. Can you imaging what could happen if a site
could "capture" your browser?
First of all, you can't do it with a redirect. The redirect will never get back
to your script, so you won't be able to get the results.
As Joshie indicated, use fread() to get the page from babelfish. This allows
you to retrieve the page into a variable then do whatever you want with it -
massage it, display it, etc.
BTW - if you're looking to use babelfish as a cheap interpreter for your pages,
don't. Get someone who's a native speaker of that language to translate it for
you. If you don't understand what I mean, try translating one of your pages (or
even this post) to another language - then translate the results back.
The above paragraph, translated to French then back to English, comes out as:
BTW - if you look at to employ the babelfish as a cheap interpreter for your
pages, not. Obtain somebody which has a naturalness of this language to
translate it for you. If you do not include/understand what I want to say, the
test the translation of your pages (or even of this post) to another language -
translate the results then behind.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|