User blogs

marko

So you have a php script you wish to keep running forever


Create bash file - runsForever.sh

#!/bin/sh

ps aux | grep '[d]aemon.php'

if [ $? -ne 0 ]

then

    php /home/acct/public_html/daemon.php

fi



Create a cron job for every minute

* * * * * /bin/sh runsForever.sh


or run it this way on CLI: 
nohup /bin/sh runsForever.sh &


But when the system reboots, it is gone

marko Nov 20 · Tags: php, ssh, cron
Bankole Ahmed

PHP Introduction

php-2066704__340


First of all before we start the PHP we need to know what is PHP what you can use php to do.

Before you continue learning PHPis it advisably u have basic knowledge of :


web-1935737__340

  • HTML
  • CSS
  • Javascript

What is PHP?


php-151199__340           

  • First PHP is the acronym of Hypertext Processor
  • It is widely used and free to download
  • PHP scripts are executed on the server
  • PHP can be used to create desktop applications


 






What is a PHP file?


Well a PHP file has file extension of ".php"

A PHP file can contain HTML, CSS , Javascript, and PHP code

PHP code are executed on the server, and the result is returned to the browser as plain HTML


What Can PHP Do?

  • PHP can generate dynamic content
  • PHP is used to encrypt data
  • PHP can send and recieve cookies
  • PHP can create, open, read, write, delete, and close files on the server

There are other things PHP can do that is not written here, you could search what php can do Next is php installation stay tuned.

Bankole Ahmed Nov 12 · Tags: php, web, backend
marko
The best way to start is to do this: sudo port list sudo port selfupdate sudo port search --name --glob 'php*'Check amongst this out for the version that supports your php.sudo port install php**-intl
marko Nov 6 · Tags: php
dhtml
Hi everyone, I wish to speak about IOS development.


I am a native IOS developer, my journey into native IOS development was quite interesting.


I started with IOS 8 back then with XCODE. I initially started writing objective-c coding, but subsequently I learnt how to write SWIFT which is easier and more fun to write.


PROS

The development is fast and work is very smooth working with XCODE.


CONS

The pros of native development is that you cannot easily port your code to Android application unlike when writing IONIC code.

How To Start

Get a MAC laptop and download XCODE today

dhtml Oct 26 · Tags: xcode, objective c, swift
dhtml
Hi, I am Tony, a hard-core laravel developer. I want to talk a bit about laravel


WHY LARAVEL?

Laravel is easily one of the best and easiest php frameworks to learn out there. Dont even talk about codeigniter, I know it is cool but nah, it is not it.


WHAT IS REQUIRED?

All you require is basic knowledge of php/mysql and a local LAMP server.


HOW DO I GET IT?

You need to take a stroll down here https://laravel.com/docs/5.8/eloquent

dhtml Oct 26 · Tags: php, laravel, mysql
marko
Almost every-time, I meet people who want to become programmers!


You can learn programming in many ways, by reading articles, by watching videos, by reading books.


You can get thousands of videos on any programming topic on youtube. And you can also learn a lot on sites like w3schools, lynda and others.


You can even go for online courses on codecademy, udemy and the likes.


Whatever the language, just get started today!!

marko Oct 25

Blogs

marko
So you have a php script you wish to keep running ... more
marko Nov 20
Bankole Ahmed
PHP Introduc tion First of all before we start the... more
marko
The best way to start is to do this: sudo port li... more
marko Nov 6