|
|
10.3: Use new say command for easy Terminal speech
If you have PHP enabled on your copy of panther, you can use the following php file to have a little fun:
10.3: Use new say command for easy Terminal speech
This sounds like an exceptionally bad idea to me. A malicious user could just type in a quote, followed by &&, followed by any malicious command, and then another quote to match the one at the end. You REALLY don't want to give arbitrary users permission to execute shell commands on your system.
10.3: Use new say command for easy Terminal speech
Since what ever the user types is in quotes, what could the user type that would do anything other than speak the text.
10.3: Use new say command for easy Terminal speech
Looks like:
would be pretty bad.
10.3: Use new say command for easy Terminal speech
put escapeshellarg() around the $_POST['text']
10.3: Use new say command for easy Terminal speech
A bit funnier...
10.3: Use new say command for easy Terminal speech
I added some security, and timestamped logging, in case you miss the performance. (Make sure the Unix permissions on the log directory are appropriate!) I am a php newbie ;) Now time for bed!
---------------------- ---
10.3: Use new say command for easy Terminal speech
Can you think of why I am only able to hear speech through my cmd line and Salling Clicker but not when I use your script via php?
10.3: Use new say command for easy Terminal speech
it seems to be working now. Unsure why as I've not changed any of my settings. :) |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|