php issues

  • oskillzzo
  • Beginner
  • Beginner
  • oskillzzo
  • Posts: 50

Post 3+ Months Ago

i recently moved hosts and the domain name registrar transfered today. I started uploading files but when i tried to look at a page, im getting 302 errors for my php includes saying the document has moved here with the link pointing to my old host's suspended page. why is this happening?

Heres what one of my php includes look like

Code: [ Select ]
<?php include("http://www.onlygoodanimes.com/layout/header.php");?>



And here is a example of what im talking about with one of my pages.

http://www.onlygoodanimes.com/movies/adolescenceofutena/adolescenceofutenap1.php
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

Its happening because your using full domain paths in your include url's instead of relative paths from the page. Likely in the move something happened and the absolute paths no longer work.

I would use ../layout/header.php (or what ever the path should be) instead of http://yourdomain/layout/header... etc

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 79 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.