wmguk Posted January 5, 2010 Share Posted January 5, 2010 Hi, I have a site that uses a CMS package, based on Tinymce. I click on insert image, and upload. find the image, and upload it (checked the ftp and it does upload) in the CMS it shows the image but in the site it has a red cross, so I checked it and it shows an incorrect file location, however in the HTML of the CMS its right.... Any ideas? The CMS shows the img src as http://www.wckdesign.co.uk/images/email.jpg however the php page shows it as http://www.wckdesign.co.uk/links/images/email.jpg why does it add another directory on the php page, but not in the cms (nor the Database) Quote Link to comment https://forums.phpfreaks.com/topic/187248-cms-software-uploads-images-however-the-url-is-incorrect/ Share on other sites More sharing options...
wmguk Posted January 5, 2010 Author Share Posted January 5, 2010 I've just double checked the DB and it shows <img src="images/email.jpg" alt="email" title="email" width="800" height="122" /> not a complete hard coded domain name How can I get it to add the www.domain.co.uk to the front? Quote Link to comment https://forums.phpfreaks.com/topic/187248-cms-software-uploads-images-however-the-url-is-incorrect/#findComment-988815 Share on other sites More sharing options...
ignace Posted January 5, 2010 Share Posted January 5, 2010 Its hard to tell what you need to do without even knowing which CMS you are using. You can use the base html tag <base href="http://www.domain.co.uk"><!-- /> if xhtml --> Quote Link to comment https://forums.phpfreaks.com/topic/187248-cms-software-uploads-images-however-the-url-is-incorrect/#findComment-988962 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.