The following code is causing me a headache. I want to put: "12-25-2004 0:0:0" on the screen.
But the following code:
echo date('d-m-Y H:m:s', mktime(0,0,0,12,25,1978));
returns:
25-Dec-1978 12:12:00
What is happening?
I've got a simple problem but I can't find the solution. I hope someone can help me (I was surprised I couldnt find it in previous posts on this forum...)
What I want is:
a table (width 100%) with 3 columns, two with a fixed width (e.g. 50 and 40px), one with a variable width (which 'fills the...
Woops! Found a small bug: summer time isnt taken up in my function!
/**
* PUBLIC getTimestampFromWeeknr($iYear, $iWeek)
* Function to calculate the timestamp of at monday 0:00am
* in given year and week according to ISO-8601 standards
*
* return: array with TCalenderEvent objects
**/...
I found out myself. For those who are interested:
/**
* PUBLIC getTimestampFromWeeknr($iYear, $iWeek)
* Function to calculate the timestamp of at monday 0:00am
* in given year and week according to ISO-8601 standards
*
* return: array with TCalenderEvent objects
**/
function...
I think preg_replace() is fine. Here is a great reference (and website) of regular expressions: http://www.regular-expressions.info/reference.html
A quick solution (dont know if it works):
$pattern = "/\n{1,}|\r{1,}(\r\n){1,}/";
$replacement = "<p>";
echo preg_replace($pattern, $replacement...
I want to write a function which calculates the timestamp from a week number:
function timestampFromWeeknr($iWeekNr, $iYear)
{
//here should come magical calculation
return $iTimeStamp
}
More accurately speaking, it should be the timestamp from the Monday of that week, at 0:00am.
Has...
The zip file contains numerous files, please copy/paste relevant code in your question using the [ code ] and [ / code ] tags of this form.
We'd like to help you, but we do not have the time to read a couple hundred lines of code.
In IE there is this Javascript onbeforeprint function.
Using Javascript you could replace all images by <span>s with the alt text inside.
But I only recommend this when you are sure all your users use IE
How can the user click the menu when the page is scrolled down? Is the menu in another page?
Maybe you could use the #top in your menu. I assume there is an 'onclick' event somewhere. Just in my own words (not realy js)
onclick="
iframe.src='bla'; //set the source for the iframe...
See a previous post of mine:
//get current filename
var fileName = document.URL.substring(document.URL.lastIndexOf('/')+1)
if (fileName=="fish.htm")
{
togSub(document.getElementById('ML4'));
}
The submenu ML4 is openend when the filename is 'fish.htm'
You could also pass some...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.