•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 427,025 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,539 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1574 | Replies: 3
•
•
Join Date: Dec 2006
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
hi, i'm trying to execute some c++ code from the php script in my webpage, but its not working. the best i could find was the php code below.
here is the code of program.exe (codewarrior created program.exe from this code)
when i run this the screen just says some data, like date and my host server and the program, but does not exectute the program.
i was trying to get it such that when i run the page this php script is on it says 7. thanks.
php Syntax (Toggle Plain Text)
$output = shell_exec('ls -lart program.exe'); echo "<pre>$output</pre>";
here is the code of program.exe (codewarrior created program.exe from this code)
c++ Syntax (Toggle Plain Text)
using namespace std; int main() { return 7; }
when i run this the screen just says some data, like date and my host server and the program, but does not exectute the program.
i was trying to get it such that when i run the page this php script is on it says 7. thanks.
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access activation api blog blogger blogging blogs code combo competition dani daniweb data debugging development dreamweaver dropdownlist gdata gentoo google gpl html innovation key linux microsoft module net news openbsd php product programming reuse rss security serial source spam tags vista web wysiwyg xml
- errors while executing vc++ code (C++)
- My embedded php code won't execute (PHP)
- help executing a .wav file with php code (PHP)
Other Threads in the PHP Forum
- Previous Thread: Multi-page form that preloads
- Next Thread: Has anyone used this....



Threaded Mode