|
Posted by leo on 04/26/06 15:35
"Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
news:5oudncHPgsJYwtLZ4p2dnA@comcast.com...
> 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.
redirect to a PHP generated by me. e.g. http://mypage/show.php contains a
statement:
header(Location: http://mypage/result.php);
so as long as result.php contains all the stuff I want, i remain dominant.
the problem still falls on that i don't know how to instruct to selectively
redirect (except javascript onclick).
> 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.
>
i do agree with you that computer translation needs improvement, but as long
as my website is mainly composed of organized words - which the translation
result in this special case performs very well. What the dilemma i need to
confront with is that:
if i use babelfish, it will add babelfish site in each of the links. while
it is okay with static link, for that with php will fail.
e.g.
http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_ja&trurl=http%3a%2f%2fmypage%2fshow.php%3fnew%3dOKF001
as i implement session, it is likely my server can't recognize the request
is originally sent by my client.
if i use fread and process the results, the problem is i need to memorize
the previous state of translation, perform the php function first and then
use redirect to the result page but in translated version.
maybe php does allow that, but studying sams php & mysql 3rd edition doesn't
give me hints (i wish i'm not overlooking).
Thanks for all your help!
Navigation:
[Reply to this message]
|