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
how to make corn in php
Old 01-20-2011, 05:09 AM how to make corn in php
Novice Talker

Posts: 9
Name: jack
Location: india
Trades: 0
hi all,
How to make corn in php, any one have a ideas so then give me reply.becausei am new to php.
__________________

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


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


Please login or register to view this content. Registration is FREE
SeoThegetpr is offline
Reply With Quote
View Public Profile Visit SeoThegetpr's homepage!
 
 
Register now for full access!
Old 01-20-2011, 10:48 AM Re: how to make corn in php
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Corn? Do you mean cron?

PHP doesn't have any sort of native integration with cron or its windows counterpart. The only way to create and manage crontabs in PHP is the exact same way you would do so from shell.

http://us2.php.net/manual/en/function.shell-exec.php

This isn't a viable option for portable applications.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 01-20-2011, 01:50 PM Re: how to make corn in php
VirtuosiMedia's Avatar
Web Design Made Simple

Posts: 1,228
Trades: 0
You can also do a poor man's cron with PHP where you run a function on every page load that checks if there are any scheduled processes to execute.
__________________
Want new web resources every day? - Follow me on
Please login or register to view this content. Registration is FREE


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


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 01-20-2011, 01:55 PM Re: how to make corn in php
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
PHP Code:
$field = new Field();
$corn = new Corn();
$field->plow();
$corn->plant($field);
$corn->water();
$corn->harvest(); 
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 01-20-2011, 01:59 PM Re: how to make corn in php
Banned

Posts: 4,083
Trades: 0
Need to put that into an infinite php loop wayfarer.
dWhite is offline
Reply With Quote
View Public Profile
 
Old 01-20-2011, 02:53 PM Re: how to make corn in php
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
PHP Code:
$popper = new popper;
$popper->add($corn->dry());
while (
$popper->cookingStatus() > $corn->popped AND $popper->cookingStatus() < $corn->burnt)
{
  
$popper->cook();
}
 
$popper->serve(); 
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 01-21-2011, 09:27 AM Re: how to make corn in php
Average Talker

Posts: 15
Name: Kannan
Trades: 0
php developers are good cook too.
We never give up. ha ha
kannan is offline
Reply With Quote
View Public Profile Visit kannan's homepage!
 
Old 01-21-2011, 10:17 AM Re: how to make corn in php
Banned

Posts: 4,083
Trades: 0
Quote:
Originally Posted by mgraphic View Post
PHP Code:
$popper = new popper;
$popper->add($corn->dry());
while (
$popper->cookingStatus() > $corn->popped AND $popper->cookingStatus() < $corn->burnt)
{
  
$popper->cook();
}
 
$popper->serve(); 
Haven't done PHP in about 5 years, so am a little rusty but correct me if I'm wrong:

PHP Code:
if ($corn == "popped") {
    
eat($corn);
    echo 
"OM NOM NOM NOM";
    echo 
"That was some amazing PHP corn!";
}
elseif (
$corn == "burnt") {
        
throw_away();

dWhite is offline
Reply With Quote
View Public Profile
 
Old 01-21-2011, 10:20 AM Re: how to make corn in php
Junior Talker

Posts: 3
Trades: 0
corn ?? please clear your question if you mean crone job try in cpanel
desklancer.com is offline
Reply With Quote
View Public Profile Visit desklancer.com's homepage!
 
Old 01-21-2011, 03:22 PM Re: how to make corn in php
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Quote:
Originally Posted by desklancer.com View Post
if you mean crone job
Nah, I'd better not
__________________

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


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Old 01-21-2011, 06:30 PM Re: how to make corn in php
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
PHP Code:
while($kernel array_pop($corn->cob)) {
    
eat($kernel);

__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to how to make corn in php
 

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 1.06037 seconds with 12 queries