![]() |
uploading image file code and resolving links
how do i upload an images code to a dbase like attachments do? and also how can i resolve if a linked img is valid?
|
can someone plz give me some info on how do these and if resolving image links is possible through php
|
anyone?
|
When a file is uploaded via a file upload form a superglobal called $_FILES is created.
Imagine your upload field was: <input type="file" name="image" value="" /> You'd access this files name with $_FILES['image']['name'] for example. A print_r($_FILES); will show you the other information available. Basically you get the file contents like this: PHP Code:
|
so file_get_contents breaks the image down into binary or whatever
edit: what should i set the field to in the db where the code is going to go? |
All times are GMT. The time now is 05:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|