calling an NSIS exe from php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ranrozin
Forum Newbie
Posts: 1
Joined: Mon Dec 21, 2009 3:51 am

calling an NSIS exe from php

Post by ranrozin »

Hi,
I'm trying to create a file upload progress bar, the way I go about it is the following:
1. I have a page to upload the file that call a PHP page
2. the Upload PHP is using the move_uploaded_file function and I save to a session paremeter the with temp file name and path.
3. through Ajax I'm calling a different PHP page that runs an NSIS exe with the path to the tmp file
4. the NSIS exe file should get the size of the file and write it to a file
5. the PHP that ran the NSIS exe reads the text file for the progress.

I know that it's a bit clumsy but my problem is that the NSIS exe doesn't return the file size. I know that the problem is not in the NSIS exe as It sees the file but for some reason can't access it. I tried the file_size in PHP as well, which doesn't work.

Am I missing something here? is there something that is blocking teh access to the tmp file in the tmp folder?


Thanks for the help

Ran
Post Reply