Aldar Posted March 12, 2007 Share Posted March 12, 2007 Hi! This my first post :) I searched for contribution to display more (and arbitrary) product images in product_info.php. It seems all these contributions altering database (or coding extra static HTML for each product, which seems too complex way for me). My idea is add some PHP code in product_info.php. This code must look for product picture, for example product_id_1, product_id_2, product_id_3 etc and display them IF such image file exists. Since I'm starting PHP programmer (but experinced application developer :)), I don't know how to detect in PHP if some particular file exists? Thanks, Aldar Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted March 12, 2007 Share Posted March 12, 2007 You woud use if (file_exists ( $imagename ) Although if you are planning on using oscommerce, you need to come to grips with contributions. Installing the MoPics contribution will give you code that is much more versatile than what your are atempting to do. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Aldar Posted March 13, 2007 Author Share Posted March 13, 2007 You woud useif (file_exists ( $imagename ) Although if you are planning on using oscommerce, you need to come to grips with contributions. Installing the MoPics contribution will give you code that is much more versatile than what your are atempting to do. Jack Thanks, Jack! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.