Jump to content

TheNewOne

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

TheNewOne's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. come on guys. all i need is that the script downloads the file when it finds it. please
  2. <?php for ($a = 2005; $a <= 2008; $a++) { //year for ($b = 1; $b <= 12; $b++) { //month for ($c = 1; $c <= 31; $c++) { //days for ($d = 1; $d <= 24; $d++) { //hours for ($e = 1; $e <= 60; $e++) { //minutes if (file_exists("test" . $a . $b . $c . $d . $e . ".jpg")) { echo "Filename: " . "test" . $a . $b . $c . $d . $e . ".jpg exists<br>\n"; } } } } } } ?> this code is very good. but what i need now is that it downloads every file it finds. there wont be more than 5 files. but they are remote, thats why i have to do it that way... plz help me with the downloadpart. and question: if (file_exists("test" . $a . $b . $c . $d . $e . ".jpg")) can i insert an url there, too (at the test word)? cos thats what i need.
  3. i have one problem with the script. noo, i mean it works well. but how can i use it with an url? and can the script automatically download it then? can you plz do that last thing for me?
  4. that script helps me, but how can i use it for an url?
  5. Hi I need help with a script that does the following I want to download a file called "test200801012106.jpg" for example: http://localhost/test200801012106.jpg But, the only thing i know it that the file is called test...jpg. i dont know the numbers (which are time and date). So i know the following: http://localhost/test$year$month$day$hour$minute.jpg So... i want to download that file, but what if i dont know the date? Could someone show me how to write a php script, that just trys the dates? and then downloading it with wget, for example. So for example from 2005 on, every month from 01-12, ever day from 01-31, every hour from 01-24 and every minute from 01-60. Is this possible (i know it should, but i just dont know how) Please help me ( I know many of you are good, so please help me with this little problem) Thx
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.