Search found 212 matches

by chris
Mon Jun 28, 2010 9:54 am
Forum: Servers
Topic: Solved: bincimap not starting
Replies: 2
Views: 75974

Re: bincimap not starting

are yo sure svscan is running?

On my gentoo machine I can check this with:

Code: Select all

/etc/init.d/svscan status
If the status is stopped
You can start it with

Code: Select all

/etc/init.d/svscan start
then run

Code: Select all

svc -u /service/bincimap/
and it should work.

Regards
by chris
Mon Jun 14, 2010 11:14 pm
Forum: PHP
Topic: Solved: print of double/float
Replies: 1
Views: 55933

Re: print of double/float

You can do this with the function number_format()

Code: Select all

$float = 55.3333333333;
$new_num = number_format($float, 2);

echo $new_num; //55.33
by chris
Sun May 16, 2010 5:50 pm
Forum: Postfix
Topic: Solved: How do I create non-local aliases in postfix
Replies: 2
Views: 106079

Re: How do I create non-local aliases in postfix

You probably want something like virtual alias domains .

Add/edit the following in /etc/postfix/main.cf :
virtual_alias_domains = example.com, example.net, example2.com
virtual_alias_maps = regexp:/etc/postfix/virtual_alias

The create the file /etc/postfix/virtual_alias with the aliases you need ...
by chris
Sat Mar 20, 2010 3:18 am
Forum: Apache
Topic: Solved: Apache won't start: no listening sockets available
Replies: 4
Views: 104012

Re: Apache won't start: no listening sockets available

I had this problem once.

Apparently, /usr/htdocs is a default directory build in apache.
that is way you can't find it in the config files.

Your are probably using virtual host, but haven't included it your command to launch apache.
It should look something like this:
apache2 -D DEFAULT_VHOST -D ...
by chris
Fri Mar 19, 2010 10:53 pm
Forum: Apache
Topic: Solved: Apache won't start: no listening sockets available
Replies: 4
Views: 104012

Re: Apache won't start: no listening sockets available

Sounds like the Listing ports aren't set.

Check in /etc/apache2/httpd.conf
for the line:

Code: Select all

Listen 80
(Can be any other port, that isn't used by another service.)
by chris
Sun Mar 07, 2010 7:10 pm
Forum: PHP
Topic: Solved Converting rrs-date format to MySQL date format
Replies: 5
Views: 98575

Re: Converting rrs-date format to MySQL date format

As you only need the date.
Try it with only the first part:


$date_array=explode(' ',$rssdate);
$newdate=$date_array[0].$date_array[1].$date_array[2].$date_array[3];
$pubdate=date('Y-m-d',strtotime($newdate));
print $newdate."\n";
print $pubdate."\n";

It should give a correct result:
Fri ...
by chris
Sun Mar 07, 2010 7:01 pm
Forum: PHP
Topic: Solved Converting rrs-date format to MySQL date format
Replies: 5
Views: 98575

Re: Converting rrs-date format to MySQL date format

Hi,

I tested it with php version 5.2.10-2,
and it works OK.

result:
Fri, 5 Mar 2010 08:00:00 System/Localtime
2010-03-05

Try upgrading to the latest version.
by chris
Mon Feb 01, 2010 4:58 pm
Forum: HTML
Topic: limit width of text in HTML
Replies: 4
Views: 136399

Re: limit width of text in HTML

I did a few test and the width=100% only works well in opera.

Internet Explorer and firefox seam to have problems with it.
To be sure use absolute value's:

Code: Select all

<div style="width=600;overflow:scroll;">text</div>
by chris
Fri Jan 29, 2010 10:04 pm
Forum: HTML
Topic: limit width of text in HTML
Replies: 4
Views: 136399

Re: limit width of text in HTML

Well,

the board uses CSS -> overflow: hidden.
Example:
<div style="width=200;overflow:hidden;">text</div>

You might want to use scroll instead
<div style="width=100%;overflow:scroll;">text</div>

text-overflow in CSS3 seams to be promising, but it isn't supported by many browsers yet

I don't ...
by chris
Fri Jan 29, 2010 3:38 pm
Forum: HTML
Topic: limit width of text in HTML
Replies: 4
Views: 136399

Re: limit width of text in HTML

You can use

Code: Select all

<p style="max-width:200px;">text</p>
or just

Code: Select all

<p style="width:200px;">text</p>
But it won't convert the newlines to breaks likes <pre> does.