MySql Database problems ( i think )

Discussion in 'PHP' started by intrinzik, Oct 28, 2006.

  1. #1
    ok well im a complete noob (god do i hate that word) when it comes to databases. Just getting this site setup was a challange in itself. Im having a couple errors though.

    http://www.bringbackthelyrics.com


    http://bringbackthelyrics.com/results.php
    
    Warning: file() [function.file]: URL file-access is disabled in the server configuration in /misc/18/253/241/960/6/user/web/bringbackthelyrics.com/results.php on line 154
    
    Warning: file(http://api.hostip.info/get_html.php?ip=&position=true) [function.file]: failed to open stream: no suitable wrapper could be found in /misc/18/253/241/960/6/user/web/bringbackthelyrics.com/results.php on line 154
    Code (markup):

    http://bringbackthelyrics.com/received.php
    Warning: fsockopen() expects parameter 2 to be long, string given in /misc/18/253/241/960/6/user/web/bringbackthelyrics.com/phpmailer/class.smtp.php on line 105
    OOPS... There was an error sending the message
    Code (markup):

    I wouldnt even begin to know how to go about fixing these, i dont know were the problems are or anything like that, so as much help as possible would be greatly appreciated.
     
    intrinzik, Oct 28, 2006 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    digitalpoint, Oct 28, 2006 IP
  3. intrinzik

    intrinzik Peon

    Messages:
    360
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks but im still not understanding (again im a noob), i posted this at another forum and they told me to replace file() with file_get_contents()

    i did it on line 154 and now i get this error

    http://bringbackthelyrics.com/received.php
    Warning: fsockopen() expects parameter 2 to be long, string given in /misc/18/253/241/960/6/user/web/bringbackthelyrics.com/phpmailer/class.smtp.php on line 105
    OOPS... There was an error sending the message
    PHP:
    http://bringbackthelyrics.com/results.php
    
    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /misc/18/253/241/960/6/user/web/bringbackthelyrics.com/results.php on line 154
    
    Warning: file_get_contents(http://api.hostip.info/get_html.php?ip=&position=true) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /misc/18/253/241/960/6/user/web/bringbackthelyrics.com/results.php on line 154
    
    PHP:
    Contacted my host,
    Do i need PHP safe mode disabled? Im lost, someone please help :(
     
    intrinzik, Oct 30, 2006 IP