• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

HELP ME!! how to cross-send a file from application server to web server

Juniper

Platinum Member
I have a web server containing only pure html files, no scripts allowed

I have an application server containing scripts. I have a script that can write to a file. However, I need the file to be written to the web server, how can I do that in asp?

 
I don't see how you should be able to do that without finding a HUGE exploit on the webserver.

Are the application and web servers connected somehow thru a LAN?
 
Unless the webserver box also supports FTP uploads or you have a LAN setup and can use local authentication for a straight file copy, you can't do it without scripting on the webserver box. It's scripting (and a component like SA-fileup) that converts a multipart POST and saves it as a specific file.
 
Originally posted by: Juniper
There is this stupid customer who insist that his layout should be like this... sigh... So stubborn.
Customers. They're not always right. Just because they want something to be possible doesn't make it true.
 
You could uyse a script on the app server to FTP to the web server a text file with your content.
Then do an include in your current webpage...
 
Originally posted by: SaigonK
You could uyse a script on the app server to FTP to the web server a text file with your content.
Then do an include in your current webpage...
I'd suggested FTP but hadn't considered the SSI part, good idea. And actually the file could include HTML if the app server generated the file that way, rigfht?

I haven't really used SSI outside of perl and ASP scripting, can the include path be filesystem-based instead of URL-based? If not then the FTP server account that the app server uses needs to have upload rights to the website folder.

Of course the FTP account used had better not be an anonymous one, or else anyone will be able to hack the site.
 
I ahve not tried it with a path vs. a URL as of yet.
i just have a domain (you could use local accounts) that has access to the web directory.
Form there i have a notes folder that it can push the text file to.
 
Back
Top