GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Little PHP question (https://gfy.com/showthread.php?t=1081728)

EN1GMA 09-15-2012 04:26 PM

Little PHP question
 
Hello guys,

Maybe you can help me with a little question about PHP...
Im starting to program myself, and Im now making one of my websites multi-language.

Can I use this code inside the <title> tags?
PHP Code:

<title><?php echo $lang['TITLE']; ?></title>

And this in meta tags?
PHP Code:

<meta name="description" content="<?php echo $lang['DES']; ?>" />
<meta name="keywords" content="<?php echo $lang['KEY']; ?>" />

Is thos good, bad or equal for SEO?
I just dont want to screw my website position on search engines... :-)

Sorry for the newbie question..

--------------------------------
EDIT
--------------------------------

Btw, Im adding this code in the top of my php files:
PHP Code:

<?php include("lang/en.php");?>

Im doing this well?
Or is better to use this?
PHP Code:

<html lang="en-US" ... 

Or this is not to use to use multi language?

If yes, what is the code to show the text that I want?

Thanks!

Presnus 09-15-2012 04:39 PM

You can do it this way, but make sure you don't get marked by google as cloaking. Be sure you have a language parameter in your url. Or use subdomains.

EN1GMA 09-15-2012 05:14 PM

Thank you for your reply mate!

Yes, this is to use in sub-domains :-)


All times are GMT -7. The time now is 08:27 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc