PHP in posts? - PBX Info :: Your Free PBX, PABX and Telephone Information Resource
Home | Register |    
 
Forums         |        Articles          |        Blogs         |      Software          |      Portals          |      Resource          |      Wiki      |    White Papers         
 
Go Back   PBX Info :: Your Free PBX, PABX and Telephone Information Resource > GENERAL > Off Topic - Humor/Jokes
   SEARCH  
     
User Name Password      
Save ?
Off Topic - Humor/Jokes Hang Out, Humor, Jokes and Off Topic posts

Download:


Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 03-15-2006, 11:15 AM   #1 (permalink)
Archibald J. Cox
Senior Member
 
Archibald J. Cox's Avatar
Archibald J. Cox has no status.

Activity Longevity
0/20 15/20
Today Posts
0/0 sssss1959
Location: Where the hell is Tiverton, Ontario (CANADA)?!?!
Rep Power: 6Archibald J. Cox will become famous soon enough
Gender:
Country:
Send a message via AIM to Archibald J. Cox
PHP in posts?

And I thought I could actually include PHP in my post


PHP Code:

//Why?!

$counter 50;

for (
$i $i $counter $i++) {

print_r($i);

echo 
"<br />";


Archibald J. Cox is offline   sendpm.gif Reply With Quote
Old 03-15-2006, 11:18 AM   #2 (permalink)
Archibald J. Cox
Senior Member
 
Archibald J. Cox's Avatar
Archibald J. Cox has no status.

Activity Longevity
0/20 15/20
Today Posts
0/0 sssss1959
Location: Where the hell is Tiverton, Ontario (CANADA)?!?!
Rep Power: 6Archibald J. Cox will become famous soon enough
Gender:
Country:
Send a message via AIM to Archibald J. Cox
Ahh, for the sake of sharing code with others.

Got it.
Archibald J. Cox is offline   sendpm.gif Reply With Quote
Old 03-15-2006, 11:20 AM   #3 (permalink)
John_In_Dakota
Moderator
 
John_In_Dakota's Avatar
John_In_Dakota is in need of a long nap.

Activity Longevity
9/20 20/20
Today Posts
0/0 sssss6058
Location: 1069.7 miles from Tiverton, Ontario (CANADA)
Rep Power: 12John_In_Dakota will become famous soon enough
Gender:
Country:
Send a message via AIM to John_In_Dakota Send a message via MSN to John_In_Dakota Send a message via Yahoo to John_In_Dakota
Red face

[quote]]<?php BEGIN__VBULLETIN__CODE__SNIPPET //Why?!

$counter = 50;

for ($i = 1 ; $i < $counter ; $i++) {

print_r($i);

echo "<br />";

}
[/QUOTE

<?well I_have$_no_Idea//?!WhAt_((Your)))_..Talking__)%About
($$%Arch))//
John_In_Dakota is offline   sendpm.gif Reply With Quote
Old 03-15-2006, 11:34 AM   #4 (permalink)
Archibald J. Cox
Senior Member
 
Archibald J. Cox's Avatar
Archibald J. Cox has no status.

Activity Longevity
0/20 15/20
Today Posts
0/0 sssss1959
Location: Where the hell is Tiverton, Ontario (CANADA)?!?!
Rep Power: 6Archibald J. Cox will become famous soon enough
Gender:
Country:
Send a message via AIM to Archibald J. Cox
It's a "for loop". First I initialized the $counter variable to be 50. Then I said for ($i starts as being 1 ; As long as $i is less than the $counter (50) ; Increment $i by one each loop iteration)

Then for every time through, it will print out $i (print_r($i)) and echo a line break ("<br />"). Up to but not including 50.

so the output would be:
Code:
1
2
3
4
5
6
7
8
9
...
47
48
49
Archibald J. Cox is offline   sendpm.gif Reply With Quote
Old 03-15-2006, 11:55 AM   #5 (permalink)
rixride
Admin
 
rixride's Avatar
rixride is replying to forum games...

Activity Longevity
14/20 20/20
Today Posts
0/0 sssss3115
Location: Dallas, Texas
Rep Power: 5rixride has much to be proud ofrixride has much to be proud ofrixride has much to be proud ofrixride has much to be proud ofrixride has much to be proud ofrixride has much to be proud ofrixride has much to be proud ofrixride has much to be proud of
Gender:
Country:
 
ahh PHP 101, this is the class I need. Maybe I could fix the smilie issue.
__________________
-=Welcome to PBXInfo=-
-Become a PBXInfo Supporter
-Get more PM Space, Profile Picture, a Signature
-Add yourself to Pbxinfo's Frappr
-Find Nortel Software
rixride is offline   sendpm.gif Reply With Quote
Old 03-15-2006, 01:31 PM   #6 (permalink)
Archibald J. Cox
Senior Member
 
Archibald J. Cox's Avatar
Archibald J. Cox has no status.

Activity Longevity
0/20 15/20
Today Posts
0/0 sssss1959
Location: Where the hell is Tiverton, Ontario (CANADA)?!?!
Rep Power: 6Archibald J. Cox will become famous soon enough
Gender:
Country:
Send a message via AIM to Archibald J. Cox

I think that's got to be some javascript or vbscript somewhere. Whatever is opening the popup window is telling it not to have scrollbars ("scrollbars=no") and telling it to be a rather small size.
Archibald J. Cox is offline   sendpm.gif Reply With Quote
Old 03-15-2006, 04:45 PM   #7 (permalink)
papa-bear
Moderator
 
papa-bear's Avatar
papa-bear is suffering from a pad thai lunch

Activity Longevity
13/20 14/20
Today Posts
0/0 sssss3299
Location: @home
Rep Power: 8papa-bear will become famous soon enough
Gender:
Country:
I find this page a great resource:
http://www.w3schools.com/

For PHP stuff, look here:

http://www.w3schools.com/php/default.asp
papa-bear is offline   sendpm.gif Reply With Quote
Old 03-15-2006, 06:29 PM   #8 (permalink)
slagburn
Senior Member
 
slagburn's Avatar
slagburn has no status.

Activity Longevity
6/20 18/20
Today Posts
0/0 ssss10376
Location: 3498.51 miles from Tiverton, Ontario (CANADA)
Rep Power: 16slagburn will become famous soon enough
Gender:
Country:
I think I fixed it... try this.

]<?php BEGIN__VBULLETIN__CODE__SNIPPET //Why?!

$counter = 50;

for ($i = 1 ; $i < $counter ; $i++) {

print_r($i);

echo "<br />"; YOU SUCK

}
[/QUOTE
slagburn is offline   sendpm.gif Reply With Quote
Old 03-15-2006, 07:46 PM   #9 (permalink)
gei_spot
Senior Member
 
gei_spot's Avatar
gei_spot is going phishing

Activity Longevity
13/20 20/20
Today Posts
0/0 sssss5234
Location: Somewhere in this vast universe on a little rock that looks like a grape.
Rep Power: 11gei_spot is on a distinguished road
Gender:
Country:
Quote:
Originally Posted by slagburn
I think I fixed it... try this.


echo "<br />"; YOU SUCK

}
[/QUOTE
__________________
I'm a member of the "PbxInfo Gang"
gei_spot is offline   sendpm.gif Reply With Quote
Old 03-15-2006, 08:07 PM   #10 (permalink)
Archibald J. Cox
Senior Member
 
Archibald J. Cox's Avatar
Archibald J. Cox has no status.

Activity Longevity
0/20 15/20
Today Posts
0/0 sssss1959
Location: Where the hell is Tiverton, Ontario (CANADA)?!?!
Rep Power: 6Archibald J. Cox will become famous soon enough
Gender:
Country:
Send a message via AIM to Archibald J. Cox
Exactly what I was looking for.
Archibald J. Cox is offline   sendpm.gif Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 03:07 AM.

Tags   |   Advertise    |    Media Partners   |    Admin   |   About us   |   Contact Us   |   RSS   

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0
Copyright PBXINFO LLC 2006