> Noted your next post, but just quickly..
>
[quoted text clipped - 19 lines]
>
> Andrew T.
Before I continue I should point out that I am hoping
some of the server-side guru's can jump into this
thread, it's a while since I've uses the server stuff
and I'm a little rusty.
..
> > > FIle x = new File (var + "myNewFile.txt");
> >
[quoted text clipped - 4 lines]
> > Then (assuming even that is successful) try
> > printing it out to ..HTML or whatever.
...
> None of it is working. The second I call myFile.createNewFile(); it
> breaks every time.
Like I said - until you're confident you know where you
are in the structure (or perhaps convince *me* that you
are attempting to write into your home directories), writing
is a bit premature.. but..
> The closest I think Ive come to a solution is being able to print out
> the
> this.getServletContext().getRealPath("/")
> /var/chroot/home/content/a/d/a/adartie2/html/
OK.. where is that in relation to your site?
If I visit the domain, and end up getting served the
/index.html (or whatever is your default homepage)
..where would that file live, within the path shown above?
I am guessing it is either ..
/var/chroot/home/content/index.html
..or..
/var/chroot/home/content/a/d/a/adartie2/html/index.html
Is either of those correct?
Andrew T.
tiewknvc9 - 26 Aug 2006 18:18 GMT
> Before I continue I should point out that I am hoping
> some of the server-side guru's can jump into this
[quoted text clipped - 36 lines]
>
> Andrew T.
Thanks for the response Andrew.
I scoured my hosting company's site, and found this:
"
This is the absolute path for your Linux hosting account:
/home/content/1/2/3/username/html/
Where "/1/2/3/" are the first three letters of your user name and
"username" is the user name you used to set up your hosting account.
For example, if your user name were "johndoe," then your absolute path
would be:
/home/content/j/o/h/johndoe/html
"
so in addition to your suggestions, I tried to write the new file to
/home/content/a/d/a/adartie2/k.txt
still no luck. :(
Andrew Thompson - 27 Aug 2006 00:35 GMT
....
> This is the absolute path for your Linux hosting account:
>
[quoted text clipped - 9 lines]
> so in addition to your suggestions, I tried to write the new file to
> /home/content/a/d/a/adartie2/k.txt
That would make it the directory *above* your main homepage
directory.. I am not sure if site users (you) are supposed to be
able to programmatically write files there!
Why not try writing a file in .....
/home/content/a/d/a/adartie2/html/temp/a.txt
(Note the 'temp' directory to keep these file(s) separate
from your real site, make that directory first, manually).
BTW - Did you say something rude to the server people
around here? I am wonderrring why not one of them has
jumped in to point out the errors I am making..
Andrew T.
tiewknvc9 - 27 Aug 2006 00:38 GMT
I got it.... sort of.
my host is only allowing me to write to the \tmp\ directory. Which
sux, but Ill deal with it. I guess im giong to have to email myself
the files as they come in.
That was the problem, Im not allowed to write to my actual account
directory. Isnt that ridiculous? Perhaps I should consider changing
hosts.
Thank you so much for your help! Ive learned a lot from you.
> Before I continue I should point out that I am hoping
> some of the server-side guru's can jump into this
[quoted text clipped - 36 lines]
>
> Andrew T.
Andrew Thompson - 27 Aug 2006 02:38 GMT
> I got it.... sort of.
>
[quoted text clipped - 4 lines]
> That was the problem, Im not allowed to write to my actual account
> directory.
It does strike me as 'familiar' that there are only
specific areas into which you can write.
I can't say that 'temp' sounds right, but I'd defer
to the server operators.
>..Isnt that ridiculous?
No. Servers are *very* carefully controlled, for good reason.
A problem that allows a malicious or stupid end user, or
faulty code, to (for example) attempt a write of 54Gig might
be something that not only brings your site crashing down,
but probably the server and everyone else's sites!
If they can help avoid that by limiting site owners to writing
in specific dirrectories, it is a benefit to all who have sites
coming off that server.
>...Perhaps I should consider changing hosts.
I wold not recommend being so rash. Nothing you
have told me about this host really surprises me,
& I suspect any other host will have similar restrictions.
> Thank you so much for your help!
You're welcome.
>...Ive learned a lot from you.
...hmmm. Trouble is - I still have a lot to learn about it!
( Have you heard the saying 'the blind leading the blind'? ;)
Andrew T.
tiewknvc9 - 30 Aug 2006 05:53 GMT
>( Have you heard the saying 'the blind leading the blind'? ;)
of course, but perhaps that way both will learn how to see.
> > I got it.... sort of.
> >
[quoted text clipped - 40 lines]
>
> Andrew T.