Search found 180 matches

by chris
Sat Sep 12, 2009 11:05 pm
Forum: PHP
Topic: Solved Converting rrs-date format to MySQL date format
Replies: 5
Views: 22948

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

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

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...
by chris
Thu Jan 08, 2009 9:07 pm
Forum: Apache
Topic: Solved: Rotate apache logs in windows
Replies: 8
Views: 29924

Re: Rotate apache logs in windows

Arch you need to put the slashes right,

This should work:

Code: Select all

CustomLog "| bin/rotatelogs.exe logs/access%Y_%m_%d.log 86400" common
by chris
Tue Dec 16, 2008 4:23 pm
Forum: Apache
Topic: Solved: Apache virtual host problem
Replies: 2
Views: 19614

Re: Apache virtual host problem

You alse need to add the port with NameVirtualHost.

Like this:

Code: Select all

NameVirtualHost *:8081
<VirtualHost *:8081>
        ServerAdmin webmaster@localhost
....
by chris
Fri Sep 19, 2008 3:35 pm
Forum: Apache
Topic: Solved: Rotate apache logs in windows
Replies: 8
Views: 29924

Re: Rotate apache logs in windows

Perhaps if you add the full pathname of the log file?
by chris
Sat Sep 13, 2008 2:01 pm
Forum: Apache
Topic: Solved: Rotate apache logs in windows
Replies: 8
Views: 29924

Re: Rotate apache logs in windows

Sorry, my mistake the full line should read:

Code: Select all

CustomLog "| bin\rotatelogs.exe logs\access%Y_%m_%d.log 86400" common

dont forget to set the root dir:

Code: Select all

ServerRoot "C:/Program Files/Apache Group/Apache2"
(Normally this is already done at the beginning of the file/)
by chris
Fri Sep 12, 2008 8:51 am
Forum: Apache
Topic: Solved: Rotate apache logs in windows
Replies: 8
Views: 29924

Re: Rotate apache logs in windows

You can use rotatelogs.exe to manage the logs. rotatelogs.exe can be found in the apache2/bin/ CustomLog "| bin\rotatelogs.exe logs\access%Y_%m_%d.log 86400" Should create a new log every day. (86400 seconds) You can als create a new one on size: CustomLog "| bin\rotatelogs.exe logs\a...
by chris
Sat Aug 23, 2008 12:29 pm
Forum: XML
Topic: Solved: XML/XSL error in IE
Replies: 4
Views: 58278

Re: XML/XSL error in IE

You have put a O(Letter) instead of 0 (zerro) in the version number. Wrong: <xsl:stylesheet version="1.O" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> Corrected: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> You can't see...
by chris
Wed Aug 20, 2008 3:43 pm
Forum: XML
Topic: Solved: XML/XSL error in IE
Replies: 4
Views: 58278

Re: XML/XSL error in IE

Can you post your XSL-code?

It might be helpfull in debugging.