The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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?
|
#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:
|
#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:
|