Home arrow PHP arrow Page 3 - Storage and Re-use of Images Using PHP/GD - Part 2
PHP

Storage and Re-use of Images Using PHP/GD - Part 2


Following up on part 1 of this compelling two part series on image handling, Gijs will now supply DevArticles readers some code snippets that will demonstrate the significance of his work.

Author Info:
By: Gijs van Tulder
Rating: 3 stars3 stars3 stars3 stars3 stars / 5
July 18, 2003
TABLE OF CONTENTS:
  1. · Storage and Re-use of Images Using PHP/GD - Part 2
  2. · The Article
  3. · Conclusion

print this article
SEARCH DEVARTICLES

Storage and Re-use of Images Using PHP/GD - Part 2 - Conclusion
(Page 3 of 3 )

What we Did in Part 2

In this last instalment, we wrote an easy-to-use function that generates img tags based on database data. We also made a search script to find the images in the database. In the last section of the article, we tried writing a real script using our newly created function.

If you're finished with these two parts, you've now got the following files and directories:

  • imgtag.php: the script that generates the img tag;
  • search.html: the search form;
  • search.php: the search script;
  • upload.html: the upload form;
  • upload.php: the upload script;
  • bigimage.php: the pop-up script;
  • img.php: the script that does the actual resizing;
  • bin/: a directory containing the external conversion software;
  • img/: the directory containing the images.

You can also download the complete directory structure as a tar.gz (102 kB).


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus
PHP ARTICLES

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- Making Usage Statistics in PHP
- Installing PHP under Windows: Further Config...
- File Version Management in PHP
- Statistical View of Data in a Clustered Bar ...
- Creating a Multi-File Upload Script in PHP
- Executing Microsoft SQL Server Stored Proced...
- Code 10x More Efficiently Using Data Access ...
- A Few Tips for Speeding Up PHP Code
- The Modular Web Page
- Quick E-Commerce with PHP and PayPal
- Regression Testing With JMeter
- Building an Iterator with PHP

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials