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: 1874
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
=========================

Limited time special - Pathway to Passive for $37: http://www.affilorama.com/pathwaytopassive
 
Site Admin
michellerana
Posts: 1874
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
=========================

Limited time special - Pathway to Passive for $37: http://www.affilorama.com/pathwaytopassive
 
Site Admin
aletta
Posts: 3392
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.

cron