PHP Front To Back [Part 10] - $_SERVER Superglobal

preview_player
Показать описание
In this video we will create a simple webpage that displays the server, file and client info. We will use Twitter Bootstrap to make the page look nice and clean.

CODE: Code for this video

EDUONIX COURSES: Pleas use affiliate links from website below

SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support:

FOLLOW TRAVERSY MEDIA:
Рекомендации по теме
Комментарии
Автор

Hi Brad, I came across a cool little tip when using *print_r()* or *var_dump()* : wrapping it between HTML *<pre>* tags makes the output nicely formatted and more readable!

kaikaichen
Автор

A short trick to print/display your array in a more structural way is:

<pre>
<?php print_r($server); ?>
</pre>

cacurazi
Автор

I actually take time to read thru the comments as well.. "beginner" seems to be more like "FRESH MIND" especially when the mindset is on understanding and not the 'monkey see monkey do' type of learning. Thanks for what you offer Brad and thanks for all the comments posted.

tybeau
Автор

Great work, clear and with as much details as needed. Keep it up and please think about making a full project or something like that at the end of the series will be awesome :)

nikospaschalis
Автор

ya'll can just put <pre> tags around the print_r statement and it'll look nice and prettty no need to go through the loops.

codegate
Автор

Hi Brad! My name is Arad and I'm 9 years old from Philippines. I'm learning php from you and I really wish to be like you. Thank you for your nice videos!

maziarmomtazi
Автор

Yeah, I think the reason the User Agent String includes Mozilla and Apple Webkit as well as Chrome’s own version is to prevent bad/old code that just checks the browser name and artificially blocks the browser (instead of actually checking the browser’s capabilities).

I believe this practice was started by Microsoft when they started making their IE browser web standards complient but sites would block the browser just because it had IE in its user agent. Microsoft started to add Mozilla to let sites know this wasn’t IE6. And I guess it kinda cought on.

NazmusLabs
Автор

I don't know how deep u intend to go but I would love to see some kinda of deployment. I never hosted a website so i'd love to experience that.

cheeseburger
Автор

This was a sudden change in difficulty :D vars, loops and functions are a breeze, this one will need a bit more work. Great tutorial!

Anhjje
Автор

Amazing videos. After being away from PHP for several years, this is a great refresher.

Rorkazak
Автор

I'm super happy the way this Chapter of the Tutorial turned out. I learned a ton of new stuff. I'm very appreciative of this. Thanks Brad.

busyrand
Автор

Thank you Treversy Media, this has given me more insight on how to use PHP! Please do not stop you're good works, it really helping the junior developers. God bless!

_romeopeter
Автор

Super handy tutorial this. If you're not familiar with loops and shortcuts for them, it would be wise to bone up before attempting this.

scriptkeeper
Автор

the quality of these tutorials are unparalleled. thanks pal, thank you very much.

RameenFallschirmjager
Автор

moved from the newboston over here for these reasons
1: You're voice is nicer
2 its updated
3 you use sublime text and not ConText (or something like dat)

SexySnorlax
Автор

100% one of the best youtubers of this sort of thing, you cover so many languages and pump content out so fast its insane keep up the amazing work!

tomrouse
Автор

I got confused about how you use php syntax in html... So when we write php inside html we use "endif, endforeach and so on" instead of "{ }"? also why do we put ":" after "if" and "foreach"?
Thanks for your work!

Danger
Автор

Thanks for another great video Brad! I've been following you for a while now, from student to professional, I love your videos and how clear they are.

MrSupernerd
Автор

I wrote the index.php code in the server-Info.php file and then included the server-info file in the body section of the index file b/w the div tags.
This makes it a whole lot cleaner.

muhammadshahryarazhar
Автор

Just a reminder since we haven't talked about this since session 2. Be sure you are putting these files in with the server location.

kevinerose