Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is it ok to make /catalog/ CHMOD 777


playy

Recommended Posts

Why do you need to?

It definitely isn't a good idea to make the entire directory world writable. You should be able to get by with 705, or even less permissions.

 

 

Dan

Dan Stevens

Link to comment
Share on other sites

That would pose a security risk to all files as anyone would be able to write to any of the files in that directory. I do not understand why you would want to do this. Also, if you password protect the directory no one will be able to access unless they have the password.

 

By the way, it is 5am in the US. Someone will get to your question, just give it some time. Bumping is against forum rules.

Link to comment
Share on other sites

The reason I need to make it writable, it is needed my product images to be located on an outside website (my dropshipper) So in the cinfigure.php file I changed the image location fomr '/images/' to '' so it woudl go strictly with the address i told it to, rather than putting my website before it. Since i didnt that, the product images are working, but the icons and corners etc. wree looking for catalog/theimagefile.jpg instead of catalog/images/theimagefile.jpg. So i had to move all of my images into the catalog/ directory instead of the catalog/images directory. So Now all images work great, but i cannot upload any new images, because catalog/ is not writable..... I have no idea how to get aroud this

Link to comment
Share on other sites

I would set up 2 different image pointers in the configure.php file. One for local images and one for images hosted by your dropshipper. I would then edit the HTML image wrapper function tep_image to display the proper one. You could edit the product_info page to pass a parameter to the tep_image function that told it to use the remote site for product images. Then have an if statement in the function that if that parameter is set, use the constant defined in configure.php for the image path. Requires a little code hacking, but would be much more secure then making the catalog directory writable. Plus would allow you to have images locally and remotely.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...