... or die (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


bobby -> ... or die (4/4/2005 17:58:55)

Just a post to those learning php... there are a few of us...

[:D]

Of all the differences between ASP and php I think that "or die" is my favorite

[:D][:D][:D]

Hmmmm... which is most cool?

end


or

die





Spooky -> RE: ... or die (4/4/2005 18:03:34)

GEEK ALERT![sm=yikes.gif]




Giomanach -> RE: ... or die (4/4/2005 18:08:06)

<?php

$Outfront = http://www.frontpagewebmaster.com
$Referrer = $_SERVER["HTTP_REFERER"]

if ($Outfront = $Referrer)
print "Nice One";
else
die ("Error, You came from the Wrong WebSite");
?>

Die seems much better, as you can add a message, rather than just end it[:)]




BeTheBall -> RE: ... or die (4/4/2005 18:16:21)


quote:

ORIGINAL: Giomanach

<?php

$Outfront = http://www.frontpagewebmaster.com
$Referrer = $_SERVER["HTTP_REFERER"]

if ($Outfront = $Referrer)
print "Nice One";
else
die ("Error, You came from the Wrong WebSite");
?>

Die seems much better, as you can add a message, rather than just end it[:)]


Syntax sure looks similar to ASP. Maybe I should give it a try. I'm not quite confused enough yet. [8D]




Giomanach -> RE: ... or die (4/4/2005 18:35:09)

<?php
echo date("d/M/Y");
?>

The date is different (much easier than ASP too)




suzkaw -> RE: ... or die (4/4/2005 21:50:37)

My vote is for explode :)




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625