Notice: Undefined index: path on line 156

Help
DNight
2005-06-24
2013-05-30
  • DNight
    DNight
    2005-06-24

    I'm trying to grab a form with fetchform($website) but keep coming up with the error
    Notice: Undefined index: path in
    f:\htdocs\Snoopy.class.php on line 156

    Which I've traced down to this line in fetch()

    $path = $URI_PARTS["path"].($URI_PARTS["query"] ?
    "?".$URI_PARTS["query"] : "");

    I'm passing the full url http://www.mysite.com and I
    know it's getting through because I added an echo
    URI; to the code and it echoed the site that I just
    passed. If anyone could help it would be much appreciated.

    I've got PHP 4.3.10 installed if that helps any. Thanks!

     
    • DNight
      DNight
      2005-06-24

      I solved my own problem but ran into another.

      Ok, so after an hour of playing with it I found out that I had to add http://www.mysite.com/  (the slash at the end).  It was looking for a path and I wasn't sending one.  Sad that I missed that.  I'll start another thread for my other problem.