affordit Posted December 3, 2008 Share Posted December 3, 2008 Anyone have an idea where t looking for a script that will insert URLs for all files in a directory? I have a directory of graphis that I would like to have the URLs for in a database without having to type it all in, any ideas? Thanks Link to comment https://forums.phpfreaks.com/topic/135282-solved-uploading-whole-directories-to-mysql-table/ Share on other sites More sharing options...
corbin Posted December 3, 2008 Share Posted December 3, 2008 http://php.net/opendir Wouldn't be hard to do your self. Link to comment https://forums.phpfreaks.com/topic/135282-solved-uploading-whole-directories-to-mysql-table/#findComment-704638 Share on other sites More sharing options...
dclamp Posted December 3, 2008 Share Posted December 3, 2008 expanding on that, you just need to loop through all the items in the directory, using directory functions. Link to comment https://forums.phpfreaks.com/topic/135282-solved-uploading-whole-directories-to-mysql-table/#findComment-704643 Share on other sites More sharing options...
corbin Posted December 3, 2008 Share Posted December 3, 2008 example 1 covers that. Was assuming he could read ;p. Then again, I skim through things sometimes, so I guess he could do the same, and be like "Wtf? That doesn't help at all!" Link to comment https://forums.phpfreaks.com/topic/135282-solved-uploading-whole-directories-to-mysql-table/#findComment-704650 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.