×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Talk:Figlet Extension

    Revision as of 11:16, 21 May 2005 by imported>mutante

    Installed it now and testing. Returns the figlet now, but BEFORE all other html. Trying to fix...

    getting this help: < dammit> mutante: try using popen("figlet $input","r");

    stay tuned... mutante 13:12, 21 May 2005 (CEST)


    13:06 < mutante> hmm,while trying to write a mediawiki extension i always get the output i return BEFORE all other html in

                    the wiki pages instead of inline...what could i be doing wrong
    

    13:08 < mutante> $output=system ("figlet $input"); <maybe connected to using a system command to create output 13:08 < dammit> of course, PECL would do the job 13:09 < mutante> it returns what i want, just before the rest of all html 13:09 < dammit> haha, figlet ;-) 13:09 < mutante> yea *g* 13:09 < dammit> mutante: try using popen("figlet $input","r"); 13:09 < dammit> and don't forget to escape special characters in your $input 13:09 < dammit> or you'll end up in h4x0red box 13:10 < mutante> dammit: $input = mysql_escape_string($input); good enough? 13:12 < dammit> *shrug* :) 13:12 < dammit> then make it "figlet '$input'" 13:12 < JeLuF> mutante: No. mysql_escape_string is for SQL commands, not for shell commands 13:13 < mutante> JeLuF: oh,yea,is there something like "bash_escape_string" ? 13:14 < mutante> i guess i need to be afraid of ;'s 13:14 < JeLuF> or $( or ` or or or 13:14 < hendrik> escapeshellcmd 13:15 < JeLuF> mutante: http://de2.php.net/manual-lookup.php?pattern=escape 13:15 < mutante> does this sound good: $input =~ /[Aa-Zz]|[1-0]; 13:15 < TimStarling> use wfEscapeShellArg, it works on windows, kind of 13:15 < mutante> thanks for all the help

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.