dakomo Posted January 23, 2003 Share Posted January 23, 2003 hot can i get a .exe file complied in pascal into html? is it possible? not the .pas cos i got that sorted cheers :huh: Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted January 23, 2003 Veteran Share Posted January 23, 2003 huh?? can you just link to the file?? Link to comment Share on other sites More sharing options...
0 Quboid Posted January 23, 2003 Share Posted January 23, 2003 Erm ... what exactly do you want to do? If you want a link so people can download it, do this: <a href="file.exe">click here to download</a>. If you want it to run on the server when the visitor runs, that's a server side script. This can be done, although I don't know how compiled scripts work. If you want it to run on the visitors, machine, forget it. I don't think it's possible even with the browser asking the visitor for confirmation - and even if it was, I wouldn't go near your site for a hundred bucks. I can live without someone running format on my disc thank you. Besides, you can't be sure the visitor is using Windows... Link to comment Share on other sites More sharing options...
0 Metal Head Posted January 23, 2003 Share Posted January 23, 2003 I think it wudnt be a good idea, to explain what to do, he could easily then jsut merge a exe virus into the html. No Offence :ninja: Link to comment Share on other sites More sharing options...
0 simonallison Posted January 23, 2003 Share Posted January 23, 2003 I think what he is trying to do is, make his pascal program work in html, but what he really mean't was to code it in java or maybe another language so that he can use it in web pages! that's how i saw it! Link to comment Share on other sites More sharing options...
0 dakomo Posted January 23, 2003 Author Share Posted January 23, 2003 1. yer sorry timdorr, admins - wasnt sure were to post 2. ok ummm i'll try to b clearer (hell i'm not even sure what i want)...actually lets just say you want to a. write to a text file some stats while the program is running .b. to update the file (so when a person logs in it updates the ummmm number of ppl loged on) and .c. to update the file automatically onto a website (as a .txt). is that possible? also can pascal write a/to .htm? really sorry bout this folks and again sorry admins for xpostin cheers Link to comment Share on other sites More sharing options...
0 PeterHammer Posted January 23, 2003 Share Posted January 23, 2003 1. yer sorry timdorr, admins - wasnt sure were to post2. ok ummm i'll try to b clearer (hell i'm not even sure what i want)...actually lets just say you want to a. write to a text file some stats while the program is running .b. to update the file (so when a person logs in it updates the ummmm number of ppl loged on) and .c. to update the file automatically onto a website (as a .txt). is that possible? also can pascal write a/to .htm? really sorry bout this folks and again sorry admins for xpostin cheers Sound like you want to execute the file on the server. That should be easy. But you will need at a minimum a webserver with some form of scripting engine. Basic CGI will do. You can use either apache or IIS as your webserver and set it up so that a particular URL is handled by your exe. That way when a visitor hits that URL your exe executes and updates your text file. AS for your the output file being available on the webserver, all you have to do is make sure that file is output to a directory under the root of your webserver, (or a directory aliased by your webserver). Link to comment Share on other sites More sharing options...
0 dakomo Posted January 24, 2003 Author Share Posted January 24, 2003 cheers all, i think i know what i want/need to do i've got the program in pascal writen and complied so i run the .exe file, login (this then updates the .txt file) and make sure the .txt file is at the root of my webserver so it shows the file, not too hard, i think! :happy: cheers all PS: anyone know any good quick pascal/pascal sites out there? Link to comment Share on other sites More sharing options...
0 gazelle Posted January 25, 2003 Share Posted January 25, 2003 Dakamo my good friend you should spend more time worring about writing the source code then tying to get it to work with HTML. Under 9 weeks to go. Link to comment Share on other sites More sharing options...
Question
dakomo
hot can i get a .exe file complied in pascal into html? is it possible?
not the .pas cos i got that sorted
cheers :huh:
Link to comment
Share on other sites
8 answers to this question
Recommended Posts