Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

File Management


bdotjones

Recommended Posts

Posted

Hi,

 

My store is install in the root of site. For file management purposes I want to add folders in the root directory and place the php file in them...For example, instead of

 

public_html/shipping.php

 

I want it to be public_html/shipping/shipping.php

 

and I know you have to do the same thing in the english directory...so instead of

 

english/shipping.php

 

it would also be english/shipping/shipping.php

 

and I also change the filenames.php to

 

define('FILENAME_SHIPPING', 'shipping/shipping.php');

 

 

when I do this I recieve this error

 

Warning: main(includes/application_top.php): failed to open stream: No such file or directory in /home/cckabaka/public_html/shipping/shipping.php on line 13

 

Warning: main(includes/application_top.php): failed to open stream: No such file or directory in /home/cckabaka/public_html/shipping/shipping.php on line 13

 

Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cckabaka/public_html/shipping/shipping.php on line 13

 

How can I configure this to make it work properly? Any help would be greatly appreciated

 

Thanx

Posted

My advice would be that unless you are a lot more proficient in how OSC uses include/require files, not to bother.

 

A lot of these are referenced based on relative paths from the current script - that is why you are getting errors. It's not an easy task to do what you want.

Archived

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

×
×
  • Create New...