Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-28-2005, 02:10 PM   #1
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
PHP help please...

I want to include main_content.php in this...it is from oscommerce, the includes/language/english/index.php file...how can I set a php as an include in this, it is not letting me

the <?php include("main_content.php"); ?> is what I am trying to include...do I have to have a different code when I am already on a php page? like an echo or something?

Code:
define('TEXT_MAIN', '' . tep_image(DIR_WS_IMAGES . 'default/greeting.jpg') . '<hr width="375" size="1" color="#000000"><br><?php include("main_content.php"); ?>');
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 02:29 PM   #2
Robx
Confirmed User
 
Join Date: Nov 2004
Location: The middle of nowhere
Posts: 357
Your include statement is correct. But without seeing the start of your code, it's tough to see where you're going wrong.
__________________

Contact Us About Getting Your Paysites Exposed To Millions Of People On The Peer To Peer Networks!
ICQ 124-249-781
Robx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 02:32 PM   #3
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
here is the entire page

Code:
<?php
/*
  $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

define('TEXT_MAIN', '' . tep_image(DIR_WS_IMAGES . 'default/greeting.jpg') . '<hr width="375" size="1" color="#000000"><br><?php include("main_content.php"); ?>');
define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth hahahaha 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
  define('HEADING_TITLE', '');
  define('TABLE_HEADING_IMAGE', '');
  define('TABLE_HEADING_MODEL', 'Model');
  define('TABLE_HEADING_PRODUCTS', 'Product Name');
  define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
  define('TABLE_HEADING_QUANTITY', 'Quantity');
  define('TABLE_HEADING_PRICE', 'Price');
  define('TABLE_HEADING_WEIGHT', 'Weight');
  define('TABLE_HEADING_BUY_NOW', 'Buy Now');
  define('TEXT_NO_PRODUCTS', 'Sorry, there there is nothing here yet!.');
  define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
  define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
  define('TEXT_SHOW', '<b>Show:</b>');
  define('TEXT_BUY', 'Buy 1 \'');
  define('TEXT_NOW', '\' now');
  define('TEXT_ALL_CATEGORIES', 'All Categories');
  define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth hahahaha 'top') {
  define('HEADING_TITLE', '');
} elseif ($category_depth hahahaha 'nested') {
  define('HEADING_TITLE', 'Categories');
}
?>
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 02:33 PM   #4
Azlord
Confirmed User
 
Azlord's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: City... City of Satan
Posts: 2,651
it doesn't look like your include is wrong. Either some code before it is incorrect or some code on the php page you are trying to include is fucked.
Azlord is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 02:34 PM   #5
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
and it is just showing up like this

http://www.ecstasyglass.com/

and I need this http://www.ecstasyglass.com/main_content.php to be included in the part I have added it to in the code
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 02:44 PM   #6
Azlord
Confirmed User
 
Azlord's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: City... City of Satan
Posts: 2,651
Hey Jace...
I don't see where this is outputting anything. It looks like this is just defining shit. I don't know forsure though.
What I would do is add the include after the end of the if() loop.
Azlord is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 02:57 PM   #7
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Your code:
define('TEXT_MAIN', '' . tep_image(DIR_WS_IMAGES . 'default/greeting.jpg') . '<hr width="375" size="1" color="#000000"><br><?php include("main_content.php"); ?>');

Try this instead:
define('TEXT_MAIN', '' . tep_image(DIR_WS_IMAGES . 'default/greeting.jpg') . '<hr width="375" size="1" color="#000000"><br>'.include("main_content.php")) ;
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:08 PM   #8
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
you can't have "<?php" tags nested within each other.

the include() function should be applied the same way as tep_image() there with concatenation periods around it .include().

simple example:
$var = "Hi my name " . get_name() . " whats up?";
or
$var = "Hi my name " . get_name();
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:09 PM   #9
Azlord
Confirmed User
 
Azlord's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: City... City of Satan
Posts: 2,651
yah getting rid of the <?php
may help since it's already in a <? tag from the top
Azlord is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:14 PM   #10
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
trying now
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:18 PM   #11
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by holograph
you can't have "<?php" tags nested within each other.

the include() function should be applied the same way as tep_image() there with concatenation periods around it .include().

simple example:
$var = "Hi my name " . get_name() . " whats up?";
or
$var = "Hi my name " . get_name();
ok, so it should be

. tep_include('main_content.php') .

?
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:19 PM   #12
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Quote:
Originally Posted by JaceXXX
ok, so it should be

. tep_include('main_content.php') .

?
no, sorry for the confusion, here is the correct line:
define('TEXT_MAIN', '' . tep_image(DIR_WS_IMAGES . 'default/greeting.jpg') . '<hr width="375" size="1" color="#000000"><br>'.include("main_content.php")) ;
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:20 PM   #13
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by holograph
Your code:
define('TEXT_MAIN', '' . tep_image(DIR_WS_IMAGES . 'default/greeting.jpg') . '<hr width="375" size="1" color="#000000"><br><?php include("main_content.php"); ?>');

Try this instead:
define('TEXT_MAIN', '' . tep_image(DIR_WS_IMAGES . 'default/greeting.jpg') . '<hr width="375" size="1" color="#000000"><br>'.include("main_content.php")) ;
all that did was make the entire www.ecstasyglass.com show up as the main_content.php
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:26 PM   #14
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
where do you want include main_content.php, as part of define('TEXT_MAIN' ... ?
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:28 PM   #15
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Quote:
Originally Posted by holograph
where do you want include main_content.php, as part of define('TEXT_MAIN' ... ?
does main_content.php have any print or echo functions in there?
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:39 PM   #16
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
Quote:
Originally Posted by holograph
does main_content.php have any print or echo functions in there?

nope, it is straight html
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-28-2005, 03:40 PM   #17
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
i just basically want that index.php page to call main_content.php and it show up in the text_main
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.