mysql - PHP insert image upload url in database -


i have 2 way insert image upload url in mysql database:

one:(only filename)

1410468094_shutterstock_130757219.jpg

two:(full url)

http://localhost/nws/uploads/files/1/shutterstock_130757219.jpg

which way better?

file name best cause if anytime change folder name or location .


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

broadcastreceiver - blocking specific numbers (call and sms) in android -

c# - Executing PowerShell Script with Parameters -