Browse > Home /

| Subcribe via RSS

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: , ,

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: , ,

Installing/Configuring LiteSped w/ PHP

What is LiteSpeed?

LiteSpeed Web Server is the leading high-performance, high-scalability web server. It is completely Apache interchangeable so LiteSpeed Web Server can quickly replace a major bottleneck in your existing web delivery platform. With its comprehensive range of features and easy-to-use web administration console, LiteSpeed Web Server can help you conquer the challenges of deploying an effective web serving architecture.

LiteSpeed Web Server has superior performance in terms of both raw speed and scalability. Our benchmarks demonstrate that it is more than 6 times faster than Apache. When serving static content, LiteSpeed surpasses well-respected content accelerators including thttpd, boa and TUX. When it comes to dynamic content, LiteSpeed is more than 50% faster in PHP content delivery than Apache with mod_php. Don’t just take our word for it. Download the LiteSpeed free or trial version and experience it for yourself.

Since its 3.0 release, LiteSpeed Web Server works flawlessly alongside web hosting control panels including cPanel, DirectAdmin, etc. as a drop-in Apache replacement. Easily increase PHP performance and security while doubling server capacity. LiteSpeed is the best choice for shared hosting service providers.

More »

Tags: , , , ,

PHP Image Resize Script

This is a little script that is very handy for webmasters who often use the loading of images. As you already may have noticed somethimes images tend to go bad when resizing. That’s why I’m sharing this script with you all. This is definately not hard to modify and I will do my best to explain everything.

More »

Tags: , ,

PHP Banner Rotation System

This is a small and handy tutorial that explains an easy way to setup some banners to display in rotation on your website. There are no special requirements, the only thing that is needed is PHP enabled on the server (All servers got this by default)

More »

Tags: , ,

Simple PHP Users Online Script

It’s always handy to have a simple script on your website that allows the people who are browsing your site to see how many users that are online. In this post I will be showing you all how to implement such a feature into your website. it takes upt o 5 minutes and then everything is done. The only thing that you need is a mySQL database and PHP enabled on your server (most servers have this enabled by default unless you are having a REALLY crappy host).

More »

Tags: ,