|
Posted by Erwin Moller on 09/10/07 11:36
Rik Wasmus wrote:
> On Sun, 09 Sep 2007 20:04:06 +0200, Orin <savalon@ukr.net> wrote:
>
>>
>> That's not the way... I'll try to explain what i exactly want:
>>
>> I need to make a table and columns in console with specific data.
>> For example, like in MySql.
>>
>> if i execute 'C:\>php cmd.php' i will see:
>> '<table><tr align="center"><td> stuff1</td><td
>> color="#FFFFFF">stuff2</td></tr></table>',
>>
>> but i need a table.
Ectually, that IS a table. In html.
>
> An HTML table doesn't exist in a commandline context (just like you
> can't use HTML form elements).
> You can mimique a table with sprintf() though, just make sure you pad
> everything with the appropriate amount of spaces.
Yes, that or simply safe the output to a file and open that file in a
browser.
sprintf() is more fun. ;-)
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|