PHP Research And Development

Sharing PHP Script, PHP News, Download web application, web tutorial, Learning PHP and more

Selecting the Best Web Design Language for Your Project  

If you'd like to create and publish your own web site
on the Internet, your first step should be to decide what type of web
site you would like to create and what web design language you would
like to use.

Although there are several web design languages to
choose from, make sure you take some time to research your options to
ensure you're making the best choice for your project.

Hypertext Markup Language (HTML)

The
easiest and most popular web design language is Hypertext Markup
Language, better known as HTML. This language is so simple you can type
the syntax into a text editor, such as Notepad, save it with an .html
extension and instantly have a web page.

You can learn more about HTML here:
http://www.w3schools.com/html/

Although
HTML will enable you to create simple web sites, if you want something
more dynamic, you'll need to look into using other languages:

PHP: Hypertext Preprocessor (PHP)

PHP:
Hypertext Preprocessor, better known as PHP, is a highly popular,
server-side scripting language that can be embedded directly into HTML
coding.

PHP can do anything that CGI (Common Gateway Interface)
can do, such as process form data and auto generate dynamic content.
However, PHP can do much more. It can be used on all major operating
systems and supports most web servers.

PHP's main focus is
development for the web, so it has a quick development time and can
solve scenarios much quicker than some of the other web design
languages.

You can learn more about PHP: Hypertext Preprocessor here:
http://www.php.net/

ColdFusion

ColdFusion,
developed by Macromedia, is used to build and serve web pages. It
consists of ColdFusion Studio, which is used to create web pages, and
ColdFusion Server, which is used to display the web pages.

One of the best features of ColdFusion is the ability to create web pages 'on the fly' from content stored within a database.

For
example, a variety of content can be placed within a database as
'pieces of content.' When a user types in the web address to retrieve
the web page, ColdFusion dynamically develops the pages, from the
'pieces of content,' as they are served.

Although it is very
reliable, ColdFusion may be better suited for larger companies rather
than individuals, as it is fairly expensive.

You can learn more about ColdFusion here:
http://macromedia.com/support/coldfusion/tutorial_index.html

Java Server Pages (JSP)

Java
Server Pages, also known as JSP, is a web design language developed by
Sun Microsystems. It is used to control web page content via servlets,
which are little programs that run on a web server. These servlets
modify the web page on the server prior to it being displayed within a
web browser.

The JSP technology enables you to combine regular, static HTML with dynamically generated HTML.

You can learn more about Java Server Pages here:
http://java.sun.com/products/jsp/docs.html

Active Server Pages (ASP)

Active Server Pages, also known as ASP, is Microsoft's solution to dynamic, interactive web pages.

Active
Server Pages are web pages that contain scripts in addition to the
standard HTML tags. These scripts are processed prior to a web page
being displayed within a web browser.

Unlike standard HTML pages that have an .html or .htm extension, Active Server Pages have an .asp extension.

An
advantage of ASP is that it is language-independent and therefore is
easy to use across all platforms and applications. It is very flexible
and powerful, yet some people don't like it merely because it is a
Microsoft product.

You can learn more about Active Server Pages here:
http://msdn.microsoft.com/library/en-us/dnasp/html/asptutorial.asp

Conclusion

With
so many different web design languages to choose from, which is the
best language for your project? That will depend on your web site needs
and how much time and/or money you're willing to invest.

If you
want a simple web site with text and images, HTML is definitely the way
to go. Not only is it easy to learn, but there are also many HTML
editors available online that will write the code for you.

Although
HTML is usually the right choice for most, if you'd like your web site
to be dynamic, you will need to research some of the other languages
until you find the best solution for your project.

Take your time
and do your homework before you begin. If you don't feel confident in
your ability to create your own web site, hire a professional. It will
save you a lot of time and trouble in the long run.

Copyright © Shelley Lowery 2005

Shelley
Lowery is the publisher of Etips. To receive your free subscription
& a copy of Shelley's popular ebooks, 'Killer Internet Marketing
Strategies,' and 'Work from Home: A Complete Guide to Developing a
Successful Internet Business from Home,' send an email to etips_publication@web-source.net or visit http://www.web-source.net.

Shelley is the author of the acclaimed web design course, Web Design Mastery. http://www.webdesignmastery.com. Visit the Web Design Mastery site to download your free chapters (77 pages)!

And,
eBook Starter - Give your ebooks the look and feel of a real book,
notebook, manual or report. Visit eBook Starter to download your free,
fully functional demo today. http://www.eBookStarter.com

Read More...
AddThis Social Bookmark Button

Step By Step: Add Image Validation To Your Website Form  

If you are a do-it-yourself programmer and you want
to know how to add image validation to a form on your web site then
this is the article for you. While there are many ways to do this, if
you follow these steps, you will learn the easiest way to get the job
done. Once you have mastered the example here, you will have all the
concepts and experience you need to incorporate the final product into
your form on your website.

We will need two files. The first file
will create the validation image and incorporate the image in a
validation form. Here is the step-by-step code for the first file:
verify.php

---BEGINNING OF FILE: VERIFY.PHP---

< ?php

// Create an image where width=200 pixels and height=40 pixels

$val_img = imagecreate(200, 40);

// Allocate 2 colors to the image

$white = imagecolorallocate($val_img, 255, 255, 255);

$black = imagecolorallocate($val_img, 0, 0, 0);

// Create a seed to generate a random number

srand((double)microtime()*1000000);

// Run the random number seed through the MD5 function

$seed_string = md5(rand(0,9999));

// Chop the random string down to 5 characters

// This is the validation code we will use

$val_string = substr($seed_string, 17, 5);

// Set the background of the image to black

imagefill($val_img, 0, 0, $black);

// Print the validation code on the image in white

imagestring($val_img, 4, 96, 19, $val_string, $white);

// Write the image file to the current directory

imagejpeg($val_img, "verify.jpg");

imagedestroy($val_img);

? >

< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd" >

< html >

< head >

< meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >

< title >Image Verification< /title >

< /head >

< body >

< img src="verify.jpg" height="40" width="200" alt="validation image" / >

< br / >< br / >Type in the validation code from the image. (case sensitive)

< form action="validateform.php" method="post" >

< input name="random" type="text" value="" >

< input type="submit" >

< !-- The validation code will be posted from a hidden form element -- >

< input name="validation" type="hidden" value="< ?php echo $val_string ? >" >

< /form >

< /body >

< /html >

---END OF FILE: VERIFY.PHP---

Now we will create a file that will perform the validation using the POST method:

---BEGINNING OF FILE: VALIDATEFORM.PHP---

< ?php

if ($_POST['validation'] == trim($_POST['random'])){

echo "You are validated";

}

else{

echo "Please go back and get validated.";

}

? >

---END OF FILE: VALIDATEFORM.PHP---

IMPORTANT
NOTE: Because many free article websites don’t support HTML in the body
of the article the files above won’t work unless you eliminate the
space after < and before >. Just do a find and replace all.

That
is really all there is to it. You probably noticed that I also went to
the trouble of including the DOCTYPE and charset lines in this simple
example. I did this as a little reminder to make sure that all of your
pages on your website are W3C compliant. One of the biggest mistakes
that many webmasters make is to neglect W3C compliance on their web
pages. If your web pages are not W3C compliant you will get low search
engine rankings. Even worse, if you are advertising, your ads may not
be as relevant as they should be! In my other article, I explain W3C
compliance
and the most common mistakes.

Copyright 2006 David Picella

Original article and source code for download are available at http://picella.com
--The author, David Picella, is a PhD Student at the University of
Wisconsin Milwaukee. In addition to his technical articles on
technology and Internet subjects, he has written other articles on
health care topics in women's health and reproductive care.

Read More...
AddThis Social Bookmark Button

Switching Web Host  

Moving a web site to a new host is not as difficult
as you may think. If you follow the tips below carefully you should be
fine and have your site up in no time at all.

First Off:

Do
not get over excited when you see an extremely cheap hosting plan, look
carefully at what the plan they provide and always read the terms and
conditions for tricks or hidden fees. Define your own requirements
before hand and look for a hosting plan that match closest to your soon
to be old web host. A 24/7 support with phone support is a must! Try to
find a host that uses the same operating system as your existing host.
Get a web host that has a fast Internet connection and has fast servers
and good up time (95.3, 99.0, etc)

Scripts:

Make sure if
you use php, CGI, Perl or ASP that your new web host supports it. On
php make sure they support all the php functions you need and make sure
they have all the Perl Modules that you need to use or plan on using.
Many scripts need Mysql, so check to see if they support that as well.

Backup:

Backup
should be done regularly and not during any major change like moving
your site. Make sure you backup everything on your site or you risk
losing it all! Save all of your site's files on a disc or you could
signup for a data storage service and they will save it for you.

Testing:

You
need to be sure that your site is functioning before you cut off from
the current host. It's always a good idea to get someone else to test
out the new site, if you have more than one computer than use both
computers and have a friend to take a look at it too, if you can get
more than one person to test it do it. I would also suggest that you
test everything from links to images three or four times to make sure
things are fine.

Once all this is done you can switch your web
hosting and go live. For the next 48 hours check your site often as you
can because you never know what may brake or happen. If you do all the
above you should be fine and good to go live!

Matt Colyer began as a SEO Specialist in 1997. He founded Superior Webmaster in 2004 as a source of articles and tutorials for Web site owners looking to improve their Web site.

Read More...
AddThis Social Bookmark Button

Different Types of Web Hosting Explained  

There are many different types of web hosting
available. Which type one chooses should hinge upon what one wants to
accomplish with his or her web site. Some web hosting services are
free, but place ads on web sites. Whereas other web hosting types can
be more expensive, but provide a lot more assistance and bandwidth. The
four main web hosting types are free web hosting, shared web hosting,
and dedicated web hosting (both managed and unmanaged).

Free web
hosting is the simplest kind of web hosting that one can get. This type
of web hosting is usually supported by ads on hosted web sites.
Features for this type of web hosting are limited, and therefore it is
a better option for people who are just starting out on the Internet
and are interested in having a small site with little traffic. The type
of domain one receives in free web hosting is typically a subdomain
(yoursite.webhost.com) or a directory (www.webhost.com/~yoursite). Most
free web hosts do not have support for MySQL, multiple e-mail accounts,
and PHP.

Shared web hosting is actually the most popular type of
web hosting service. Shared web hosting allows more than one site to be
hosted on the same server. Additionally, the hosts provide system
administration. For users that do not want to have the burden of
running a sever, shared web hosting is a great choice. The individual
hosting plan may differ, but most hosts provide the user with elements
such as PHP, ASP, MySQL, more bandwidth, and multiple e-mail addresses.
More services are often available in shared web hosting than are
available with simple free web hosting (including the ability to have
your own domain name!).

The last two types of web hosting are
managed dedicated web hosting, and unmanaged dedicated web hosting.
Dedicated web hosting is a wise choice for someone who wants more
storage and bandwidth, and also wants features that are not available
with shared and free web hosting. In dedicated servers, users are not
limited to a certain number of databases and e-mail addresses.
Additionally, users usually receive a very high amount of bandwidth in
comparison to other hosting types. The typical dedicated server plan
provides the user with 500 to 1,000GB of monthly bandwidth.

In
unmanaged dedicated web hosting, the user is the server administrator.
This allows the user the greatest amount of control and flexibility. Of
course, many people do not know how to handle the task of being a
server administrator and do not want to learn. Therefore, this is not a
viable option for some.

When looking for a web host, it is
important to consider the purpose of the web site and what one’s
capabilities are. Pricing for web hosts is dependant upon the support,
reliability, features, and security one wants. Choosing a type of web
hosting may seem like a daunting task, but simply doing research and
making an educated decision should yield satisfaction and success on
this critical matter.

Paul Hanson recommends Net Explorers ( http://www.hosting-netexplorers.co.uk/ ) for quality UK hosting service

Read More...
AddThis Social Bookmark Button

The Importance Of CSS In Web 2.0  

There’s a lot of hype about CSS and for good reason.
CSS provides a fast, clean, efficient and very powerful method of
styling websites and so much more. CSS can be used for many different
aspects of the web including design and functionality.

Various
things CSS can be used for include, font styling, web page layouts,
expanding menus, roll over effects and so much more. All these things
mean CSS has pushed the web into a new era creating a smarter, more
efficient internet than we have ever seen before.

Dynamic content and CSS styling

Dynamic
webpage’s created using languages such as ASP and PHP work hand in hand
with CSS to provide easy to edit webpage’s. With multiple CSS files
including a master or main CSS file your dynamic code can be kept short
and sweet with far less filler code for you to sort through to make a
simple style change.

File Structures and CSS

If you have a
large scale website using separate CSS files per section your site will
be easy to maintain, update and edit. If you were to have four sections
to your site for example the home page, links page, help and a contact
us page. Your CSS file structure would look like this:

Master.css

This file would control things that are required on all the pages of
your site such as menus, footers, header, body attributes, head tags
and even the basic layout.

Home.css

The home.css file would be used to control content specific to the home
page its self such as the pages layout and specific attributes.

Links.css,
Help.css, Contact.css would be used to control attributes and the
layout of the files they control e.g. links.css would control the
relevant file such as links.php.

So to sum up CSS is a fantastic
web
language and the future of the web itself. Learning CSS can be
challenging if you have no web experience however if you have already
used web based languages before than CSS can be a fun and fulfilling
language to learn with many practical uses on the web today.

Ashley Peach's websites include dog toys, dog beds and dog training equipment.

Read More...
AddThis Social Bookmark Button

Sending Email with PHP  

A Contact Us page with a HTML form to contact the
webmaster adds a nice personal touch to any website. Users feel
"connected" to the owner and it makes them seems more down-to-earth.

PHP
comes with a handy function called, would you believe it, mail(). Here
you will learn how to use it in it's most simple form to send a basic
email.

Please note that if your server doesn't have PHP installed, this will not work. That means Google-Pages too.

Now, to get started. Instructions are given in the comments.

Save the following as sendEmail.php

<br/> &amp;lt;?php<br/> // Did someone click submit?<br/> if($_POST['submit'];)<br/> {<br/> // Get our form variables.<br/> $subject = $_POST['subject'];<br/> $email = $_POST['email'];<br/> $msg = $_POST['comments'];<br/> // Send the email with the mail function.<br/> // Replace example@domain.com with your email address!<br/> if( mail("example@domain.com", "$subject", "$email", "$msg") ){<br/> // We have lift-off!<br/> echo "Email sent successfully!";<br/> } else {<br/> echo "Oops! Mail couldn't be sent.";<br/> }<br/> }<br/> ?&amp;gt;<br/>

You
can now make a HTML page that lets a user send you an email, by
including the following HTML code in your page. (The following code
goes in between the

&amp;lt;body&amp;gt;&amp;lt;/body&amp;gt; tags).

<br/> &amp;lt;form method="post" action="sendEmail.php"&amp;gt;<br/> Subject:<br/> &amp;lt;input type="text" name="subject" size="20"&amp;gt;<br/> Email:<br/> &amp;lt;input type="text" name="email" size="20"&amp;gt;<br/> Comments:<br/> &amp;lt;textarea cols="20" rows="5" name="comments"&amp;gt;<br/> &amp;lt;/form&amp;gt;<br/>

Ankur Kothari is the Director of the newly developed Lipidity Corporation,
which provides free website design. Ankur has a deep knowledge and
mastery of PHP, and has been programming since he was twelve years old.

Read More...
AddThis Social Bookmark Button

3 Reasons to Host Your Web Site in a Linux Server  

It's more and more common that a person owns a web
site, which can be for blog, family web site, small business web site
or even a forum. And the majority of those small-size or medium-size
web sites are hosted in Linux environment. Why so many webmasters would
like to make this decision?

I think below are 3 key reasons for it.

1) Stable

As
an open source operating system, code of Linux is open to the public so
that anyone can read it and suggest improvements or point out bugs.
Over the years, Linux has been developed in various flavors (the most
famous one is Red Hat). Thousands and thousands of people have
contributed their time and effort to making Linux web hosting run
faster and to provide simpler, more efficient and bug free code. With
an open programming environment, improvements are made on a continual
basis and problems are seen relatively quickly and solved with a
minimum of difficulty.

And the same reason as why it's stable, the security level of Linux is also higher than Windows.

2) Cheap

Linux
is free to all. Unlike Windows, you have to pay thousands of dollars
for a license. And this is also part of reason why the list price of
Linux web hosting package is much lower than that of windows web
hosting packages.

3) A lot of Free Scripts to Help Setting up the Web Site

Open
source world is just as beautiful as it could be. A lot of people
contribute to it from different perspectives, such as OS, software
development tools or applications. Linux, php, and MySQL have been a
very popular platform to build an application. Right now, you can find
many very good open source application to set up a forum, blog, image
galleries, etc. And all those are free and easy to be installed. Even
php and My SQL can work on Windows, Linux just a perfect platform for
them.

There are more reasons that the webmasters want to choose
Linux to host their web site. But a general guideline is that only if
you want to use asp.net or sql server to build your web site,
otherwise, Linux is always your best choice.

Want to know more about web hosting, please refer to Reliable Affordable Web Hosting: Guide, Review, Compare and Web Promotion

Ivy
Thai is the co-founder of WebHostingClue.com a free web hosting
directory with only reliable web hosting companies and offering the
visitors an easy way to find the right hosting plan for their needs.
Feel free to contact Ivy.Thai at ivy.thai@webhostingclue.com in case
you have any questions or comments regarding this article.

Read More...
AddThis Social Bookmark Button

3 Reasons to Host Your Web Site in a Linux Server  

It's more and more common that a person owns a web
site, which can be for blog, family web site, small business web site
or even a forum. And the majority of those small-size or medium-size
web sites are hosted in Linux environment. Why so many webmasters would
like to make this decision?

I think below are 3 key reasons for it.

1) Stable

As
an open source operating system, code of Linux is open to the public so
that anyone can read it and suggest improvements or point out bugs.
Over the years, Linux has been developed in various flavors (the most
famous one is Red Hat). Thousands and thousands of people have
contributed their time and effort to making Linux web hosting run
faster and to provide simpler, more efficient and bug free code. With
an open programming environment, improvements are made on a continual
basis and problems are seen relatively quickly and solved with a
minimum of difficulty.

And the same reason as why it's stable, the security level of Linux is also higher than Windows.

2) Cheap

Linux
is free to all. Unlike Windows, you have to pay thousands of dollars
for a license. And this is also part of reason why the list price of
Linux web hosting package is much lower than that of windows web
hosting packages.

3) A lot of Free Scripts to Help Setting up the Web Site

Open
source world is just as beautiful as it could be. A lot of people
contribute to it from different perspectives, such as OS, software
development tools or applications. Linux, php, and MySQL have been a
very popular platform to build an application. Right now, you can find
many very good open source application to set up a forum, blog, image
galleries, etc. And all those are free and easy to be installed. Even
php and My SQL can work on Windows, Linux just a perfect platform for
them.

There are more reasons that the webmasters want to choose
Linux to host their web site. But a general guideline is that only if
you want to use asp.net or sql server to build your web site,
otherwise, Linux is always your best choice.

Want to know more about web hosting, please refer to Reliable Affordable Web Hosting: Guide, Review, Compare and Web Promotion

Ivy
Thai is the co-founder of WebHostingClue.com a free web hosting
directory with only reliable web hosting companies and offering the
visitors an easy way to find the right hosting plan for their needs.
Feel free to contact Ivy.Thai at ivy.thai@webhostingclue.com in case
you have any questions or comments regarding this article.

Read More...
AddThis Social Bookmark Button

3 Reasons to Host Your Web Site in a Linux Server  

It's more and more common that a person owns a web
site, which can be for blog, family web site, small business web site
or even a forum. And the majority of those small-size or medium-size
web sites are hosted in Linux environment. Why so many webmasters would
like to make this decision?

I think below are 3 key reasons for it.

1) Stable

As
an open source operating system, code of Linux is open to the public so
that anyone can read it and suggest improvements or point out bugs.
Over the years, Linux has been developed in various flavors (the most
famous one is Red Hat). Thousands and thousands of people have
contributed their time and effort to making Linux web hosting run
faster and to provide simpler, more efficient and bug free code. With
an open programming environment, improvements are made on a continual
basis and problems are seen relatively quickly and solved with a
minimum of difficulty.

And the same reason as why it's stable, the security level of Linux is also higher than Windows.

2) Cheap

Linux
is free to all. Unlike Windows, you have to pay thousands of dollars
for a license. And this is also part of reason why the list price of
Linux web hosting package is much lower than that of windows web
hosting packages.

3) A lot of Free Scripts to Help Setting up the Web Site

Open
source world is just as beautiful as it could be. A lot of people
contribute to it from different perspectives, such as OS, software
development tools or applications. Linux, php, and MySQL have been a
very popular platform to build an application. Right now, you can find
many very good open source application to set up a forum, blog, image
galleries, etc. And all those are free and easy to be installed. Even
php and My SQL can work on Windows, Linux just a perfect platform for
them.

There are more reasons that the webmasters want to choose
Linux to host their web site. But a general guideline is that only if
you want to use asp.net or sql server to build your web site,
otherwise, Linux is always your best choice.

Want to know more about web hosting, please refer to Reliable Affordable Web Hosting: Guide, Review, Compare and Web Promotion

Ivy
Thai is the co-founder of WebHostingClue.com a free web hosting
directory with only reliable web hosting companies and offering the
visitors an easy way to find the right hosting plan for their needs.
Feel free to contact Ivy.Thai at ivy.thai@webhostingclue.com in case
you have any questions or comments regarding this article.

Read More...
AddThis Social Bookmark Button

Design a Search Engine for Your Own Site with PHP  

This hands on PHP Programming article provides the
knowledge necessary to design and develop a search engine for your
website using PHP version 4.0 and above. Making a search engine for
your website with PHP is really easy and provides substantial
functionality required by most of the small to medium websites. This
article introduces every steps of the development, including both
design and PHP programming. Basic computer skills and knowledge of HTML
fundamentals are required. Ok, let's begin now.

Step 1: Design Search Box

Under your website root, make a file called search.htm or anything you like and type in the following code:

&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;

&amp;lt;title&amp;gt;Web Search&amp;lt;/title&amp;gt;

&amp;lt;meta http-equiv="Content-Type" content="text/html"&amp;gt;

&amp;lt;/head&amp;gt;

&amp;lt;body bgcolor="#FFFFFF" text="#000000"&amp;gt;

&amp;lt;form name="form1" method="post" action="search.php"&amp;gt;

&amp;lt;table width="100%" cellspacing="0" cellpadding="0"&amp;gt;

&amp;lt;tr&amp;gt;

&amp;lt;td width="36%"&amp;gt;

&amp;lt;div align="center"&amp;gt;

&amp;lt;input type="text" name="keyword"&amp;gt;

&amp;lt;/div&amp;gt;

&amp;lt;/td&amp;gt;

&amp;lt;td width="64%"&amp;gt;

&amp;lt;input type="submit" name="Submit" value="Search"&amp;gt;

&amp;lt;/td&amp;gt;

&amp;lt;/tr&amp;gt;

&amp;lt;/table&amp;gt;

&amp;lt;/form&amp;gt;

&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;

Step 2: Write search.php file. It is the core of your website search engine.

Under your website root, create a file called search.php or anything you like.

<br/> &amp;lt;?php<br/> //get keywords<br/> $keyword=trim($_POST["keyword"]);<br/> //check if the keyword is empty<br/> if($keyword==""){<br/> echo"no keywords";<br/> exit; <br/> }<br/> ?&amp;gt;<br/>

With
above, you can give hints to your users when they forget to enter a
keyword. Now let's go through all the files or articles in your website.

<br/> &amp;lt;?php <br/> function listFiles($dir){<br/> $handle=opendir($dir);<br/> while(false!==($file=readdir($handle))){<br/> if($file!="."&amp;amp;&amp;amp;$file!=".."){<br/> //if it is a directory, then continue<br/> if(is_dir("$dir/$file")){<br/> listFiles("$dir/$file");<br/> }<br/> else{<br/> //process the searching here with the following PHP script<br/> }<br/> }<br/> }<br/> }<br/> ?&amp;gt;<br/>
The following scripts read, process files and check whether the files
contain $keyword. If $keyword is found in the file, the file address
will be saved in an array-type variable.

<br/> &amp;lt;?php <br/> function listFiles($dir,$keyword,&amp;amp;$array){<br/> $handle=opendir($dir);<br/> while(false!==($file=readdir($handle))){<br/> if($file!="."&amp;amp;&amp;amp;$file!=".."){<br/> if(is_dir("$dir/$file")){<br/> listFiles("$dir/$file",$keyword,$array);<br/> }<br/> else{<br/> //read file<br/> $data=fread(fopen("$dir/$file","r"),filesize("$dir/$file"));<br/> //avoid search search.php itself<br/> if($file!="search.php"){<br/> //contain keyword?<br/> if(eregi("$keyword",$data)){<br/> $array[]="$dir/$file";<br/> }<br/> }<br/> }<br/> }<br/> }<br/> }<br/> //define array $array<br/> $array=array();<br/> //execute function<br/> listFiles(".","php",$array);<br/> //echo/print search results<br/> foreach($array as $value){<br/> echo "$value"."&amp;lt;br&amp;gt;n";<br/> }<br/> ?&amp;gt;<br/>

Now, combine the codes listed above, all the related results in your websites will be found and listed.

Step 3: further improvement of the search engine can be made by adding the following,

(1) list the title of all searching results

REPLACE THE FOLLOWING

<br/> if(eregi("$keyword",$data)){<br/> $array[]="$dir/$file";<br/> }<br/>

WITH

<br/> if(eregi("$keyword",$data)){<br/> if(eregi("&amp;lt;title&amp;gt;(.+)&amp;lt;/title&amp;gt;",$data,$m)){<br/> $title=$m["1"];<br/> }<br/> else{<br/> $title="no title";<br/> }<br/> $array[]="$dir/$file $title";<br/> }<br/>
(2) Add links to searching results

CHANGE THE FOLLOWING

<br/> foreach($array as $value){<br/> echo "$value"."&amp;lt;br&amp;gt;n";<br/> }<br/>

TO

<br/> foreach($array as $value){ <br/> list($filedir,$title)=split("[ ]",$value,"2"); <br/> echo "&amp;lt;a href=$filedir&amp;gt;$value&amp;lt;/a&amp;gt;"."&amp;lt;br&amp;gt;";<br/> }<br/>

(3) Set time limit for PHP execution

ADD THE FOLLOWING AT THE BEGINNING OF PHP FILES

<br/> set_time_limit("600");<br/>
The above time unit is second. 10 minutes is the script execution litmit.

Combine all the above codes and get the complete search.php file as following,

<br/> &amp;lt;?php<br/> set_time_limit("600"); <br/> $keyword=trim($_POST["keyword"]); <br/> if($keyword==""){<br/> echo"Please enter your keyword";<br/> exit; <br/> }<br/> function listFiles($dir,$keyword,&amp;amp;$array){<br/> $handle=opendir($dir);<br/> while(false!==($file=readdir($handle))){<br/> if($file!="."&amp;amp;&amp;amp;$file!=".."){<br/> if(is_dir("$dir/$file")){<br/> listFiles("$dir/$file",$keyword,$array);<br/> }<br/> else{<br/> $data=fread(fopen("$dir/$file","r"),filesize("$dir/$file"));<br/> if(eregi("&amp;lt;body([^&amp;gt;]+)&amp;gt;(.+)&amp;lt;/body&amp;gt;",$data,$b)){<br/> $body=strip_tags($b["2"]);<br/> else{<br/> $body=strip_tags($data);<br/> }<br/> if($file!="search.php"){<br/> if(eregi("$keyword",$body)){<br/> if(eregi("&amp;lt;title&amp;gt;(.+)&amp;lt;/title&amp;gt;",$data,$m)){<br/> $title=$m["1"];<br/> }<br/> else{<br/> $title="no title";<br/> }<br/> $array[]="$dir/$file $title";<br/> }<br/> }<br/> }<br/> }<br/> }<br/> }<br/> $array=array();<br/> listFiles(".","$keyword",$array);<br/> foreach($array as $value){<br/> list($filedir,$title)=split("[ ]",$value,"2"); <br/> echo "&amp;lt;a href=$filedir target=_blank&amp;gt;$title&amp;lt;/a&amp;gt;"."&amp;lt;br&amp;gt;";<br/> }<br/> ?&amp;gt;<br/>

Now, you have made a search engine for your website, enjoy it!

Rory Canyons is the founder of ScriptMenu.com.
Fore more articles, scripts or tips for PHP, ASP, ASP.NET, PERL, XML,
Java, JavaScript, Flash, CFML, Python and other web programming
resources, visit http://www.scriptmenu.com

Read More...
AddThis Social Bookmark Button

Simple Solution for Php Includes - IFrames  

I have recently created my first Php program. I
wanted to share with others some of the problems that I encountered,
and how I finally overcame these obstacles.

My Reason for needing a Php Include

To
start, my most recent website features a free classified advertising
solution, a modified version of PhpBB stripped to function as an
Article Bulletin Board (No replying), and a link directory. The
business model of my Website offers free Classified Advertising, but
charges a small fee for enhanced advertisements (Featured, Bolded, and
Better Placement). The Classifieds were purchased from a developer, so
I had little experience with the application. The link directory was a
free resource of an old program that I modernized a bit. I choose the
old link directory because the links are clean. They are not replaced
with coding to count outbound traffic. I figured this would increase
the value of links, to sites who exchanged links with me.

To
increase revenue on the new site, I realized that I needed to increase
the value of, “Featured Advertisements”. To do this I wanted to
randomly rotate featured advertisements, from the classifieds, across
my Bulletin Board and Link Directory. Bare in mind, all three are run
from a unique table, and I wanted to leave it that way. In addition, I
had little experience with the development for all three applications.

I
started reading tutorials and utilizing Forums to create a Php program
for external pages on the site. The program would pull a random
featured ad from the classified table. This program only took me about
32 hours to create, while performing research. I didn't intend to get
into the schematics of the program with this post, so forgive me if you
are looking for a Random generator. But I would be more than happy to
share my code upon request.

The code I created was simple, it
worked just the way I wanted, but I ran into one cumbersome obstacle;
how do I implement this easily across two unique table driven
applications? The answer was to use a Php Include

I started
reading tutorials on, "Php includes and functions and classes". I
realized quickly that this was a bit more confusing than creating the
actual coding
. In addition, I ran into parsing errors if I included the
new coding in only one application.

My solution to using the, "Include ()," Php function

I
found that very few people were willing to provide any feedback for
such a problem, even in the most resourceful forums for Php Coding and
information resources. I fumbled with the coding for over 72 hours. I
thought this was a bit ridiculous, as the code itself took less time to
create.

I finally came across a helpful solution that may prove
beneficial, if you are in the same situation with Php Includes. The
code was uploaded onto my server as a file (something.php). I removed
the standard, "Php Include ()," function from all links and the PhpBB
coding. I then called the Php file (page) using an Iframe tag, on pages
I wanted it to appear. This proved to be a successful replacement for
the Php Include.

Search Engine Results Using Iframe for Php Include

I
waited until Google came around to see how the Iframe affected my sites
search rankings. Finally, the other day this happened. The conclusion,
my search rankings still increased due to recent link exchanges. The
code is working to my needs, and it is easily included on any page that
I want, even externals outside my site can call on the code, which
opens more doors for advancement.

Here is the simple Iframe code I used to replace the Php Include:

iframe
align=top valign=right width=600 height=105 marginwidth=0
marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no
src="http://your.com/file-to-include.php" width=600 height=105&gt;
/iframe

Using the Iframe tag for Php Include Conclusion

I
have encountered no problems with including my PHP code on pages across
external servers, using the iframe as a Php Include. As you can see, it
is totally customizable. You can specify the width, height, alignment,
border, scrolling, margins and more. The only obstacle that I have
encountered, is the style sheet that the site, or page, with the, "Php
Include," is not utilized. The page that the code is on seems to need
its own unique style sheet.

I hope this proves beneficial to anyone having trouble with running a "Php Include" across various unique online applications.

About The Author

Michael J. Medeiros is the owner of http://www.Mjmls.com.
He has worked as an Independent Real Estate Agent for three years, in
New Jersey. He has an extensive background in Business and Marketing.
Michael’s latest research and attention has been devoted to online
business development and the Internet.

Read More...
AddThis Social Bookmark Button

Simple PHP Review - Real PHP Tutorials in PDF, Or a Scam?  

Are you interested to find out more about the Simple
PHP guide, and whether or not it is worth getting? With so many
tutorials available on the internet, it can be very confusing trying to
put all the information together to study systematically. This article
will discuss how this scripting language works in general, and what is
contained in the Simple PHP guide.

1. What Exactly Is PHP?

It
is a server side scripting language that can be easily combined with
HTML tags. It has been reconstructed into a web language today.

2. How Does It Work?

It
works like standard programming language whereby it maintains the
if/else condition statements, loops and subroutines. It is easily
identified by the curly brackets { } used to define the start and end
of statements. Users will need to use a

Finally, when you are
done scripting a page in PHP, remember to save the file with the
extension .php, and remember that .php files can still contain HTML
tags within them.

3. Why Should You Learn PHP?

It is
the most popular knowledge to have when you want your web pages to
handle form data submitted by users. It also allows customization and
building of dynamic pages. Best of all, it can connect to any SQL
database, allowing you or your users to store, edit and delete any
information from your web pages.

4. Review of Simple PHP Guide

This
guide is compiled by Robert Plank and it is essentially like a step by
step course for learning this scripting language. With the abundance of
information available on the internet, it is very confusing to know
where to start and end.

5. What Is Contained In This Package?

It
lays out all the essential PHP skills in 17 chapters, complete with
quizzes at the end of every chapter to test your understanding. 22
useful code
snippets are included so you can stick them into your web
page and be used immediately. Simple PHP guide is highly recommended if
you want a full grasp of this scripting language quickly.

Do you want to download a step by step guide for learning PHP? Visit http://www.top-review.org/simple-php.htm to learn more about the Simple PHP guide, and Click Here to Download Simple PHP!

Read More...
AddThis Social Bookmark Button

ASP vs PHP  

When building web sites, ASP and PHP are very popular languages. Here’s my opinion on whether ASP or PHP is best

ASP v. PHP

Both
ASP and PHP are languages used to build Dynamic Web sites that can
interact with Databases and exchange information. ASP (Active Server
Pages) is from Microsoft and is used with IIS (Internet Information
Server) that runs on Microsoft Servers. PHP (Personal Home Pages) is
from Rasmus Lerdorf, who originally designed this parsing language
which was later modified by different people. It runs on Unix and Linux
servers and it also has an NT server version.

There are a lot of differences between ASP and PHP.

Cost

To
run ASP programs one needs IIS installed on a Windows platform server,
which is not free. PHP programs run on Linux, which is free. Even the
connectivity of the database is expensive in the case of ASP as MS-SQL
is a product of Microsoft that needs to be purchased. PHP generally
uses MySQL, which is freely available.

Speed

If we compare
the speed of ASP and PHP then PHP has an upper hand. PHP code runs
faster than ASP. ASP is built on COM based architecture, which is an
overhead for the server whereas PHP code runs in its own memory space.

Platform Compatibility

PHP
programs can run on various platforms like Linux, Unix, Windows and
Solaris whereas ASP is mainly associated with Windows platforms.
However, ASP can run on a Linux platform with ASP-Apache installed on
the server.

Additional Costs

Many of the tools used in PHP
are free of cost and since PHP is open source a lot of code can be
found in open source forums. PHP has inbuilt features like ftp, email
from a web page or even encryption mechanisms but in ASP such features
are not built in and some additional components are required. Therefore
an additional cost is incurred for such components.

Base Language

PHP
is based on C++ language and the syntax used in PHP is quite similar to
C/C++. C/C++ is still considered the best programming language by many
programmers and people who love this language would surely feel more
comfortable with the syntax of PHP. ASP on the other hand has a more
Visual Basic kind of syntax that again is closely related to only
Microsoft products. So, it depends on a person-to-person which language
he or she is comfortable

Database Connectivity

PHP, being extremely flexible, can connect to various databases, the most popular being MySQL. ASP mainly uses MS-SQL.

Conclusion

Both
languages have their advantages specific to users. Some would argue
that both the languages have their own importance and depending on the
user's requirements the language and the platform can be chosen. If we
talk about developing a discussion board then ASP is equally capable
but many feel the best discussion boards are developed in PHP. If a
user is looking for some e-commerce application development then many
would call ASP the ideal choice. This does not mean that PHP cannot
provide e-commerce solutions, only that many people choose ASP.

From my perspective, PHP is an all around better choice than ASP.

Halstatt Pires is with the Internet marketing firm - http://www.marketingtitan.com - a San Diego Internet marketing and advertising company offering automated web site systems through http://www.businesscreatorpro.com

Read More...
AddThis Social Bookmark Button

PHP Frameworks  

PHP Frameworks:

PHP is
finally getting the attention that i deserves, yes I have always
believed that PHP is one of those neglected languages, neglected
because they are used in abundance but there isn't enough programs or
as we call them frameworks to work on PHP. But that was until the
release of PHP 5. After the release of PHP, there is a range of
Frameworks available.

Today we review and understand closely the various frameworks available for PHP. Some of the most popular frameworks for PHP are:

  1. The Zend Framework.
  2. The Prado Framework.
  3. CakePHP Framework.
  4. Symphony Framework.

These frameworks are ofcourse the most popular ones and there are more
than 40 frameworks for PHP and it is very difficult to know which
framework suits you the best and will be the most productive for your
web development and enterprise goals. Ofcourse all these frameworks are
free and provide a host of services to satisfy almost all of the web
development needs of a web designer or a website owner. Some of the
most common features of all these PHP Framework are as follows:
  • PHP 5: Thats obvious!
    All the frameworks support both PHP 5 version of the PHP.Only "The
    Prado Framework" support the PHP 4.x version of the PHP as well as the
    PHP 5 version of the PHP.
  • Multiple DBs: All the above mentioned frameworks support multiple databases to be used without making any setup and configuration changes.
  • Validation: All the four frameworks have an inbult validation and a filtering component which can be used.
  • MVC: All the four frameworks have the MVC that is the Model View Controller setup.

So, these are the few components and controllers that are common in
most of the PHP based frameworks and therefore one should look out for
these components when downloading or using a PHP framework.

Now let us see a brief introduction about each of these PHP based frameworks and their salient features:

  • Zend Framework:Zend
    Framework is a component based framework with components for almost all
    of the programming needs of a PHP programmer or PHP developer.

Some of the components in the Zend Framework are:


  1. zend_acl
  2. zend_auth
  3. zend_cache
  4. zend_config
  5. zend_consolegetop and many more.


  • Prado Framework: The Prado framework provides the following benefits for web application developers.


  1. reusablility
  2. Ease of use
  3. Robustness
  4. Performance
  5. Team Integration


  • CakePHP:

Some of the important features of CakePHP are as follows:


  1. Model, View, Controller Architecture
  2. View Helpers for AJAX, Javascript, HTML Forms and more
  3. Built-in Validation
  4. Application Scaffolding
  5. Application and CRUD code generation via Bake
  6. Access Control Lists
  7. Data Sanitization
  8. Security, Session, and Request Handling Components
  9. Flexible View Caching


Like all other frameworks cakePHP is also component based framework.

  • The Symphony Framework:

Some of the features of the symphony framework are as follows:


  1. simple templating and helpers
  2. cache management
  3. smart URLs
  4. scaffolding
  5. multilingualism and I18N support
  6. object model and MVC separation
  7. Ajax support
  8. enterprise ready


Thus these are the best options available for frameworks relating to
PHP and one should review all these features of all these frameworks
against his needs and choose the appropriate framework to work on!

Any suggestions and comments as always are welcome.

Pranav Bhat

http://comparelinux.com

Read More...
AddThis Social Bookmark Button

How To Select a Professional PHP Programmer  

If you want to enhance or upgrade your website, you
may want to consult a Professional PHP Programmer. PHP is a popular and
widely used development tool used to create dynamic websites and
browser-based applications.

How do you know a qualified PHP Programmer from an in-experienced PHP Programmer?

Experience
level, for starters. Do they have previous work-experience with the
type of project you have in mind? What other skills do they have?

For
example - a Professional PHP Programmer should understand security
issues, cross-browser compatibility, have database knowledge, and have
the ability to modify and add JavaScript to your website, understand
cascading style sheets, and have knowledge of S.E.O. (search engine
optimization)
and Internet marketing.

Many PHP Programmers have
little knowledge of S.E.O. and Internet marketing. I think this is a
must. The person who creates your website can impact how the search
engines rate your website.

Most PHP projects require a database,
and the most popular hosting database is MySql. An experienced PHP
Programmer
should understand how to utilize a database to optimize your
website or browser based application.

Knowing how to modify and
add JavaScript to your website is important also. PHP runs on the
server while JavaScript runs in the browser. Certain functionality is
best handled on one end of the other. JavaScript is mostly used to
create interactive calenders and data validation. Using JavaScript can
really spice up your website.

Cascading style sheets (CSS) are
used to define the fonts, layout, and style of your website. CSS is a
must have skill for any professional PHP programmer.

The
definitions a programmer puts in their CSS and JavaScript code are not
standard across web browsers. Your prospective PHP Programmer must
understand this fact and constantly test his code in several different
browsers to ensure cross-browser compatibility.

When interviewing
a prospective Programmer, you may want to ask how they deal with
security issues and try to understand their knowledge level of S.E.O.
and Internet marketing. Security is much more important than search
engine optimization; however, even the best looking website needs
visitors in order to be viable.

Keith
began his programming career over 20 years ago. In 1999 he became
proficient in HTML and PERL programming languages. Since that time, he
has been helping businesses and individuals build websites and over the
past year has also assisted clients in Internet marketing and search
engine optimization. This combination has allowed Keith to move beyond
only website development to consulting with clients in using the
Internet to their success. Keith is a trusted, professional PHP
programmer.

Website: Professional PHP Programming

Read More...
AddThis Social Bookmark Button

Using PHP Buttons In Dreamweaver  

I'll admit that I am not a coder and I don't know
much more than a tiny bit of PHP at the time of writing this. However,
I have managed to create database driven webpages, and even password
protected members only areas due to the extremely easy to use PHP
buttons
in Dreamweaver.


If you are interested in learning to
do this for yourself, this lesson will point you in the right direction
so that you can experiment and see for yourself how easy it is.



The first thing you need to do is to create an SQL database on your
webhost. This can be done via CPanel or if not that, then ask your host
how...anyways, creating an SQL database with 1 table is not hard.



The key is, to create it, record the information and then try to log in to that database via Dreamweaver.



You can do this by creating a new database connection in the 'Application' window of Dreamweaver.



This is one of the most challenging parts, and you'll need to set up
the site's testing server. At first this can be tricky, but if you
stick with it and get connected to your SQL databas via Dreamweaver,
you'll soon find ways to insert records, display records, and much more!



You see, once you are connected to the database, the table names will
dynamically show up in Dreamweaver, and from there it is only a short
step to learn how to insert records, repeat records, and display data
in the database.



Of course reading a book can help you with PHP, but it is also fun to just jump right in the Dreamweaver buttons.




Even a total PHP dunce like myself was able to start creating little PHP/SQL applications once I figured out these basic steps.



So if you want to create PHP applications, but don't know how to
hand-code PHP, create a PHP/SQL database with 1 table, figure out how
to connect to it via Dreamweaver, and start messing around with the
Dreamweaver PHP buttons.



In a few hours time you'll see what creating PHP/SQL applications in Dreamweaver is all about.


For more information on Dreamweaver including step by step video tutorials, visit http://www.dreamweaverhowto.com

J.
Gilbert Offers awesome step by step video tutorials that show people
how to set up various aspects of an online information business. You
can see more of his products at http://www.resource-website.com

Read More...
AddThis Social Bookmark Button

PHPsuexec - What You Need To Know  

PHPsuexec works in much the same way that CGI (perl
scripts etc) with suexec does. All PHP scripts will be run under your
account
user name UID/GID, rather than the user running the web server
which is the case when PHP is run as an apache module.

This
simply means that rules that apply to .cgi & .pl files on your
current server, now also apply to PHP files. The maximum permissions
permitted on directories and .PHP files are 755. Failing to have
permissions
set to a MAXIMUM of 755 on PHP files and their installation
paths will result in a 500 internal server error, when attempting to
execute them.

What if a script needs 777 for directories or files!

This
is no longer required. You do not need to have directories or files set
to 777, even if your installation documents tell you that you do.
Permissions of 755 will work in the same way. Scripts owned by your
account user will be able to write to your files in the same way that
they can running under apache with 777 permissions.

If you have
PHP applications/scripts that have directories set to 777, (required to
write to them under PHP/apache module), they will need to be changed to
755. Also you will need to change ownerships of all files owned by user
"nobody" to the username for your account.

.htaccess

You can no longer manipulate the php.ini settings with .htaccess files.

If
you are using .htaccess with php_value entries within it, you will
receive a 500 internal server error when attempting to access the
scripts. This is because PHP is no longer running as an apache module
and apache will not know how to handle those directives any longer. All
PHP values should be removed from your .htaccess files to avoid this
issue. Placing a php.ini file in its place will solve this issue.

Read more
http://www.techentrance.com

Read More...
AddThis Social Bookmark Button

Web Hosting Php Mysql - Guide  

Put web hosting php mysql together and you have
yourself a dynamic website! Getting web hosting, php, MySQL opens the
door for your business to develop in areas that your never thought
possible.

Standard web hosting is fine when nothing much needs to
happen to your site. Adding PHP enables you to create or use existing
opt in forms or maybe a membership software package you may have
purchased. You know the ones I mean. With username and password
verification and all that technical stuff!

Having PHP and MySQL is the standard and most popular choice for most webmasters and website developers.

This
may sound pretty obvious, but web hosting PHP MySQL do not all come as
standard in hosting packages! One may not come with the other. But not
only this, you must also be aware or the different versions of PHP and
SQL. MySQL is a vendor for the SQL as is Ms Windows and Oracle.

Check
and double check everything before committing yourself to any web
hosting PHP MySQL set up. Like I said before this may seem a little
obvious, but you will be amazed at the amount of people that actually
over look not only the compatibility of web hosting PHP and MySQL but
make the mistake in automatically thinking that they are all going to
work together.

If your web hosting PHP MySQL is all in one then
its safe to assume they all work together! Its when you are putting a
bespoke hosting package together that the importance of making sure you
kow your SQL and PHP versions.

If I any doubt at all, do not
hesitate to email the company that you are considering purchasing your
web hosting PHP and MySQL from. Its not good practice to think inferior
of yourself and refrain from asking the simplest question regarding
this type of service. Its complicated if its an unchartered area of
your online business knowledge.

Not asking about web hosting PHP
MySQL questions will result in many headaches and frustration not to
mention valuable lost time!

Find Out More About The VodaHost Experience Here
http://hubpages.com/hub/reliable_web_hosting_service

Read More...
AddThis Social Bookmark Button

Ecommerce Hosting - Providing Services To Companies  

One can find hundreds of 'web host firms' today;
thanks to the incredible surge in the field of online trade. What do
'web host firms' do? The primary aim of such firms is to keep an eye on
e-mail services, credit card processing and operational monitoring. Web
sites must operate throughout the year without any complications.

Good
technical support is one very important service that web hosts offer.
Maintenance is needed for websites, even after the normal business
hours. In order for a web host to be good, they must provide service to
websites even after everyone else has gone home. Web host companies are
important around the whole globe. New ecommerce websites are created
each and every day.

Web hosts make sure that shopping carts
function smoothly. Today people prefer to use their credit cards when
they pay for merchandise. Web hosts provide the necessary support to
guarantee that credit card purchases are safe. The business of
electronic commerce is experiencing unparalleled growth.

Prior to
a discussion about the importance of web hosting, it is a good idea to
provide a definition of the term "ecommerce hosting." Many
organizations utilize a web server to provide a selection of services
that enable other commerce-driven companies to earn more money by
conducting business over the World Wide Web. Companies that provide
these commercial services are called 'web hosts' or 'web hosting
firms.' Web hosts also supply "ecommerce shopping cart software."

Web
hosts provide templates for creating online catalogs and they gather
details of financial transactions between businesses. "Ecommerce
hosting" firms can help you increase your profits. Finding a good
"ecommerce hosting" company is not difficult to do. The Internet has a
plethora of information about firms that do "ecommerce hosting."

You
will need to consider security features along with the amount of money
you have to spend when you are choosing a web hosting company. Your
friends and relatives might have recommendations for you if they use a
particular company. You can also search in local newspapers and
magazines for the contact information for web hosting companies in your
area.

There
are hundreds of web host firms out there today due to the fact that
there has been a huge surge in the online trading field. New ecommerce website
are created each and every day. Finding a web host that specializes in
ecommerce hosting can help your business increase its revenue and
profits. Using a web server some organizations provide a number of
services to other companies so that the latter can increase their
profits by selling goods and services on the World Wide Web. Such
organizations are known as 'web hosts' or 'web hosting firms'. Web
hosts provide "ecommerce shopping cart software" too.

Read More...
AddThis Social Bookmark Button

The Benefits Of Using Php Shopping Cart  

The aspiring small-scale entrepreneur wanting to go
global and online from a small regional business would invariably need
a website. The website needs to be functional, accessible and
attractive so as to encourage the potential customers. The php-shopping
cart is needed every hour - regardless of whether the potential
customer wants to add, update or delete from the list. The php cart
should ideally be familiar to the potential customers.on the internet
considering that the customer would opt for a familiar option rather
than striving to learn a new system. The more effective php cart needs
to have a textual message on each page which could be an intimation to
the user as to the number of items present in the php shopping cart and
on clicking on the message the customer would gain access to the number
and details of items in the php shopping cart.

Creating a Php Shopping Cart

The
creation of shopping cart software is surprisingly simple and when done
with precision it could translate into a highly effective and
universally accepted php-shopping cart. The details of the stocks are
predictably stored in the database and the only information required
from the patient which would in turn need to be stored is none other
than the id of each product that has been added to the php shopping
cart. The php-shopping cart is accessible and there are a variety of
ways of reaching it - the most popular being the clicking on a link or
by clicking on the 'add to cart' option on the product page. In the
event of the php-shopping cart being arrived at using the link on the
product page - 'add to cart' - the need of the hour is undoubtedly to
update the products in the php-shopping cart before the display of a
new product range.

It is not uncommon for the php-shopping cart
to have more than one of a kind of any particular product, which could
be compiled, and it is not advisable to list the number of products of
a particular kind in the php-shopping cart. There is a commonality
between the links to 'delete' or 'add' a product to the php-shopping
cart. The customer could well have the option of updating the products
in the php shopping cart - manually! The php shopping cart is seldom
empty and if it is an appropriate message needs to be flashed to the
effect. This is one aspect of the php-shopping cart, which can scarcely
be negotiated

The Traits Of A Php Shopping Cart

The traits
of a successful PHP shopping cart is predominantly that of - having the
requisite information sent to cart. The php-shopping cart has the
ability to locate and execute a high compliance php-shopping cart. The
php-shopping cart has the inherent ability to call an external php file
to say the least. The most popular of the options available is none
other than the ability to pay by 'pay pal' the php-shopping cart then
is a boon when used judiciously and history when ignored!

Check out Shopping Cart at webcart.net. Where you can get more information on PHP Shopping Cart. You can contact David @ 323-933-9291

You can visit http://www.webcart.net David can be reached by phone: 323-933-9291

Read More...
AddThis Social Bookmark Button

Online Smarty PHP Services  

Intro to PHP

In The Online Smarty PHP Services
we'll introduce you to one of the Internet's hottest and fastest
growing server side programming languages, PHP.

What can PHP do?

PHP
is mainly focused on server-side scripting, so you can do anything any
other CGI program can do, such as collect form data, generate dynamic
page content, or send and receive cookies. But PHP can do much more.

There are three main areas where PHP scripts are used.


Server-side scripting. This is the most traditional and main target
field for PHP. You need three things to make this work. The PHP parser
(CGI or server module), a web server and a web browser. You need to run
the web server, with a connected PHP installation. You can access the
PHP program output with a web browser, viewing the PHP page through the
server. All these can run on your home machine if you are just
experimenting with PHP programming

• Command line scripting. You
can make a PHP script to run it without any server or browser. You only
need the PHP parser to use it this way. This type of usage is ideal for
scripts regularly executed using cron (on *nix or Linux) or Task
Scheduler (on Windows). These scripts can also be used for simple text
processing tasks.

• Writing desktop applications. PHP is probably
not the very best language to create a desktop application with a
graphical user interface, but if you know PHP very well, and would like
to use some advanced PHP features in your client-side applications you
can also use PHP-GTK to write such programs. You also have the ability
to write cross-platform applications this way. PHP-GTK is an extension
to PHP, not available in the main distribution.

PHP can be used
on all major operating systems, including Linux, many Unix variants
(including HP-UX, Solaris and OpenBSD), Microsoft Windows, Mac OS X,
RISC OS, and probably others. PHP has also support for most of the web
servers today. This includes Apache, Microsoft Internet Information
Server, Personal Web Server, Netscape and iPlanet servers, Oreilly
Website Pro server, Caudium, Xitami, OmniHTTPd, and many others. For
the majority of the servers PHP has a module, for the others supporting
the CGI standard, PHP can work as a CGI processor.

Read More...
AddThis Social Bookmark Button

PHP Hosting  

PHP is generally server side scripting language for
creating Web pages. The syntax of PHP is similar to the Perl. PHP is
very easy to understand to learn. It is supported the most common
databases like, Oracle, Sybase and MySQL. It is integrated of external
libraries to generate PDF documents and parsing XML. It is just
open-source language which is supported by large group of developers.

There have few criteria's which can help you to choose the PHP hosting. Such as;

Price, Size and bandwidth

Now
a day's price is the main criteria. When you don't want to invest big
money then despicable PHP hosting is always the best. As a example, you
have to take a blog. When it comes to a blog, the bandwidth is very
less. At the time of put of mp3, be sure that your upload would not be
exceed 1 GB your first two years.

What do you need with PHP?

There
is not necessary that PHP is there, at the time of installing of PHP
hosting. All PHP hosting companies offer PHP in safe mode. To get a
great performance on Linux and apache servers, there are php installed
as CGI.

Things you should know too-problems

There are few
things that you should explain to about. There are some problems at the
time of install PHP software. You have to use some search engine
optimization which may consider rewriting the URLs using forcType in
htdocs.

In Google, there are some tips are always available. In
fact Google is the best way to get information out. The only draw back
PHP is, all software can't run on PHP hosting.


Read More...
AddThis Social Bookmark Button

PHP For Internet Marketing Websites  

A scripting language popularly known as PHP,
originated in 1995 by Rasmus Lerdorf. PHP stands for Personal Home Page
Tools. In just maximum 10 years this language has become a favorite of
internet marketers, even small business webmaster with the newer and
stable version of the internet.

Why is PHP so popular?

Before
PHP, there was Javascript. It does some really cool things like rotate
ads, graphics, text etc. But unfortunately it is not tough to readable
by the search engines. Who are working on internet, they love PHP
because it does all the Javascripts does and everything that does and
the turns up on the pages is read and counted by the search engines.

One
thing is that, you need to get a script written in PHP and learn how to
install a script on the web server. In fact PHP is not software which
you can simply download, installed and open on your computer. If you
want to import and rotate articles to keep my content sites full of
good and search engine. It also should be fresh content. Even you can
use PHP to complete this.

Where To Find PHP Scripts:-

You
can find PHP script at sites that host a listing of hundreds of
different scripts. It includes all kinds of CGI and Java. All those
sites have a section of scripts written just in PHP, which you have to
find some really nice free scripts and some low cost PHP scripts to
improve our websites performance and place in the search engines. One
thing is that, you would learn to write PHP since there are so many
ways a webmaster as well as internet marketer could use the script to
help with automation and site improvements.


Read More...
AddThis Social Bookmark Button

Building an Easier Site with PHP Modules  

Having hundreds of pages to manage can be a lot of
work when it comes to revisions, such as changing the site menu or a
list of links.

I have found an easier way to keep my editing time to a minimum with using what I call PHP Modules.

For
example, we'll build a menu module, we'll cut all of our menu images
& links from our pages leaving behind only the empty tables &
then create a new page menu.php without any headers and paste our menu
code.

Then in the empty tables we'll add the code:

&lt; ?php

include_once "menu.php";

? &gt;

Now
the next time I need to change the menu I'll only need to edit menu.php
& the other 300 pages will automatically be updated, slick right?

Note:
To use this PHP code you'll need to change all of your pages from .HTML
to .PHP or use a java script to parse the PHP code. You wont need to
change any of your html code as web browsers will render your pages the
same way as .html

I recommend changing your pages to PHP because
once you start working with PHP you will find a lot free scripts that
you can use to make your site more exciting & interactive than with
html alone.

MikeMason.org
offers a free website building forum,
Web Hosting, Domain Names and Website Design.

Read More...
AddThis Social Bookmark Button

The Most Popular Web Scripting Program - PHP Programming  

Hypertext Preprocessor Programming is popularly known
as PHP which is a server-side Scripting based programming language. The
meaning of Server-side script is the script that the server processes
before the HTML files containing those scripts, which are transferred
to the browser of the client. Basically, script PHP programming is
programming software, which is used for the web hosting as well as web
developing. In fact all web based platform and all web server does not
allow PHP programming, which is executable to them. Now days the Win32
platform is one of the platform, which is not possible in PHP. The
programmers of PHP should have knowledge of PHP programming have a
demand in IT Community. There have many reasons by which the PHP
population is still growing up.

These reasons for the popularity are as follows;


The main root of the PHP programming is C and C++. In fact there have
more find similarities with C and C++ syntax. MYSQL is basically the
back-end tools of PHP. All the webmasters should make the websites
dynamically.

• The Windows and UNIX operating system supports PHP.

• The output buffering of PHP language is very powerful, which helps in increasing output flow.

PHP
has a dynamic property. It can works combined with HTML to displaying
elements dynamic in nature on the web pages. One another thing is that,
PHP did not parse anything outside of its delimiters and all those
lifting elements are sent into the output.

Another important
feature is that, PHP support all types of Relational Databases
management systems. This combination is also worked in different O.S.
Platform. In word, PHP programming is the new revolution of the world.


Read More...
AddThis Social Bookmark Button