×
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: Difference between revisions

    Content added Content deleted
    imported>DrOwl
    No edit summary
    imported>DrOwl
    No edit summary
    Line 12: Line 12:


    returns the multi line figlet on my shell
    returns the multi line figlet on my shell

    +still need to add the font tags =)


    --[[User:DrOwl|DrOwl]] 00:32, 23 May 2005 (CEST)
    --[[User:DrOwl|DrOwl]] 00:32, 23 May 2005 (CEST)

    Revision as of 22:34, 22 May 2005

    ok we stilll need to do playing for the excapecommands and such... maybe we can just run some tr RegXs for doggy chars... there must be a way formaking it safe =) ill checkout the perl version =)

    +the passthrough command works in my tests ie, using

    <pre> <?php passthru('echo moo | /home/drowl/figlet/figlet -d /home/drowl/figlet/fonts'); ?> </pre>

    returns the multi line figlet on my shell

    +still need to add the font tags =)

    --DrOwl 00:32, 23 May 2005 (CEST)

    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.