3

<?php
date_default_timezone_set('Asia/Kolkata');
$current_time = date('Y-m-d H:i:s');
$alarm = new DateTime('2016-06-13 04:05:00');
if( $current_time == $alarm)
{
wake_up();
eat('suhur');
pray('fajr');
browse('devRant');
browse('Instagram');
sleep(18000);
}

shower();
goto('friends office');
browse('YouTube');
work(14400);
pray('zuhr');
pray('asr');
goto('gym');
exercise(5400);
goto('home');
pray('maghrib');
eat('iftaar/dineer');
pray('isha');
goto('store');
work(7200);
goto('home');
sleep(7200);

?>

Comments
  • 0
    I wonder if you used a framework?
  • 1
    @Suiyans in one project, I used CodeIgniter
  • 0
    @faizanvahevaria , ah.. ok , have heard about laravel?
  • 1
    @Suiyans yes,
    read a lot about it.
    kind of one sided love.
    when i tried to use that for a friend's web app(simple invoicing system) I found out that it doesn't work with my shared hosting plan.

    so had to leave it.
    did that project with CodeIgniter

    Now I am learning how to use vagrant and it is taking me too long because internet speed here is too slow and I have to go to my friend's office to use the broadband connection of 1Mbps

    I am thinking about getting my hands dirty with Phalcon PHP, as it is the fastest framework available.

    can you suggest me whether to learn Phalcon or Laravel.
  • 1
    @Suiyans the main purpose of learning Phalcon will be to create a video course and sell it on Udemy.

    right now I am learning Jekyll and working on creating a video course with title 'Blogging with Jekyll and GitHub Pages'
  • 0
    @faizanvahevaria , sorry for the late reply. I read about phalcon just this dawn. because its my first time to heard and it come from you. And what i found out is that Phalcon is a micro framework and its built with C which makes it faster that other frameworks. One drawback is that it is not plug and play. Unlike Laravel , its consider as full MVC framework. Where you can add or can reuse many packages. Even though laravel is slow compare to Fhalcon, it be optimize. I think, maybe your web that is built with laravel does'nt run on your shared hosting because of php version. Laravel 5.1+ needs higher version of php to run. I've been using Laravel 5.02 which runs almost of the hosting right now which offers Php version of 5.4 or 5.3 .
  • 0
    @faizanvahevaria , ah .. thats good. I read many comments from reddit and many of them are into Laravel. If your still doubt about it. Theres so much thread about that in the internet.
  • 0
    The pray() function has been deprecated, and shouldn't be used.
  • 0
    @vexioz what???
    what is the replacement?
  • 0
    @faizanvahevaria the code will work fine without it 😉
  • 0
    @vexioz not in my case...😇
Add Comment