vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   saving images to a MySQL database (https://vborg.vbsupport.ru/showthread.php?t=54909)

DeMuro1 07-13-2003 04:59 AM

ok so I'm having problems making this work. Any suggestions? Do I perhaps need to enter a password somewhere? ANy help would again be greatly helpful

DeMuro1 07-17-2003 09:59 AM

ok so I have the script loaded onto my server as a .php file. That part works really well. It even seems to upload the imagebut when I check the desired directory I get nothing. is it possible that I'm not entering the file location properly?

eg.
PHP Code:

$newfile "/home/pathto/public_html/yourfoldername/".$userfile_name

yourfoldername = http://www.bobsnetplace.net/images

or should I just be putting images

eg.

yourfoldername = images

if I upload the images from my computer harddrive do I need to modify the script/

maybe add a line that looks like this

<input type="text" value="name" name="file_name" maxlength="100" size="100"><br>

to the form and then maybe a line like this

PHP Code:

$userfile_file_name $HTTP_POST_FILES['userfile']['file_name']; 

could these things maybe solve my problems?

Please help I'm still struggling with this

Gavin B. 07-17-2003 12:47 PM

does it give you any errors? :)

You'll need to edit that path, it depends on how the server is set up, but if you use the username you use to login to FTP (replace the red part below) and the folder you wish to upload to (the blue part). Make sure the folder has permissions set to 777 :)

/home/username/public_html/yourfoldername/

DeMuro1 07-17-2003 07:17 PM

no errors. once I click the upload button it just sort of reloads the page it's really anoying. it also says opening:......some page info here..... at the very bottom of the screen. I'll try what you just gave me I really want this to work

Thanks and sorry for being a pill

cindyd 07-30-2003 09:53 PM

Hi Gavin: I had been looking for something like this for the past few days!

I am pretty new to hacking, but I am learning. I have a couple of questions about this:

Quote:

You can setup a simple form with a 'browse' button which allows users to upload images to a specified folder fairly easily which will upload and transfer the images to the folder. You can specify a pointer in mysql like /images/imagename.jpg
1. The php script you wrote on page 1, I know how to upload it, but where do I upload it to? I put it in my forum directory.

2. A simple form with a browse button, OK, I think I can handle that too. I did this, but I have no idea how to incorporate it all so the browse or upload form will come up in a "new post".

When I regularly upload images, I have to use a password, is that figured into the script?

Thanks for the help.


All times are GMT. The time now is 01:23 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
  • Page Generation 0.03217 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete