•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 429,970 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,577 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 868 | Replies: 3
![]() |
•
•
Join Date: Nov 2006
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I have a webpage that displays different info at different times of day,
it worked fine until i put flash on my page,
i used tutorial on how to remove "click to activate" in updated IE.
here: http://www.gerozahn.de/click-workaround/
then I tried to use my code to display different info according to time,
i used this code, which works fine without "click to activate" fix:
then I tried to use "click to activate" fix with the above code like this:
i even tried to switch them around but still i get the parse error,
"click to activate" fix works fine on a single page though
please help!
thank you
I have a webpage that displays different info at different times of day,
it worked fine until i put flash on my page,
i used tutorial on how to remove "click to activate" in updated IE.
here: http://www.gerozahn.de/click-workaround/
then I tried to use my code to display different info according to time,
i used this code, which works fine without "click to activate" fix:
<?php
$hour = date('G'); //This outputs the current hour in 0 - 23 (24 hour format)
if($hour >= 21 || $hour <= 0)
{
?>
........................my webpage..............................
}
else
{
?>
........................another webpage.......................
then I tried to use "click to activate" fix with the above code like this:
<?php
ob_start();
?>
<?php
$hour = date('G'); //This outputs the current hour in 0 - 23 (24 hour format)
if($hour >= 21 || $hour <= 0)
{
?>
........................webpage with flash..............................
}
else
{
?>
........................another webpage with flash.......................
<?php
include_once "replaceObjEmbed.php";
echo replaceObjEmbed(ob_get_clean());
?> <------ parse error here, unexpected $i even tried to switch them around but still i get the parse error,
"click to activate" fix works fine on a single page though
please help!
thank you
Last edited by jcisml : Feb 22nd, 2007 at 2:46 am.
•
•
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation:
Rep Power: 5
Solved Threads: 34
<?php
ob_start();
?>
<?php
$hour = date('G'); //This outputs the current hour in 0 - 23 (24 hour format)
if($hour >= 21 || $hour <= 0)
{
?>
........................webpage with flash..............................
<?php <--- You're missing this
}
else
{
?>
........................another webpage with flash.......................
<?php
include_once "replaceObjEmbed.php";
echo replaceObjEmbed(ob_get_clean());
?> Last edited by stymiee : Feb 22nd, 2007 at 3:23 am.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
•
•
Join Date: Nov 2006
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
hi!
thanks for the reply,
i've tried your suggestion but it still gives parse error
here is the file, if you could kindly please check out,
thanks
http://dalerlife.net/file.zip
thanks for the reply,
i've tried your suggestion but it still gives parse error
here is the file, if you could kindly please check out,
thanks
http://dalerlife.net/file.zip
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Help Needed Parse error: syntax error (PHP)
- Parse error: parse error, unexpected T_STRING on line 12 (PHP)
- PHP Parse error: parse error, unexpected T_STRING in F:\downloads\cats-0.6.1\index.ph (PHP)
- Parse error: parse error, unexpected T_STRING (PHP)
- PHP Parse error: parse error, unexpected T_STRING (PHP)
- Parse error: parse error, unexpected T_STRING in /home/thei2k9/public_html/includes/f (PHP)
Other Threads in the PHP Forum
- Previous Thread: POP3 email retrival
- Next Thread: in_array(): wrong datatype for second argument



Linear Mode