Affilorama Birthday
Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

Problems creating redirects: parse error

PremiumMember
ukruch
Posts: 11
Joined: 01 Feb 10
Trust:

Problems creating redirects: parse error

Hey

so I was following along a video in Affiloblueprint for redirects and I got this error


Parse error: syntax error, unexpected ':' in /home/ruchivas/public_html/trainingdogobedience.com/dogfoodsecrets/index.php on line 2


this is what is in the notepad file

<?php
header( ‘Location: http://7a1a0n72qv2l2u11y049dgng73.hop.clickbank.net/’ );
?>


what am I doing wrong? please help
  • 0
Site Admin
michellerana
Posts: 2372
Joined: 05 May 09
Trust:
You usually get a parsing error if your content was pasted directly from Word. Copy and paste it into Notepad first so that the formatting characters will be removed. Then transfer the content from Notepad to your web page.

If this doesn't work, try deleting the page and re-adding, and paste the plain text from Notepad.
  • 0
Michelle
Customer Support


=========================

Want a step-by-step training program in affiliate marketing? Affiloblueprint is a "hand-holding" course that will will show you how to build a site, drive traffic to it, and monetize it.

Go to this link to start building your profitable affiliate sites now!
www.affilorama.com/affiloblueprint
 
plutonium
Posts: 46
Joined: 24 Nov 09
Trust:
Hi ukruch,

try to use " instead of '
This should solve your problem.

Regards,
Waldemar
  • 0
Site Admin
michellerana
Posts: 2372
Joined: 05 May 09
Trust:
Yes, you could try to put the location string in double quotes, just as Waldemar said.
  • 0
Michelle
Customer Support


=========================

Want a step-by-step training program in affiliate marketing? Affiloblueprint is a "hand-holding" course that will will show you how to build a site, drive traffic to it, and monetize it.

Go to this link to start building your profitable affiliate sites now!
www.affilorama.com/affiloblueprint
 
Site Admin
aletta
Posts: 3719
Joined: 09 Jul 06
Trust:
Actually I got this error just the other day, and it's the curliness of the quotes, rather than whether they're single or double.

If you just type that out yourself in Notepad (instead of copying/pasting) you'll get straight quotes, and it'll work ;)
  • 0
Are your changes not showing up on your website? Try doing a hard refresh! http://www.refreshyourcache.com/en/cache/
 

This topic was started on Feb 17, 2010 and has been closed due to inactivity. If you want to discuss this topic further, please create a new forum topic.