ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:upload file to database has 0 kb (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:upload file to database has 0 kb
#8470
nmay (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:upload file to database has 0 kb 1 Month, 2 Weeks ago Karma: 0  
Thank you very much sir, I figured out what the problem is:
Code:

$fp = fopen($tmpName1, 'r');
The above code is reading file at apache's upload file directory specified in php.ini (C:\temp, but actual files are stored in C:\apache\htdocs\components\com_chronocontact\upload That is why $fp is null. What I am trying to accomplish is to store files users uploaded in mysql, so I need use $fp to read the file. In my mind, there are two options: 1. Modify your code so that uploads are uploaded to c:\temp 2. Move pointer $fp to C:\apache\htdocs\components\com_chronocontact\upload I am a super php noob. Can you give me little instructions or tell me few lines of codes I need to look at?
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/16 05:39 By GreyHead.
  The administrator has disabled public write access.
#8475
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:upload file to database has 0 kb 1 Month, 2 Weeks ago Karma: 59  
Hi nmay,

Put the file path into the fopen function:
Code:

fopen('path'.$file_name, 'r')
See the PHP manual for more info. Bob
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/16 05:43 By GreyHead.
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials