Search found 197 matches

by chris
Sun Mar 07, 2010 7:10 pm
Forum: PHP
Topic: Solved Converting rrs-date format to MySQL date format
Replies: 5
Views: 28700

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 resu...
by chris
Sun Mar 07, 2010 7:01 pm
Forum: PHP
Topic: Solved Converting rrs-date format to MySQL date format
Replies: 5
Views: 28700

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: 60601

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: 60601

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 ...
by chris
Fri Jan 29, 2010 3:38 pm
Forum: HTML
Topic: limit width of text in HTML
Replies: 4
Views: 60601

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.
by chris
Tue Nov 17, 2009 5:13 pm
Forum: General
Topic: Resize script for gimp
Replies: 3
Views: 28406

Re: Resize script for gimp

I updated the script: Here is the new version: (define (gimp_test_resize pattern img-width dir prefix) (let* ;get list of files ((filelist (cadr (file-glob pattern 1)))) (while (not (null? filelist)) (let* ((filename (car filelist)) (image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))...
by chris
Tue Nov 17, 2009 3:05 pm
Forum: General
Topic: Resize script for gimp
Replies: 3
Views: 28406

Re: Resize script for gimp

I created a script that resizes all the images in a directory, based on with and keeps the aspect ratio: (define (gimp_test_resize pattern img-width) (let* ;get list of files ((filelist (cadr (file-glob pattern 1)))) (while (not (null? filelist)) (let* ((filename (car filelist)) (image (car (gimp-fi...
by chris
Sat Sep 12, 2009 11:05 pm
Forum: PHP
Topic: Solved Converting rrs-date format to MySQL date format
Replies: 5
Views: 28700

Re: Converting rrs-date format to MySQL date format

strtotime is great function in php

Code: Select all

$mysql_date=date(Y-m-d', strtotime($rss_date)); 
this should do the trick.
by chris
Wed Jun 24, 2009 8:58 pm
Forum: Apache
Topic: multidomain domain2.com to www.domain1.com
Replies: 2
Views: 31754

Re: multidomain domain2.com to www.domain1.com

It might be a setting in your apache config for virtual hosts. It should look something like this. <VirtualHost *:80> ServerName www.domain1.com ServerAlias domain1.com web.domain1.com DocumentRoot /var/www/domain1.com </VirtualHost> Make sure you have ServerAlias set. To be sure, you should post yo...
by chris
Tue Feb 03, 2009 12:46 pm
Forum: Apache
Topic: Solved: Rotate apache logs in windows
Replies: 8
Views: 157406

Re: Solved: Rotate apache logs in windows

The logrotate that comes with Apache, doesn't zip or delete files. I made a litlle bat-file that zips and delete the old zip files. @ECHO OFF SET datum=%Date:~-4,4%_%Date:~-7,2%_%Date:~-10,2% SET logdir=c:\Program Files\Apache Group\Apache2\logs\ SET holdzipfiles=7 ::go to dir cd %logfir% ::gets all...