Browse > Home / Archive: June 2009

| Subcribe via RSS

Why China is no good for surfing

Developers of the software, on behalf of the Chinese government state that the software’s main use will be to block access to pornography so that it may not inflict damage upon younger Internet users. However, outraged Chinese computer users state that this software is more so designed to restrict access to content deemed politically unacceptable by Chinese government authorities. Naturally, this is a topic which seems to have caused a fair outcry the world across so I thought that in this latest article I would provide an update to the situation.

More »

Tags: , ,

10 Ways to inprove your PHP

Ok heres a list of ways to improve your PHP Programming..

1. Use the cheat sheets

When ever your programming in php and mysql you should always have a cheet sheet at hand!,
there are several out there for you to use as references here are just some.

  • MySql
    • http://www.addedbytes.com/cheat-sheets/download/mysql-cheat-sheet-v1.png
  • PHP
    • http://www.addedbytes.com/cheat-sheets/download/php-cheat-sheet-v1.png

More »

Tags: , , ,

How to hide css code

‘Rippers’ are always trying to steal your design or style? I think this will help you.

More »

Tags: , ,

Another giveaway by NameCheap!

No Comments | Posted in Giveaways

NameCheap is prepearing for another giveaway. A few hours ago they “tweeted” their wonderful news. “Our Facebook and Twitter Giveaways are a fun way for us to get our name out there.  We’ve had such a good response from them, we’ve decided to 1) up the stakes and 2) increase the number of prizes.  Who knew that advertising could be so much fun?” - They said in the e-mail I recived.
More »

Tags: , ,

Questions to ask a web hosting company

Before you sign any contract or pay for hosting, better ask some of this questions. You will have more information about your host, plus the chances for being scammed are minimal.

More »

Tags: , ,

Simple login system with php

Today I will be creating my first post for WarezTeacher and to help you create a simple login system for your admin… 

Firslty we need to create a file that will hold your password and security check!

Step 1 (Create Auth File).

Create a new file and name it anything you want but for this example we’ll use auth.php.

  1. <?php
  2. session_start();//this will be used to hold your admin session
  3. $MyPassword = "Admin"; //this will be your login password
  4. $Form = '<form action="" method="post" name="loginForm">
  5. <input name="password" type="password" />
  6. <input type="submit" value="Submit" />';
  7.  
  8. if(!$_SESSION['AdminAuth']){//check if allready logged in
  9. if(!$_POST['password']){
  10. die($Form);
  11. }else{
  12. if($_POST['password'] != $MyPassword ){
  13. die('PASSWORD FAIL!');
  14. }else{
  15. $_SESSION['AdminAuth'] = TRUE;
  16. }
  17. }
  18. }
  19. ?>

Now what ever pages you want to secure you should just include the file with the include command at the very top of your sucure page.

Hope you like this tutorial and please stay tuned at WarezTeacher for more!!!

Tags: , ,