View Full Version : File Uploader
Jaynesh
25 Jan 2006, 17:50
Im learning PHP and came up with this script from a tutorial..
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
It is a file uploader,
How can i make it so when i upload an image it will display the image after it has been uploaded.
Cole2026
26 Jan 2006, 03:05
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Here's something simple you can do.
Jaynesh
26 Jan 2006, 08:42
Im getting this error :(
Parse error: parse error, unexpected T_STRING in /home/vekaria/public_html/learning.php on line 27
Could you please explain what it means and how to fix it?
Cole2026
26 Jan 2006, 21:25
Im getting this error :(
Parse error: parse error, unexpected T_STRING in /home/vekaria/public_html/learning.php on line 27
Could you please explain what it means and how to fix it?
I was in a rush, forgot to close the die tag.
I updated the tag in my post, it should parse correctly now.
By the way, the "unexpected T_STRING" parsing error usually means you didn't close a function correctly.
Jaynesh
27 Jan 2006, 17:08
Thanks, worked perfect :)
One last thing :) How can i have it so when an image is uploaded it will also display the link to it aswell.. i tried this ..
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
but it only displays the link for anything that is NOT an image, i want it to also apear when an image is uploaded aswell.
Okay ive managed to get it to display the link but having trouble linking the image to do the url.
it just doesnt display when i view the source its there...
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Okay my mistake, i fixed it and its working :) wow im getting good at this.
here it is..
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Any suggestions to make it shorter ?
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.