Hi I want to convert small .ashx page written in c#.net to php file , this is only one page and its use ffmpeg library and I want to run it on linux.
The page is too small less than 5 lines
Who can make it and run it on linux
this is source :
using System;
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
using [login to view URL];
public class Handler : IHttpHandler {
public void ProcessRequest (HttpContext context) {
string ID = [login to view URL]().ToString();
string targetFilePath = [login to view URL]("~/Uploads/" + ID + "/");
DirectoryInfo dir = new DirectoryInfo(targetFilePath);
[login to view URL]();
string[] arr1;
int loop1;
HttpFileCollection Files;
String TempFileName;
HttpFileCollection MyFileCollection = [login to view URL];
string output = "Error on saving file";
Files = [login to view URL]; // Load File collection into HttpFileCollection variable.
arr1 = [login to view URL]; // This will get names of all files into a string array.
for (loop1 = 0; loop1 < [login to view URL]; loop1++)
{
TempFileName = targetFilePath+[login to view URL](arr1[loop1]);
try
{
MyFileCollection[loop1].SaveAs(TempFileName);
FileInfo myfile = new FileInfo(TempFileName);
Process p = new Process();
string fileargs = "-i " + " " + TempFileName + " " + [login to view URL]("~/Uploads/"+ID+"/[login to view URL]");
[login to view URL] = [login to view URL]("~/ffmpeg-20130817-git-2c1a215-win32-static/bin/[login to view URL]");
[login to view URL] = fileargs;
[login to view URL] = false;
[login to view URL] = false;
[login to view URL] = true;
[login to view URL]();
[login to view URL]();
[login to view URL]();
string audiosrc ="[login to view URL]" + ID + "/[login to view URL]";
output = "";
}
catch (Exception ex)
{
[login to view URL](" File Exception = " + ex + "");
}
finally
{
[login to view URL](output);
}
}
}
public bool IsReusable {
get {
return false;
}
}
}
We have gone through your project and you are basically looking for conversion of asp.net file to php code. We can accomplish that and can start once the opportunity is given to us.
Regards
Vinit Kumar
Hello,
With 99% completion rate, 600 successfully completed projects, and a 5.00 reputation... you can never go wrong choosing me :)
I look forward to your reply.
Thanks.
Kind Regards,
Rajesh Soni
Hi, I read the code and this code coverts input audio file to mp3 format during file upload. I can redesign this code to php easily. I have worked on lot of ffmpeg projects and this looks an easy job to do. I have worked on similar project in php that will convert audio file uploaded by user in to mp3 file with some more filtering to use it as ringtone.
Thanks!
Hello QAMOOOS, I have done this task a couple of times in my past projects. I'm very much interested in doing this task for you. MILESTONE REQUIRED. Thank you sir for giving your precious time to review my bid and check PM for more details!
I am ready to do it...................................................................,,.......................................................................