Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-02-2004, 03:30 PM The WT script!
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Trades: 0
I had an idea for something just now, and I think it could be a lot of fun. Each of us can post a bit for a PHP script, one line at a time (sort of like one line stories). It'll be funny to see if this even runs, and if it does run, what this script would do. Let's give it a try, to say the least. One line at a time, please, comments not counting. Also, include the previous script with you, so we have a running script, and so I (or someone else) doesn't have to go back and add everyone's changes.

PHP Code:
<?php
error_reporting
(0);
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
 
Register now for full access!
Old 11-02-2004, 03:39 PM
Python's Avatar
Ultra Talker

Latest Blog Post:
A new site is launched
Posts: 374
Trades: 0
sounds like it could work. It might be a good idea to put in comments as well saying who wrote each line.

PHP Code:
<?php
error_reporting
(0); 

$link "<a href=\"http://www.webmaster-talk.com\">Webmaster Talk</a>";  // Python
one problem with this is that it wont have any db interaction
__________________

Please login or register to view this content. Registration is FREE

- Affordable web site design solutions
Python is offline
Reply With Quote
View Public Profile Visit Python's homepage!
 
Old 11-02-2004, 03:45 PM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Trades: 0
PHP Code:
<?php
error_reporting
(0);  // WahOoOo!

// Define Variables
$link "<a href=\"http://www.webmaster-talk.com\">Webmaster Talk</a>";  // Python
$host "localhost"// WahOoOo!
?>
We could make db interaction. I could create a new DB on my site and give you guys access. I really don't care. Also, you need to put the closing PHP tag, or it won't display the final comment.
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 11-02-2004, 04:30 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Ha, this could be a lot of fun

PHP Code:
<?php 
error_reporting
(0);  // WahOoOo! 

// Define Variables 
$link "<a href=\"http://www.webmaster-talk.com\">Webmaster Talk</a>";  // Python 
$host "localhost"// WahOoOo! 
$action $_GET['action']; // Anacrusis
?>
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 11-02-2004, 05:39 PM
WaHoOoO!'s Avatar
Mentally Unstable Tugboat Captain

Posts: 797
Name: Chad
Location: /usr/bin/perl
Trades: 0
PHP Code:
<?php 
error_reporting
(0);  // WaHoOoO! 

// Define Variables 
$link "<a href=\"http://www.webmaster-talk.com\">Webmaster Talk</a>";  // Python 
$host "localhost"// WaHoOoO! 
$action $_GET['action']; // Anacrusis
$name $_POST['name']; // WaHoOoO!
?>
__________________
He's baaaaaaaack....
WaHoOoO! is offline
Reply With Quote
View Public Profile Visit WaHoOoO!'s homepage!
 
Old 11-02-2004, 05:51 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
PHP Code:
<?php 
error_reporting
(0);  // WaHoOoO! 

// Define Variables 
$link "<a href=\"http://www.webmaster-talk.com\">Webmaster Talk</a>";  // Python 
$host "localhost"// WaHoOoO! 
$action $_GET['action']; // Anacrusis 
$name $_POST['name']; // WaHoOoO! 

if ($name == '') { // Anacrusis

?>
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 11-02-2004, 07:27 PM
foobar's Avatar
Extreme Talker

Posts: 225
Trades: 0
This'll be fun!.

PHP Code:
<?php
error_reporting
(0);  // WaHoOoO!

// Define Variables
$link "<a href=\"http://www.webmaster-talk.com\">Webmaster Talk</a>";  // Python
$host "localhost"// WaHoOoO!
$action $_GET['action']; // Anacrusis
$name $_POST['name']; // WaHoOoO!

if ($name == '') { // Anacrusis
   
$name "Guest"// foobar

?>
foobar is offline
Reply With Quote
View Public Profile Visit foobar's homepage!
 
Old 11-03-2004, 03:23 AM
nick89's Avatar
Super Talker

Posts: 136
Location: Brisbane, Australia
Trades: 0
PHP Code:
<?php
error_reporting
(0);  // WaHoOoO!

// Define Variables
$link "<a href=\"http://www.webmaster-talk.com\">Webmaster Talk</a>";  // Python
$host "localhost"// WaHoOoO!
$action $_GET['action']; // Anacrusis
$name $_POST['name']; // WaHoOoO!

if ($name == '') { // Anacrusis
   
$name "Guest"// foobar
}else{//nick89

?>
nick89 is offline
Reply With Quote
View Public Profile Visit nick89's homepage!
 
Old 11-03-2004, 03:42 AM
nick89's Avatar
Super Talker

Posts: 136
Location: Brisbane, Australia
Trades: 0
hmm... we should be able to write more than one line.
nick89 is offline
Reply With Quote
View Public Profile Visit nick89's homepage!
 
Old 11-03-2004, 03:51 AM
nick89's Avatar
Super Talker

Posts: 136
Location: Brisbane, Australia
Trades: 0
PHP Code:
<?php
error_reporting
(0);  // WaHoOoO!

// Define Variables
$link "<a href=\"http://www.webmaster-talk.com\">Webmaster Talk</a>";  // Python
$host "localhost"// WaHoOoO!
$action $_GET['action']; // Anacrusis
$name $_POST['name']; // WaHoOoO!

if ($name == '') { // Anacrusis
   
$name "Guest"// foobar
}else{//nick89
  
if(!checkdnsrr(preg_replace('/[^a-zA-Z0-9\\-]/'''$name).'.com''ANY'){
     echo 
"Welcome to $link $name. ".preg_replace('/[^a-zA-Z0-9\\-]/'''$name).".com is available";
  }
}
?>

Last edited by nick89; 11-03-2004 at 03:56 AM..
nick89 is offline
Reply With Quote
View Public Profile Visit nick89's homepage!
 
Reply     « Reply to The WT script!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29989 seconds with 12 queries