The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
||||
|
||||
|
can someone plz give me some info on how do these and if resolving image links is possible through php
|
|
#3
|
||||
|
||||
|
anyone?
|
|
#4
|
||||
|
||||
|
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:
For the record though it's far easier working with files on the server in the long-run as you don't have the hassle of backing up all that extra storage space when backing up your database
|
|
#5
|
||||
|
||||
|
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? |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|