Agreaves Posted September 15, 2012 Share Posted September 15, 2012 I have a database with the relative path to my images stored in it, is there a way convert all the paths to real path? instead of me having to go through all the records in the database one by one. Quote Link to comment https://forums.phpfreaks.com/topic/268418-converting-relative-path-to-real-path-in-database/ Share on other sites More sharing options...
requinix Posted September 16, 2012 Share Posted September 16, 2012 Do it at runtime when you need the absolute path. Storing that in the database means you have to update everything if the path ever changes. Quote Link to comment https://forums.phpfreaks.com/topic/268418-converting-relative-path-to-real-path-in-database/#findComment-1378259 Share on other sites More sharing options...
Agreaves Posted September 16, 2012 Author Share Posted September 16, 2012 I dont understand, im new to php, so you have explain clearly what you mean. Quote Link to comment https://forums.phpfreaks.com/topic/268418-converting-relative-path-to-real-path-in-database/#findComment-1378260 Share on other sites More sharing options...
Agreaves Posted September 16, 2012 Author Share Posted September 16, 2012 Im sorry, I figured it out Quote Link to comment https://forums.phpfreaks.com/topic/268418-converting-relative-path-to-real-path-in-database/#findComment-1378261 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.