Find Jobs
Hire Freelancers

PHP Script to Execute C Files

$30-50 USD

Completed
Posted over 11 years ago

$30-50 USD

Paid on delivery
Hi, I am writing a PHP script that upload a file that execute other c files by using system calls fork(), and exec(), and execl(). Unfortunately exec() and execl() functions did not work. In more details, the PHP script , execute exec() function to execute p1 which is the executable file of p1.c, and the p1.c program calls execl("./p2", "./p2", "[login to view URL]","[login to view URL]", NULL); to execute p2 which is the executable file of p2.c. As the result shows in screenshot file of the output; execl() function did not execute and have the following out Process 1 is running. Process 1 is forking a new child process. Process 1 is running. Process 1 is forking a new child process. The child of Process 1 is running. The child of Process 1 is replacing itself. YOU'LL NEVER EVER SEE THIS LINE :( It should have the following output: Process 1 is running. Process 1 is forking a new child process. Process 1 is running. Process 1 is forking a new child process. The child of Process 1 is running. The child of Process 1 is replacing itself. Process 2 is running Process 2 is expecting 2 arguments Process 2 receives 2 arguments I got this And I got this Process 2 is done. Goodbye!! That means this printf("YOU'LL NEVER EVER SEE THIS LINE :( \n"); will never execute if the execl() is working at p1.c program. To see the whole project how it works, please follow the follwing steps: 1- put all folder in some directory in your computer. 2- click on this URL : http://localhost/enc/ 3- Upload p1 file from app folder 4- click on upload button to see the result. 5- look at PHP script, and P1.c, P2.c for more details. Please check the attached files and send me privatge message if any query. I am expecting bids only from the serious bidders. Deadline: 1 day. Payment after successful completion of the project and delivery. Cheers!
Project ID: 2618937

About the project

3 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
2 years of professional PHP experience and I've already solved your [login to view URL] check your PMB for the attachment
$50 USD in 0 day
5.0 (1 review)
1.4
1.4
3 freelancers are bidding on average $40 USD for this job
User Avatar
i can do it
$30 USD in 7 days
5.0 (82 reviews)
5.6
5.6
User Avatar
Both C/PHP programming experience more than 10 yrs, I can do it now!
$40 USD in 1 day
4.8 (17 reviews)
4.8
4.8
User Avatar
Custom software development: w w w . The Administrator removed this message for containing contact details which breaches our Terms of Service . i o
$50 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of BANGLADESH
Dhaka, Bangladesh
4.9
7
Payment method verified
Member since Apr 23, 2008

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.