Advertisement

05.11.2008 at 04:19AM PDT, ID: 23392592
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Need assistance with changing config to .php

Asked by satmanuk in PHP Scripting Language

Hi all,

I have purchased a java applet to manage my file uploads on my site. Its called thinupload. The application is very good but the documentation and support is few and far between.

One of the things i need to do is make my config file dynamic see http://upload.thinfile.com/docs/dynamic.php

Basically i need to change a file from being thinupload.properties to thinupload.php

see the code snippet below for the config file as it is when they provide it.

Bascially they are saying that i can edit this properties files and call it whateveriwant.php and then using php i can generate my config file.

So they mean i echo out the config settings?

i am stuck as this explanation is as far as it goes from them, i have no examples to go from and they are not answering my emails.

I thought maybe one you PHP geniuses could assist me?


TIA


Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
# Configuration file for Thin Image Upload
#
# Online documentation is available at http://upload.thinfile.com/docs/
# Lines begining with the '#' symbol denote comments. They will not
# be processed.
#
 
#
# The url is the upload destination. It should point to the script on
# your server that will accept the uploaded files.
#
# Example: 
#     url=http://upload.thinfile.com/demo/upload.php
#     url=http://upload.thinfile.com/cgi-bin/upload.cgi
#
 
url=http://upload.thinfile.com/demo/upload.php
 
#
# To change the welcome message displayed when the applet starts up,
# change the message property. It should be a valid url and should point
# to a web page.
#
# Example: 
#     message=http://upload.thinfile.com/demo/init.php
#
 
#
# If you want to impose a limit on the total size of the file upload
# enter a value in kilobytes for the max_upload parameter. A value
# of 0, the default means unlimited. Please make sure that the server
# side configuration does not impose a lower limit than what you choose
# for max_upload
#
# Example: 
#     max_upload=10240
#     will impose a limit of 10 Mega Bytes
#
 
max_upload=0
 
#
# The max_upload property checks the sum of file sizes. You can impose
# a limit on the size of individual files using the max_file property.
# The value is in kilobytes. 0 means no limit.
#
# Example: 
#     max_file=2048
#     for a limit of 2 Mega Bytes
#
 
max_file=0
 
#
# max_upload_message message will be displayed when either the max_upload or
# max_file setting has been exceeded. If you enter a text message it
# will be displayed as a popup. If you enter a URL, the chosen page be
# loaded with in the applet. (Note: size_exceeded is an alias for max_upload_message)
#
# Example: 
#     max_upload_message=http://upload.thinfile.com/demo/exceed.html
#
 
#
# The next section is used to configure client side filtering.
#
#
# Enter a comma separated list of file extensions in the allow_types
# field. The applet will refuse to go ahead with the upload if any of
# the selected files do not match the list of extensions.
# 
# Please use only lower case extensions. The applet will test for both
# cases as well as mixed case.
# 
# The default behaviour of the applet when it encounters an unwanted file
# can be changed by editing the filter_action property.
#
# Example: 
#     allow_types=jpg,gif,png,tif,xcf,psd
#
#
# The filter_action property tells the applet what action to take if it
# encounters a file type that is not listed in the allow_types
# parameter. If you enter a value of 'reject' here the applet will
# refuse to go ahead with the file upload. Enter any other value and
# the applet will silently ignore the offending files.
# 
# This setting takes effect only if the allow_types property is set
#
# Example: 
#     filter_action=reject
#
 
#
# The reject_message will be shown when the user attempts to upload
# files that should not be allowed and the filter_action is set to
# reject.
# 
# If you enter a text message here it will be displayed as a popup.
# A URl, will result in the a page being loaded inside the applet.
#
# Example: 
#     reject_message=http://upload.thinfile.com/demo/reject.html
#
 
#
# As the name suggests the full_path setting determines if absolute pathnames
# should be sent to the server. If you switch this off, folder information will
# be stripped from the filenames.
#
 
full_path=yes
#
# When the translate_path setting is switched on, windows style pathnames will
# be converted to unix style paths. In other words '\' becomes '/'.  This
# setting is required for Resumable file upload.
#
 
translate_path=yes
#
# When encode_path setting is switched on, pathnames are URLEncoded. This is
# usefull if you are dealing with filenames that contain special characters.
# this setting is required for resumable file upload.
#
 
encode_path=yes
 
#
# The progress indicator can display a thumbnail of each image as it is being
# uploaded. To enable this feature uncomment the show_thumb property below.
#
# Example: 
#     show_thumb=1
#
 
#
# If you need to disable the multiple upload feature, and to upload files
# one at a time, switch to bachelor mode. When bachelor property is set
# the applet will complain if you try to upload more than one file. Use
# the angry_bachelor property to set the error message to be displayed.
#
# Example: 
#     bachelor=1
#     angry_bachelor=http://upload.thinfile.com/demo/single.html
#
 
#
# If you switch on the browse setting the applet listens for mouse clicks
# and brings up a file selection dialog. If instead of clicking on the drop
# target you wish to display a browse button set the browse_button
# property as well.
#
# Example: 
#     browse=1
#     browse_button=1
#
 
browse=1
browse_button=1
 
#
# The next bit is for image scaling. Images that are either wider than
# the img_max_width or taller than img_max_height will be scaled down.
# If scale_images=yes, you must set valid integer values for
# img_max_width and img_max_height.
# 
# It should be noted that the java language does not support creating
# GIF files as such all scaled images will be in the JPG format. You
# will need to set the allow_types to match gif,jpg and png if you wish
# to make use of this feature.
#
# Example: 
#     scale_images=yes
#     img_max_width=100
#     img_max_height=100
#
 
scale_images=yes
img_max_width=100
img_max_height=100
#
# If you wish to create several images of varying sizes you can make
# use of array notation.
#
# Example: 
#     scale_images=yes
#     img_max_width[0]=100
#     img_max_height[0]=100
#     img_max_width[1]=200
#     img_max_height[1]=200
#
 
#
# By default the progress indicator will be hidden (closed) when the upload
# completes. By uncommenting the following line you can continue to keep the
# progress bar visible even after upload has been completed. The user will
# then have to manually close the progress bar.
#
# Example: 
#     monitor_keep_visible=yes
#
 
#
# The applet or the entire browser can be redirected to another page
# when upload completes. Select the destination URL with the
# external_redir parameter.
# 
# If you do not enter a value for the external_target property, the URL
# given external_target will be loaded with in the applet. Otherwise
# the page will be loaded in the target frame. To redirect the entire
# browser window use '_top' as the target.
# 
# If you wish to delay the redirect, enter a value for the
# redirect_delay property (in milliseconds).
#
# Example: 
#     external_redir=http://upload.thinfile.com
#     external_target=_top
#     redirect_delay=1000
#
[+][-]05.11.2008 at 06:07AM PDT, ID: 21542371

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.11.2008 at 09:45AM PDT, ID: 21542864

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 09:21AM PDT, ID: 21556597

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.26.2008 at 05:13PM PDT, ID: 21648695

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.26.2008 at 05:15PM PDT, ID: 21648700

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 08:22AM PDT, ID: 21652626

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Sign Up Now!
Solution Provided By: satmanuk
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628