Category Archives: PHP

PHP SOCKET PROGRAMMING WITH JAVASCRIPT CONNECTED TO PHP

Make sure you enable in your php.ini the php_sockets extension in this topic I use php version 8.1.7 THEN GOTO THIS LINK IN PHP AND FOLLOWED THEIR INSTRUCTIONS use TELNET CLIENT Connect 127.0.0.1 7777 THEN PRESS ENTER OTHERWISE YOU WILL … Continue reading

Posted in PHP | Leave a comment

SETTING UP SENDMAIL TO PHP USING GOOGLE SMTP SERVER TO YOUR LOCALHOST

Make sure you have downloaded the sendmail for windows (sorry I don’t have the link 🙂 google it. Edit the sendmail.ini BELOW IS MY CONFIGURATION JUST CHANGE YOURS! ; configuration for fake sendmail ; if this file doesn’t exist, sendmail.exe … Continue reading

Posted in PHP, SENDMAIL | Leave a comment

PHP Template Parsing

PHP TEMPLATE PARSING <?php $emailValues = array( ‘username’ => ‘My username value here’, ‘password’ => ‘My password value here’ ); $emailHtml = new EmailParser($emailValues); echo $emailHtml->output(); class EmailParser { protected $_openingTag = ‘{{‘; protected $_closingTag = ‘}}’; protected $_emailValues; protected … Continue reading

Posted in PHP | Leave a comment

PHP PAGINATION

Fill-up these codes based on what you need: visit this link.. <html> <head> <title>Pagination</title> <!– Bootstrap CDN –> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css”&gt; <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js”></script&gt; <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js”></script&gt; </head> <body> <?php if (isset($_GET[‘pageno’])) { $pageno = $_GET[‘pageno’]; } else { $pageno = 1; … Continue reading

Posted in PHP | Tagged | Leave a comment

HOW TO USE COMPOSER IN PHP?

DOWNLOAD IN THIS SITE THE PHP COMPOSER . SELECT YOUR VERSION THAT YOU WANT. Then you will get the “composer.phar” Then save it to your c:\phpcomposer or any directory or subdirectory that you want. Then create a “composer.bat” file and … Continue reading

Posted in APACHE, PHP, WEB DEVELOPING | Leave a comment