php issues

  • oskillzzo
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Jul 04, 2008
  • Posts: 50
  • Status: Offline

Post February 19th, 2009, 3:31 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 19th, 2009, 3:31 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post February 20th, 2009, 12:16 pm

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
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 198 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.