Category: php

.

Storing Image Url Location in Mysql Database

Storing images in the Mysql Database using php can be done by encoding the whole image with a function called base64encode() or you can simply create a table with a field that stores the URL and filename of the image file that you want to retrieve. Using the latter method is faster, and relieves your server from the stress of streaming jpg image, bitmap images, and other image formats that php supports.

Example of storing whole image

The idea is simple really. You just store the location as a variable char in your databases and when you retrieve it is location with a php script, you incorporate the image location into your html using php.

(will add script example soon)

Author: D.Shaun Morgan

using php cookies variables Using Cookie Variables in PHP Setting cookies in php is pretty straight forward. There is a php function: setcookie(); This function mu

how to unzip files on your free hosting account Uzipping Files on Your Web Server If you are using a free hosting account with godaddy.com and many of the other Free hosts out there, you may have found that they don't offer you a lot o

how to turn variable value into variable name Variable Variables in PHP Every so often when you are writing a php file, we all run into a situation where we would like for the name of the string that is inside

how to open create write files php Php file functions, Opening a file in php, reading a file in php, writing a file in php In this tutorial we will look at the most commonly used file functions used in php. The

store images mysql php php Storing Images in Mysql Database Tutorial Outline: Creating a Test Mysql Database Example php Database Functio

.

 

Leave a Comment

Storing-image-locations-mysql

Name:      | Email:      | Website:

Comment:


captcha

Enter The Above Security Code: