5 Tips To Make Your Website Work

ideas


5 Tips To Make Your Website Work

1. If you’re on a shared hosting and you need to modify some of the PHP’s core settings that can only be modified in the php.ini file like disable_functions, register_globals, magic_quotes_gpc, magic_quotes_runtime etc, and your web host doesn’t allow you to modify the php.ini file, then you can overcome that inconvenience by creating your own php.ini file and place it into your cgi-bin directory located under your website root. It will override the default php.ini file set by your web host. As an alternative, you can set these values in your .htaccess file if you’re more comfortable with that.

2. Make MySQL works on a Windows PC. Copy the php_mysql.dll file from the ext directory into the PHP directory. Then select and copy the libmysql.dll and the php_mysql.dll files from the PHP directory and paste them into Windows and Windos/System32 directories. Restart your PC after that. If you still can’t connect to the database server after the restart then reinstall PHP and try to select only the extensions that you need from the installer, it seems that some etensions have dependensies that are not automatically included that cause this kind of problems.

3. Always remember to set the following rules:

    overflow: hidden;
    min-height: 1px;
    display: block;

to a container that has one or more floated elements inside.

Example:

<div id"parent">
    <div style="float: left;"></div>
    <div style="float: left;"></div>
</div>

4. Having a hard time centering your content layout? Applying the following rules to it:

    width: /* width here */;
    margin: 0 auto;

will center it; unless you made it float.

5. Have nice lists. Lists have a nice property called: list-style-position that can take one of these to values: inside or outside. By having:

    UL, OL { list-style-position: outside; }

will make your list item’s content look more organized and prettier.

Hope these help someone!

Costin Trifan
Costin Trifan is a 32 years old web developer from Romania. He currently finds PHP more interesting than any other thing in his life and spends way too much time in front of his PC creating websites and scripts like the IrisMVC framework in the hope they’ll help other people just as much as they help him.

You can easily reach him via his blog, or through social media such as Twitter or in the coding section of the v7n forums (most likely).


  1. CricketCricket03-17-2011

    Great tips as always! I am learning so much from you!

    • koskos03-17-2011

      you are too kind, ma’am!

      Thank you very much!

      XO

  2. S EmersonS Emerson03-17-2011

    Great tips Costin!

    I have never had a problem installing MySQL locally (use WAMPServer) but will note your tips if ever it becomes a problem.

  3. koskos03-17-2011

    I did, because I didn’t use any of the WAMP servers so every time I had to reinstall the OS I had to do this over and over again :(

    Sometimes I’m so angry @ MS… ughh!

  4. DerekDerek03-18-2011

    Very good tips. Have no use right now for them but i’m sure i will in the future. :)

  5. J. HarperJ. Harper09-11-2011

    I have been in the field long enough to know that all the tips you have mentioned are highly useful as I myself have been stuck in these situations. Thanks for sharing.

Leave a Reply