Jump to content


run .exe on LAMP from snippet?


  • You cannot reply to this topic
3 replies to this topic

#1 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 11 October 2007 - 11:54 PM

I've been working an a problem.
I want to change the upload date of a PDF on the server.

There are many utilities that do that from a localhost, but once the file has the new date, when it is uploaded, the date is re-written.

That got me thinking of uploading the utility to the server and using it. But google has not helped me find out if this can be done.

It also got me thinking if it is possible to upload a program and execute it from within etomite.

Am I way off base here or is this a possibility?

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 12 October 2007 - 02:00 AM

Are you referring to using a shell command like touch...???

#3 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 12 October 2007 - 03:25 AM

http://linux.about.com/library/cmd/blcmdl_touch.htm
That's it!

[EDIT] But it's no good unless you have access to cPanel's shell command prompt (which I don't) and obviously it's not a solution for SUN or IIS servers. I think I'll chalk this up to the "too hard basket".[/EDIT]

Edited by Cris D., 12 October 2007 - 06:38 AM.


#4 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 12 October 2007 - 01:08 PM

I'm not sure I exactly understand what you're trying to do but you might want to check to see what functions PHP itself has for manipulating files... Some of them provide virtually the same functionality as shell commands as long as the file permissions are set properly...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users