/    Sign up×
Community /Pin to ProfileBookmark

Why does an apostrophe in <title>it’s</title> create a parsing problem?

This would happen to me while using the stock code editor with GoDaddy.

My website has an apostrophe in the name and when I put that in between the <title></title> tags, every piece of code after that apostrophe is interpreted the same eg. highlighted blue.

I also have this interesting problem where every page with a .php ending is downloaded automatically instead of executed/shown.

Any thoughts?

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@Stephen_PhilbinDec 14.2014 — Not entirely sure aout your first problem. Do uou use appostrophes to quote attributes af elements before your title? Maybe you missed one off something in your markup before the title element.

The second problem will be a server misconfiguration. You'll probaby just need to ask GoDaddy to enable PHP for you. I've never used GoDaddy for hosting so I don't know what will be happening there exactly. It might just be that they have the server set to process all .html files as PHP. Try sticking [code=php]<?php echo 'Hello'; ?>[/code] in a file with a name ending in .html and do view->source on the page in your browser. If the output just says Hello and you don't see the PHP tags, then your server is processing all .html files as php and you'll probably need to rename all your files to have a .html extension.

Like I said though, I've never used GoDaddy for hosting so I'm just guessing. Hopefully someone that has used them will reply soon. ?
Copy linkTweet thisAlerts:
@GreenAce92authorDec 14.2014 — yeah it's been a hell of a ride with GoDaddy, I would say that things are set up "half-way" to prey on people's inabilities but... that's just my observation ha

I had to enable mysqli to get basic functions to work and I think it is still not configured correctly because when I use .php tags sometimes I get this problem where every single webpage downloads...

Anyway, if I do stricly php in a .php file, they work. If I do a .php with html, the php code is shown on the document.

Which sucks, but it's not always the case... if I do something simple like <?php echo "string"; ?> that works fine (not sure if the semi colon is necessary)

If you want to see what I'm talking about see this part of my social media site

http://www.dn2d8.com/create-new-account.html
Copy linkTweet thisAlerts:
@GreenAce92authorDec 14.2014 — What is supposed to happen is that the data entered in the previous page is echoed and using the gender determination / recall a certain color is triggered (pretty sexist haha, pink for girls, blue for guys)
Copy linkTweet thisAlerts:
@tracknutDec 14.2014 — That create-new-account page is a .html file, which, by default, is not sent to the php processor, regardless of who's hosting you're using. Have you set something in the .htaccess file to tell it to process .html as if it were .php? Or perhaps you just didn't know you normally name php files something.php
×

Success!

Help @GreenAce92 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...