1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Few PHP Errors I Need Help With Please

Discussion in 'PHP' started by brazzO1, Jul 10, 2011.

  1. #1
    Hey all, i am new here as you can tell by this being my first post so i know possibly a few people might not help me but here is the problem i am having.

    Basically, i have a script that will download from a blog using a certain plugin that i have coded using PHP but i am having a few problems getting it to download the links from fileserve, i have got the code copying the information that is posted just cant seem to get everything to download. I am runnng the script on a VPS with cURL installed so i dont see why it is not downloading to the VPS.

    So here is the process i have:

    First off i put in the links i want to leech from into a text area on the index.php which would be http://adultbay.org/remaster-monica/

    It then is meant to run these commands

    but for some reason it skips everythng and it just outputs the thread in html / bbcode.

    I am able to get the full thread code as i said and as you can see below

    <b>Remaster - Monica</b><br />
    <br />
    <code>http://www.pixhost.org/show/2455/7996476_cover.jpg</code><br />
    <b>Monica   - Monica's Triple D Goodness<br />
    Added: Saturday July  9, 2011 </b><br />
    So after the complete pounding of Reagan, Shane, Ugly and I were getting known around the campus. I mean, you know how guys talk, so anyway, one night after a round of bong hits I recieved a telephone call from a great friend of mine who likes to call himself romeo - its a latin thing. So he tells me he's got to be with us for our next ride out and offered me a bit of cash that I could not turn down. With that money I bought my first camera to take pictures of all our memorable moments . We all got together the next day and it appeared that the gods were not going to smile down upon us, therefore rain and a fucking lot of it... pouring to put it best. We couldn't find any chicks and I was feeling bad because we talked all this shit and we looked like fucking punks. Then my main partner, Ugly, had a flash of brilliance "what about the bus stops?" And there she was, soaking wet and standing, waiting for a bus. Monica was the best kind of chick, the way I like em, fiesty and bitchy. So we pulled up and tried our best to start a half assed conversation. We pulled out some of our best lines, it's the comedy thing which the chicks usually love but it didn't seem to be too effective this time. So we left her there only to return moments later. I thought it would be funny and cute to come back and honk the horn, stuff like kids do, so she came over, we offered some money to ask questions and she finally got in, carefully of course. I have a way of making girls feel comfortable..the truth is that this movie is so intense and raw, I dont want to say anymore because when you mix Sanchez and a bitchy girl together the combination is truley a dirty mess...<br />
    <code>http://www.stooorage.com/show/961/3385819_rm8554500k_tab.jpg</code><br />
    <b>Wupload:</b><br />
    <br />
    <code>http://www.wupload.com/file/49852170</code><br />
    <b>Fileserve:</b><br />
    <br />
    <code>http://www.fileserve.com/file/qKScQbc/rm8554500k.wmv</code><br />
    <b>Filesonic:</b><br />
    <br />
    <code>http://www.filesonic.com/file/1410943481/rm8554500k.wmv</code><br />
    <b>Netload:</b><br />
    <br />
    <code>http://netload.in/dateizRKmWA6r4w/rm8554500k.wmv.htm</code><br />
    HTML:
    I am using this code to download from the fileserve on my adultbay.php plugin so i dont understand why it is not working properly...

    <?php
    	if(stripos($link, "http://adultbay.org/") !== false)
        	{
        		preg_match("/<title>.+<\/title>/i", $res, $matches);
          		$title = str_ireplace("<title>The Adult Bay &raquo; ", "", $matches[0]);
          		$title = trim(str_ireplace("</title>", "", $title));
          		$title = trim(str_ireplace("&#8211;", "-", $title));
          		$title = trim(str_ireplace("&amp;", "and", $title));
          		$title = trim(str_ireplace(":", "", $title));
          		
          		switch($download_from)
          		{
          			case "fs":
          				$splitby = "<strong>Fileserve::";
          				$regex1 = "/<strong>Fileserve:(.*?)<\/p>/is";
          				$regex2 = "/href=\"http:\/\/?(www\.|)fileserve\.com\/dl\/[0-9]+\/\w+\/[\w-.]+\.html/is";
          			break;
          		}
    PHP:
     
    brazzO1, Jul 10, 2011 IP
  2. ntomsheck

    ntomsheck Peon

    Messages:
    87
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The whole CURL part is missing, how you implement the regex, and what you do with the page after curl pulls it is all not present.
     
    ntomsheck, Jul 10, 2011 IP