Portal Message Boards Zones Navigation What's New Resources Members
Check out the Adult NetSurprise Linklist and Submit your site!



Cash Traffic

CE CASH 3.0

ANS Linklist

XRATED BUCKS

PUSSY CASH

Main Zone Library Tutorials Resources Message Boards
PHP Programming Course

by TDavid, Script School

Week #1: Introduction to PHP Programming
1. Tools necessary for scripting in PHP.
2. Creating a test script.
3. Introduction to variables, including integers, floating point and strings.

TO-DO ASSIGNMENT: Write a script to store and print your name (nick) and at least one favorite url to the browser using variables, use comments and variable names which conform to the course discussion.

Adult NetSurprise Learning Zone PHP Course  WEEK 1 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific


Week #2: Working with Date & Time and using conditionals
1. Exploring date and the UNIX timestamp, date format codes.
2. Adding strings together (concatenation).
3. Reacting differently to an event based on the day of the week/month.
4. Understanding the switch/case statement.

TO-DO ASSIGNMENT: Write a script to print to the browser a different url each day of the week using the switch and case statement..


Adult NetSurprise Learning Zone PHP Course  WEEK 2 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific


Week #3: Storing and using information in Arrays
1. What are arrays, how and when to use them.
2. Adding and removing information from an array.

TO-DO ASSIGNMENT: Write a script to print to the browser a different url each day of the MONTH using an array and using no conditional statement.

Adult NetSurprise Learning Zone PHP Course  WEEK 3 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #4: Random numbers
1. Understanding how random numbers work with PHP.
2. How to seed the rand function.
3. Using multiple files and the "include" and "require" functions.

TO-DO ASSIGNMENT: Write a script to rotate banners inside an array stored in two different file on multiple pages.

Adult NetSurprise Learning Zone PHP Course  WEEK 4 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #5: Using forms to take basic visitor input
1. How to create forms using PHP.
2. GET and POST and using ENCTYPE.
3. Exploring query strings and hidden forms.
4. Calling pages upon themself using forms.
5. Brief discussion on security in regards to form input.

TO-DO ASSIGNMENT: Write a script to submit a username and password to enter a page. If the username and password does not match the variable hardcoded in the script show the login form again with an error message. The password field should be private so as you type you see the text as asterisks ****

Adult NetSurprise Learning Zone PHP Course  WEEK 5 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #6: Sending email using PHP
1. Using sendmail.
2. Validating email addresses.
3. Gathering information and mailing in loops versus cc.
4. A brief discussion of SMTP.

TO-DO ASSIGNMENT: Write a script to accept form input and send the comments to someone via PHP. Add in security so that you make sure the to and from "look like" legitimate email addresses.

Adult NetSurprise Learning Zone PHP Course  WEEK 6 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #7: Environment Variables and Introduction to Regular Expressions
1. Getting the IP and referring url from site visitors.
2. Review the environment variables available to you.
3. A basic review of regular expressions.
4. Showing different content to visitors from Internet Explorer and Netscape browsers.

TO-DO ASSIGNMENT: Write a script to print the IP address if someone comes from a bookmark or type-in and show the browser type and to print the referring url if the person comes from your DOMAIN and if none of these apply then print to the browser a url to click.

Adult NetSurprise Learning Zone PHP Course  WEEK 7 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #8: Introduction to Headers, MIME and Redirection
1. MIME headers.
2. Using PHP to redirect to different URLs.
3. Blending JavaScript with PHP.

TO-DO ASSIGNMENT: Write a script to randomly choose a url and redirect the visitor when clicked. Make the url a javascript mouseover so that it is a blind link so the person clicking will not see the result in the browser status window.

Adult NetSurprise Learning Zone PHP Course  WEEK 8 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #9: Setting and retrieving Cookies
1. What you can and can't do with cookies.
2. How to set a cookie, and for how long.
3. How to retrive a cookie.
4. How to delete a cookie.
5. Storing arrays using cookies.

TO-DO ASSIGNMENT: Write a script to enter urls using a form and save the UNIQUE urls in a cookie for the current browser session and then display the cookies that are saved using the SAME script.

Adult NetSurprise Learning Zone PHP Course  WEEK 9 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #10: Intro to file operations
1. How to write, read, and delete flat files.
2. Splitting and unsplitting information inside a file.
2. Changing the information in a file.
3. Looking at UNIX permissions.

TO-DO ASSIGNMENT: Write a script to add email addresses and names to a file and with the SAME script how to retrieve all the information and print to browser the name and email address in a table to the browser.


Adult NetSurprise Learning Zone PHP Course  WEEK 10 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #11: Searching for information inside a flat file
1. How to search information inside a file and alter the contents.
2. Understanding the basics of semiphores (filelocking).

TO-DO ASSIGNMENT: Write a script to search through the contents of a file CASE iNsensiTiveLy, match all entries and change from the information submitted on a form and print the entire contents of the file to the browser. All should be self enclosed in one script with find and replace text boxes.

Adult NetSurprise Learning Zone PHP Course  WEEK 11 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #12: Directory manipulation using PHP
1. Reading the contents of a directory and creating a select box.
2. Creating and deleting directories.
3. Dynamic drop-down <select> boxes containing directory contents.

TO-DO ASSIGNMENT: Write a script that will allow you to create and delete directories from the browser, password protect the script using only PHP code matched against a hardcoded user/pass combination.

Adult NetSurprise Learning Zone PHP Course  WEEK 12 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #13: File Uploads from the browser
1. Accepting a file upload from the surfer
2. Getting the information about a file uploaded
3. Limiting the size of uploaded files.

TO-DO ASSIGNMENT: Write a script which will accept file uploads of less than 50k and then display the uploaded file along with a button to delete the picture beneath it. Password protect the script so that unless a correct login/pass is used the user will not be able to view or upload the files. Use hidden form fields, not query strings to transfer the user/pass info between fields.

Adult NetSurprise Learning Zone PHP Course  WEEK 13 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #14: Introduction to mySQL database
1. Discussion on relational databases.
2. Logging into mySQL.
3. Creating a basic mySQL database and table.

TO-DO ASSIGNMENT: Create a mySQL table with 4 fields: user, pass, ip, datetime.

Adult NetSurprise Learning Zone PHP Course  WEEK 14 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #15: Exploring SQL queries
1. The various ways to query a mySQL database.
2. Limiting the results.
3. Efficient vs. inefficient mySQL queries.
4. Inserting, deleting rows in a table and complete tables.
5. Displaying SQL results.

TO-DO ASSIGNMENT: Create a mySQL a table structure to enter musical artists into a table(s) for: artist_name, genre, votes. Allow a form to choose an existing artist and "vote for it" or add a new artist to the table. Display the results by most number of votes.

Adult NetSurprise Learning Zone PHP Course  WEEK 15 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific

Week #16: Functions and program development concepts
1. Creating your own functions in PHP.
2. Reusable code.
3. Organizing projects ... knowing when and where to start.
4. When to use PHP or Perl CGI or program in C.

TO-DO ASSIGNMENT: Create a complete script which is a "free for all links" script where duplicates are ignored and links are automatically expired every 30 days and a maximum number of links is displayed per page. There will be no follow up to this project. It is do on your own :)

Adult NetSurprise Learning Zone PHP Course  WEEK 16 discussion and questions 
Script School Live Java
Adult NetSurprise Technical Chat Tuesdays 4:00 PM Eastern / 1:00PM Pacific


Warning: require(/home/adultnetsurprise.com/public_html/multiforum/feedback.php) [function.require]: failed to open stream: No such file or directory in /home/adultnetsurprise.com/public_html/zones/learning/php/php_index.html on line 413

Fatal error: require() [function.require]: Failed opening required '/home/adultnetsurprise.com/public_html/multiforum/feedback.php' (include_path='.:/usr/local/lib/php') in /home/adultnetsurprise.com/public_html/zones/learning/php/php_index.html on line 413