Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I Make a Web Server in 15 Minutes?




On Feb 20, 2008, at 3:05 PM, Jerry Krinock wrote:

And, you are correct. It looks like they're not that difficult.

At the risk of spurring an open source scripting language war, a simple example of how little work it takes to craft a response in PHP (which is probably already installed on your machine and therefore the path of least resistance):


<?php header('HTTP/1.0 403 Forbidden'); ?>

If you want to make it die, fire off an infinite loop or just make it sleep a really long time:

<?php while(true); ?>

It'll run until it hits the maximum allowed execution time.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden
References: 
 >Can I Make a Web Server in 15 Minutes? (From: Jerry Krinock <email@hidden>)
 >Re: Can I Make a Web Server in 15 Minutes? (From: Jerry Krinock <email@hidden>)
 >Re: Can I Make a Web Server in 15 Minutes? (From: Nathan Duran <email@hidden>)
 >Re: Can I Make a Web Server in 15 Minutes? (From: Jerry Krinock <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.