Working At Localhost , Not Working On Website

Discussion in 'PHP' started by SNaRe, Jan 6, 2008.

  1. #1
    I wrote a script to get dailymotion video's download link.
    It's working on localhost but it's not working wwhen i upload it to my host.
    I tried in other hostings to . Result same. When i upload and work on host dailymotion forbids. But at localhost it allows.
    Is there anyone can help me

    I will send script to who can do this.
    So if you don't know something about this don't write if you know write here or send me pm
     
    SNaRe, Jan 6, 2008 IP
  2. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #2
    It could be that you are using restricted functions like file or exec.
     
    live-cms_com, Jan 6, 2008 IP
  3. SNaRe

    SNaRe Well-Known Member

    Messages:
    1,132
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    165
    #3
    I sent script to you. Check your pm. I hope you can find solution
     
    SNaRe, Jan 6, 2008 IP
  4. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #4
    Maybe your host disabled fopen or external streams via php.ini
     
    Kaizoku, Jan 6, 2008 IP
  5. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ... or it could be that DailyMotion is blocking your host's IP address.

    I'd check their resources because NORMALLY, if it's not against the TOS, they give you an easy way to do it. Conversely, if they don't give you an easy way to do it, it's against their TOS anyway.
     
    TwistMyArm, Jan 6, 2008 IP
  6. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #6
    or maybe you are using different php versions ..

    check both phpinfo();
     
    commandos, Jan 6, 2008 IP
  7. kartal

    kartal Banned

    Messages:
    296
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    hm.. i can check it out if u want.. if ill find any faulse codes,ill report..
     
    kartal, Jan 6, 2008 IP
  8. flagday

    flagday Peon

    Messages:
    348
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Check your code for the function fopen.

    fopen is frequently disallowed by hosts for security reasons (which is a good thing), but frequently used by developers (which is a bad thing).

    cURL is a decent workaround in most instances.
     
    flagday, Jan 6, 2008 IP
  9. SNaRe

    SNaRe Well-Known Member

    Messages:
    1,132
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    165
    #9
    I use curl not fopen.
    But no solution
    if you have knowledge about it send me pm to send you script
     
    SNaRe, Jan 6, 2008 IP