Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

general php syntax help please


fatbloke

Recommended Posts

Hi

 

This code works fine in my domain.com/catalog/index.php file

 

<?php include(DIR_WS_MODULES . FILENAME_RND_PRODUCTS); ?>

 

But I would also like to display it outside the domain.com/catalog/ folder ( ie in folder above )

 

I want to add the code to a an intro page at domain.com/page.php

 

Any idea of how I do that ?

 

Thanks

Link to comment
Share on other sites

How many OSC files are you including? If you're including an OSC file that includes another OSC file, you have some work. If you're just including one file that doesn't include a cascade of others (like application_top.php), then you can supply an absolute path for the include file.

 

<?php include(DIR_FS_CATALOG . DIR_WS_MODULES . FILENAME_RND_PRODUCTS); ?>

 

(You might have to concatenate a slash after the DIR_FS_CATALOG).

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...