Submit Search
Upload
10. Imagini in MongoDB
•
0 likes
•
14 views
Razvan Raducanu, PhD
Follow
Images in MongoDB
Read less
Read more
Education
Report
Share
Report
Share
1 of 10
Recommended
Jqeury ajax plugins
Jqeury ajax plugins
Inbal Geffen
Using shortcode in plugin development
Using shortcode in plugin development
gskhanal
WordPress Kitchen 2014 - Александр Стриха: Кеширование в WordPress
WordPress Kitchen 2014 - Александр Стриха: Кеширование в WordPress
WordCamp Kyiv
DBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たち
Ryo Miyake
[Coscup 2012] JavascriptMVC
[Coscup 2012] JavascriptMVC
Alive Kuo
Webdriver
Webdriver
Alfredo Fernández López
In-depth changes to Drupal 8 javascript
In-depth changes to Drupal 8 javascript
Théodore Biadala
Blog Hacks 2011
Blog Hacks 2011
Yusuke Wada
Recommended
Jqeury ajax plugins
Jqeury ajax plugins
Inbal Geffen
Using shortcode in plugin development
Using shortcode in plugin development
gskhanal
WordPress Kitchen 2014 - Александр Стриха: Кеширование в WordPress
WordPress Kitchen 2014 - Александр Стриха: Кеширование в WordPress
WordCamp Kyiv
DBIx::Skinnyと仲間たち
DBIx::Skinnyと仲間たち
Ryo Miyake
[Coscup 2012] JavascriptMVC
[Coscup 2012] JavascriptMVC
Alive Kuo
Webdriver
Webdriver
Alfredo Fernández López
In-depth changes to Drupal 8 javascript
In-depth changes to Drupal 8 javascript
Théodore Biadala
Blog Hacks 2011
Blog Hacks 2011
Yusuke Wada
4. Php MongoDB view_data
4. Php MongoDB view_data
Razvan Raducanu, PhD
How I Became a WordPress Hacker
How I Became a WordPress Hacker
Mike Zielonka
Drupal8 + AngularJS
Drupal8 + AngularJS
Daniel Kanchev
WordPress Plugin & Theme Security - WordCamp Melbourne - February 2011
WordPress Plugin & Theme Security - WordCamp Melbourne - February 2011
John Ford
Jquery presentation
Jquery presentation
Mevin Mohan
Simplify AJAX using jQuery
Simplify AJAX using jQuery
Siva Arunachalam
JavaScript JQUERY AJAX
JavaScript JQUERY AJAX
Makarand Bhatambarekar
Google App Engine with Gaelyk
Google App Engine with Gaelyk
Choong Ping Teo
Introduction to AngularJS For WordPress Developers
Introduction to AngularJS For WordPress Developers
Caldera Labs
bcgr3-jquery
bcgr3-jquery
tutorialsruby
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
Yusuke Wada
Twib in Yokoahma.pm 2010/3/5
Twib in Yokoahma.pm 2010/3/5
Yusuke Wada
Ng init | EPI Sousse
Ng init | EPI Sousse
Hamdi Hmidi
Xmpp prebind
Xmpp prebind
Syed Arshad
Getting to The Loop - London Wordpress Meetup July 28th
Getting to The Loop - London Wordpress Meetup July 28th
Chris Adams
Up & Running with Polymer
Up & Running with Polymer
Fiyaz Hasan
Single Page Web Apps As WordPress Admin Interfaces Using AngularJS & The Word...
Single Page Web Apps As WordPress Admin Interfaces Using AngularJS & The Word...
Caldera Labs
Jquery for post a form
Jquery for post a form
Rakesh Kumar
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Haitham Nabil
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
18. images in symfony 4
18. images in symfony 4
Razvan Raducanu, PhD
7. Php MongoDB editarea unui document
7. Php MongoDB editarea unui document
Razvan Raducanu, PhD
More Related Content
What's hot
4. Php MongoDB view_data
4. Php MongoDB view_data
Razvan Raducanu, PhD
How I Became a WordPress Hacker
How I Became a WordPress Hacker
Mike Zielonka
Drupal8 + AngularJS
Drupal8 + AngularJS
Daniel Kanchev
WordPress Plugin & Theme Security - WordCamp Melbourne - February 2011
WordPress Plugin & Theme Security - WordCamp Melbourne - February 2011
John Ford
Jquery presentation
Jquery presentation
Mevin Mohan
Simplify AJAX using jQuery
Simplify AJAX using jQuery
Siva Arunachalam
JavaScript JQUERY AJAX
JavaScript JQUERY AJAX
Makarand Bhatambarekar
Google App Engine with Gaelyk
Google App Engine with Gaelyk
Choong Ping Teo
Introduction to AngularJS For WordPress Developers
Introduction to AngularJS For WordPress Developers
Caldera Labs
bcgr3-jquery
bcgr3-jquery
tutorialsruby
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
Yusuke Wada
Twib in Yokoahma.pm 2010/3/5
Twib in Yokoahma.pm 2010/3/5
Yusuke Wada
Ng init | EPI Sousse
Ng init | EPI Sousse
Hamdi Hmidi
Xmpp prebind
Xmpp prebind
Syed Arshad
Getting to The Loop - London Wordpress Meetup July 28th
Getting to The Loop - London Wordpress Meetup July 28th
Chris Adams
Up & Running with Polymer
Up & Running with Polymer
Fiyaz Hasan
Single Page Web Apps As WordPress Admin Interfaces Using AngularJS & The Word...
Single Page Web Apps As WordPress Admin Interfaces Using AngularJS & The Word...
Caldera Labs
Jquery for post a form
Jquery for post a form
Rakesh Kumar
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Haitham Nabil
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
Nur Fadli Utomo
What's hot
(20)
4. Php MongoDB view_data
4. Php MongoDB view_data
How I Became a WordPress Hacker
How I Became a WordPress Hacker
Drupal8 + AngularJS
Drupal8 + AngularJS
WordPress Plugin & Theme Security - WordCamp Melbourne - February 2011
WordPress Plugin & Theme Security - WordCamp Melbourne - February 2011
Jquery presentation
Jquery presentation
Simplify AJAX using jQuery
Simplify AJAX using jQuery
JavaScript JQUERY AJAX
JavaScript JQUERY AJAX
Google App Engine with Gaelyk
Google App Engine with Gaelyk
Introduction to AngularJS For WordPress Developers
Introduction to AngularJS For WordPress Developers
bcgr3-jquery
bcgr3-jquery
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
エロサイト管理者の憂鬱3 - Hokkaiodo.pm#4 -
Twib in Yokoahma.pm 2010/3/5
Twib in Yokoahma.pm 2010/3/5
Ng init | EPI Sousse
Ng init | EPI Sousse
Xmpp prebind
Xmpp prebind
Getting to The Loop - London Wordpress Meetup July 28th
Getting to The Loop - London Wordpress Meetup July 28th
Up & Running with Polymer
Up & Running with Polymer
Single Page Web Apps As WordPress Admin Interfaces Using AngularJS & The Word...
Single Page Web Apps As WordPress Admin Interfaces Using AngularJS & The Word...
Jquery for post a form
Jquery for post a form
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Google Cloud Challenge - PHP - DevFest GDG-Cairo
Pemrograman Web 9 - Input Form DB dan Session
Pemrograman Web 9 - Input Form DB dan Session
Similar to 10. Imagini in MongoDB
18. images in symfony 4
18. images in symfony 4
Razvan Raducanu, PhD
7. Php MongoDB editarea unui document
7. Php MongoDB editarea unui document
Razvan Raducanu, PhD
MongoDB, PHP and the cloud - php cloud summit 2011
MongoDB, PHP and the cloud - php cloud summit 2011
Steven Francia
Refresh Austin - Intro to Dexy
Refresh Austin - Intro to Dexy
ananelson
Dev Jumpstart: Build Your First App with MongoDB
Dev Jumpstart: Build Your First App with MongoDB
MongoDB
20190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React2019
Makoto Mori
Grok Drupal (7) Theming
Grok Drupal (7) Theming
PINGV
SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6
Usman Zafar Malik
8. Php MongoDB stergerea unui document
8. Php MongoDB stergerea unui document
Razvan Raducanu, PhD
How to create a basic template
How to create a basic template
vathur
Hpage
Hpage
Svetoslav Nikolov
TurboGears2 Pluggable Applications
TurboGears2 Pluggable Applications
Alessandro Molina
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
crokitta
PSD to WordPress
PSD to WordPress
Nile Flores
Rapid Prototyping with PEAR
Rapid Prototyping with PEAR
Markus Wolff
Nuxt.JS Introdruction
Nuxt.JS Introdruction
David Ličen
Mongo Presentation by Metatagg Solutions
Mongo Presentation by Metatagg Solutions
Metatagg Solutions
Intermediate Web Design
Intermediate Web Design
mlincol2
Progressive Downloads and Rendering
Progressive Downloads and Rendering
Stoyan Stefanov
9. Php MongoDB cautarea unui document
9. Php MongoDB cautarea unui document
Razvan Raducanu, PhD
Similar to 10. Imagini in MongoDB
(20)
18. images in symfony 4
18. images in symfony 4
7. Php MongoDB editarea unui document
7. Php MongoDB editarea unui document
MongoDB, PHP and the cloud - php cloud summit 2011
MongoDB, PHP and the cloud - php cloud summit 2011
Refresh Austin - Intro to Dexy
Refresh Austin - Intro to Dexy
Dev Jumpstart: Build Your First App with MongoDB
Dev Jumpstart: Build Your First App with MongoDB
20190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React2019
Grok Drupal (7) Theming
Grok Drupal (7) Theming
SharePoint 2010 Training Session 6
SharePoint 2010 Training Session 6
8. Php MongoDB stergerea unui document
8. Php MongoDB stergerea unui document
How to create a basic template
How to create a basic template
Hpage
Hpage
TurboGears2 Pluggable Applications
TurboGears2 Pluggable Applications
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
PSD to WordPress
PSD to WordPress
Rapid Prototyping with PEAR
Rapid Prototyping with PEAR
Nuxt.JS Introdruction
Nuxt.JS Introdruction
Mongo Presentation by Metatagg Solutions
Mongo Presentation by Metatagg Solutions
Intermediate Web Design
Intermediate Web Design
Progressive Downloads and Rendering
Progressive Downloads and Rendering
9. Php MongoDB cautarea unui document
9. Php MongoDB cautarea unui document
More from Razvan Raducanu, PhD
12. edit record
12. edit record
Razvan Raducanu, PhD
11. delete record
11. delete record
Razvan Raducanu, PhD
10. view one record
10. view one record
Razvan Raducanu, PhD
9. add new record
9. add new record
Razvan Raducanu, PhD
8. vederea inregistrarilor
8. vederea inregistrarilor
Razvan Raducanu, PhD
7. copy1
7. copy1
Razvan Raducanu, PhD
6. hello popescu 2
6. hello popescu 2
Razvan Raducanu, PhD
5. hello popescu
5. hello popescu
Razvan Raducanu, PhD
4. forme in zend framework 3
4. forme in zend framework 3
Razvan Raducanu, PhD
3. trimiterea datelor la vederi
3. trimiterea datelor la vederi
Razvan Raducanu, PhD
2.routing in zend framework 3
2.routing in zend framework 3
Razvan Raducanu, PhD
1. zend framework intro
1. zend framework intro
Razvan Raducanu, PhD
17. delete data
17. delete data
Razvan Raducanu, PhD
16. edit data
16. edit data
Razvan Raducanu, PhD
15. view single data
15. view single data
Razvan Raducanu, PhD
14. add data in symfony4
14. add data in symfony4
Razvan Raducanu, PhD
13. view data
13. view data
Razvan Raducanu, PhD
12.doctrine view data
12.doctrine view data
Razvan Raducanu, PhD
11. move in Symfony 4
11. move in Symfony 4
Razvan Raducanu, PhD
10. add in Symfony 4
10. add in Symfony 4
Razvan Raducanu, PhD
More from Razvan Raducanu, PhD
(20)
12. edit record
12. edit record
11. delete record
11. delete record
10. view one record
10. view one record
9. add new record
9. add new record
8. vederea inregistrarilor
8. vederea inregistrarilor
7. copy1
7. copy1
6. hello popescu 2
6. hello popescu 2
5. hello popescu
5. hello popescu
4. forme in zend framework 3
4. forme in zend framework 3
3. trimiterea datelor la vederi
3. trimiterea datelor la vederi
2.routing in zend framework 3
2.routing in zend framework 3
1. zend framework intro
1. zend framework intro
17. delete data
17. delete data
16. edit data
16. edit data
15. view single data
15. view single data
14. add data in symfony4
14. add data in symfony4
13. view data
13. view data
12.doctrine view data
12.doctrine view data
11. move in Symfony 4
11. move in Symfony 4
10. add in Symfony 4
10. add in Symfony 4
Recently uploaded
9548086042 for call girls in Indira Nagar with room service
9548086042 for call girls in Indira Nagar with room service
discovermytutordmt
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
Shobhayan Kirtania
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
GeoBlogs
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
Chameera Dedduwage
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
RaunakKeshri1
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
National Information Standards Organization (NISO)
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
JemimahLaneBuaron
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
Thiyagu K
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
microwave assisted reaction. General introduction
microwave assisted reaction. General introduction
Maksud Ahmed
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
Sayali Powar
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
GaneshChakor2
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Pooja Nehwal
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
Maestría en Comunicación Digital Interactiva - UNR
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
Dr. Mazin Mohamed alkathiri
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
chloefrazer622
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
TechSoup
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
EduSkills OECD
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
anjaliyadav012327
Recently uploaded
(20)
9548086042 for call girls in Indira Nagar with room service
9548086042 for call girls in Indira Nagar with room service
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
microwave assisted reaction. General introduction
microwave assisted reaction. General introduction
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
10. Imagini in MongoDB
1.
Images in MongoDB
2.
3.
• Consideram baza
de date images cu colectia images:
4.
• Creati directorul
images, care va contine imaginile:
5.
connection.php <?php $client = new MongoDBDriverManager("mongodb://localhost:27017");
6.
index.php <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php require_once
'connection.php'; $query = new MongoDBDriverQuery([]); $rows = $client->executeQuery("images.images", $query); ?> <table> <tr> <th>Nume</th> <th>Image</th> </tr>
7.
<?php foreach($rows as
$val):?> <?php if((isset($val->title))&&(isset($val->image))&&($val-> title!="")&& ($val->image!="")):?> <tr> <td><?php echo $val->title;?></td> <td><img src="<?php echo $val->image;?>" width="100" height="100"></td> </tr> <?php endif;?> <?php endforeach;?> </table> <br><br> <a href="upload.php">Upload another image</a> </body> </html>
8.
upload.php <!DOCTYPE> <html> <head></head> <body> <div id="content"> <form method="post"
action="save.php" enctype="multipart/form-data"> <input type="hidden" name="size" value="1000000"> <div> <input type="file" name="image"> </div> <div> <textarea name="text" cols="40" rows="4" placeholder="bla bla"></textarea> </div> <div> <input type="submit" name="upload" value="Upload Image"> </div> </form> </div> </body> </html>
9.
save.php <?php require_once "connection.php"; $msg=""; $bulk =
new MongoDBDriverBulkWrite; if(isset($_POST['upload'])){ $target="./images/".basename($_FILES['image']['name']); $data=array( '_id' => new MongoDBBSONObjectID, 'title'=>$_POST['text'], 'image'=>$target, ); $bulk->insert($data); $client->executeBulkWrite('images.images',$bulk);
10.
if(move_uploaded_file($_FILES['image']['tmp_name'], $target)){ header('location:index.php'); }else{ $msg="Vai! Vai!
Vai!!!"; } }