Jump to content

Irishph4nt0m16

New Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Irishph4nt0m16's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. the uniqid gives each line there own id eg. <option id='56d9c29d9332e' value='http://localhost/files/file.zip'>file.zip</option> <option id='56d9c29d93830' value='http://localhost/files/file.zip'>file.zip</option> <option id='56d9c29d93f0b' value='http://localhost/files/file.zip'>file.zip</option> <option id='56d9c29d93f43' value='http://localhost/files/file.zip'>file.zip</option> users can see the directory where the file is hosted so I am trying to use GET to find the id of the chosen file and start download of that file.
  2. Hi, I have this code that removes unnecessary code from a file and I'm wanting to request the url associated with the uniqid. So instead of my select box containing the dir to the files, it will request the url by the uniqid. $h = fopen("cache/form.txt", "rt"); while (!feof($h)) { $title = trim(fgets($h)); $url = trim(fgets($h)); $doesnt_start_with_numbers = preg_replace('#^\d+#', '', $title); // output $up_id = uniqid(); $print = print "<option id='$up_id' value='$url'>$doesnt_start_with_numbers</option>\n"; } fclose($h); Any help on this would be great.
  3. Hi I need help with something. I'm looking to read a .txt file that has names with links inside that points to streams. I'm wanting them to be displayed as a dropdown <select> box. Text file is like this: Title 1 http://host/title1.m3u8 Title 2 http://host/title2.m3u8 Title 3 http://host/title3.m3u8 etc etc etc..... Output needed: <select> <option value="http://host/title1.m3u8">Title 1</option> <option value="http://host/title2.m3u8">Title 2</option> <option value="http://host/title3.m3u8">Title 3</option> </select> I've been trying to do this for a few hours now and everything I try, Im only getting 1 option working the rest are non-existing. The reason I need this is because the links update every week and they are a total of 800 streams. Entering those in one by one isn't a option I willing to take.
×
×
  • 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.