Lennard schreef:Toevallig wel jaWil je toevallig checken of het een datum is ofzo?
En ik wil dit graag niet met Jquery doen.Lennard schreef:Toevallig wel jaWil je toevallig checken of het een datum is ofzo?
En ik wil dit graag niet met Jquery doen.[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/var_dump"]var_dump[/URL][COLOR= #007700]([/COLOR]checkDatum[COLOR= #007700]([/COLOR][COLOR= #DD0000]2012-06-16[/COLOR][COLOR= #007700]));[/COLOR]
[URL="http://www.php.net/var_dump"]var_dump[/URL][COLOR= #007700]([/COLOR]checkDatum[COLOR= #007700]([/COLOR][COLOR= #DD0000]abcd-ef-gh[/COLOR][COLOR= #007700]));[/COLOR]
[URL="http://www.php.net/var_dump"]var_dump[/URL][COLOR= #007700]([/COLOR]checkDatum[COLOR= #007700]([/COLOR][COLOR= #DD0000]2012-02-30[/COLOR][COLOR= #007700]));
function[/COLOR] checkDatum[COLOR= #007700]([/COLOR][COLOR= #0000BB]$datum[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #0000BB]$timestamp[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/strtotime"]strtotime[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$datum[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$timestamp[/COLOR] [COLOR= #007700]!==[/COLOR] false[COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/return"]return[/URL] [URL="http://www.php.net/checkdate"]checkdate[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]n[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700]),[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]j[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700]),[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Y[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700])) &&[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Y-m-d[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]$datum[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/return"]return[/URL] false[COLOR= #007700];
}[/COLOR] [COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR]checkDatum[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]datum[/COLOR][COLOR= #007700]]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]foute datum[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]goede datum[/COLOR][COLOR= #007700];
}[/COLOR] Lennard schreef:want als je alleen dat bestand include dan berekent hij alleen de parsetijd van het bestand waar hij in staat, en dat is bijna 0 altijd.Maar je moet het dan wel zo doen (let op regel 10):[COLOR= #0000BB]<?php[/COLOR] [COLOR= #FF8000]// Insert this block of code at the very top of your page: [/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/microtime"]microtime[/URL][COLOR= #007700]();[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR] [COLOR= #0000BB]$start[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// HIER MOET DUS DE CODE VAN JE WEBSITE KOMEN[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/microtime"]microtime[/URL][COLOR= #007700]();[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR] [COLOR= #0000BB]$finish[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$totaltime[/COLOR] [COLOR= #007700]= ([/COLOR][COLOR= #0000BB]$finish[/COLOR] [COLOR= #007700]-[/COLOR] [COLOR= #0000BB]$start[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/printf"]printf[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Deze pagina is in %f seconden geladen!."[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$totaltime[/COLOR][COLOR= #007700]);[/COLOR] ?>
Lennard schreef:want als je alleen dat bestand include dan berekent hij alleen de parsetijd van het bestand waar hij in staat, en dat is bijna 0 altijd.Maar je moet het dan wel zo doen (let op regel 10):[/spoiler][COLOR= #0000BB]<?php[/COLOR] [COLOR= #FF8000]// Insert this block of code at the very top of your page: [/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/microtime"]microtime[/URL][COLOR= #007700]();[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR] [COLOR= #0000BB]$start[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// HIER MOET DUS DE CODE VAN JE WEBSITE KOMEN[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/microtime"]microtime[/URL][COLOR= #007700]();[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR] [COLOR= #0000BB]$finish[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$totaltime[/COLOR] [COLOR= #007700]= ([/COLOR][COLOR= #0000BB]$finish[/COLOR] [COLOR= #007700]-[/COLOR] [COLOR= #0000BB]$start[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/printf"]printf[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Deze pagina is in %f seconden geladen!."[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$totaltime[/COLOR][COLOR= #007700]);[/COLOR] ?>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Insert this block of code at the very top of your page: [/COLOR]
[COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/microtime"]microtime[/URL][COLOR= #007700]();[/COLOR]
[COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$start[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700];[/COLOR]
?> [COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"load.php"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// code[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"footer.php"[/COLOR][COLOR= #007700]);[/COLOR]
?> [COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// Place this part at the very end of your page [/COLOR]
[COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/microtime"]microtime[/URL][COLOR= #007700]();[/COLOR]
[COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]" "[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$time[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]] +[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$finish[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$time[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$totaltime[/COLOR] [COLOR= #007700]= ([/COLOR][COLOR= #0000BB]$finish[/COLOR] [COLOR= #007700]-[/COLOR] [COLOR= #0000BB]$start[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/printf"]printf[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"Deze pagina is in %f seconden geladen!."[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$totaltime[/COLOR][COLOR= #007700]);[/COLOR]
?> 
als ik naar footer.php ga zie ik dit:



Sanderc schreef:Wat wil je er op hosten?Heeft er iemand een host waarvan ik een mapje mag gebruiken gratis? En de FTP gegevens in PB wilt sturen? Ik heb het echt nodig
Dylanh schreef:Oke bedanktIk maak wel ff, ik stuur zo PM

Thijns schreef:Klopt ook niet, hij vraagt het voor ACHTERGROND.valign: middle; of vertical-align: middle; ZIE GOOGLE!!!!
Ik wist het niet meer, maar heb het binnen 23 sec. gegoogled
Thijns schreef:Klopt ook niet, hij vraagt het voor ACHTERGROND.valign: middle; of vertical-align: middle; ZIE GOOGLE!!!!
Ik wist het niet meer, maar heb het binnen 23 sec. gegoogled[/spoiler]

Background-position: center center; Antonn schreef:Je moet niet zeiken dat ik niet heb gegoogeld, daar is dit: http://reference.sitepoint.com/css/background-position uit gekomen maar dat werkt nietIk wist het niet meer, maar heb het binnen 23 sec. gegoogledEerdere citaten tonen
Thijns schreef:valign: middle; of vertical-align: middle; ZIE GOOGLE!!!!
Klopt ook niet, hij vraagt het voor ACHTERGROND.
En hij mag best eens Googlen ja.
...valign?...
Thijns schreef:Spoiler tonen
Antonn (link):
[/quote]Klopt ook niet, hij vraagt het voor ACHTERGROND.Eerdere citaten tonen
Thijns schreef:valign: middle; of vertical-align: middle; ZIE GOOGLE!!!!
Ik wist het niet meer, maar heb het binnen 23 sec. gegoogled[/spoiler]
En hij mag best eens Googlen ja.
...valign?...
Danku voor de correctie.
Valign is volgens mij ook mogelijk, probeer maar is.Background-position: center center;
Werkt dus niet
Ewan schreef:Spoiler tonen
Antonn (link):
[/quote]Klopt ook niet, hij vraagt het voor ACHTERGROND.Eerdere citaten tonen
Thijns schreef:valign: middle; of vertical-align: middle; ZIE GOOGLE!!!!
Ik wist het niet meer, maar heb het binnen 23 sec. gegoogled[/spoiler]
En hij mag best eens Googlen ja.
...valign?...
Je moet niet zeiken dat ik niet heb gegoogeld, daar is dit: http://reference.sitepoint.com/css/background-position uit gekomen maar dat werkt nietEerdere citaten tonen
Thijns schreef:Spoiler tonen
Antonn (link):
[/quote]Klopt ook niet, hij vraagt het voor ACHTERGROND.Eerdere citaten tonen
Thijns schreef:valign: middle; of vertical-align: middle; ZIE GOOGLE!!!!
Ik wist het niet meer, maar heb het binnen 23 sec. gegoogled[/spoiler]
En hij mag best eens Googlen ja.
...valign?...
Danku voor de correctie.
Valign is volgens mij ook mogelijk, probeer maar is.Background-position: center center;
Werkt dus niet
http://www.w3schools.com/cssref/playit.asp?filename=playcss_background-position