Autor Beitrag
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Di 24.07.07 20:03 
Hallo,
ich möchte in meinem Beispiel eine Datei erst nach Ablauf eines Datum (meinetwegen heute um 23.99) freigeben. Wie realisiere ich das in php?

Ich ahbe bereits diesen Code.Aber da kommt ein Fehler bei Zeile 2:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<?
 if (gmmmktime()>gmmktime(23,59,59,7,24,2007,1)) {
 echo 'Hallo';
 }
 else {
 echo "Geklappt";
 }
 
 
  if (gmmmktime()>gmmktime(23,59,59,7,22,2007,1)) {
 echo 'Hallo2';
 }
 else {
 echo "Geklappt2";
 }
?>


MfG
Regan


Edit: Fehler gefunden: Ich habe drei "m" statt zwei geschrieben. :autsch:
Leuchtturm
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1087

Win Vista, Knoppix, Ubuntu
Delphi 7 Pe, Turbo Delphi, C#(VS 2005 Express), (X)HTML + CSS, bald Assembler
BeitragVerfasst: Mi 25.07.07 09:37 
Und bist du dir sicher das es 23.99 passieren soll :mrgreen:
Sorry für OT aber das musste sein

_________________
Ich bin dafür verantwortlich was ich sage - nicht dafür was du verstehst.
Regan Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Mi 25.07.07 13:41 
ja. Gaanz sicher. nein. Ich poste hier nochmal den richtigen code:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<?
 if (gmmktime()>gmmktime(23,59,59,7,24,2007)) {
 echo 'Hallo';
 }
 else {
 echo "Gklappt";
 }
 
 
  if (gmmktime()>gmmktime(23,59,59,7,22,2007)) {
 echo 'Hallo2';
 }
 else {
 echo "Gklappt2";
 }
?>