User blogs

Tag search results for: "php"
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 '19 · 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 '19 · 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 '19 · Tags: php
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 '19 · Tags: php, laravel, mysql