Pudgemeister Posted July 12, 2006 Share Posted July 12, 2006 im trying to make a "ten newest videos" page on my site that looks at my videos folder and detects which videos are the newest to have arrived in the folder and then display the links or wahetever on the "ten newest videos" page.i have looked over different sites but being a noob to all this i dont have a clue.I don't suppose someone can possibly help or even write a script for me?i would then b able to learn from it hoefully and help myself more in the future.thanxPudgemeister Quote Link to comment https://forums.phpfreaks.com/topic/14381-big-help-needed-possibly-someone-to-write-some-php-code/ Share on other sites More sharing options...
brown2005 Posted July 12, 2006 Share Posted July 12, 2006 do u not have a database to run with this site as it would be much easier..... Quote Link to comment https://forums.phpfreaks.com/topic/14381-big-help-needed-possibly-someone-to-write-some-php-code/#findComment-56728 Share on other sites More sharing options...
zq29 Posted July 12, 2006 Share Posted July 12, 2006 If you want someone to write this for you, let me or another mod know and your post will be moved to our freelancing forum. If you want to give it a go yourself, you could look up the following functions in the manual:glob() - To get the conents of a directory, loop through the output with a foreach() loop.filemtime() - To get the time/date that the file was last modified on.You can chuck all of the returned data into an array, sort it by the date/time and only use the first 10 keys. Quote Link to comment https://forums.phpfreaks.com/topic/14381-big-help-needed-possibly-someone-to-write-some-php-code/#findComment-56731 Share on other sites More sharing options...
kenrbnsn Posted July 12, 2006 Share Posted July 12, 2006 If you're looking for someone to write the script, please post in the Freelancer's Forum.Ken Quote Link to comment https://forums.phpfreaks.com/topic/14381-big-help-needed-possibly-someone-to-write-some-php-code/#findComment-56732 Share on other sites More sharing options...
Pudgemeister Posted July 13, 2006 Author Share Posted July 13, 2006 yeh hi again all-sorry it took me a while to reply-i have alot on.ummm yes the freelancing forum would be good-i will post in there.i do have a database.and those functions u sent to me are helpful thank you-but i am too much of a noob to work out how to fully use them :Sthanx allPudgemeister Quote Link to comment https://forums.phpfreaks.com/topic/14381-big-help-needed-possibly-someone-to-write-some-php-code/#findComment-57380 Share on other sites More sharing options...
pixy Posted July 13, 2006 Share Posted July 13, 2006 ^ Check the PHP manual. You can download it at php.net and it has examples, how to use it, syntax, and user comments for ways they've used it. Very useful. Quote Link to comment https://forums.phpfreaks.com/topic/14381-big-help-needed-possibly-someone-to-write-some-php-code/#findComment-57408 Share on other sites More sharing options...
Pudgemeister Posted July 14, 2006 Author Share Posted July 14, 2006 OOOOH thank you! this will help me alot! Quote Link to comment https://forums.phpfreaks.com/topic/14381-big-help-needed-possibly-someone-to-write-some-php-code/#findComment-57802 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.