You are here: Re: Output HTML code in comman line with help of PHP « PHP Programming Language « IT news, forums, messages
Re: Output HTML code in comman line with help of PHP

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация