navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

... or die

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> ... or die
Page: [1]
 
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
... or die - 4/4/2005 17:58:55   
Just a post to those learning php... there are a few of us...

:)

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

:):):)

Hmmmm... which is most cool?

end


or

die



_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ... or die - 4/4/2005 18:03:34   
GEEK ALERT!:)

(in reply to bobby)
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

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

_____________________________




(in reply to bobby)
BeTheBall

 

Posts: 6381
Joined: 6/21/2002
From: West Point Utah USA
Status: offline

 
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. :)


_____________________________

Duane

Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.

(in reply to Giomanach)
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

 
RE: ... or die - 4/4/2005 18:35:09   
<?php
echo date("d/M/Y");
?>

The date is different (much easier than ASP too)

_____________________________




(in reply to BeTheBall)
suzkaw

 

Posts: 161
From: North Carolina, USA
Status: offline

 
RE: ... or die - 4/4/2005 21:50:37   
My vote is for explode :)

_____________________________

Thanks,
Eric
68 Classifieds

(in reply to Giomanach)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> ... or die
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts