Click here to Skip to main content
15,911,848 members

Comments by Doug Vanderweide (Top 10 by date)

Doug Vanderweide 5-Jan-15 7:34am View    
Since I can't see how you set up sudo, I can't answer. But any time you elevate privileges for the web user to root, you are making a mistake.
Doug Vanderweide 3-Jan-15 10:54am View    
The problem, once again, is that your PHP user does not have sufficient privileges to execute that binary. Your best solution, once again, is to not run this process at all on your Web box, but to build a proxy service that can do this work off the Web server. If you are willing to ignore all common sense and safety and run that job from the command line anyway, either elevate the privileges of the PHP user. (Not root, the PHP user. Which is almost certainly not root.) Or add the PHP user to sudo as a root user for that process. Both of which would be huge mistakes to do. In other words, just build a proxy service for this file conversion, or find some other means to convert your documents. Because what you are trying to do is very, very dangerous. I don't know if I have made that clear so let me say it again: Don't do what you are trying to do. Just don't.
Doug Vanderweide 2-Jan-15 15:54pm View    
See new solution below.
Doug Vanderweide 2-Jan-15 15:41pm View    
You asked for JavaScript. JavaScript uses microtime, which is the Unix epoch in milliseconds. GIYF.

If you don't have access to server-side applications, you can't do what you want.
Doug Vanderweide 2-Jan-15 15:38pm View    
You're logging to console. That's not going to appear in your web browser; it's going to show up in the console, which is some external management tool.

This will pop up three consecutive alert dialogs:

window.onload = function() {
alert("hello");
alert("Remembertobringanumbrella.");
alert("this");
}