How to Code PHP Tutorial 6

preview_player
Показать описание
Here I show you How to Code a PHP Simple Login Script. This is part 6 of my How to Code PHP Tutorial system. With this series of tutorials I'll teach why php? And, I hope to help you master the PHP Engine.
Рекомендации по теме
Комментарии
Автор

I always save it in the directory that contains your documents folder. The document folder holds the pages like index.html. It is sometimes named html. Save the config file above the directory that is web accessible. I hope that helps

derekbanas
Автор

@Colstonewall A buffer is a temporary holding cell for data. Data is stored in a buffer in ram because it is easier to quickly access it. When all of the data needed to do something useful is stored in the buffer it is easy to quickly send it at one time. Then the space set aside in ram can be deleted. Using buffers provides quick transfers of data. Buffers however cant store large amounts of data. Make sense?

derekbanas
Автор

Thanks for the reply Derek. You're a legend. Ta

ninarae
Автор

Well, you asked for it Derek, LOL. Do you want to explain buffering to me? I've read the definition, but still don't quite understand. Maybe a simple, real world example might help (not code). Just 'it does this when it's on' type of explanation. . .Thanks

Colstonewall
Автор

Hi Derek, I am a bit confused about storing the config.inc.php file in a directory outside of your root folder. At my school we put an includes file within the website directory and it has the config file in it. Is this wrong? Obviously the site is uploaded to the server root folder so how can I store config outside of root? Cheers, Nina

ninarae