TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-02-2008, 10:23 PM   #41 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Lol Who's a clever bug?
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 12-03-2008, 03:02 AM   #42 (permalink)
The Addict
 
zxt3st's Avatar
 
Join Date: Apr 2008
Posts: 200
Thanks: 18
zxt3st is on a distinguished road
Default

Quote:
Originally Posted by Wildhoney View Post
Lol Who's a clever bug?
talkphp members lol :)
__________________
Serenity Project - 5% (Layout) - Ongoing....
Project Serenity Free Life!....
zxt3st is offline  
Reply With Quote
Old 12-18-2008, 09:42 AM   #43 (permalink)
The Visitor
 
Join Date: Dec 2008
Posts: 3
Thanks: 0
FractalizeR is on a distinguished road
Default

Sorry for bumping an old post. There is a better quiz:
QUIZ: Write a script outputting a multiplication table. No echo, functions etc. used
FractalizeR is offline  
Reply With Quote
Old 12-26-2008, 09:24 AM   #44 (permalink)
The Visitor
 
Join Date: Dec 2008
Location: Pluto
Posts: 4
Thanks: 0
Dingdong is on a distinguished road
Default

Here's my "effort":

<?php
if (1 == 0) {
die('See, no need for echo or print');
}
?>
Dingdong is offline  
Reply With Quote
Old 12-26-2008, 10:47 AM   #45 (permalink)
The Visitor
 
Join Date: Dec 2008
Posts: 3
Thanks: 0
FractalizeR is on a distinguished road
Default

Why there is "if" at all then?
FractalizeR is offline  
Reply With Quote
Old 12-26-2008, 11:18 AM   #46 (permalink)
The Visitor
 
Join Date: Dec 2008
Location: Pluto
Posts: 4
Thanks: 0
Dingdong is on a distinguished road
Default

'cause it looked cooler...

Nah, you're right.
Dingdong is offline  
Reply With Quote
Old 03-22-2009, 10:49 AM   #47 (permalink)
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default

GD FTW :P woo

PHP Code:
Prelude"Hello, World!"
"Hello, World!" 
__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote
Old 07-16-2009, 06:33 AM   #48 (permalink)
The Acquainted
 
JaoudeStudios's Avatar
 
Join Date: Jul 2009
Location: Surrey
Posts: 105
Thanks: 1
JaoudeStudios is on a distinguished road
Default

Quote:
Originally Posted by Salathe View Post
PHP Code:
Hello World
Very clever!
JaoudeStudios is offline  
Reply With Quote
Old 07-16-2009, 08:41 AM   #49 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Hehe thanks, I thought so too! Any chance of some more fun little threads like this being created?
Salathe is offline  
Reply With Quote
Old 07-16-2009, 09:55 AM   #50 (permalink)
The Addict
 
zxt3st's Avatar
 
Join Date: Apr 2008
Posts: 200
Thanks: 18
zxt3st is on a distinguished road
Default

That is a cool idea..
__________________
Serenity Project - 5% (Layout) - Ongoing....
Project Serenity Free Life!....
zxt3st is offline  
Reply With Quote
Old 08-27-2010, 02:39 PM   #51 (permalink)
The Visitor
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
DannyD is on a distinguished road
Default

Quote:
Originally Posted by erect View Post
how about breaking out of php and just getting the html to output?

PHP Code:
?>text to this page<?
no echo's or print's involved
Or... no PHP tags so it gets interpreted as text and delivered to your screen this summer!
DannyD is offline  
Reply With Quote
Old 11-18-2010, 08:10 PM   #52 (permalink)
The Contributor
 
SaintIsaiah's Avatar
 
Join Date: Jan 2009
Posts: 48
Thanks: 5
SaintIsaiah is on a distinguished road
Default

How about vprintf? Using a preg_match single line if to determine the string value? And utilizing a class?

So do I win lol?

Heh, the object being called at the end is Talk->PHP($output);

PHP Code:
<?php
class Talk
{
   var 
$output '';

   function 
PHP($str)
   {
      
vprintf('%s'$str);
   }
}

$TalkPHP 'Totally Awesome!!!!';
$output = (preg_match('*Awesome*'$TalkPHP)) ? 'TalkPHP is Totally Awesome!' '';

$Talk = new Talk();
$Talk->PHP($output);
unset(
$Talk);
?>
SaintIsaiah is offline  
Reply With Quote
Old 12-28-2012, 10:34 AM   #53 (permalink)
The Visitor
 
Join Date: Dec 2012
Location: India
Posts: 1
Thanks: 0
ajayraj is on a distinguished road
Default You all missed print_r

You all missed print_r;

<?
echo "<pre>";
print_r('something');
echo "</pre>";
?>
ajayraj is offline  
Reply With Quote
Old 03-06-2013, 11:26 AM   #54 (permalink)
The Visitor
 
Join Date: Mar 2013
Posts: 1
Thanks: 0
vinothviv is on a distinguished road
Help Use print_r from array

<?php $test_array=("Hello World.");
print_r($test_array);
?>

<?php $test_array=("<b>Hello World.</b>");
print_r($test_array);
?>

Last edited by vinothviv : 03-06-2013 at 11:31 AM. Reason: design
vinothviv is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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


All times are GMT. The time now is 08:18 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design