IT Question
My server etc is not publically accessible (password etc) so is it possible to include the data on my website (as an IMG?) which could be uplifted by someone else - it would need to be 'automatic' ie not need manual intervention?
Peter
Please Log in or Create an account to join the conversation.
First let me see if I understand correctly what you are trying to do:
1) Weather data is saved periodically as a .TXT file by software running on your local PC.
2) You want to upload this to your web site so others can view it
Questions:
a) Why can you not leave the file format as .TXT? Any browser can display a .TXT file.
b) The easiest way to upload the file is by using an FTP program. Have you looked on the web for such a program which has an automatic scheduling capability?
c) Failing that, you could use the FTP command built into Windows and run it periodically via the Windows Scheduler. This is pretty arcane and will take a bit of setting up, but once you have it going, it should work reliably.
Please Log in or Create an account to join the conversation.
How about if I inserted the .txt file (as an img) on my web page then put an html link to it (once I work out how) - would that work?
Please Log in or Create an account to join the conversation.
- Thank you received: 0
I don't mind fishing in the rain, fish are already wet...
Please Log in or Create an account to join the conversation.
1) Which server are we talking about here? The HostCentric server where you have your web site, or somewhere else?quote:Originally posted by GBpeter
It exists on my server...
2) Where is this text file coming from?quote:Originally posted by GBpeter
but it needs to be regularly accessible at my end (for third party uploading as the .txt file).
I presumed it was generated by your weather software which I understood to be running on your PC in Golden Bay.
Perhaps the answer to this will become clear once you have responded to the two questions above. I would have thought that once you have uploaded it to the HostCentric web server, this third party can then download it whenever/to wherever they please.quote:Originally posted by GBpeter
I can't upload it using ftp to a third party server or e-mail it as it has to be initiated at the other end.
Please Log in or Create an account to join the conversation.

My PC software generates a file called clientraw.txt which is then (automatically) uploaded to my my password protected hostserver (Hostcentric)therefore it is available initially on either my PC or my hostserver. I want it publically available for someone else to upload automatically (ie pull not push) in a similar manner to this http://www.carseweather.co.uk/ldata/clientraw.txt
I was suggesting I could possibly download it to my webpage as an img and create a hyperlink to that??
I am sure I am making this sound difficult! Would my suggestion work or is there a better solution?
Please Log in or Create an account to join the conversation.
OK, now I've got it Peterquote:Originally posted by GBpeter
...I want it publically available for someone else to upload automatically (ie pull not push) in a similar manner to this http://www.carseweather.co.uk/ldata/clientraw.txt

http://www.kahurangi.org/clientraw.txt
I can see it now. What else is needed?
Given that the file is already publicly accessible, and viewable within a web browser, I don't see why you need to do any of this???quote:Originally posted by GBpeter
I was suggesting I could possibly download it to my webpage as an img and create a hyperlink to that??
Cheers,
Grant.
Please Log in or Create an account to join the conversation.
Sorry to muck you about - I write the templates with data tags which the weather software 'fills' with live data - to do this it must put the clientraw.txt file in the rewritten html files (??) - hopefully I will get to the point where it is not so 'black box-ish)
Thanks
Please Log in or Create an account to join the conversation.
Just a lucky guess! I noticed that your automatically updated weather graphic was in the root directory of your web site at:quote:Originally posted by GBpeter
Quite right- how did you find that (out of curiousity)?
http://www.kahurangi.org/indexdial.gif
And hence figured that Clientraw.txt probably was too which indeed proved to be the case.
That's perfectly OK Peterquote:Originally posted by GBpeter
Sorry to muck you about

Sometime I might need your help regarding a fancy weather station and more than likely will ask an uninformed question...[

So don't worry, it happens to us all!
Perhaps I should explain something further here. I think I can see where your misunderstanding has come from:quote:Originally posted by GBpeter
I write the templates with data tags which the weather software 'fills' with live data - to do this it must put the clientraw.txt file in the rewritten html files (??) - hopefully I will get to the point where it is not so 'black box-ish)
1) Clientraw.txt is NOT part of the HTML file. It is a separate .txt file which may be LINKED to by any HTML file.
2) In the same way, indexdial.gif is NOT part of the HTML file either. It is also LINKED to by the HTML file.
3) The TAGS you are embedding in the HTML file are placeholders which the weather software replaces with live data or links as the case may be.
I hope that makes things a little clearer. I know what you mean about the whole thing being "Black Box-ish". HTML and the workings of web servers are a bit that way to start with. However, the "plumbing" is all very accessible and extremely well documented with excellent tutorials available all over the web.
Give me a yell if you need help with anything else

Cheers,
Grant.
Please Log in or Create an account to join the conversation.

Is there any quick and dirty way to build in simple security?
Please Log in or Create an account to join the conversation.
With the web servers at HostCentric, you can password-protect entire directories, but not individual files. In common with many web hosts, they use the Unix .htaccess / .htpasswd files to accomplish this.quote:Originally posted by GBpeter
Is there any quick and dirty way to build in simple security?
However, in your case, it won't help to protect the "coding" of your web site. That's the way web browsers work -- the source code is available to all.
There are some cheap and dirty pieces of Javascript which stop people right clicking to see the source code, but they are very easy to get around if you know what you are doing. Also, I think that this "protection" could be disabled simply by turning off Java in your browser[?][?][?] Wyseyes or somebody correct me if I'm wrong about that [

In your case, you could move the Clientraw.txt file to another directory which is password protected, but as far as I understood, you wanted that file to be publicly available anyway[?][?][?]
So, the short answer is: There's nothing you can do to protect the source code of your HTML pages, or else nobody will be able to view them without entering a password. As soon as they are able to view the pages, they can also see the source code

Probably not what you wanted to hear I'm guessing[?]
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Even simpler than that. most of those java jobbies can be gotten arount by right clicking on the protected page/hyperlink HOLDING DOWN THE RIGHT MOUSE BUTTON, when the popup pops up, press enter to activate the "ok" button on the popup, then when the popup is gone, release the right button and the rightclick menu will come up.quote:Originally posted by GrantK
There are some cheap and dirty pieces of Javascript which stop people right clicking to see the source code, but they are very easy to get around if you know what you are doing. Also, I think that this "protection" could be disabled simply by turning off Java in your browser[?][?][?]
Hardly the most secure of methods.
You Live and Learn, or you don't Live Long -anon
Please Log in or Create an account to join the conversation.

Please Log in or Create an account to join the conversation.
Oh OK Kiwi, thanks for that. I didn't realise it was quite that simple [quote:Originally posted by Kiwi303
Even simpler than that. most of those java jobbies can be gotten arount by right clicking on the protected page/hyperlink HOLDING DOWN THE RIGHT MOUSE BUTTON, when the popup pops up, press enter to activate the "ok" button on the popup, then when the popup is gone, release the right button and the rightclick menu will come up.

Please Log in or Create an account to join the conversation.