New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
or you could take advantage of sudo
That said, shell_exec and associated functions are rarely ever recommended for anything. People will suggest you build your own extension before they suggest using passthrough/system/shell_exec.
Which sounds hard
I can't get it to work :$. All I get are the three buttons in the top left corner and nothing else.
I'll give it a try, thanks
I do too @yomero ;_;
No worries @twain The imagettfbbox function was the main solution to your problem.
@bnmkl - tested and works great for the text variable to be new everytime from a new 'pwgen -ny 12'. And part of the problem is passing that command into a variable only takes the first password too... anyway I'll keep banging my ahead against this one.
Strange, lol. I will have a look at putting
pwgen
output into a PHP variable later.What is your output for :
@bnmkl
bash-4.1$ cat pwgentest.php
<?php $pwgen = `/Users/indigodaddy/bin/pwgen -ny 12`; echo $pwgen; ?>bash-4.1$ php pwgentest.php
aequ.ee1kei0
Definitely strange @twain.
I would assume it is related to the special characters, but the example below works.
strings.txt
pwgen.sh
pwgen.php
Haha. Actually tried
pwgen
and had the same problem @twain. Solved though by being more specific and formatting in PHP.index.php
@bnmkl - Wow that's awesome man!
http://indigodaddy.koding.com/pwgen-test/
I'm just learning php, so now I am going to sit down and try to understand as much as possible about everything you did here.. (which was a LOT.. thanks so much!)
To me this is an interesting project, I'll probably put it up on a real domain with https just for the heck of it.. you will be credited, let me know the credit/link you want me to add when I put it up..
It is all yours @twain
I have always remembered you after discovering that you are a fellow Puppy Linux fan.