Reply to Re: how to process result from other servers?

Your name:

Reply:


Posted by Jerry Stuckle on 04/26/06 19:24

leo wrote:
> "Jerry Stuckle" <jstucklex@attglobal.net> wrote in message
> news:5oudncHPgsJYwtLZ4p2dnA@comcast.com...
>
>
>
> 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).
>

Of course - you're redirecting to your own site, and you control the links on
that page. But you want to redirect to a different site, yet still retain
control. You can't do it.

Once the browser goes to the other site, nothing except operator intervention
will bring it back to your site!

>
>
>
> 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:
>

Are you sure? For instance - are you sure there are no confusing phrases in
the translated text?

Nowadays it is very easy to find a native speaker who will translate pages for
you for little or no cost. And the result is much more professional looking
than anything you get from a mechanical translator. Every time I see a page
translated into poor English I know read "CHEAP!"

> 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!
>
>

But the redirect isn't sent by YOUR client. It's sent by the browser. When the
user clicks on the link, their browser goes directly to babelfish. Your site
isn't even involved. So your server won't recognize the request - because it
never gets there.

The bottom line is - if you redirect to another site, that site is now in
control. Your site isn't involved any longer. And nothing YOUR server does can
change that.

That's why Joshie suggested fread(). It's the right way to do it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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