PHP FILES Variable & Move_uploaded_file Tutorial in Hindi / Urdu
HTML-код
- Опубликовано: 9 фев 2025
- In this tutorial you will learn php $_files variable and move_uploaded_file function tutorial in Hindi, Urdu.You can learn how to upload file or image on server with php $_files and move_uploaded_file function tutorial in hindi.
PHP Tutorial in Hindi Playlist
• ✅ PHP Tutorial in Hind...
Official Website
www.yahoobaba.net/
Follow us on Facebook
/ yahooobaba
Follow us on Twitter
/ yahooobaba
#php #webdevelopment #webdesign
Let’s me just say that Iam from Islamabad Pakistan and living and working as a software developer in USA and I wish This Channel started early in my 20s 10 years ago I would have donated everything to it , I always come to this channel for understanding programming concepts in my own language and Yahoo baba is one instructor that We all need in our life
How much experience do you have?
Thanks bro
yes, yahoo baba is also one of great teachers in youtube.
You are saying that I am working as a software engineer in USA.. And here are you learning basics of PHP. Wah Bhai gajab ka software engineer hai tu😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂😂
Arre sir ji! Kya zabardast samjhaate ho. Mujhe yeh aaj pta chla ke $_FILES[ ] , array return krta hai.
Thank you so much sir, sabh cheez details mei samjhaane ke liye. 😊🙏🙏🙏🙏
(Thanks Raj. $_) walie jitne bhi variable functions hote hai wo sab Array return karte hai jaise $_POST, $_GET, $_SERVER etc.
@@YahooBaba thanks sir, both mann hai, poori Series Shuru se dekhu aapki php ki, lekin itna time nahi nikal paa raha hu but jo Topic nahi aate, wahi search krke dekh raha hu. Thanks for helping all of us again.
Your welcome :)
This is one of the best explanation of this function on RUclips.. helped pass my interview test :-p
Thanksss aloottt
Any tips? I have interview tmrw.. wordpress
@@japeshcollege7144 I wish you best of luck
bahut bhadiya sir......ek brain mein chala gaya,.....i liked ur way of explaining
Your welcome :)
I've just mastered php super global variables by watching your video tutorials. You are the best coding teacher I have followed in my life. Love from Bangladesh!
Thanks and welcome :)
@@YahooBaba sir ji same yahi coading maine ki h but submit p click krne ke bad kuchh ho hi nahi raha bss page refresh ho jata h
maine apki site se code copy paste bhi kr k dekh liya...
sir haapy diwali to yahoo baba and family .. continue....
THanks Human being and Happy Diwali :)
السلام عليكم
Sir app ki video super hai me kafi kuch aap ki videos ko dekh kar clear karta hoon
That's Great :)
You are doing a tremendous job , hats off to you from depth of my heart.
Sir aapke padhane ka tareeka sabse zyada achha laga really 👍👍👍👍👍
I have seen many video but you are the best sir, very good explaination my code successfully runned at first time..
Glad you like it :)
Thank you sir very easily you explained ❤ this topic.
yahoo baba is the best for php among all php tutorials
Thanks for appreciating my work :)
full great video classes php tutorail,
bhut acha pdate hn sir ji so proud of you
Sir, You are just awesome. Take more and more love from BD. May Allah bless you for your good work. Live long sir.
Thank you so much 😀
the way you explain every single thing is amazing...love it
Thank you so much 😀
Your way of teaching is awsome 👍 keep up the good work
Thank you, I will
first time watching your video. But you've done such a great work. Really appriciate you, sir.
Thanks and welcome
Explained very well 👌👌
nice explanation ..........................👍👍👍
Great explanation !
they way u explain u r the bestttttttttttt
your way of teaching style is just perfect.
Glad you think so!
U are my saviour . Thanks 🙏🏻
sir, first of all thanks a lot.. really sir you are great. sir only from your channel i have learnt a lot, everyday about 8-10 hours i watch your videos. now i have become a good developer on php... but one requset sir, please make the video on framework like laravel and codeigniter.. please please please sir, i have visited number of channel to learn framework but i am facing many difficulties. i cant understand properly from them. there are no one like you who teaches difficult things in easiest way. please sir.
Thanks for this brilliant explanation ❤
Most welcome :)
You are amazing sir .....
you explaination style is really awesome.
Thank u so much sir,
ur lectures are performing most imp role to clear our doubts about coding.
plz mention that from which video u will start my sql.
if anyone knows about plz comment
thanks
Nice explanation.
Thank you so much .... you clear all my doubts
Great 👍
Excellent sir for explaining line by line code and thank you somuch sir.
You are most welcome
Thank You Soo Much Sir😇🙏It is really helpful
Thankx alot sir g, u are great Ma sha Allah ,,,
Thanks and welcome
You are great Sir
thank you so much , i really used to face problem , when i try to upload image
Zabardast video. Thanks. Upload to sql bhi batain
Sab bataya hua hai Abbas in PHP course "News Blog Project"
Amazing, thank you very much.
Great great explanation..
Glad you liked it!
Thankyou...Keep making these awesome tutorials
Glad you like them!
Thank You so much❤❤❤❤❤❤❤❤
You're welcome 😊
Excellent....
Thanks a lot
very good teaching
Thanks and welcome
Very nice tutorial!
Glad you liked it!
Best explanation!!
Thanks Akif :)
Thank you soo much I watch many videos but could not understand $_Files Groble variable and image uploading in direectory but you taught me well in easy way. I'm vary happy to learn from your videos. Thanks a lot.
Awesome
Such an amazing method. Love it!
Glad you like it!
good effort.
Sir, You are really awesome, I'm really grateful to you. Thank you very much for this amazing content. I always follow your channel and always learn something new, sir please pray for me as if I'll be a successful web developer like you :)
@sir,
please start python tutorial, python most power-full language and fast that's reason most of the people like python. I also learn it if you make this topies video it will be top video on youtube. because you are best teacher who makes best coder for beginner.
I will start Python course in next 2 months
It is the slowest language than java
Thanku soo much sir
Most welcome Basit
Thank u very so so much for this series sir :)
Most welcome
thank u so muchhh
Good guide.
I have learnt from you as HTML. Css, JavaScript, even jQuery. After that I have started PHP but I doubted that it becomes easier for me to code like phyton after specialist in PHP coding
See if you want to learn Python then no need to learn PHP first because coding in Python for web development is almost same. So you can directly opt for python if you are planning web development. But if you are planning some other stream with Python like Desktop Software developer, Data Analysis, Data Science or Machine Learning so you have to learn some specific library with Python after completing python basics.
Here is my suggestion that if you are planning a career in Python except web development then you have to work very hard because their is a tough competition and very less jobs. I know you also heard that their is a scope in python but that is only salary wise scope... their is not so much jobs right now. So be prepare hard with mathematical skills , static skills if you are planning for Data Analysis, Data Science or Machine Learning. Good Luck
@@YahooBaba Bhaiya me to Tut gya😥😫
Kuuu?@@BTW_ITS_ANIL
@@HelloSoftware-e7w wo 6 month pehle toota aur tum abi puch rahay ho
Haha magic sy PATA chalta Kia pehly?@@HassanAli-bq8vc
amazing
Thanks a lot
Most welcome
very very thanks
Most welcome
Waiting for java tutorials
sir thank you so much for this php playlist! this is the best step by step youtube channel for php. sir, if possible, please create one playlist on how to master mern stack. or if you know any channel like yours which explains mern stack like you have explained php, please put a link in reply. thank you once again!
thank u so much sir
Most common Warning: failed to open stream: No such file or directory…”
Solution: This error occurs if a target folder location is not valid. For example: create “uploaded-images” folder if this error occurs in above program.
my error saying permission denied
thank you
You're welcome
sir aap yaha pe video timeline 04:23 at this time aapne kese yaha pe "/" lga ke input tag ko kese close kr skte ho, maine bhi same chiz kia but waha pe text typing k liye aa rha hai, kya yha pe atom editor koi roll hai?
Hello.
Good work .. I have a qus. ....
Jis trh se online examination form me Photo aur sign alg alg upload and display hota h wo kese hoga .... Plz samjhao
Yeh sab detail mein maine bataya hua hai aage aani wali videos mein. Please check "News Blog Project" in PHP course for that.
@@YahooBaba sir single image to ho rhi h lekin dusri image upload krte hi phli wali ht jati h yha dusri image upload krne k liy choose btn aur upload btn alg bana rkha h ..
Ap link share kr de ......
Thank you ....
Dear iss tutorial se toh sirf ek he image upload hogi agar aapko is tutorial ko follow karna hoga : ruclips.net/video/Bz9JqfJOyd8/видео.html
you told the meaning of every little thing ... thanks man . i have been learning from since the starting of this year.
Great video.It worked well. can you do the same with validation part please.
Sir can you please explain what is the use of keeping files on server and how we will know which user uploaaded which image?? We can directly save it in our databse i think i have done it in past. Using query we can just insert the image in database.
Hello, we can't save image or any file in database. We can only save their names in database. I thinks you didn't see "News Blog Project" in PHP course playlist. Please see that videos to get more detail how we manage uploaded files.
@@YahooBaba thank you for replying. Yes i dint saw news blog project but i will. I started building project after watching crud operations. I want to ask you when should i switch to a framework like laravel. Should i learn oops In php or i can switch now. I already know oops as i have worked in java core and java swing.
Java or php which is better for web development?
thankkkkkkkkkkkkkkkkkkkkkkkkkk u
Sir super globals k baad konsi video dekhu aapki sequence mai php sikh ne k liya??
Here is complete playlist of PHP course in sequence : ruclips.net/p/PL0b6OzIxLPbyrzCMJOFzLnf_-_5E_dkzs
@@YahooBaba thank you sir
sir i need to ask one thing k agar ak form ha jis me baqi name last name or other details hen to is k liye hamen insert ki query lganai parti ha to uska php b banta ha ab image upload krni ho usi form k through to iska function alag banana pary ga ?
Nahi koi function alag nahi banega. Yeh sab maine PHP course ke andar "News Blog Project" mein detail mein bataya hai. See that videos
@@YahooBaba believe me ap k news project se bht kch sekha ha abi mujhy project mila hua ha me us me bz hon tb hi videos ni dekh pai i will definitly watch your series.
ak complete form hoga jisme name email no and othe info hoga and sathe imag hoga..,,oo jak date base me save hoga ,,and us information se user ka ak card type box banega bootstrap me...iss project ka requst me apko karta hu
Yeh sab maine already teach kiya hua hai in "News Blog Project" in PHP course playlist.
sir, sath yeh b btaya kren na k yeh function boolean return kr rha hai ya int etc, us k behalf pe ham us function ko if() men use kr saken
please sir make some video on how to upload and view file using rest api
Yes sure coming soon
@@YahooBaba sir any hint how to do using this code whatever you teach in this video file variable and move_uploaded_file and sir i have webbased app in that how to store session I work in that way but it not store
$fname = $_SESSION['firstname'];
$lname = $_SESSION['lastname'];
Thanks for the video,
I can see the message upload successfully in my system whlie running the code but there is no file in the Target folder. Can you please help me with this?
Sir mene canvas ki andar me 10second ki liy ak Animation banaya me chatahu is animation video me mp4 me convert hozay
Sir ky aisa hosakhta hyy sir piz piz🙏🙏🙏 reply me
You can use this website to convert HTML5 Canvas animation into MP4 : html5animationtogif.com/html5tovideo
@@YahooBaba sir me animation app banana chatahu sir javascript cord se animation ko video me convert kyse kare? Sir piz aap example du piz🙏 sir
Jubraz I can't help you in this topic because it's not a unusual topic.
Please share video on file validations on upload
That I already taught in "News Blog Project" in PHP course playlist.
Sir, please make a video for laravel please sir
Sir which code editor you use
VS Code : code.visualstudio.com/
Sir I have a query.
When I uploaded same image two times then in the folder only one image is appearing
You have to change the name of image when ever you save the image with (date and time) or (any random text). See the "News Blog Project" in PHP course playlist where I have done this work.
Great,can you tell how to get the upload time of a file from a website.
You can use filemtime() function for that :
www.php.net/manual/en/function.filemtime.php
Sir is video mai aik cheez bta dy k agar ham picture upload krty he to action mai agar koi aur file bna ly kia waha picture display ho skti he anchor ka tag use kr k plz guide me sir
Sir , this PHP playlist course is full course??
And second it is advance or medium level ?
Right Now it is not a Full Course but shortly within a month it will become Full Course List and also become Advance Level Course.
Database mein hum temp name store krwate hai kya ???
Nahi aisa jaroori nahi hai. Maine yeh sab detail mein next "News Blog Project" mein kar ke dikhaya hua hai ki exactly karte kya hai.
@@YahooBaba uska link de do sir
check file is image or not after change extension in php. It means change jpg extension in php extension.
What is ur question ? I didn't understand.
sir I need help. I want to upload video with blob datatype and also want to show that video so how I can do please help me thanx
See whenever we uploads the video then we only store the name of the video file in database. So their is no need to take Blob Datatype for it. If you want to see how we do it in real project then see "News Blog Project" in PHP course series on our channel.
Sir meine php or mysql ka project bana aur mhuje Laravel ka internship mil gaya tog lag gaya hu sahi hai kya kyu ke mere basic clear nhi hai oops
sir kya yeh possible hai ki hum executable file, folders, online game data, zipfiles stire kr skte hai kya, humari ek team hai jo game develop krti hai, just for testing hum use upload and download krwana chahte hai user ko to wo kese kr skte hai.
In live project multiple users ki same name ki file ho sakti hai to or folder name assume dir1/ hai to kese file uploading system banaye ye video ke according to successfully msg aa jata hai lekin same name accept nahi karegi system then solution ?
php ka future ka hoga?
JO bhi hoga acha he hoga.
Sir I have a doubt, I want to upload only excel file, other file formats like PPT, jpg should not get uploaded, it should display the error for other file formats except excel. Sir please tell how to do this?
What error message is showing ?
You can try these code. ===
Sir plz can u guide us about images gallery using Javascript..... Buttons ka use kr k next aur previous picture aye sir plz is k bary mai bta dy Javascript use kr k
Use swipper.js
THANKU SIR JI,
isme ek question or tha file ko replace kese krenge , man lo ek pdf ko up load kiya usko dubara change krke upload krni h tho vo kese hoga...
Yha pe replace nahi hogi file ...aapko pehle purani file delete karni padegi. Yeh sab mein PHP ke CMS project mein batane wala hun.
@@YahooBaba ye KB tak upload ho jeyga sir
Kal se mein PHP CMS Project ke lessons shuru kar rha hun.
@@YahooBaba Sir ji ek choti si help chey thi..
mane pdf upload or download krne ka tho shik liya but pura nhi .... vo tho apke project m or shik lunga
filhal ek help chey pdf ko view kese krwaeya jaey
// Downloads files
if (isset($_GET['file_id'])) {
$id = $_GET['file_id'];
// fetch file to download from database
$sql = "SELECT * FROM upload_pdf_file WHERE id=$id";
$result = mysqli_query($conn, $sql);
$file = mysqli_fetch_assoc($result);
$filepath = 'uploads/' . $file['name'];
if (file_exists($filepath)) {
/*
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=' . basename($filepath));
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize('uploads/' . $file['name']));
readfile('uploads/' . $file['name']);
*/
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filepath . '"');
header('Content-Transfer-Encoding: binary');
/* // Now update downloads count
$newCount = $file['downloads'] + 1;
$updateQuery = "UPDATE upload_pdf_file SET downloads=$newCount WHERE id=$id";
mysqli_query($conn, $updateQuery);
*/
exit;
}
}
ID
Filename
size (in mb)
Downloads
Action
View
Sir hum mysql database me kisse file ka ya kisse site k complete url kaise store kara sakte ha maine jab store karaya to MySQL database backslash ko remove kar rha ha.
Bro aap jo apne website pe code diya hai waha enctype ke jagah entype likha hai ese fix kar dijiye
Sir, Agr m koi condition lgana chahta hu, jese ki sirf .jpeg vali files hi upload ho , vrna error show ho jaye ,
To kese krenge ?
Yeh sab maine PHP News Project mein seekhya hua hai. App please aage ki videos dekhe
$file_type = pathinfo($file_name, PATHINFO_EXTENSION);
if ($file_type != "jpg" && $file_type != "jpeg") {
echo "Sorry. Only image files .jpg and .jpeg is allowed to upload";
die();
}
sir multipile images or videos kase add kr skty hain???
See this video :
ruclips.net/video/Bz9JqfJOyd8/видео.html
@@YahooBaba Sir Android project banye please
Im writing this program in sublime text editor,Image is not getting to its destinated folder.. pls help
send your code file at my email id : hello@yahoobaba.net
type ki condition and size ki condition kese lagate hai. Please help me....
Notice: Undefined variable: _Files in C:\xampp\htdocs\LearnPhp\file-upload.php on line 10
Notice: Undefined variable: _Files in C:\xampp\htdocs\LearnPhp\file-upload.php on line 11
Notice: Undefined variable: _Files in C:\xampp\htdocs\LearnPhp\file-upload.php on line 12
Notice: Undefined variable: _Files in C:\xampp\htdocs\LearnPhp\file-upload.php on line 13
You have not made a variable with name " _Files"