Results 1 to 16 of 16

Thread: PHP script errors after moving hosts..

  1. #1
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro

    PHP script errors after moving hosts..

    I've finally gotten around to moving my personal site off my local pc and onto a proper hosting package, the only trouble is, my nifty gallery script no longer works..

    Original site: http://stoobs.homeip.net/?mode=gallery&gallery=2
    New site: http://www.stoo.org.uk/?mode=gallery&gallery=2

    Note all the "cannot open" messages..

    Can someone look over the settings and spot what the problem is with a fresh pair of eyes?

    http://stoobs.homeip.net/test.php - old config
    http://www.stoo.org.uk/test.php - new config

    Ta Peeps
    (\__/)
    (='.'=)
    (")_(")

  2. #2
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    Your include_path is different

  3. #3
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro
    How will that affect it?
    (\__/)
    (='.'=)
    (")_(")

  4. #4
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    that's the base point it will look for includes from

  5. #5
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    seems spot on Az. get that script working again stoo !

  6. #6
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro
    Gah, found the real problem..

    $_SERVER['DOCUMENT_ROOT'] points to /var/httpd

    the actual root is /home/www/hosts/www.stoo.org.uk/

    bah..

    will update after I've eaten something
    (\__/)
    (='.'=)
    (")_(")

  7. #7
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro
    Edit: that did the trick!
    (\__/)
    (='.'=)
    (")_(")

  8. #8
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    congrats.. nice gallery there

  9. #9
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro
    directory scanner plumbed in to a caching thumbnailer, all I have to do is upload the files and it update on the next page view

    The blog is quite nifty too, rss parser from my livejournal
    (\__/)
    (='.'=)
    (")_(")

  10. #10
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    self made blogs ? fun for all the family. I made one, but since I have no idea where I am hosting in the long term. there is no point in applying for a database account.

    I was driving myself mad trying to protect against sql injects. just a strip tags remove some other stuff operation in the end. But for some reason I cannot get php sessions working. The code I have is from certain tutorials, and should work. If I can't get that sorted I will obviously start a thread for it !

  11. #11
    Registered+
    Join Date
    Jun 2004
    Posts
    31
    Thanks
    0
    Thanked
    0 times in 0 posts
    Quote Originally Posted by killgORE
    I was driving myself mad trying to protect against sql injects. just a strip tags remove some other stuff operation in the end. But for some reason I cannot get php sessions working. The code I have is from certain tutorials, and should work. If I can't get that sorted I will obviously start a thread for it !
    addslashes() when adding user-definable untested strings to SQL (otherwise, just typecast)
    htmlspecialchars() (iirc ) when outputting text - itll work anywhere, even in attributes, by escaping quotes and angle brackets.

    Sessions have also been a pain for me in the past, and it was always something dead obvious. My advice is that you stick with $_SESSION['varname'] type session-wide variables, and just call session_start() at the top of every page - that way you needn't worry about session_register and all that lardy dah

    HTH!

  12. #12
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    cheers.. its all up.. still waiting for my future hosting ! but I have the most secure website ever. Since it is beind a massive firewall.. and only accessible by my ip ! just try and get at it... expect to hear from me when it finally goes live so people can try and hack it !

  13. #13
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    IP addresses are easy to spoof so don't rely on them as a security measure

  14. #14
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    aha.. somebody lost my point. To get access to my webpage with the scripts.. you have to somehow connect yourself to my local network... THEN spoof my ip. NOBODY can see the version with the scripts right now. Unless you come in in the night with a laptop and disconnect one of my other computers. I think i would notice because the router is under my bed.

    Take it easy.

  15. #15
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post
    Quote Originally Posted by killgORE
    aha.. somebody lost my point. To get access to my webpage with the scripts.. you have to somehow connect yourself to my local network... THEN spoof my ip. NOBODY can see the version with the scripts right now. Unless you come in in the night with a laptop and disconnect one of my other computers. I think i would notice because the router is under my bed.

    Take it easy.
    How can he lose your point when you didn't make the point in your original post? All you said was that it was controlled by IP, and Az was simply pointing out that you shouldn't rely on that as a method of securing your website.

    It's not a competition.

  16. #16
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    crud.. I thought I had pointed out where it was running earlier in this thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •