Sunday, March 28, 2010

PROBLEMS: I Need help!

Hi everyone.

I have a BIG problem and I'm hoping that someone can help me out...

I joined up with 000webhost.com as they provide both MySQL and PHP services, however the host appends some analytical code to all of my HTML pages, and this code returns errors when I validate my XHTML through w3c.org.

What can I do? Does anyone have a solution?

To make matters worse, my previous web host (www.50webs.com) have just gone through a big upgrade and now I don't have FTP access to my site. So, one web host I can't access using FTP and the other appends garbage at the end of and outside of my HTML.

We're supposed to not have any errors returned when to page is validated, but through no fault of my own I now have the risk of being penalised because someone else is writing unwanted analytical code to my HTML documents.


Please, can anyone help me with the problem???

Thanks in advance.

7 comments:

  1. Hi Carl,

    Sorry, I don't have an answer to the extra unwanted code. But I have a suggestion: you can use UTS server for the learning proposal, quick and easy with no unwanted code.

    Zahra.

    ReplyDelete
  2. This was an announcement on UTS online:

    Mon, Mar 29, 2010 -- Final learning proposals
    Hi all,

    There is now a forum in UTSonline for you to post a link to your final learning proposal. Please make this an active hyperlink (use Firefox if you don't otherwise see the HYPERLINK icon in the UTSonline toolbar).

    For those of you with validation problems due to 000webhost inserting Google Analytics code after the /html (instead of in the head where it belongs), your classmate Claire O'Rourke has found the solution:


    http://members.000webhost.com/analytics.php

    The forum description includes a reminder of what's expected in this assignment. I hope you've all found a project that will engage you and meet the learning needs that you've identified for yourselves.

    Remember to watch the online lecture for this week. I look forward to seeing you in class on Tuesday.

    Regards,

    V.


    Hope it works for you! Good luck!
    I have my own problems- it won't even check my code- any suggestions?
    http://www.tracyr.comlu.com/LearningProposal-template.html

    ReplyDelete
  3. Thanks for your help Zahra and Tracy.

    I got the solution from members.000webhost.com.analytics.php and it works - thank goodness!

    For your problem Tracy, there are a few. First of all in your DOCTYPE you have declared that you are using XHTML 1.0 STRICT, and there is nothing wrong with that, however you are using non-strict rules. The old 'name' attribute has been replaced with the 'id' attribute, and the 'target' attribute has been deprecated. Also, I notice that you are using an upper-case 'A' for your anchor tags, they should be lower-case although that probably doesn't really matter.
    At the end of your HTML document, where you have all your links, it appears as though you have not used the correct quotations around the target value - but you will need to delete the target altogether anyway if you continue to use the XHTML 1.0 STRICT DTD.

    validator.w3.org returned that you have an error on line 150, however that does not mean that the error is actually on that line. I recommend making the changes that I suggested and see if it validates (or at least returns something useful for you).

    Let me know how you go Tracy.


    Carl

    P.S. BIG thanks to Clair for finding the solution to the analytics code in 000webhost.com

    ReplyDelete
  4. Hey Carl - on another note you mentioned you wanted to use MAMP at home on your Mac. I noticed Fendy is using it so that he can develop his site in a local environment. You may want to have a chat to him about it in class tomorrow.

    http://sixbysixpixels.wordpress.com/2010/03/27/week-4/

    ReplyDelete
  5. Thanks Oanh, I'll try to do that (chat the Fendy that is)

    ReplyDelete
  6. It's been a while since my last blog. I have to say that I am finding it very difficult to find the time and energy to focus on my Digital Media Technologies project.

    I've been trying to make my iMac function as a server so that I can practice my PHP at home without having to upload to a web server all the time but I keep having problems (so it seems) with configuring. These problems are due to my own lack of knowledge, but gees it's frustrating as all hell because these configuration issues are detracting me from what I really need to do and that's to do my PHP and MySQL project.

    I'm getting anxious now :-(

    ReplyDelete
  7. Just to update what has been going on since my last blog post, I have been able to set up my iMac to run Apache. I am now able to right and test my PHP on my local machine, this is great because it saves me a boat load of time. If I had to use my web host to do all this learning and practicing, it would take for ever and would be harder to debug. Having everything local is so much easier.

    I'm using Lynda.com to help myself learn PHP and MySQL. I'm rushing through the chapters of the following resource: PHP with MySQL Essential Training by Kevin Skoglund.

    I'm finding the resource very helpful. That said, I can't remember off the top of my head how to "do" particular things, but what I am learning is what can be done and how to find the answers that I need to achieve it. Soon, I'll be learning how to use PHP and MySQL together.

    I'm looking forward to it.

    ReplyDelete