WickedFire - Affiliate Marketing Forum - Internet Marketing Webmaster SEO Forum

Go Back   WickedFire - Affiliate Marketing Forum - Internet Marketing Webmaster SEO Forum > Free Section > Newbie Questions

Newbie Questions New to the whole making money online and developing your own sites thing? Post your questions here so that seasoned members can answer your questions. Please keep your questions out of the other categories. We know you're a newbie, but there's no reason to be annoying.


Welcome to the WickedFire - Affiliate Marketing Forum - Internet Marketing Webmaster SEO Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Reply
 
LinkBack Thread Tools Display Modes
Old 11-19-2009, 05:45 PM   #1 (permalink)
Senior Member
 
nld2756's Avatar
 
Join Date: Nov 2009
Posts: 182
iTrader: 0 / 0%
nld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond repute
Question simple php header redirect

I have a shared hosting account over @ justhost (what a shitty host) with a top level domain for my account and a few other addon domains on my hosting account. I tried using my top level account domain as a domain to header redirect for a facebook campaign, so i deleted the previous install of wordpress on the domain, got rid of the SQL databases, and deleted the fantastico information as well as all of the wordpress files.

this is what i get when i go to my site:

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/passive1/public_html/index.php on line 17

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/passive1/public_html/index.php on line 17

Fatal error: require() [function.require]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/passive1/public_html/index.php on line 17

does anyone know what i can do to fix this? +rep to any help, thanks
nld2756 is offline   Reply With Quote
Old 11-19-2009, 05:52 PM   #2 (permalink)
instant automation
 
SpamHat's Avatar
 
Join Date: Apr 2009
Location: UK
Posts: 504
iTrader: 7 / 100%
SpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond repute
Well to uninstall a fantastico install you should do it through fantastico, but that's not essential.

The error messages mean that index.php IS being found. FTP into your account and double check all the files are gone. Once you delete index.php it should work.

Also try the file manager from within cpanel to checkout if any files are there, and delete if they are.

Apart from that, assuming your browser isn't caching an old response from the server - dunno
SpamHat is offline   Reply With Quote
Old 11-19-2009, 05:55 PM   #3 (permalink)
Senior Member
 
nld2756's Avatar
 
Join Date: Nov 2009
Posts: 182
iTrader: 0 / 0%
nld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond repute
Quote:
Originally Posted by SpamHat View Post
Well to uninstall a fantastico install you should do it through fantastico, but that's not essential.

The error messages mean that index.php IS being found. FTP into your account and double check all the files are gone. Once you delete index.php it should work.

Also try the file manager from within cpanel to checkout if any files are there, and delete if they are.

Apart from that, assuming your browser isn't caching an old response from the server - dunno
well, there is an index.php. but its being used for the header redirect not for wordpress. I deleted cache and used other browers/computers.

.htaccess, errorlog, and index.php are the only files left
nld2756 is offline   Reply With Quote
Old 11-19-2009, 06:01 PM   #4 (permalink)
Senior Member
 
nld2756's Avatar
 
Join Date: Nov 2009
Posts: 182
iTrader: 0 / 0%
nld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond repute
Alright, well when i was testing it yesterday the original index.php acidentally got uploaded when i was trying to fix it. so i just replaced it with the actually index.php redirect and i get this original error again


Parse error: syntax error, unexpected $end in /home/passive1/public_html/index.php on line 4

and this is whats in the index.php

<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.affiliatelink.com );
?>
nld2756 is offline   Reply With Quote
Old 11-19-2009, 06:06 PM   #5 (permalink)
instant automation
 
SpamHat's Avatar
 
Join Date: Apr 2009
Location: UK
Posts: 504
iTrader: 7 / 100%
SpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond reputeSpamHat has a reputation beyond repute
C'mon - you're just being lazy now

You're missing the end quote before the close bracket on line 3.

Also add an exit; after the last header line to guarantee an exit - I've heard there are cases when the script doesn't end when you just use header()

SpamHat is offline   Reply With Quote
Old 11-19-2009, 06:09 PM   #6 (permalink)
Senior Member
 
nld2756's Avatar
 
Join Date: Nov 2009
Posts: 182
iTrader: 0 / 0%
nld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond reputenld2756 has a reputation beyond repute
alright, i see the php wasnt formated correctly, thanks for your help

EDIT: beat me to it :O
nld2756 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Header Redesign DBWebDev Sell, Buy & Trade 18 11-15-2008 09:37 AM
php header redirect question? Lickity_Split Design, Development & Programming 4 11-08-2008 04:22 AM
Passing a subid to the merchant within a PHP redirect ImagesAndWords Affiliate Marketing 27 01-30-2008 08:32 AM
php Session Variables in Header Redirect not working Jondoe0069 Design, Development & Programming 7 11-16-2007 02:28 AM
Affliate Link Cloaking Tutorial Kfleming Affiliate Marketing 39 05-12-2007 07:40 PM


All times are GMT -4. The time now is 12:23 PM.


WickedFire.com Copyright © 2012 - WickedFire is an international registered Trademark of Coastal Synergy LLC. You may not use any of our trademarks, copyrights, content, or images without a written approval by members of Coastal Synergy LLC.

Search Engine Optimization by vBSEO 3.6.0