Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

EZ PHP Question


jessemania

Recommended Posts

Posted

Hello, I put a custome php script into the include file.

catalog/include/file.php

 

I'm trying to access it from another php script in:

catalog/include/language/english/

 

and this line isn't working:

<?php require(DIR_WS_INCLUDES/ . 'file.php'); ?>

 

How can I change the first part so the script can find the other script?

 

Thanks,

jesse

Posted
Hello, I put a custome php script into the include file.

catalog/include/file.php

 

I'm trying to access it from another php script in:

catalog/include/language/english/

 

and this line isn't working:

<?php require(DIR_WS_INCLUDES/ . 'file.php'); ?>

 

How can I change the first part so the script can find the other script?

 

Thanks,

jesse

Your syntax is wrong. Try
<?php require(DIR_WS_INCLUDES . 'file.php'); ?>

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

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

×
×
  • Create New...