playy Posted June 16, 2004 Share Posted June 16, 2004 Is it ok to make /catalog/ CHMOD 777 if it is password protected? Or is that not secure, or not possible? Link to comment Share on other sites More sharing options...
playy Posted June 16, 2004 Author Share Posted June 16, 2004 Can someone please help? This site is supposed to go live in 3 days. I gotta get this figured out. Link to comment Share on other sites More sharing options...
djs Posted June 16, 2004 Share Posted June 16, 2004 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 More sharing options...
vasttech Posted June 16, 2004 Share Posted June 16, 2004 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. osCommerce Knowledge Base osCommerce Documentation Contributions Link to comment Share on other sites More sharing options...
playy Posted June 17, 2004 Author Share Posted June 17, 2004 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 More sharing options...
vasttech Posted June 17, 2004 Share Posted June 17, 2004 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. osCommerce Knowledge Base osCommerce Documentation Contributions Link to comment Share on other sites More sharing options...
playy Posted June 17, 2004 Author Share Posted June 17, 2004 whoa, I would love to do that, but unfortunatelly that is way beyond me :) thanks tho Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.