cfdump on godaddy does not work?

is there a way to get the cfdump tag working on a hosting which its not available buy adding a file to the hosting?
LVL 1
mugsincAsked:
Who is Participating?
 
Mr_NilConnect With a Mentor Commented:
@mugsinc - well it has access to all variable scopes, so could dump out all manner of server related information on a shared system.  

But, as _agx_ already pointed out createObject() being blocked on shared hosting is more likely the issue. CFDump uses createObject; having it, sensibly, blocked in your shared hosting sandbox you are prevented from using cfdump, so may as well restrict access to that tag too.
0
 
Mr_NilCommented:
You'll probably find that its a restricted function by their security sandbox.

You can roll your own.  

Every scope in ColdFusion (since version 6) is a struct.  
Use the struct functions to find the keys in the struct (http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec1a60c-7ffc.html#WSc3ff6d0ea77859461172e0811cbec22c24-69b8) and use the is... functions (http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec1de14-7fdb.html) to determine how to output the variable to an html table or how ever you'd like to display it.

0
 
_agx_Commented:
(no points please ...)

>> You'll probably find that its a restricted function by their security sandbox.

   ... or indirectly restricted.  IIRC, cfdump makes use of createObject("java", ...) internally.
   Many hosts don't allow createObject(). So it's also possible that cfdump is allowed, but
   something it uses (ie createObject) isn't allowed.

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
mugsincAuthor Commented:
I read somewhere about uploading a dump.cfm from the local host coldfusion installation file to the root and you can get it working. Will that work?
0
 
_agx_Commented:
It's impossible to say without knowing exactly what tags or functions are restricted by your host.  

But go ahead and try it. Worst that can happen is it won't work. In which case,  you'd need to roll your own as @Mr_Nil suggested.
0
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
Ok you use the attached document, just view its contents inside and that will work, not as much great as cfdump itself but u will get enough

Please check the uploaded file

The tutorial on how to use is just inside the zip file ! Also if u need help let know

Regards

Otherwise there is no way godaddy will allow you cfdump tag

please remove the .txt file extension from the xip file as ee was not allowing me to upload the cfm file

Cheers
cf-dump.zip
0
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
you need to upload the the above zip file on ur account, also, if u are using <cfdump in any folder, either you create a mapping orr uplad the whole zip in that folder too to make it work

a bit of additional work but it will work for you

cheers
0
 
mugsincAuthor Commented:
i am a bit confused about how it works, could you help me out with an example
0
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
just upload the files on your ftp by removing .txt from the files i uploaded!

just upload all files and call them as

<cf_dump variable="session">

that's it it will show all session variables

0
 
mugsincAuthor Commented:
do i have to add a cfinclude for the dump.cfm file?
0
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
no just upload the files i gave u in attachment
0
 
ThutM0seCommented:
Just as a side note, we here disable internal java objects but you are still able to use cfdump. Not sure why people would disable that especially if debugging settings/sandbox's are locked down.
0
 
mugsincAuthor Commented:
Didn't know the cfdump was a security risk and I still can't figure out why they block the tag off.
0
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
Use the cf_dump.zip i used! i am sure that will work as far as security is concerned, they will not allow it

Cheers
0
 
mugsincAuthor Commented:
Couldn't figure out how the cf_dump.zip file worked
0
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
extract the files on your local system
remove the .txt extention from the files i have added as EE was not making it upload

Next after you extract all files, upload all the files to the shared host, do not upload as a folder, upload as a cfdump.cfm file, the VTM file and the snippert folder in the webroot and that it will make work
0
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
Anyways! you accepted the answer!

but my curiosity is Have you tried using the cf_dump tag or not, just an answer is required

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.