Everybody come check out my new site Design InLine. With this site I'm entering into web-designing. I want all your support in this.
A little work is still remaining, but the overall site is complete. I want all your reviews on it.
Sunday, January 9, 2011
Tuesday, January 4, 2011
PHP Template v 2.0
Earlier I posted a tutorial on making PHP Template (which I didn't made, but perfected it).
I had posted a link to my free site where I had written it in detail. But due to some reasons I had 2 remove it. As I have made the script even better I M giving a small tutorial here.
For starters, in a PHP tutorial a single file is used as template in which content from other files is pulled in. So when you want 2 edit a menu item which is present in all D pages U have 2 just edit the template file and upload it. Also you don't have to add any HTML codes inside the content files other than those which will be inside D <body> </body> tags.
First create your Template file and name it as index.php. Put all the links and other things that U want in it then in the area where U want 2 put the content after menus and before footer paste this code.
<?php
$common = 'page1'; // Home Page
$page = isset($_GET['p']) ? $_GET['p'] : $common;
$page = basename($page);
$default = 'main'; // Home Folder (you must place all the content files in a folder)
$directory = isset($_GET['dir']) ? $_GET['dir'] : $default;
$directory = basename($directory);
if (!file_exists($directory.'/'.$page.'.php')) {
$page = '404';
$directory = 'main';
}
include($directory.'/'.$page.'.php');
?>
Save it and U are done.
For the links U have 2 make some changes. As D script checks for folder & file U have 2 write links like this.
Instead of <a href="folder/page.php">Link</a>
Write <a href="?dir=folder&p=page">Link</a>
I had posted a link to my free site where I had written it in detail. But due to some reasons I had 2 remove it. As I have made the script even better I M giving a small tutorial here.
For starters, in a PHP tutorial a single file is used as template in which content from other files is pulled in. So when you want 2 edit a menu item which is present in all D pages U have 2 just edit the template file and upload it. Also you don't have to add any HTML codes inside the content files other than those which will be inside D <body> </body> tags.
First create your Template file and name it as index.php. Put all the links and other things that U want in it then in the area where U want 2 put the content after menus and before footer paste this code.
<?php
$common = 'page1'; // Home Page
$page = isset($_GET['p']) ? $_GET['p'] : $common;
$page = basename($page);
$default = 'main'; // Home Folder (you must place all the content files in a folder)
$directory = isset($_GET['dir']) ? $_GET['dir'] : $default;
$directory = basename($directory);
if (!file_exists($directory.'/'.$page.'.php')) {
$page = '404';
$directory = 'main';
}
include($directory.'/'.$page.'.php');
?>
Save it and U are done.
For the links U have 2 make some changes. As D script checks for folder & file U have 2 write links like this.
Instead of <a href="folder/page.php">Link</a>
Write <a href="?dir=folder&p=page">Link</a>
Sunday, January 2, 2011
How to start a business with no money
Many people want to start businesses but don't have the money. However many businesses, including some world wide ones, have been started by dedicated entrepreneurs with empty pockets. The trick is to specialize in a service or product that you're good at, you love to do, and then start growing one order at a time.
1) Car washing (portable) for office buildings
2) Computer assembling and repair.
3) Computer programming (Think Bill Gates)
4) Event planner (parties and events)
5) Freelance writing for media (Many people make $$$$ just blogging)
6) Gift baskets (One sale to start can become a Harry and David)
7) Handyman services (consider focusing on a specialty)
8) Hobbies can become businesses: cookies, decorated cake, etc.
9) Holiday decorating for homes and businesses.
10) House cleaning.
11) Photographer (weddings, parties or businesses)
12) Portable food cart (your own specialty)
13) Remodeling (specialized)
14) Resume/document writer.
15) Sports coach (tennis, basketball, baseball, etc.)
16) Teaching/tutoring: computer, musical instruments, languages, etc.(If you are good at something, never do it for free)
17) Website design and management.
1) Car washing (portable) for office buildings
2) Computer assembling and repair.
3) Computer programming (Think Bill Gates)
4) Event planner (parties and events)
5) Freelance writing for media (Many people make $$$$ just blogging)
6) Gift baskets (One sale to start can become a Harry and David)
7) Handyman services (consider focusing on a specialty)
8) Hobbies can become businesses: cookies, decorated cake, etc.
9) Holiday decorating for homes and businesses.
10) House cleaning.
11) Photographer (weddings, parties or businesses)
12) Portable food cart (your own specialty)
13) Remodeling (specialized)
14) Resume/document writer.
15) Sports coach (tennis, basketball, baseball, etc.)
16) Teaching/tutoring: computer, musical instruments, languages, etc.(If you are good at something, never do it for free)
17) Website design and management.
Sunday, December 26, 2010
Saturday, December 25, 2010
Subscribe to:
Posts (Atom)