PHP Tutorial Header

preview_player
Показать описание
In todays PHP lesson we are going to look at the header PHP function. This PHP function is used for altering the headers of a request. This can be used for redirecting the user, caching a response, changing the content type and so much more.
This PHP tutorial is aimed at beginner web developers who are interested in learning more about PHP

==== GET EARLY ACCESS TO FUTURE VIDEOS & TUTORIALS ====

======== RECOMMENDED PROGRAMMING RESOURCES ========

PHP Books:

PHP Hosting from Cloudways:

======== MY PROGRAMMING COURSES ========

======== WEB HOSTING DEALS ========

======== SUBSCRIBE TO THE NEWSLETTER ========

======== FOLLOW ME ========

======== MY TALKS ========

======== SUPPORT THE CHANNEL ========

======== VIDEO SETUP ========

Join the How to code well YouTube channel to get access to premium programming courses, tutorials and member perks
Рекомендации по теме
Комментарии
Автор

Nice tutorial it deserve a subs and likes

betterlife
Автор

Many Thanks, Peter.
Extremely helpful.
Subscribed.

samdavepollard
Автор

Hi, I wonder where the reading material that you mentioned in the end of the video? Thank you ^^

DucMinhTeaching
Автор

If we're a user how can we capture the location header in PHP send by the website?

martyrdm
Автор

Hi Peter, I have not been able to locate the document you mention on the video. Is it still available?
Thanks for the videos.. Very well done.

emmamorris
Автор

good job sir, I look forward to seeing you design a simple three page website using php and maybe bootstrap

odunladeoluwaseun
Автор

Please help. I need to create Access-Control-Allow-Origin header and I also need to write a code that send data to a database. When I put the header the and the database code, the header is no more working as you said. How can I write both of those pieces of codes so that they get work together? Thank you very much in advance

nandeetjihero
Автор

When exactly does the header function send the header? After the semicolon? When I get the header business right, a header once sent can't be overwriten by another one. The example at around minute 12 suggests that the header isn't sent before the script ends and echoes something, so the second header is overwriting the first one internally. What would be the purpose then to have to header redirects?

RagHelen
Автор

Can I push data with post method using header?

zombiestrange
Автор

Hello I'm just a beginner incoding php I'am having an error that I cant fix I would very much appreciated if you could help me

Cannot modify header information - headers already sent by (output started at /some/file.php:12) in /some/file.php on line 23

i_love_clips
Автор

the link mentioned isn't in the description

mayorityz
Автор

sir my file registration1.php this is my php file where my php code is write and under template file-> registration.php(bootstarp file).i want to go from registration1.php to student_login.php this file location

sauravsinghkaurav
Автор

Thanks for the video. I’m a little confused though, when you say don’t output anything before, are you saying I can’t have any html first? To keep it simple, if I had a php script in the middle of my page that puts data in the database and redirects to the same page when it’s done, will that break the redirect? I did try it and it worked, so I’m not sure what’s meant by not outputting anything first. Thanks for your help.

slapmyfunkybass