PHP Programming Part 11: Redirecting Web Pages with Header Function in PHP

preview_player
Показать описание
Info
Level: Intermediate
Presenter: Eli the Computer Guy
Date Created: Jan 11, 2013
Length of Class: 11:08
Tracks
PHP Programming
Prerequisites
Familiarity with PHP Programming
Purpose of Class
This class teaches students how to use the Header() function in PHP to redirect web site visitors to a specific web page.

Class Notes
You cannot output any data to the screen before you call the Header() function.
The Syntax of the function is:
Resources
Рекомендации по теме
Комментарии
Автор

Not sure if you still read these comments, but I decided to learn PHP thinking "If eli took time to teach it it's probably worth a weekend". It turned into an all consuming hobby. I built an app off of the clock that I saw a need for at my current job. Sold it to my boss, and leveraged a raise as a maintainer. Eli you've changed my career path and my life for the better. Thanks dude.

JimmySimpson
Автор

Outstanding: just played with the "put_contents" function and noticed it left you hanging on a blank page after submitting.This completes that lesson perfectly. Great stuff Eli!.

ace
Автор

Thanks, Eli, for your concise instructions. I began with the first video, viewed them all & just completed this one. It's nice to be able to understand the "behind the scenes" things with PHP.

katlap
Автор

I really appreciate these lessons. They're easy to follow without getting confused or frustrated and I can actually do things with PHP now! Thanks Eli!

Pubert
Автор

Fantastic approach...a pleasant method of being direct and exact in your own way of teaching a highly complex and complicated subject...thank you and I look forward to your other classes...again thank,

danielhvillegas
Автор

I love the PHP tutorials you teach. I am working on leaning more about PHP and have learned that YII is a "toolbox" of PHP code to build safe websites utilizing PHP without having to reinvent the wheel. Please do tutorial utilizing the YII technology.

Thanks Eli. I have told many about your great videos!

nasarums
Автор

First of all i gotta say that you are great teacher I learned a lot from you !!
Please do us a favour and continue with PHP tutorials !!

Thanks :)

AldoSelimovic
Автор

Hey Eli, my life not complete without you completing this class. Hope there are some episodes left.

magyard
Автор

Eli, you are a great teacher! Thanks for putting in so much effort...had a great time watching and learning from your videos.

MaxRespect
Автор

Waiting you to continue. Very useful your classes. I finaly understand how php works. Thanks a lot!

prisiceanuasig
Автор

Thanks for all your time and effort. I watched all off them and learnt a lot. 

sharidass
Автор

Greetings Eli, I came across you videos last week and believe me, I have learned a lot from it, more than ever.
The way you explained things were very clear and would make anyone to dream of considering being a programmer one day. I'm beginning to get convinced that that programming may not be a beast with 7 heads. lol
Just one thing that I realized while following your tutorial. It has to do with the CSV file. This file doesn't open correctly in Excel 2010 and probably above as well, but I have 2010. It opens, but doesn't separate the datas at the comma on different column, as desired. The way through this was I changed the CSV to TXT file and then opened it in excel and this time everything opened perfectly well.
Once again, GREAT TUTORIAL. Hope to hear from you again soon. Merry Christmas to you and everyone, have a nice learning.

AlvomaniaDK
Автор

Eli, Please tell me where can I find the rest of your tutorials. I see some people are misguiding to other websites. Have you made any other tutorials for PHP programming? All your tutorials and the way you teach are adorable and easy to understand. Thank you for the videos and waiting for your reply.

Moottu
Автор

Eli I so much love ur videos please i need more of this PHP tutorial videos especially the how to prevent SQL Injection part... Please continue the good work...U re d best...ever

MrEzugudor
Автор

Thank you for your tutorials. I'm newbie and these php-tuts are great for first approach. Wish the best for you.

tuanngominh
Автор

Thanks Eli!  I need to watch the rest of your tutorials - you saved me here, a few hours over one little space.

jvosinc
Автор

Thanks Eli! Appreciate you putting these videos together. Watched all 11 and am sure I will utilize more from your sites. Go Ravens!!!! :)

jeffdean
Автор

For logging in you need to use sessions to carry data from one page to another. Using $ _POST is the right way, but you will have to use sessions to carry the data from one page to another. The difference is that POST is used for private data like usernames and passwords. GET is used for things like searching, which isn't sensitive information that REQUIRES security.

KrazyIndeed
Автор

Thank you again, Eli the Computer Guy. Typed everything out and it didn't work right. After reviewing each page I noticed that in the Function I misspelled email. Left the L out. So, when I ran it the first time, it displayed (rendered) the, Thank_you.php, but the file.php was blank. Once I corrected the Spelling, the file.php had one email address. Ran a few more times to populate the page with email addresses. Thank you again. Very important to listen to you explain how the flow moves from line to line so we know what's broken.

ScreenPrintR
Автор

Hey Eli, i just want to thank u, i watch a lot of ur videos and get interested in php so first i googled is eli the computer guy php :) Maybe u can explain how to make scripts with mysql db etc. Ur videos are awsome keep it up . cheers

mtr