Archive for the ‘R-ticles’ Category

W3C strict validation and session_start() input hidden issue - not passing

Monday, June 30th, 2008

Couple of days ago, I’ve finished building a new website of mine for Design to XHTML service. One of the things needed for a such a project is having the page(s) passed W3C Strict Validation.
Everything was cool except for the phantom hidden input field that was holding PHPSESSID value. The problematic input field was positioned right after the <form> tag, and you can’t have that if you want to pass W3C strict. You have to enclose that field with a <p> or a <div>.
I’ve installed a JQuery SWFUpload for easy & user friendly upload experience, so I thought that script might be the one causing trouble. I’ve spent an hour running through lines and lines of code and couldn’t find nothing relating to my problem.
Since that was the only exotic part of code I was inserting, I turned over to session_start() as my primary suspect. I’ve stripped everything from the page, left only the form and the session_start() function call. Uploaded, W3C verified and that was it! For some reason session_start() invoked another hidden field in my form that didn’t render in my Firefox or Safari, but only in W3C. Knowing that, the only solution was simple:

if(!strstr(”$HTTP_USER_AGENT”, “Validator”)) {
session_start();
}

All I can say is I hope this saves somebody an hour of his life.

Technorati Tags: , , , , , ,

Bookmark this article! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • blogmarks
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • BlinkList
  • Furl
  • IndianPad
  • LinkaGoGo
  • Ma.gnolia

Google sites is so cool

Saturday, April 5th, 2008

Couple of days ago I’ve came to a conclusion that I definitely need some sort of intranet, a way to track all of my projects and share project specs with my future employees.

One way to do it was to set up a protected wiki.

The other way is so much better: Google sites.

Not only that you can write pages in an easy way as you would in wiki pages, but you can easily integrate all google documents that you use: spreadsheets, presentations, graphs and so on. There are ready made templates that are basically good to show you all the various possibilities, but the best thing is easy sharing of documents, and document access, as well as read/write setting for each individual user.

I was able to create project specs pages and progress statistics for one of my bigger project just in this afternoon, in a couple of hours. The interface ‘feels like home’, and there’s nothing to stop you in using Google Sites right away. So I warmly recommend it!

Technorati Tags: , ,

Bookmark this article! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • blogmarks
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • BlinkList
  • Furl
  • IndianPad
  • LinkaGoGo
  • Ma.gnolia

Top 5 reasons for failure in Internet Marketing

Friday, January 11th, 2008

A lots of people are attracted to Internet Marketing, but majority fails. So here are the top 5 reasons for failure in Internet Marketing:

1. No cash reserves

    Although this may seem obvious, it’s often neglected. You can not start a new business and expect to make profits immediately. You have to prepare for a struggle that may last for couple of months, maybe even a year! So besides patience, money is your best weapon to win that battle against time.

2. A will of clay

    Even though your Internet Marketing guru promised you, you will not make a fortune right away. Your enthusiasm will wear down as you find more and more obstacles, and to succeed you must have a will of steel, not of clay.

3. Insufficient knowledge

    Not a major stopper, but often a lack of technical knowledge can slow you down. You may not be able to perform simple online programming tasks, so you’ll waste your time trying to find a cheap programmer. After a while you will wish to know more, so you may be dazzled by vastness of things you need to learn. But don’t be a programmer - be a Marketer. Find the right proportion where technical and marketing knowledge meet and cooperate best.

4. Family problems
   
    You may find it difficult to explain to your wife or other members of your family what it is exactly that your trying to do with Internet Marketing. Make money off course, but it’s hard to visualize to others the short and thorny way to making big bucks on the internet. It will most likely seem like rubbish to them, so buy their patience buy explaining your plan the best you can.

5. Poor networking

    You can’t do it yourself. Period. You may do OK to some extent, but most successful Marketers are one with best connections in Internet Marketing Business. Not only they have needed help, but also are aware of current trends and cool ideas. They will potentialy learn more in a casual 30 minute chat with a Internet Marketer then you will in a 6 hrs browsing session. Network!

Technorati Tags: , , ,

Powered by ScribeFire.

Bookmark this article! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • blogmarks
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • BlinkList
  • Furl
  • IndianPad
  • LinkaGoGo
  • Ma.gnolia