473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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
9 4813
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

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
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

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
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

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
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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bush is a Fascist | last post by:
As an experiment I wrote a simple C program that invokes PHP using system(), but I'm getting an error "No input file specified.". What I do is: setenv ("REQUEST_METHOD", "GET", 1); setenv...
1
by: PeterB | last post by:
Hi! I'm using Pure ASP File Upload (http://www.asp101.com/articles/jacob/scriptupload.asp) to upload a file from a client to a server. I am testing both on a local IIS and a remote server. The...
0
by: tbrothers | last post by:
I'm new here so if I posted this incorrectly please go easy. I recently moved my website from a Unix hosting service to a Windows 2003 IIS hosting service. The site was converted from php/mysql...
0
by: David | last post by:
I have a C# app that quits periodically with the message "No source file given". Sometimes it will only run for an hour or two. Other time it will run for days before it quits. I've searched...
1
by: Gary Wessle | last post by:
I am getting this error when I try to run the code below **************** f = open("~/m", "r") print f.read() **************** **************** :~$ python python/my.py Traceback (most...
3
by: aljosa.mohorovic | last post by:
..htaccess file: RewriteRule ^test$ test.php RewriteRule ^test\/(.*)$ test.php/$1 my guess is that result should be equal: http://koncar.info/test.php/anything http://koncar.info/test/anything...
21
by: comp.lang.tcl | last post by:
set php {<? print_r("Hello World"); ?>} puts $php; # PRINTS OUT <? print_r("Hello World"); ?> puts When I try this within TCL I get the following error:
11
by: Natti | last post by:
Hello, I start fileevents as soon as my tk code is invoked. My widget gets updated based on the fileevents. Most of the files do not exist in the beginning and so I get the following messages on...
1
by: chrisj | last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully. In this modified version there are two groups that use this upload script. Members of one...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.