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. 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. 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. 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 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
Archived
This topic is now archived and is closed to further replies.