Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Here my stuck code:

PHP
$mena_host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if($mena_host == 'laroute.com/front-page') 
{
    echo '<div id="holdthem" style="font-size:11px; width: 1000px;">';
}
else
{
    echo '';
}


Any one have idea?

[This sentence with a question mark does not make the whole post a question. Idea on what? — SA]
Posted
Updated 7-Sep-13 4:09am
v3
Comments
Yvan Rodrigues 7-Sep-13 9:51am    
What is the problem?
What does echo $mena_host; return?
Sergey Alexandrovich Kryukov 7-Sep-13 10:09am    
This is not a sensible or valid question.
—SA

1 solution

Oh i found it . now it work

XML
$mena_host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if($mena_host == 'laroute.com/front-page')
{
    echo '<div id="holdthem" style="font-size:11px; width: 1000px;">';
}
else
{
    echo '';
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900