•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 374,021 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,782 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: 1401 | 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.
•
•
Join Date: Jul 2004
Location: North East Indiana
Posts: 491
Reputation:
Rep Power: 5
Solved Threads: 20
Are you sure your permissions allow remote execution? It's generally a Bad Idea (tm).
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
•
•
Join Date: Jul 2004
Location: North East Indiana
Posts: 491
Reputation:
Rep Power: 5
Solved Threads: 20
Your PHP code would simply output the HTML code necessary to load the Java Applet.
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
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....


Linear Mode