Re: Multi Lingual Sites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> Hi again Shoan
>
>
> One way that I have used to separate the HTML from the PHP code is to
> create HTML snippets and include selected scripts as determined by the
> QUERY_STRING.
>
>   $ifiles = explode('&', $QUERY_STRING);
>   $urlpath = "http://www.xxx/";; // Or whatever your base URL happens to be
>   foreach ( $ifiles as $ifile )
>   {
>     $ifile = $urlpath.$ifile;
>     include( $ifile );
>   }
>
>
>  The selection of HTML snippets can then be controlled by a PHP script
> that picks out HTML snippets according to the language settings.
> Also, you can manage the site more easily if you can isolate individual
> "scriptlets" rather than wading through very long listing.
> It also lends itself to re-use of HTML code.
> You could, for example, hold HTML snippets in different directories
> according to the language and pass the subdirectory in the QueryString
> as well.
> It's just a thought.

Could you explain this a little more? maybe with some really small sample code
(I don't want to take too much of your time.)

Peace,
Shoan.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux