cfdump
var=#getUnusedIPs('192.29.22.2,192.29.22.6','192.29.22.0','192.29.22.10')#
cffunction name=getUnusedIPs returntype=array
cfargument name=ipList type=string required=true/
cfargument name=rangeStart type=string required=true/
cfargument name=rangeEnd type=string
Considering that your doing a select distinct, the correct output
should be 1, 2, 4, 6 and not 1, 1, 1, 1, 2, 4, 6 as you first stated.
So it looks like you're getting the very first value 4 times. Try to
scope the output and see if that helps:
cfloop query=get_days
Do they have CreateObject-Java also disabled?
Otherwise you could execute using Java (java.lang.Runtime.exec).
But I don't think I quite understand what you want to do though.
You want to run a presentation exe file on the hosted webserver?
Who will see that if it's running on the webserver?
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
On 9/28/07, Maximilian Nyman [EMAIL PROTECTED] wrote:
Do they have CreateObject-Java also disabled?
Otherwise you could execute using Java
And you can, just omit the filename from the path.
A File object in Java doesn't have to be a file in the traditional
sense, it could just as well be a directory.
var myFileDir = THE PATH TO THE DIRECTORY
var myFile = CreateObject(java, java.io.File).init(myFilePath)
if( myFile.canWrite() ) {
You don't actually need to use the StructKeyExists though
I would take what Russ said and rewrite the function to this:
function getRandomNumberArray(length, count) {
var min = 1 + repeatString(0, length - 1);
var max = repeatString(9, length);
var uniquer = structNew();
while
cftry
cfset zipfile=CreateObject(java,
java.util.zip.ZipFile).init(zipFileName) /
cfcatch type=any
cfdump var=#cfcatch# /
/cfcatch
/cftry
That should throw a ZipException (and dump it) if the Zip file is corrupt
/Max
On 5/18/07, AJ Mercer [EMAIL PROTECTED] wrote:
cffile does not crash
()) {
fileList = ListAppend(fileList,entry.getName());
}
}
message = invalid LOC header (bad signature)
This kills jRun so I can't catch it in ColdFusion
On 5/18/07, Maximilian Nyman [EMAIL PROTECTED] wrote:
cftry
cfset zipfile=CreateObject(java,
java.util.zip.ZipFile
FYI for the list.
It turned out that the issue AJ got was a Java bug for ZipFile. It
turns out that ZipFile doesn't handle corrupt zip files very well - It
throws an InternalError which will just kill JRun. :S
So, I updated my ZipVerifier to use ZipInputStream instead of ZipFile,
which will
But the only thing I have to do to get around that is to hit the
live form, do a View source, get the hidden values and update my
local form with those hidden value(s).
On 5/9/07, Ken Wexel [EMAIL PROTECTED] wrote:
When I ran into this problem previously, I'd set a value into the user
session
10 matches
Mail list logo