...

View Full Version : Using include - works/doesn't work - See Example



scuba_
08-14-2008, 08:21 PM
OK, this should be simple,
but makes ZERO sense to me.

I am going to link you to identical files with different names.

One works and one doesn't.

http://pixelsfortroops.com/index-menu.php
This file: index-menu.php - Works

http://pixelsfortroops.com/index.php
This file: index.php - Does not Work

Does this ring a bell to anyone?


menu.html sets a cookie that expire immediately for testing purposes.
The window with the yellow border should disappear in 3 seconds.


Thank you for any light you can shed on this.

Dan

westes
08-15-2008, 02:22 AM
I might can help but post the script in php tags on the post itself not in file form

ninnypants
08-15-2008, 02:41 AM
It's probably this


if (!empty($grids))
$row[] = array_shift($grids);
}

You're missing the opening curly brace to your if statement
EDIT
Though now that I look at it again it looks like you're if statement should be like this if you don't want to use braces

if (!empty($grids)) $row[] = array_shift($grids);
This is on line 86 by the way

scuba_
08-15-2008, 04:07 AM
hmm .. but what would this have to do with the file name?

examples:

index.html or
index-menu.php or
*.php


I don't see why it works PERFECT when named index-menu.php, and does not work at all when names index.php

Should I explain this differently?
Is it because it is the directory index that it loads differently?



It's probably this


if (!empty($grids))
$row[] = array_shift($grids);
}

You're missing the opening curly brace to your if statement
EDIT
Though now that I look at it again it looks like you're if statement should be like this if you don't want to use braces

if (!empty($grids)) $row[] = array_shift($grids);
This is on line 86 by the way

scuba_
08-15-2008, 04:09 AM
<?php

//init variable for cache
if (isset($_REQUEST['grid']))
$grid = (int)$_REQUEST['grid'];
else
$grid = 1;

require_once('config.php');
require_once('grid.class.php');
//clean cache init
unset($grid);

// handle magnifier toggle
if (isset($_REQUEST['magnify'])) {
$_SESSION['magnify'] = !empty($_REQUEST['magnify']);
$args = array();
if (@$_REQUEST['grid'] > 1)
$args['grid'] = $_REQUEST['grid'];
$app->redirect(false, $args);
} else {
if (isset($_REQUEST['grid']))
$grid = (int)$_REQUEST['grid'];
else
$grid = 1;
}

// handle clickthrough
if (isset($_REQUEST['r'])) {
require_once('region.class.php');
$tbl = new Region;
$region = $tbl->get($_REQUEST['r'], false);
if (is_null($region->id()) || $region->status != REGION_ACTIVE)
$app->redirect();

if (empty($_SESSION['user_id']) && empty($_SESSION['is_admin'])) {
$region->clicks++;
$region->save();
$smarty->clear_all_cache(null, 'index|search');
}

header("Location: " . $region->url);
exit;
}

// process any region expiration events
require_once('util.class.php');
Util::process_expired_regions();

// fetch all the grids
$tbl = new Grid;
$grids = $tbl->find_all('order by display_order');

// make sure grid columns are >= 1
$c = max(1, $app->setting->grid_columns);

// if multiple grid pages are used, build links to the other pages, and then
// get only the requested grid
if ($app->setting->multiple_grid_pages) {
require_once('snippet.class.php');
$g =& $_REQUEST['grid'];
$g = max(1, $g);
$g = min(count($grids), $g);
$links = array();
for ($i = 0; $i < count($grids); $i++) {
$title = htmlspecialchars(Snippet::snippet_text('grid_title', $grids[$i]->id, '##Pixels##'));
if ($i == $g - 1)
$links[] = '<strong>' . $title . '</strong>';
else {
$params = array();
if ($i > 0)
$params = array('grid' => $i + 1);
$links[] = '<a href="' . htmlspecialchars($app->url(false, $params)) . '">' . $title . '</a>';
}
}
$smarty->assign('links', $links);
$grids = array($grids[$g - 1]);
$c = 1;
}

// arrange grids into rows/columns
$rows = array();
while (!empty($grids)) {
$row = array();
for ($i = 0; $i < $c; $i++) {
if (!empty($grids))
$row[] = array_shift($grids);
}
$rows[] = $row;
}

//get region ids for every grid
$rids_ids = $db->getCol('SELECT * FROM '.DB_PREFIX.'regions', 'id');
//$rids_ids
$smarty->assign('rids_ids', $rids_ids);
$smarty->assign('rows', $rows);
$smarty->display('index.tpl', 'index|'.(int)$_SESSION['magnify'].'|'.(int)$grid.'|'.$cache_id);
include('menu.html');
?>
It is in the last line where i use the "include" function


I might can help but post the script in php tags on the post itself not in file form

scuba_
08-15-2008, 04:34 AM
RESOLVED:

I don't know why, but I eliminated the "Magnify" feature and it works like a champ. I didn't love that anyway, so now i'm good to go.

cheers and goodnight

dan

scuba_
08-15-2008, 02:47 PM
I thought it was, but it is not RESOLVED.

This is such a SILLY thing to be happening.

Please read my top post.

Thank you,
Dan

ninnypants
08-15-2008, 03:17 PM
You're still missing multiple curly braces"{" in this section


if ($i == $g - 1)
$links[] = '<strong>' . $title . '</strong>';
else {
$params = array();
if ($i > 0)
$params = array('grid' => $i + 1);
$links[] = '<a href="' . htmlspecialchars($app->url(false, $params)) . '">' . $title . '</a>';
}

Should be


if ($i == $g - 1){
$links[] = '<strong>' . $title . '</strong>';
}else {
$params = array();
if ($i > 0){
$params = array('grid' => $i + 1);
$links[] = '<a href="' . htmlspecialchars($app->url(false, $params)) . '">' . $title . '</a>';
}
}

scuba_
08-15-2008, 03:31 PM
You're still missing multiple curly braces"{" in this section


if ($i == $g - 1)
$links[] = '<strong>' . $title . '</strong>';
else {
$params = array();
if ($i > 0)
$params = array('grid' => $i + 1);
$links[] = '<a href="' . htmlspecialchars($app->url(false, $params)) . '">' . $title . '</a>';
}

Should be


if ($i == $g - 1){
$links[] = '<strong>' . $title . '</strong>';
}else {
$params = array();
if ($i > 0){
$params = array('grid' => $i + 1);
$links[] = '<a href="' . htmlspecialchars($app->url(false, $params)) . '">' . $title . '</a>';
}
}


I tried your suggestion .. that created a TON of errors.
I'll leave the script alone, it works fine the way is it.
Thanks anyway :-)






Can anyone explain why the file name would have anything to do with this file including or not including the menu.html file?




<?php
...
include('menu.html');
?>

scuba_
08-15-2008, 08:34 PM
I'm impressed, I stumped a forum full of geniuses :-)

Who here knows the most about the include function?

scuba_
08-18-2008, 01:45 AM
I am still having this problem.
Am I the only one?

Can someone/anyone please let me know what happens when they visit?

Thank You,
Dan

vbplusme
08-18-2008, 05:02 AM
Although "if" statements can run in certain circumstances without {}
the practice is really bad form. Your code is full of instances of questionable conditionals. The fact that fixing a single instance of a missing {} isn't any surprise, you are missing a huge number of them.

Perhaps this will help:


http://www.tizag.com/phpT/if.php

HTH, vbplusme

kochier
08-18-2008, 05:05 AM
Alright, well looking at the error it produces "

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /mounted-storage/home98c/sub005/sc12597-JIYA/pixelsfortroops/index.php on line 98"

You've got file access problems. A quick google of the error got me this link here (http://us.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen) which should be able to help you. Also This site (http://blog.everymanhosting.com/php-coding/warning-include-functioninclude-url-file-access-is-disabled-in-the-server-configuration/) looks like it should be helpful to you as well.

Also you can try making your include
include 'menu.html'; or
include (menu.html); and see if either of those work. Hope I was able to be of some help.

scuba_
08-18-2008, 05:31 AM
gents,

thank you for your help.

kochier - i'm sorry, you caught me during messing with some other options. You won't get any errors if you go back now.

vbplusme - I will check out your suggested link, that you for your help.



Does anyone else get the 'pop-up' when they visit index.php?
I have the cookie set to expire immediately. Also, please scroll down to see if the menu floats down and follows, it should.

Thanks again..
dan

kochier
08-18-2008, 05:36 AM
Yes I get the pop-up when I go to both your pages, and the menu scrolls on both as well. Curious, what did you do to fix it?

scuba_
08-18-2008, 02:06 PM
Yes I get the pop-up when I go to both your pages, and the menu scrolls on both as well. Curious, what did you do to fix it?

What OS / Browser are you running.

I can not get them to work on IE6 and FF3.
I know, I know .. IE6 = yuck, but it's a work computer.

I just tested on my Mac - Saf 3.1.2, and FF3 .. no go, but the other files do work.

I just can not believe that it works as long as the file name isn't "index.php"

WORKS: index2.php (http://www.pixelsfortroops.com/index2.php)
WORKS: indexYEAAA.php (http://www.pixelsfortroops.com/indexYEAAA.php)
WORKS: thisworks.php (http://www.pixelsfortroops.com/thisworks.php)
WORKS: really.php (http://www.pixelsfortroops.com/really.php)
WORKS: whatToDoNow.php (http://www.pixelsfortroops.com/whatToDoNow.php)


DOES NOT WORK: index.php (http://www.pixelsfortroops.com/index.php)

Forget about the POP-UP, you can tell if it works or not, by scrolling down, if the menu follows (floats), then we are good..

Any ideas?

kochier
08-18-2008, 07:47 PM
Windows, FF3, I could of sworn it was working last night when I checked after you were done your changes, but now the menu doesn't scroll again, I could of been checking the wrong page or something I suppose because now index.php doesn't work again.

EDIT: It's working in FF3, I get the menu following me as I scroll down.

scuba_
08-18-2008, 07:58 PM
Windows, FF3, I could of sworn it was working last night when I checked after you were done your changes, but now the menu doesn't scroll again, I could of been checking the wrong page or something I suppose because now index.php doesn't work again.

Yes, now it SHOULD be working, but it DOESN'T..

I'm spreading my bizarre thread to a few more forums, I will update here if someone knows whats going on.

scoop_987
08-18-2008, 08:35 PM
Ahh right, Just reading some of your posts, and it looks like its not any problem with any of your PHP code. It looks to be something wrong with the way your httpd server is set up to be honest. I cant see anything wrong with the code what so ever, so leads me to believe its a server issue, could be htaccess file modified in some stupid way. But check with your host.

One thing you could try, is name the file you have just now "index2.php" and make an "index.php" file and put in it:



<?PHP
include("index2.php");
?>


If that doesnt work then its definitely PHP. (but i dont see how it can be!)


EDIT:
Done a little looking about myself. Can you please ensure that you can see the following code in the index.php file (via "View page source"):



<script type="text/javascript"><!--
/* Script by: www.jtricks.com
* Version: 20071210
* Latest version:
* www.jtricks.com/javascript/navigation/floating.html
*/
var floatingMenuId = 'floatdiv';
var floatingMenu =
{
targetX: 1,
targetY: 1,

hasInner: typeof(window.innerWidth) == 'number',
hasElement: document.documentElement
&& document.documentElement.clientWidth,

menu:
document.getElementById
? document.getElementById(floatingMenuId)
: document.all
? document.all[floatingMenuId]
: document.layers[floatingMenuId]
};

floatingMenu.move = function ()
{
if (document.layers)
{
floatingMenu.menu.left = floatingMenu.nextX;
floatingMenu.menu.top = floatingMenu.nextY;
}
else
{
floatingMenu.menu.style.left = floatingMenu.nextX + 'px';
floatingMenu.menu.style.top = floatingMenu.nextY + 'px';
}
}

floatingMenu.computeShifts = function ()
{
var de = document.documentElement;

floatingMenu.shiftX =
floatingMenu.hasInner
? pageXOffset
: floatingMenu.hasElement
? de.scrollLeft
: document.body.scrollLeft;
if (floatingMenu.targetX < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
// Handle Opera 8 problems
floatingMenu.shiftX +=
de.clientWidth > window.innerWidth
? window.innerWidth
: de.clientWidth
}
else
{
floatingMenu.shiftX +=
floatingMenu.hasElement
? de.clientWidth
: floatingMenu.hasInner
? window.innerWidth
: document.body.clientWidth;
}
}

floatingMenu.shiftY =
floatingMenu.hasInner
? pageYOffset
: floatingMenu.hasElement
? de.scrollTop
: document.body.scrollTop;
if (floatingMenu.targetY < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
// Handle Opera 8 problems
floatingMenu.shiftY +=
de.clientHeight > window.innerHeight
? window.innerHeight
: de.clientHeight
}
else
{
floatingMenu.shiftY +=
floatingMenu.hasElement
? document.documentElement.clientHeight
: floatingMenu.hasInner
? window.innerHeight
: document.body.clientHeight;
}
}
}

floatingMenu.doFloat = function()
{
var stepX, stepY;

floatingMenu.computeShifts();

stepX = (floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX) * .07;
if (Math.abs(stepX) < .5)
{
stepX = floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX;
}

stepY = (floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY) * .07;
if (Math.abs(stepY) < .5)
{
stepY = floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY;
}

if (Math.abs(stepX) > 0 ||
Math.abs(stepY) > 0)
{
floatingMenu.nextX += stepX;
floatingMenu.nextY += stepY;
floatingMenu.move();
}

setTimeout('floatingMenu.doFloat()', 20);
};

// addEvent designed by Aaron Moore
floatingMenu.addEvent = function(element, listener, handler)
{
if(typeof element[listener] != 'function' ||
typeof element[listener + '_num'] == 'undefined')
{
element[listener + '_num'] = 0;
if (typeof element[listener] == 'function')
{
element[listener + 0] = element[listener];
element[listener + '_num']++;
}
element[listener] = function(e)
{
var r = true;
e = (e) ? e : window.event;
for(var i = element[listener + '_num'] -1; i >= 0; i--)
{
if(element[listener + i](e) == false)
r = false;
}
return r;
}
}

//if handler is not already stored, assign it
for(var i = 0; i < element[listener + '_num']; i++)
if(element[listener + i] == handler)
return;
element[listener + element[listener + '_num']] = handler;
element[listener + '_num']++;
};

floatingMenu.init = function()
{
floatingMenu.initSecondary();
floatingMenu.doFloat();
};

// Some browsers init scrollbars only after
// full document load.
floatingMenu.initSecondary = function()
{
floatingMenu.computeShifts();
floatingMenu.nextX = floatingMenu.shiftX +
floatingMenu.targetX;
floatingMenu.nextY = floatingMenu.shiftY +
floatingMenu.targetY;
floatingMenu.move();
}

if (document.layers)
floatingMenu.addEvent(window, 'onload', floatingMenu.init);
else
{
floatingMenu.init();
floatingMenu.addEvent(window, 'onload',
floatingMenu.initSecondary);
}

//--></script>

scuba_
08-18-2008, 08:50 PM
Ahh right, Just reading some of your posts, and it looks like its not any problem with any of your PHP code. It looks to be something wrong with the way your httpd server is set up to be honest. I cant see anything wrong with the code what so ever, so leads me to believe its a server issue, could be htaccess file modified in some stupid way. But check with your host.

One thing you could try, is name the file you have just now "index2.php" and make an "index.php" file and put in it:



<?PHP
include("index2.php");
?>


If that doesnt work then its definitely PHP. (but i dont see how it can be!)


EDIT:
Done a little looking about myself. Can you please ensure that you can see the following code in the index.php file (via "View page source"):



<script type="text/javascript"><!--
/* Script by: www.jtricks.com
* Version: 20071210
* Latest version:
* www.jtricks.com/javascript/navigation/floating.html
*/
var floatingMenuId = 'floatdiv';
var floatingMenu =
{
targetX: 1,
targetY: 1,

hasInner: typeof(window.innerWidth) == 'number',
hasElement: document.documentElement
&& document.documentElement.clientWidth,

menu:
document.getElementById
? document.getElementById(floatingMenuId)
: document.all
? document.all[floatingMenuId]
: document.layers[floatingMenuId]
};

floatingMenu.move = function ()
{
if (document.layers)
{
floatingMenu.menu.left = floatingMenu.nextX;
floatingMenu.menu.top = floatingMenu.nextY;
}
else
{
floatingMenu.menu.style.left = floatingMenu.nextX + 'px';
floatingMenu.menu.style.top = floatingMenu.nextY + 'px';
}
}

floatingMenu.computeShifts = function ()
{
var de = document.documentElement;

floatingMenu.shiftX =
floatingMenu.hasInner
? pageXOffset
: floatingMenu.hasElement
? de.scrollLeft
: document.body.scrollLeft;
if (floatingMenu.targetX < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
// Handle Opera 8 problems
floatingMenu.shiftX +=
de.clientWidth > window.innerWidth
? window.innerWidth
: de.clientWidth
}
else
{
floatingMenu.shiftX +=
floatingMenu.hasElement
? de.clientWidth
: floatingMenu.hasInner
? window.innerWidth
: document.body.clientWidth;
}
}

floatingMenu.shiftY =
floatingMenu.hasInner
? pageYOffset
: floatingMenu.hasElement
? de.scrollTop
: document.body.scrollTop;
if (floatingMenu.targetY < 0)
{
if (floatingMenu.hasElement && floatingMenu.hasInner)
{
// Handle Opera 8 problems
floatingMenu.shiftY +=
de.clientHeight > window.innerHeight
? window.innerHeight
: de.clientHeight
}
else
{
floatingMenu.shiftY +=
floatingMenu.hasElement
? document.documentElement.clientHeight
: floatingMenu.hasInner
? window.innerHeight
: document.body.clientHeight;
}
}
}

floatingMenu.doFloat = function()
{
var stepX, stepY;

floatingMenu.computeShifts();

stepX = (floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX) * .07;
if (Math.abs(stepX) < .5)
{
stepX = floatingMenu.shiftX +
floatingMenu.targetX - floatingMenu.nextX;
}

stepY = (floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY) * .07;
if (Math.abs(stepY) < .5)
{
stepY = floatingMenu.shiftY +
floatingMenu.targetY - floatingMenu.nextY;
}

if (Math.abs(stepX) > 0 ||
Math.abs(stepY) > 0)
{
floatingMenu.nextX += stepX;
floatingMenu.nextY += stepY;
floatingMenu.move();
}

setTimeout('floatingMenu.doFloat()', 20);
};

// addEvent designed by Aaron Moore
floatingMenu.addEvent = function(element, listener, handler)
{
if(typeof element[listener] != 'function' ||
typeof element[listener + '_num'] == 'undefined')
{
element[listener + '_num'] = 0;
if (typeof element[listener] == 'function')
{
element[listener + 0] = element[listener];
element[listener + '_num']++;
}
element[listener] = function(e)
{
var r = true;
e = (e) ? e : window.event;
for(var i = element[listener + '_num'] -1; i >= 0; i--)
{
if(element[listener + i](e) == false)
r = false;
}
return r;
}
}

//if handler is not already stored, assign it
for(var i = 0; i < element[listener + '_num']; i++)
if(element[listener + i] == handler)
return;
element[listener + element[listener + '_num']] = handler;
element[listener + '_num']++;
};

floatingMenu.init = function()
{
floatingMenu.initSecondary();
floatingMenu.doFloat();
};

// Some browsers init scrollbars only after
// full document load.
floatingMenu.initSecondary = function()
{
floatingMenu.computeShifts();
floatingMenu.nextX = floatingMenu.shiftX +
floatingMenu.targetX;
floatingMenu.nextY = floatingMenu.shiftY +
floatingMenu.targetY;
floatingMenu.move();
}

if (document.layers)
floatingMenu.addEvent(window, 'onload', floatingMenu.init);
else
{
floatingMenu.init();
floatingMenu.addEvent(window, 'onload',
floatingMenu.initSecondary);
}

//--></script>





Negative .. it doesn't seem to be including the file at all.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Support Our Troops - Pixel by Pixel ..." />
<link rel="stylesheet" type="text/css" href="http://www.pixelsfortroops.com/style.css" />
<link rel="alternate" type="application/rss+xml" title= "Blog Articles" href="http://www.pixelsfortroops.com/rss_blog_articles.php" />
<title>Pixels For Troops</title>
</head>
<body >
<div class="buytext"></div><div class="content">

<center>



<div class="header" style="width:750px; border:solid 1px #000000;" ><a href="http://pixelsfortroops.com"><img src="../images/header_logo.gif" width="563" height="50" border="0" /></a>&nbsp;<img src="../images/pixel_count.jpg" width="166" height="46" border="0" usemap="#Map" valign="center" />
<map name="Map" id="Map"><area shape="rect" coords="5,12,160,41" href="#" alt="pixels sold" />
</map><table width="750" border="0" cellspacing="0" cellpadding="0" height="20" style="background-image:url(../images/shade.jpg)" >
<tr>
<td><div align="center"><a href="index.php" class="header">HOME</a></div></td>
<td><div align="center"><a href="get_pixels.php" class="header">BUY PIXELS</a></div></td>
<td><div align="center"><a href="about.html" class="header">ABOUT</a></div></td>

<td><div align="center"><a href="pixel_list.php" class="header">DONATIONS</a></div></td>
<td><div align="center"><a href="contact.html"class="header">CONTACT</a></div></td>
<td><div align="center"><a href="blog.php" class="header">MY BLOG</a></div></td>
</tr>
</table>
</div>
<div style="padding: 5px 0 5px 0; border-left:solid 1px #000000; border-right:solid 1px #000000; width: 750px; background-image:url(../images/site_bg_shade.gif)">
<span class="buytext" style="padding-top:3px">HELP ME REACH MY $500,000.00
DONATION GOAL</span>

<br />
<span class="buytext" style="padding-left:0px">
Donations to Our Troops $<!--2,700-->1350 &nbsp;-&nbsp; Available Pixels: 994,800<br>


</span>
</div>
<!-- Start of StatCounter Code -->
<script type="text/javascript">
sc_project=3799737;
sc_invisible=1;
sc_partition=40;
sc_security="df77d3b4";
</script>

<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a href="http://www.statcounter.com/free_hit_counter.html" target="_blank"><img class="statcounter" src="http://c41.statcounter.com/3799737/0/df77d3b4/1/" alt="hit counter script" ></a></div></noscript>
<!-- End of StatCounter Code -->

<div style="border:solid 1px #000000; width: 750px">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<map name="grid_2"><area shape="rect" coords="510,190,520,200" nohref="nohref" onclick="window.open('?r=56','_blank');return false;" alt="Pending" title="Pending" onmouseover="return escape('<center>Pending</center>');" /><area shape="rect" coords="740,0,750,10" nohref="nohref" onclick="window.open('?r=57','_blank');return false;" alt="Pending" title="Pending" onmouseover="return escape('<center>Pending</center>');" /><area shape="rect" coords="660,270,670,280" href="http://www.army.mil" target="_blank" onclick="window.open('?r=58','_blank');return false;" onclick="window.open('?r=58','_blank');return false;" alt="Sgt Patrick Whiles .. .. I can't wait till you get home, the family misses you lots" title="Sgt Patrick Whiles .. .. I can't wait till you get home, the family misses you lots" onmouseover="return escape('<center>Sgt Patrick Whiles .. .. I can\'t wait till you get home, the family misses you lots</center>');" /><area shape="rect" coords="30,470,60,490" href="http://gilligannardini.com" target="_blank" onclick="window.open('?r=45','_blank');return false;" onclick="window.open('?r=45','_blank');return false;" alt="Gilligan Nardini Electric, Inc." title="Thank You for Your Service God Bless You. Gilligan Nardini Electric, Inc." onmouseover="return escape('<center>Thank You for Your Service God Bless You. Gilligan Nardini Electric, Inc.</center>');" /><area shape="rect" coords="420,100,440,130" nohref="nohref" onclick="window.open('?r=46','_blank');return false;" alt="Pending" title="Pending" onmouseover="return escape('<center>Pending</center>');" /><area shape="rect" coords="340,380,380,410" href="http://24luxuryhomes.com" target="_blank" onclick="window.open('?r=54','_blank');return false;" onclick="window.open('?r=54','_blank');return false;" alt="MC Messina Inc. sincerely thanks our troops - God Bless All of You! Come check out our 24 Luxury Homes !!" title="MC Messina Inc. sincerely thanks our troops - God Bless All of You! Come check out our 24 Luxury Homes !!" onmouseover="return escape('<center>MC Messina Inc. sincerely thanks our troops - God Bless All of You! Come check out our 24 Luxury Homes !!</center>');" /></map><div style="float: left"><img src="http://www.pixelsfortroops.com/grids/grid_2.png?x=1219088343" usemap="#grid_2" width="750" height="1330" alt="" border="0" /></div><div style="clear: both"></div>
</td>
</tr>

</table>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<br /><br />

</center>
<script type="text/javascript" src="http://www.pixelsfortroops.com/wz_tooltip.js"></script>
<script type="text/javascript">
ttDelay = 0;
ttBgColor = '#ffe957';
ttFontColor = '#333300';
ttWidth = 160;
tt_Init();
</script>
<center><div align="center" style="width:80%"><span style="font-size:10px;color:#666666;font-family: Arial;">Pixel For Troops, Inc. &nbsp; &nbsp; Pixels For Troops&copy; &nbsp; - &nbsp; 2008</span></div></center>
</div>

</body>
</html>

scoop_987
08-18-2008, 09:06 PM
can you post the menu.html file?

Inigoesdr
08-19-2008, 12:29 AM
I only glanced at your code, but the fact that it works when the file is named one thing, and doesn't when it's named something else points directly toward the server setup(as scoop_987 suggested). If you have access to another host you might want to confirm this by cloning your site there.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum