By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,208 Members | 1,592 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,208 IT Pros & Developers. It's quick & easy.

Help with "No input file selected" (yes, that old chestnut again)

P: n/a
Hi

I am very new to PHP - actually, this is my second day at it, as I've only
recently started a new job last week. We're a charity.

I have a "No input file selected" problem. A Google search has shown me that
this is a common problem, but I have tried to follow all the various
instructions but none of them make any difference.

First of all... Some background on the page it links from.....

http://www.goodgifts.org/goodgifts/guilttrips.php

(I know about the broken gif at the bottom, but that's unimportant at the
moment).
When you click on Europe (I haven't written the PHP pages for the other
areas yet) it comes up with "no input file selected". Or it does my end
anyway. I am of course talking about
http://www.goodgifts.org/goodgifts/worldmap1.php

Which is very odd, as I've done everything right (I think).
FILE STRUCTURE:
In the root we have all the various PHP files: here is the file called
worldmap1.php
Sorry if the word wrapping makes it really hard to read
<?php
/*
$Id: privacy.php,v 1.21 2003/02/13 04:23:23 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce

Released under the GNU General Public
License
*/

require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WORLDMAP1);
$breadcrumb->add(NAVBAR_TITLE,
tep_href_link(FILENAME_WORLDMAP1));
?>
<!doctype html public "-//W3C//DTD
HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta
http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;
?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo
(($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG;
?>">
<link rel="stylesheet" type="text/css"
href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0"
topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header
//-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof
//-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3"
cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>"
valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>"
cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php
require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof
//-->
</table></td>
<!-- body_text //-->
<td width="100%"
valign="top"><table border="0" width="100%" cellspacing="0"
cellpadding="0">
<tr>
<td><table border="0" width="100%"
cellspacing="0" cellpadding="0">
<tr>
<td
class="pageHeading"><br><?php echo HEADING_TITLE; ?></td>

<td></td>
</tr>
</table></td>
</tr>
<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>
<tr>
<td><br><table border="0" width="100%"
cellspacing="0" cellpadding="2">
<tr>
<td
class="main"><?php echo TEXT_INFORMATION; ?></td>
</tr>

</table></td>
</tr>
<tr>
<td align="right"
class="main"><br><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) .
'">' . tep_image_button('ContinueArrowDots.gif', IMAGE_BUTTON_CONTINUE) .
'</a>'; ?></td>
</tr>
</table></td>
<!-- body_text_eof //-->

<td>

<!-- right nav insertable here //-->

</td>

</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php
require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof
//-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES .
'application_bottom.php'); ?>


Oh, the includes/application_top.php is just the banner, and yes, I do
define

define('FILENAME_WORLDMAP1', 'worldmap1.php');

Along with all the other definitions.
NOW for the meaty bit. The PHP file proper is saved, again with all the
other PHP files, in includes/languages/english/worldmap1.php

This is the contents of the file. Which I've gone through with a toothcomb.

<?php
/*
$Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 osCommerce

Released under the GNU General Public
License
*/

define('NAVBAR_TITLE', 'WORLDMAP1');
define('HEADING_TITLE',
'<font color="#FF9933">Guilt Trips</font>');
define('TEXT_INFORMATION', '
<table width="90%" border="0" cellpadding="5" height="339">
<tr>

<td width="20%">&nbsp;</td>
<td width="51%">

<p><font size="7" face="Verdana, Arial, Helvetica, sans-serif"><b>Guilt
Trips!</b></font><font size="4" face="Verdana, Arial, Helvetica,
sans-serif"><b> <br>
</b></font><font size="4"
face="Verdana, Arial, Helvetica, sans-serif"><b>How many trees will your
journey consume?<br>
</b></font></p>

</td>
<td width="11%">&nbsp;</td>
</tr>
<tr>
<td width="20%"
valign="middle">
<div align="right">
<p></p>

</div>
</td>



<HR>

<td width="51%"
valign="top">
<HR>
<p><font size="2"
face="Verdana, Arial, Helvetica, sans-serif">I need to plant....</font></p>

<BR>
<IMG SRC="images/tree.gif" ALT="beech tree"
height="195" width="158"><BR>
<h1><b>One
Tree!</b></h1>
<p><font size="2" face="Verdana, Arial,
Helvetica, sans-serif">to counterbalance my destructive carbon-emitting
trip.</font></p>
<p><font size="2" face="Verdana, Arial,
Helvetica, sans-serif">However, remember that the figures are <i>for one
person travelling</i>. If there are five of you travelling in your party,
multiply the figure by five!</font></p>
<div
align="right">

<hr>
<p><font
size="-2"> </font></p>
</div>
</td>

<td width="11%">&nbsp;</td>
</tr>
<tr>
<td
width="20%">&nbsp;</td>
<td width="51%" valign="middle">

<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Some
immediate ways to make a difference...</b></font></p>

<ul>
<li><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><b>Plant trees</b> to counterbalance my destructive
carbon-emitting trip</font>
<li><font size="1"
face="Verdana, Arial, Helvetica, sans-serif"><b>Plant</b> <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=197" target="_blank">mango</a> trees in India, <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=118" target="_blank">fruit trees</a> in Africa and <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=100" target="_blank">beech</a> trees in UK woodland</font>

<li><font size="1" face="Verdana, Arial, Helvetica,
sans-serif"><b>Preserve</b> an <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=73" target="_blank">acre of rainforest</a></font>

</ul>
<p><font size="1" face="Verdana, Arial, Helvetica,
sans-serif">For these and other similar gifts, see the <i><a
href="http://www.goodgifts.org/" target="_blank">Good Gifts
Catalogue</a></i>. </font></p>
<p><font size="1"
face="Verdana, Arial, Helvetica, sans-serif">Other ways of making a
difference could include:</font></p>
<ul>

<li><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Paying
</b>for a holiday for a poor family</font>
<li><font
size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Providing </b>21
meals for school children in Africa (the equivalent number of meals on my
week\'s holiday)</font>
</ul>

<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">We spend an
absolute fortune on holidays every year, travelling in a world where people
are starving to death all around us. Imagine how much better the world would
be if everyone donated just 1% of his or her holiday\'s expense to make the
planet a better place. Start assuaging your guilt now!</font></p>

</td>
<td width="11%">&nbsp;</td>
</tr>

<hr>

<p><font size="-2"> </font></p>
</div></td>

<td width="11%">&nbsp;</td>
</tr>
<tr>
<td
width="20%">&nbsp;</td>
<td width="51%" valign="middle"><a
href="guilttrips.php">Back to map</a></td>
<td width="11%">&nbsp;</td>

</tr>
</table>
');
?>

Again, apologies about the dreadful wrapping - it doesn't look as bad as
that in Go!Live but when I copy and paste it into Entourage it looks awful.

As I said, this is only my second day using PHP and only my fifth day using
a Mac, but I think you can see I'm a pretty fast learner. :-) (I've been
typing in raw HTML on PCs most of my web authoring life ;-))) )

In case any of you want to see roughly what the original HTML file that I
wrote last week looks like, before copying the relevant table into the PHP
file, it is
http://www.charitiesadvisorytrust.or...t/worldmap1.ht
ml
Now, as you will hopefully see, I have defined the filenames, I have
remembered to add the backslashes before the apostrophes, and I just can't
seem to find out why the thing won't work. Apologies if this seems so very
basic and newbie - I'm trying to get to grips with what is for me still a
very new way of writing code... But I HAVE tried to find the answer out on
various newsgroups, and reading old posts in Google, to try and avoid
wasting your time unnecessarily so.

As I said, we're a Charity so any help is very much appreciated!! Thanks
again!

Tristán White

Jun 12 '06 #1
Share this Question
Share on Google+
9 Replies


P: n/a
Tristán White wrote:
Hi

I am very new to PHP - actually, this is my second day at it, as I've only
recently started a new job last week. We're a charity.

I have a "No input file selected" problem. A Google search has shown me that
this is a common problem, but I have tried to follow all the various
instructions but none of them make any difference.

First of all... Some background on the page it links from.....

http://www.goodgifts.org/goodgifts/guilttrips.php

(I know about the broken gif at the bottom, but that's unimportant at the
moment).
When you click on Europe (I haven't written the PHP pages for the other
areas yet) it comes up with "no input file selected". Or it does my end
anyway. I am of course talking about
http://www.goodgifts.org/goodgifts/worldmap1.php

Which is very odd, as I've done everything right (I think).
FILE STRUCTURE:
In the root we have all the various PHP files: here is the file called
worldmap1.php
Sorry if the word wrapping makes it really hard to read
<?php
/*
$Id: privacy.php,v 1.21 2003/02/13 04:23:23 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce

Released under the GNU General Public
License
*/

require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WORLDMAP1);
$breadcrumb->add(NAVBAR_TITLE,
tep_href_link(FILENAME_WORLDMAP1));
?>
<!doctype html public "-//W3C//DTD
HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta
http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;
?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo
(($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG;
?>">
<link rel="stylesheet" type="text/css"
href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0"
topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header
//-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof
//-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3"
cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>"
valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>"
cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php
require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof
//-->
</table></td>
<!-- body_text //-->
<td width="100%"
valign="top"><table border="0" width="100%" cellspacing="0"
cellpadding="0">
<tr>
<td><table border="0" width="100%"
cellspacing="0" cellpadding="0">
<tr>
<td
class="pageHeading"><br><?php echo HEADING_TITLE; ?></td>

<td></td>
</tr>
</table></td>
</tr>
<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>
<tr>
<td><br><table border="0" width="100%"
cellspacing="0" cellpadding="2">
<tr>
<td
class="main"><?php echo TEXT_INFORMATION; ?></td>
</tr>

</table></td>
</tr>
<tr>
<td align="right"
class="main"><br><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) .
'">' . tep_image_button('ContinueArrowDots.gif', IMAGE_BUTTON_CONTINUE) .
'</a>'; ?></td>
</tr>
</table></td>
<!-- body_text_eof //-->

<td>

<!-- right nav insertable here //-->

</td>

</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php
require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof
//-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES .
'application_bottom.php'); ?>


Oh, the includes/application_top.php is just the banner, and yes, I do
define

define('FILENAME_WORLDMAP1', 'worldmap1.php');

Along with all the other definitions.
NOW for the meaty bit. The PHP file proper is saved, again with all the
other PHP files, in includes/languages/english/worldmap1.php

This is the contents of the file. Which I've gone through with a toothcomb.

<?php
/*
$Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 osCommerce

Released under the GNU General Public
License
*/

define('NAVBAR_TITLE', 'WORLDMAP1');
define('HEADING_TITLE',
'<font color="#FF9933">Guilt Trips</font>');
define('TEXT_INFORMATION', '
<table width="90%" border="0" cellpadding="5" height="339">
<tr>

<td width="20%">&nbsp;</td>
<td width="51%">

<p><font size="7" face="Verdana, Arial, Helvetica, sans-serif"><b>Guilt
Trips!</b></font><font size="4" face="Verdana, Arial, Helvetica,
sans-serif"><b> <br>
</b></font><font size="4"
face="Verdana, Arial, Helvetica, sans-serif"><b>How many trees will your
journey consume?<br>
</b></font></p>

</td>
<td width="11%">&nbsp;</td>
</tr>
<tr>
<td width="20%"
valign="middle">
<div align="right">
<p></p>

</div>
</td>



<HR>

<td width="51%"
valign="top">
<HR>
<p><font size="2"
face="Verdana, Arial, Helvetica, sans-serif">I need to plant....</font></p>

<BR>
<IMG SRC="images/tree.gif" ALT="beech tree"
height="195" width="158"><BR>
<h1><b>One
Tree!</b></h1>
<p><font size="2" face="Verdana, Arial,
Helvetica, sans-serif">to counterbalance my destructive carbon-emitting
trip.</font></p>
<p><font size="2" face="Verdana, Arial,
Helvetica, sans-serif">However, remember that the figures are <i>for one
person travelling</i>. If there are five of you travelling in your party,
multiply the figure by five!</font></p>
<div
align="right">

<hr>
<p><font
size="-2"> </font></p>
</div>
</td>

<td width="11%">&nbsp;</td>
</tr>
<tr>
<td
width="20%">&nbsp;</td>
<td width="51%" valign="middle">

<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Some
immediate ways to make a difference...</b></font></p>

<ul>
<li><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><b>Plant trees</b> to counterbalance my destructive
carbon-emitting trip</font>
<li><font size="1"
face="Verdana, Arial, Helvetica, sans-serif"><b>Plant</b> <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=197" target="_blank">mango</a> trees in India, <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=118" target="_blank">fruit trees</a> in Africa and <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=100" target="_blank">beech</a> trees in UK woodland</font>

<li><font size="1" face="Verdana, Arial, Helvetica,
sans-serif"><b>Preserve</b> an <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=73" target="_blank">acre of rainforest</a></font>

</ul>
<p><font size="1" face="Verdana, Arial, Helvetica,
sans-serif">For these and other similar gifts, see the <i><a
href="http://www.goodgifts.org/" target="_blank">Good Gifts
Catalogue</a></i>. </font></p>
<p><font size="1"
face="Verdana, Arial, Helvetica, sans-serif">Other ways of making a
difference could include:</font></p>
<ul>

<li><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Paying
</b>for a holiday for a poor family</font>
<li><font
size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Providing </b>21
meals for school children in Africa (the equivalent number of meals on my
week\'s holiday)</font>
</ul>

<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">We spend an
absolute fortune on holidays every year, travelling in a world where people
are starving to death all around us. Imagine how much better the world would
be if everyone donated just 1% of his or her holiday\'s expense to make the
planet a better place. Start assuaging your guilt now!</font></p>

</td>
<td width="11%">&nbsp;</td>
</tr>

<hr>

<p><font size="-2"> </font></p>
</div></td>

<td width="11%">&nbsp;</td>
</tr>
<tr>
<td
width="20%">&nbsp;</td>
<td width="51%" valign="middle"><a
href="guilttrips.php">Back to map</a></td>
<td width="11%">&nbsp;</td>

</tr>
</table>
');
?>

Again, apologies about the dreadful wrapping - it doesn't look as bad as
that in Go!Live but when I copy and paste it into Entourage it looks awful.

As I said, this is only my second day using PHP and only my fifth day using
a Mac, but I think you can see I'm a pretty fast learner. :-) (I've been
typing in raw HTML on PCs most of my web authoring life ;-))) )

In case any of you want to see roughly what the original HTML file that I
wrote last week looks like, before copying the relevant table into the PHP
file, it is
http://www.charitiesadvisorytrust.or...t/worldmap1.ht
ml
Now, as you will hopefully see, I have defined the filenames, I have
remembered to add the backslashes before the apostrophes, and I just can't
seem to find out why the thing won't work. Apologies if this seems so very
basic and newbie - I'm trying to get to grips with what is for me still a
very new way of writing code... But I HAVE tried to find the answer out on
various newsgroups, and reading old posts in Google, to try and avoid
wasting your time unnecessarily so.

As I said, we're a Charity so any help is very much appreciated!! Thanks
again!

Tristán White

Hmmm, it looks like maybe you're trying to modify OS Commerce files? And
perhaps you're not including everything you need to define the oscommerce
information.

Does /goodgifts/worldmap1.php actually exist? Or is it perhaps in a different
directory?

Maybe you should ask at http://www.oscommerce.com.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 13 '06 #2

P: n/a

On 13/6/06 18:52, in article Hd******************************@comcast.com,
"Jerry Stuckle" <js*******@attglobal.net> wrote:
Hmmm, it looks like maybe you're trying to modify OS Commerce files? And
perhaps you're not including everything you need to define the oscommerce
information.

Does /goodgifts/worldmap1.php actually exist? Or is it perhaps in a different
directory?


Yes, basically the way all the webpages are laid out is:

Filename.php within the root folder (goodgifts)

Filename.php within includes/languages/english

Basically it's two PHP files, both very different. This is the same
structure we have used for about 800 pages so can't see why it's now going
wrong. The HTML within the PHP works because it's actually a definition
string (note the closing 'apostrophe and the closure of the PHP)....

I probably wasn't very clear in my earlier post. Splitting them up they are:
---------------------------------------------------------------------------
/GOODGIFTS/WORLDMAP1.PHP
---------------------------------------------------------------------------
<?php
/*
$Id: privacy.php,v 1.21 2003/02/13 04:23:23 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce

Released under the GNU General Public
License
*/

require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WORLDMAP1);
$breadcrumb->add(NAVBAR_TITLE,
tep_href_link(FILENAME_WORLDMAP1));
?>
<!doctype html public "-//W3C//DTD
HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta
http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;
?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo
(($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG;
?>">
<link rel="stylesheet" type="text/css"
href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0"
topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header
//-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof
//-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3"
cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>"
valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>"
cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php
require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof
//-->
</table></td>
<!-- body_text //-->
<td width="100%"
valign="top"><table border="0" width="100%" cellspacing="0"
cellpadding="0">
<tr>
<td><table border="0" width="100%"
cellspacing="0" cellpadding="0">
<tr>
<td
class="pageHeading"><br><?php echo HEADING_TITLE; ?></td>

<td></td>
</tr>
</table></td>
</tr>
<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>
<tr>
<td><br><table border="0" width="100%"
cellspacing="0" cellpadding="2">
<tr>
<td
class="main"><?php echo TEXT_INFORMATION; ?></td>
</tr>

</table></td>
</tr>
<tr>
<td align="right"
class="main"><br><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) .
'">' . tep_image_button('ContinueArrowDots.gif', IMAGE_BUTTON_CONTINUE) .
'</a>'; ?></td>
</tr>
</table></td>
<!-- body_text_eof //-->

<td>

<!-- right nav insertable here //-->

</td>

</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php
require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof
//-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES .
'application_bottom.php'); ?>

---------------------------------------------------------------------------
/GOODGIFTS/INCLUDES/LANGUAGES/ENGLISH/WORLDMAP1.PHP
---------------------------------------------------------------------------

<?php
/*
$Id: privacy.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 osCommerce

Released under the GNU General Public
License
*/

define('NAVBAR_TITLE', 'WORLDMAP1');
define('HEADING_TITLE',
'<font color="#FF9933">Guilt Trips</font>');
define('TEXT_INFORMATION', '
<table width="90%" border="0" cellpadding="5" height="339">
<tr>

<td width="20%">&nbsp;</td>
<td width="51%">

<p><font size="7" face="Verdana, Arial, Helvetica, sans-serif"><b>Guilt
Trips!</b></font><font size="4" face="Verdana, Arial, Helvetica,
sans-serif"><b> <br>
</b></font><font size="4"
face="Verdana, Arial, Helvetica, sans-serif"><b>How many trees will your
journey consume?<br>
</b></font></p>

</td>
<td width="11%">&nbsp;</td>
</tr>
<tr>
<td width="20%"
valign="middle">
<div align="right">
<p></p>

</div>
</td>



<HR>

<td width="51%"
valign="top">
<HR>
<p><font size="2"
face="Verdana, Arial, Helvetica, sans-serif">I need to plant....</font></p>

<BR>
<IMG SRC="images/tree.gif" ALT="beech tree"
height="195" width="158"><BR>
<h1><b>One
Tree!</b></h1>
<p><font size="2" face="Verdana, Arial,
Helvetica, sans-serif">to counterbalance my destructive carbon-emitting
trip.</font></p>
<p><font size="2" face="Verdana, Arial,
Helvetica, sans-serif">However, remember that the figures are <i>for one
person travelling</i>. If there are five of you travelling in your party,
multiply the figure by five!</font></p>
<div
align="right">

<hr>
<p><font
size="-2"> </font></p>
</div>
</td>

<td width="11%">&nbsp;</td>
</tr>
<tr>
<td
width="20%">&nbsp;</td>
<td width="51%" valign="middle">

<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Some
immediate ways to make a difference...</b></font></p>

<ul>
<li><font size="1" face="Verdana, Arial,
Helvetica, sans-serif"><b>Plant trees</b> to counterbalance my destructive
carbon-emitting trip</font>
<li><font size="1"
face="Verdana, Arial, Helvetica, sans-serif"><b>Plant</b> <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=197" target="_blank">mango</a> trees in India, <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=118" target="_blank">fruit trees</a> in Africa and <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=100" target="_blank">beech</a> trees in UK woodland</font>

<li><font size="1" face="Verdana, Arial, Helvetica,
sans-serif"><b>Preserve</b> an <a
href="http://www.goodgifts.org/goodgifts/product_info.php?cPath=75&products_
id=73" target="_blank">acre of rainforest</a></font>

</ul>
<p><font size="1" face="Verdana, Arial, Helvetica,
sans-serif">For these and other similar gifts, see the <i><a
href="http://www.goodgifts.org/" target="_blank">Good Gifts
Catalogue</a></i>. </font></p>
<p><font size="1"
face="Verdana, Arial, Helvetica, sans-serif">Other ways of making a
difference could include:</font></p>
<ul>

<li><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Paying
</b>for a holiday for a poor family</font>
<li><font
size="1" face="Verdana, Arial, Helvetica, sans-serif"><b>Providing </b>21
meals for school children in Africa (the equivalent number of meals on my
week\'s holiday)</font>
</ul>

<p><font size="1" face="Verdana, Arial, Helvetica, sans-serif">We spend an
absolute fortune on holidays every year, travelling in a world where people
are starving to death all around us. Imagine how much better the world would
be if everyone donated just 1% of his or her holiday\'s expense to make the
planet a better place. Start assuaging your guilt now!</font></p>

</td>
<td width="11%">&nbsp;</td>
</tr>

<hr>

<p><font size="-2"> </font></p>
</div></td>

<td width="11%">&nbsp;</td>
</tr>
<tr>
<td
width="20%">&nbsp;</td>
<td width="51%" valign="middle"><a
href="guilttrips.php">Back to map</a></td>
<td width="11%">&nbsp;</td>

</tr>
</table>
');
?>

Jun 14 '06 #3

P: n/a
Tristán White wrote:


On 13/6/06 18:52, in article Hd******************************@comcast.com,
"Jerry Stuckle" <js*******@attglobal.net> wrote:

Hmmm, it looks like maybe you're trying to modify OS Commerce files? And
perhaps you're not including everything you need to define the oscommerce
information.

Does /goodgifts/worldmap1.php actually exist? Or is it perhaps in a different
directory?



Yes, basically the way all the webpages are laid out is:

Filename.php within the root folder (goodgifts)

Filename.php within includes/languages/english

Basically it's two PHP files, both very different. This is the same
structure we have used for about 800 pages so can't see why it's now going
wrong. The HTML within the PHP works because it's actually a definition
string (note the closing 'apostrophe and the closure of the PHP)....

I probably wasn't very clear in my earlier post. Splitting them up they are:
---------------------------------------------------------------------------


<code snipped>

But are you trying to modify OS Commerce files? That's what it looks like. And
if so, why?

It's really hard to tell when you have all that code - but it's also incomplete
because it doesn't have all the headers.

You need to cut down the problem some. Start taking things out of your
goodgifts/worldmap1.php file. Or, better yet, start with a minimum file just to
see if it works:

<html><head></head><body>Hello, World!</body></html>

If that works, then your problem is in worldmap1.php. If not, it's in
guilttrips.php.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 14 '06 #4

P: n/a

On 14/6/06 12:23, in article bc******************************@comcast.com,
"Jerry Stuckle" <js*******@attglobal.net> wrote:
But are you trying to modify OS Commerce files? That's what it looks like.
And
if so, why?

<SNIP>

I'll try that simple file you mentioned.

But the reason why I'm trying to modify OS Commerce files is because that is
what the other 300 pages are: modified OS Commerce files!

This is only my second week in the job; were I starting the site from
scratch I would have done it differently, but obviously these are different
circumstances and so I am simply making new pages by SAVING/AS an old page,
using it as a template, replacing the HTML within the string definition,
making a few other changes, and uploading. Up until now, there has not been
a problem....

Thanks for your suggestion, though; I'll change it!
Jun 15 '06 #5

P: n/a
Tristán White wrote:


On 14/6/06 12:23, in article bc******************************@comcast.com,
"Jerry Stuckle" <js*******@attglobal.net> wrote:

But are you trying to modify OS Commerce files? That's what it looks like.
And
if so, why?


<SNIP>

I'll try that simple file you mentioned.

But the reason why I'm trying to modify OS Commerce files is because that is
what the other 300 pages are: modified OS Commerce files!

This is only my second week in the job; were I starting the site from
scratch I would have done it differently, but obviously these are different
circumstances and so I am simply making new pages by SAVING/AS an old page,
using it as a template, replacing the HTML within the string definition,
making a few other changes, and uploading. Up until now, there has not been
a problem....

Thanks for your suggestion, though; I'll change it!


I really don't recommend playing with templates as an exercise for new PHP
programmers - as you can see, too many things can go wrong. However, you're
stuck with it, so we have to deal with the problems.

Chances are you are missing some other file or setting someplace. But with
templates it becomes very difficult to determine what the problem is.

You might also try asking on the OSCommerce website; people there would be more
familiar with the files.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 15 '06 #6

P: n/a

On 15/6/06 13:43, in article vr******************************@comcast.com,
"Jerry Stuckle" <js*******@attglobal.net> wrote:
difficult to determine what the problem is.
<SNIP>
You might also try asking on the OSCommerce website; people there would be
more
familiar with the files.

Thanks again - and thanks for taking the time to look at it. :-)

Jun 15 '06 #7

P: n/a
Thanks all - managed to sort it out :-)

The problem was with the crappy Adobe GoLive software I was using. It was
making a couple of changes between my Mac and the live server, for some
reason.

Now, I need to find out why from
http://www.goodgifts.org/goodgifts/guilttrips.php only Europe works, and the
others say stuff like:
Warning: main(includes/languages/english/FILENAME_WORLDMAP2): failed to open
stream: No such file or directory in
/home/www/cardaid/goodgifts/worldmap2.php on line 15

Fatal error: main(): Failed opening required
'includes/languages/english/FILENAME_WORLDMAP2'
(include_path='.:/usr/local/lib/php') in
/home/www/cardaid/goodgifts/worldmap2.php on line 15

Jun 15 '06 #8

P: n/a
No input file selected... It happens to me too when I used PHP as CGI.
This program should works only in apache with PHP as an Apache module.

Jun 15 '06 #9

P: n/a

On 15/6/06 13:43, in article vr******************************@comcast.com,
"Jerry Stuckle" <js*******@attglobal.net> wrote:

<SNIP>
You might also try asking on the OSCommerce website; people there would be
more
familiar with the files.

Thanks again!! All working now
http://www.goodgifts.org/goodgifts/guilttrips.php

You were spot on - there was a setting wrong on the filenames definition
page. Doh!

Problem was, the version I had locally was working fine, and when I sent it
to the server via Adobe GoLive (I hate that software, and it's very PHP
unfriendly - it doesn't display the PHP files properly when you're trying to
write them, etc) it saved the updated file into a different folder.

On another note, what's the best software for a Mac for making updates to
PHP pages, you know, as in Dreamweaver-type software?

Preferably one that connects live to the Server so that you can FTP the
Server easily with your changes, without having to use a different piece of
software.

I'm going to ask another question about using HTML in PHP files, but I'll
use a different subject for that one.

Jun 16 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.