- Видео 118
- Просмотров 3 028 234
Dave Hollingworth
Великобритания
Добавлен 4 июл 2014
Backend web development topics explained clearly and simply. Any ideas for new videos are most appreciated!
If you like my content, please like my videos and consider subscribing to my channel.
If you *really* like my content, please consider supporting me here: ko-fi.com/davehollingworth
Thank you for being here!
If you like my content, please like my videos and consider subscribing to my channel.
If you *really* like my content, please consider supporting me here: ko-fi.com/davehollingworth
Thank you for being here!
Use Composer to Easily Manage PHP Packages
Learn how to use Composer to manage PHP packages and dependencies.
Please consider supporting my channel: ☕ ko-fi.com/davehollingworth
Topics covered:
• What packages are in PHP
• Using Packagist to find packages
• Installing Composer
• Installing packages with Composer
• Installing specific package versions
• Using Composer version constraints
• composer.json and composer.lock
• The vendor folder
• Requiring packages only in development
Links shown in the video:
‣ getcomposer.org/
‣ packagist.org/
‣ www.php.net/
‣ www.apachefriends.org/
‣ semver.org/
Videos:
‣ Importing namespaced elements with the use operator: ruclips.net/video/GrXtA5zCGFk/видео.html
‣ Send email with PHP: ruclips.net/video/fIYyemqKR58/...
Please consider supporting my channel: ☕ ko-fi.com/davehollingworth
Topics covered:
• What packages are in PHP
• Using Packagist to find packages
• Installing Composer
• Installing packages with Composer
• Installing specific package versions
• Using Composer version constraints
• composer.json and composer.lock
• The vendor folder
• Requiring packages only in development
Links shown in the video:
‣ getcomposer.org/
‣ packagist.org/
‣ www.php.net/
‣ www.apachefriends.org/
‣ semver.org/
Videos:
‣ Importing namespaced elements with the use operator: ruclips.net/video/GrXtA5zCGFk/видео.html
‣ Send email with PHP: ruclips.net/video/fIYyemqKR58/...
Просмотров: 928
Видео
REST API Authentication with PHP & MySQL | Slim PHP Micro Framework Registration and Login Tutorial
Просмотров 1,1 тыс.21 день назад
Add API key authentication, registration and login to a REST API using the Slim PHP micro framework. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth This is a follow-up video to this video: ruclips.net/video/PHZtujcTRPk/видео.html Topics covered: • How to pass API keys to the API: query string and X-API-Key header • Using middleware to require an API key • PHP templates • Si...
Encrypt and Decrypt Data Securely in PHP: OpenSSL, Sodium & defuse/php-encryption
Просмотров 1,2 тыс.Месяц назад
Learn how to encrypt and decrypt data in PHP. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Topics covered: • Symmetrical encryption and decryption with a private key in PHP • Using OpenSSL • Using Sodium (libsodium) • Using a third-party encryption package All source code shown is free to download: ‣ gist.github.com/daveh/4656141ee026c897c4dcc594fedf51fe Links shown in th...
Dependency Injection in PHP | Create a Service Container from Scratch | Use PHP-DI
Просмотров 2,4 тыс.2 месяца назад
Learn what dependency injection is, and how to do it in PHP. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Topics covered: • Dependency injection • Service containers • Autowiring • Third-party DI containers like PHP-DI All source code shown is free to download: ‣ gist.github.com/daveh/80901d23a6293a7cc4b363d6747b629b Links shown in the video: ‣ laravel.com/docs/10.x/conta...
Parse JSON in PHP | How to validate and process nested JSON data
Просмотров 1,4 тыс.2 месяца назад
Learn what JSON is, and how to process it in PHP. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Topics covered: • JSON • Parsing and validating JSON data in PHP • Nested JSON data All source code shown is free to download: ‣ gist.github.com/daveh/4aef69186bd99a99aa31409844a24a99 Links shown in the video: ‣ www.php.net/manual/en/function.json-last-error.php ‣ www.php.net/ma...
REST API with PHP and MySQL | Full Slim PHP Micro Framework Tutorial
Просмотров 6 тыс.3 месяца назад
In this PHP project, you'll learn how to create a REST API using the Slim micro framework. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Topics covered: • Slim basics • Using third-party packages in Slim • Dependency Injection • Middleware • Slim controllers • Slim configuration All source code shown is free to download: ‣ github.com/daveh/slim-rest-api-example Links shown...
Send an email with an Attachment using PHP | PHP Project with Source Code
Просмотров 2,6 тыс.5 месяцев назад
In this short PHP project, you'll learn how to send an email with an attachment using a PHP email API. All source code shown is free to download. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Code shown in the video: ‣ gist.github.com/daveh/1da54bbd6e993d29b4002e7f029173c5 Links shown in the video: ‣ www.tiny.cloud/ ‣ www.php.net/manual/en/function.move-uploaded-file.php ‣...
PHP Account Activation by Email: Require the User to Confirm their Email Before They Can Log In
Просмотров 8 тыс.6 месяцев назад
Learn how to develop functionality in PHP that requires a user to confirm their email address before they can login. Once they sign up, they'll have to click on a link in an email to activate their account. If they don't do that, they can't login. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth This is part 3 of Signup and Login with PHP and MySQL: Part 1: Signup and Login w...
Send SMS Messages using PHP
Просмотров 22 тыс.7 месяцев назад
In this short PHP project, you'll learn how to send an SMS message to a mobile phone / cellphone using PHP. We'll use two SMS gateway providers, Infobip and Twilio, in order to compare how they work. All source code shown is free to download. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Code shown in the video: ‣ gist.github.com/daveh/6a31d0d28d9aef8c161c6ff1b6d29fae Link...
Simple PHP Stripe Checkout - Securely Accept One-Time Card Payments in your PHP Project
Просмотров 16 тыс.8 месяцев назад
In this short PHP project, you'll learn how to securely accept one-time payments in your PHP web application, using the Stripe payment processing platform. All source code shown is free to download. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Code shown in the video: ‣ gist.github.com/daveh/26b68e4706b2820f5f2279ccce755655 Links shown in the video: ‣ stripe.com/ ‣ github...
Securely Storing PHP Configuration Settings
Просмотров 4,8 тыс.10 месяцев назад
Learn how to securely store configuration settings in a PHP application, using best practices. Please consider supporting my channel: ☕ ko-fi.com/davehollingworth Code shown in the video: ‣ gist.github.com/daveh/9e2f2a8a9e82b370388d718d927923de Links shown in the video: ‣ www.12factor.net/config ‣ github.com/vlucas/phpdotenv Gear icons created by Freepik - Flaticon ‣ www.flaticon.com/free-icons...
PHP File Uploads | The Complete Guide to Uploading Files Using PHP
Просмотров 37 тыс.Год назад
PHP File Uploads | The Complete Guide to Uploading Files Using PHP
Send email with PHP | Create a Working Contact Form Using PHP
Просмотров 121 тыс.Год назад
Send email with PHP | Create a Working Contact Form Using PHP
Create a PHP REST API : Write a RESTful API from Scratch using Plain, Object-Oriented PHP and MySQL
Просмотров 81 тыс.2 года назад
Create a PHP REST API : Write a RESTful API from Scratch using Plain, Object-Oriented PHP and MySQL
Signup and Login with PHP and MySQL
Просмотров 261 тыс.2 года назад
Signup and Login with PHP and MySQL
Save HTML Form Data to a MySQL Database using PHP
Просмотров 184 тыс.2 года назад
Save HTML Form Data to a MySQL Database using PHP
What's new in PHP 8.0 | Learn how to use PHP 8.0's new features with real-world examples
Просмотров 9 тыс.2 года назад
What's new in PHP 8.0 | Learn how to use PHP 8.0's new features with real-world examples
How to use a REST API from PHP using cURL | Full PHP cURL API tutorial
Просмотров 35 тыс.2 года назад
How to use a REST API from PHP using cURL | Full PHP cURL API tutorial
API access tokens: how do they work, and how do they compare to authentication using API keys?
Просмотров 42 тыс.2 года назад
API access tokens: how do they work, and how do they compare to authentication using API keys?
How to call APIs from PHP: file_get_contents, cURL, Guzzle and SDKs
Просмотров 39 тыс.2 года назад
How to call APIs from PHP: file_get_contents, cURL, Guzzle and SDKs
How to set up a virtual host in Apache (WAMP, MAMP, XAMPP)
Просмотров 6 тыс.3 года назад
How to set up a virtual host in Apache (WAMP, MAMP, XAMPP)
Validating and verifying email addresses in PHP
Просмотров 25 тыс.3 года назад
Validating and verifying email addresses in PHP
PHP Type Declarations: make your PHP code easier to read, and simpler to use
Просмотров 4,5 тыс.3 года назад
PHP Type Declarations: make your PHP code easier to read, and simpler to use
Passing data from PHP to JavaScript: methods, their pros and cons, and how to implement them
Просмотров 47 тыс.3 года назад
Passing data from PHP to JavaScript: methods, their pros and cons, and how to implement them
Rich-text formatting in PHP: HTML, Markdown, rich-text editors like TinyMCE and doing it securely
Просмотров 10 тыс.3 года назад
Rich-text formatting in PHP: HTML, Markdown, rich-text editors like TinyMCE and doing it securely
Dave, I want to thank you for being very precise in your explanation. I love the way you narrate your content and provide as much value as you can in the most efficient way possible.
Dave excuse my lack of intelligence but please can you kindly explain what your using exactly to write the code? Is that a program? Is that a OS?
It's a code editor, Visual Studio Code. It's free, you can get it here: code.visualstudio.com/
@@dave-hollingworth Dave, I have spent the last two days studying this video. I have followed every single step and done this multiple times. I’m still having a silly error encountered on my side. I’m surely making a small mistake but I can’t seem to figure out where. Please take my request seriously I am more than happy to pay you upfront for a quick 10 or 15 minutes chat. Maybe you can help me where I am going wrong….. I will pay you upfront, so you know I am not messing around please can you reply to this comment with a handle i can contact you on such as telegram or whatever you prefer. Sir, I know you get a lot of comments on your videos of people asking you for help but hopefully you’re happy to help me where I am willing to pay for your time. I will pay first so you know I’m serious. Any crypto you like :)
Hey i had a question if i were to put a pho file into a website will the website work because there is no server there
You need a web server to have a website... you can serve any file you like, including .pho files - however if you want to execute some code like PHP, you need the web server to support PHP
Ohk thankyou@@dave-hollingworth
Hello dave, thank you for the great video however, It shows here that in my code Warning: Undefined array key "email" in C:\xampp\htdocs\dms\send-password-reset.php on line 3 pls help me
What code is on line 3?
How to make all files separate?
Can't we have php html and javascript separately? For I have recognized the extension of .html is .php in your video.
Yes, you can separate them into different files if you like, that's quite common
Great content, thank you.
PHP 8 was such a giant improvement. Another great addition was the match expression. Named arguments genuinely make code so much more readable. One of the rare cases where verbosity is the better choice.
R+
PHP is a multi purpose language. And here we see just one scenario. Good tips.
You are the best! Thank You for yours tutorials.
4:46 I don't know why my vendor files not appear, can you help me?
What happens when you run it? Do you get any errors?
"To concatenate a string we use a dot. " No. Don't. Please don't. Use sprintf. Use printf. Hell, use a fucking array and join. Just please don't use dots.
literatly the best programming video ever
Amazing!!
This is great! Perfect amount of explanation. I still have to dig in as I dont have PHP experience and this was exactly what I needed. great job!
Dave do you have course where you implement PHP MySQL + GraphQL for querying? or do you recomend one?
I'm afraid not, but it's a good idea for a video, I'll make a note of it, thank you!
Excellent - after 2 days of trying to figure out the Stripe documentation, I found this - which makes it all look so easy. Thanks
Greate Tutorial. Can you explain how to implement 3D-Secure payment in Stripe?
Thanks for creating such an informative tutorial on PHP :)
thank you ! helpful
sir, i got a problem. I do as the same like the video but after paying it can't jump to success.php and Not Found The requested URL was not found on this server.
Cor, if only all dev tutorials were of this calibre, not a word wasted, bravo!
Super useful videos. Thanks friend!
I'm now getting this "Message could not be sent. Mailer error: SMTP Error: Could not authenticate.Message sent, please check your inbox." Is it a firewall issue with smtp server?
thankyou for the guide. I use "python3 -m http.server" to run my local host. but i can't post wtih it. what's wrong with it? I don't understand the answer online.
Another brilliant video
You are the best PHP teacher on YT. Thank you!
Hi, can you make video on how to implement rate limiting OTP/Verification Link request for verifying account in PHP?
Just use react
Nice work Dave! I love the way you delve deep into the sub-levels of PHP
Thanks for this tutorial, when i add this command in cmd windows "http get restful-api-slim-php.local/api/products" i have erreur message "'http' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes." ? thanks.
Thank you so much.
Thank you. - Rolfe
Short yet very informative, Thanks Dave!
Thanks very much, Dave. Can you help me with a serious challenge that I am facing, please? My PHPMailer successfully sends mail as $mail->send() = true; But there's no mail in the target inbox! How would you overcome this?
Do you have debug mode enabled? Does the debug readout say send success? It's easy to enable debug readout in PHPMailer so look that up and enable. Are you sending via SMTP? Getting PHPMailer working is 50% of it, having the SMTP mailbox for sending setup is the other 50%. Try sending to a temp-email box provider, and look in your spam folders. These days your mail can easily not be delivered if you haven't got the correct credentials setup like DKIM, DMARC and SPF, there's recently been a big clamp down on things like this with Gmail, Outlook etc. . Just recently our host enabled a new spam filter and that interfered with our sent mails, there's always little things like that which can trip you up. So if debug in PHPMailer is saying sent with no errors, then time to look for clues on your server or SMTP mailbox you are sending out on as to where these emails are ending up.
@@Dev-sf3pz Thank you very much. Debug is enabled. And, it's Success. Gotta look elsewhere then. Thanks again, Dave.
@@NedumEze Check the spam folder, or try sending from or to a different email address
@@dave-hollingworth Yeah, Dave, I have. There isn't anything there. Thanks Dave.
@@dave-hollingworth why was my reply seemingly deleted?
Thanks for this great tutorial.
best!
I'm new on PHP, what special to learning fast?
Welcome to PHP 🙂 To learn quickly, focus on understanding the fundamentals such as variables, loops, and functions. Practice regularly by working on small projects and referring to online resources like tutorials and documentation. Don't hesitate to ask questions in PHP communities if you encounter any roadblocks. Consistent practice and exploration will help you progress rapidly. True to the motto: Try, fail, debug, coffee, repeat.
highly, HIGHLY recommend dave's udemy class "PHP for Beginners" thru Tim Buchalka's Learn Programming Academy which covers ALL the basics & was a GREAT prep for a college course i later took! it currently lists for $99 but if u have time to wait for a sale u MIGHT b able get it for <$20 (@ least i did +3 yrs ago!) failing that he has a lot of free content right here on his channel that im sure will get u up & running fast! freecodecamp is my other goto but their php content is a litlle dated :(
Thank you. I have been trying to overcome that inconsistency, I believe take projects like you mentioned will help me a long may.
highly recommend dave's ud3my class
OT - any chance that XAMPP would replace MySQL with Postgres?
Interesting idea - I can't find any mention of this, so I doubt it anytime soon - there does seem to be various tutorials around though that detail how to integrate PostgreSQL into XAMPP.
Thank you for watching! Please consider supporting my channel: ☕ ko-fi.com/davehollingworth
😂Dave your amaizing🤣
I wish I could afford to buy your udemy course. you are amazing teacher
Normally it you check it out a few times they give you a huge discount
2:22 can you please provide the video link for this? also, you explained everything very well! im still not familiar with a lot of concepts mentioned but i still managed to understand this! thank you very much!
ruclips.net/video/L5E2HSHrDjw/видео.html (it's also below in the description)
Hi Dave! Your tutorial is great! But I have a question: if I'm doing a big project, is it an necessary to put the htdocs folder into the entire project? Or just leave signup.html and others php file following by the project's structure?
The htdocs folder is just the root folder of the web server. So yes, you can put the files wherever you like.
@@dave-hollingworth Thanks, and one more problem is that if i want to connect the file php with the html file, i can't do like you with action and method, because in my html file it contains Yup, can you recommend any solutions in this case?
@@eagle-yq7yw I'm afraid I'm not sure what you mean - the action attribute is used to connect the form with the file that will be requested when the form is submitted.
What the fuck
Thank you sir now I can connect html form to database! The problem is that I can only see one record in the database after adding more
This could be for many reasons - try comparing your code to the code from the video (link in the description)
thanks a lot! this is exactly what I was looking for, you explained everything really well, now I can go ahead and make my project
What program are you using to open and editing files also dos this program comes with a command-line terminal?
i found out already, thank you.
Which version of MySQL you using, there were some changes made in the syntex
You can see the various versions here: ruclips.net/video/5L9UhOnuos0/видео.htmlsi=3_9TY9rIlML2UiSP&t=600
@@dave-hollingworth Issue resolved! I found out that I had to remove the following: "(hostname: $host, username: $username, password: $password, database: $dbname);" to "($host, $username, $password, $dbname);