We just got a new web design here at AskPHP.com. Do you like it? I do
/Andreas
23-05-07
We just got a new web design here at AskPHP.com. Do you like it? I do
/Andreas
If you’re a frequent user of MySpace.com, then chances are you probably have searched for MySpace layouts, graphics, tweaks, and more. You probably have not noticed this but most MySpace resource websites you discover contain the same exact layouts, graphics, and tweaks as the other ones. Not only do they all carry the same exact content, but the content they do carry are of low-quality.
The reason many MySpace resource sites carry the same low-quality content as the next website is because most of these websites are made with a simple script. The owners of these websites buy the script online since they either do not know how to code websites, or are simply lazy. These scripts often come with layouts and graphics so the owners of these websites do not have to make their own layouts or graphics. All the owner has to do is simply install the script, and market their website.Although most MySpace resource websites are made with a simple easy-to-install web script that has the same content on each site, there are some websites that contain high-quality unique content. How can you tell the difference between a website with the same content and one with high-quality content? Most of the time you can tell because you will have never seen the layouts they offer on another website and the layouts will generally look a lot better. The ones with high-quality unique content are also the websites that seem to stay around the longest, rank better in the search engines, and earn the most money for their owners.
About the Author
Raid MySpace is a website that offers high-quality unique free myspace layouts. All of its premade myspace layouts and graphics are unique and cannot be found on any other MySpace resource site.
21-05-07
Password protect your pages
Author: Bylla from XavierMedia.com
A lot of people have the need to sell memberships (for article web sites or other content web sites) or they just have the need to keep some information secret or under their own control. That’s just why Xavier Media created Cookie Password Protection and simple to use PHP script. To use CPP you only need to have limited PHP knowledge. All you have to do is run the install script, insert one line of code at the top of the pages you want to protect and then use the admin area to manage your users. It’s as simple as that
To password protect a page…
…simply add this code as the first line of your page (works with both the free and the paid version):
<? include(”protect.php”); ?>
That’s it! Your page is now protected by CPP.
Where to get Cookie Password Protection?
Visit www.xaviermedia.com to download the free version of the script or to buy the more advanced paid version for a very small amount of money ![]()
21-05-07
The basics - How to write a PHP script
Author: Bylla from XavierMedia.com
This is actually a really old article I wrote a couple of years ago, but it deserves to be posted here anyway as an easy start for beginners
.
When you write a PHP script you should put your PHP code between <? ?> tags. Each line of code should also be ended with ; like this:
| Code for test.php: |
| <? echo “<B>Hello world!</B>”; ?> |
This will print Hello world! on your page. You can also make the script a little bit more dynamic and just not print Hello world!. This can be done with variables and if statements:
| Code for test.php: |
| <? if ($_REQUEST[print] == “hello”) echo “Hello world!”; else if ($_REQUEST[print] == “xavier”) echo “Xavier Media Group”; else echo “Nothing”; ?> |
Now you can access test.php as test.php?print=hello. That will print Hello world! on your screen. If you instead visit test.php?print=xavier that will print Xavier Media Group. If you use cookies you can do some really cool stuff. The code below will count the number of times a user has visited your page:
| Code for cookie.php: |
| <? // Checking if the visitor has a cookie in his brower, otherwise the script will set one. if (!isset($_COOKIE[countercookie])) { // Set the cookie for one year Setcookie(”countercookie”,1,time()+31536000); // Print a message echo “This is your first visit to this page!”; } else { // Increase the cookie value by one Setcookie(”countercookie”,$_COOKIE[countercookie]+1,time()+31536000); // Print a message echo “Welcome back! You have visited this page $countercookie times before.”; } ?> |
With a little imagination you can create fantastic scripts. Good luck!
No Comments