This is my php code for sending email verification link to user account <?php // php mailer code starts $mail = new PHPMailer(true); $mail->IsSMTP(); // telling the class to use SMTP $mail->SMTPDebug = 0; $mail->SMTPAuth = true; $mail->SMTPSecure = "ssl"; $mail->Host = "smtp.domain.in"; $mail->Port = 25; $mail->Username = ‘[email protected]’; $mail->Password = ‘password’; $mail->SetFrom(‘[email protected]’, ‘Admin’); $mail->AddAddress($email); ..

Read more

I want to disable when I set a custom number to cater like for example I want to cater this day only 10 people This is for the date <script> $(document).ready(function(){ $("#calendar").datepicker({ beforeShowDay: $.datepicker.noWeekends, minDate:-0, maxDate:+20 }); }); </script> <!– Pop up Covid Prevention Function –> <script type="text/javascript"> $(window).on(‘load’, function() { $(‘#myModal’).modal(‘show’); }); </script> This ..

Read more

As you can see in the GIF when I click the submenu it no longer collapses. What I want is when I click the submenu it will collapse and will not automatically close when I click the page <li class=”nav-item”> <a href=”#” class=”nav-link <?= $page == ‘patients.php’ || $page == ‘medical_history.php’? ‘active’:”?>”> <i class=”nav-icon fa ..

Read more

I have the following code that I’m using to get namespaces in files: <?php $tokens = token_get_all($content); $namespace = ""; for ($i = 0; isset($tokens[$i]); $i++) { if (!isset($tokens[$i][0])) { continue; } $token = $tokens[$i][0]; if (T_NAMESPACE === $token) { $i += 2; // Skip namespace keyword and whitespace. while (isset($tokens[$i]) && is_array($tokens[$i])) { $namespace ..

Read more

IBase.php namespace interfaces; interface IBase {} FileNavigate.php class FileNavigate { private IBase $f3; // <= line: 5 public function __construct(IBase $f3, $file = ”) { $this->f3 = $f3; } } FileNavigateTest.php declare(strict_types=1); use PHPUnitFrameworkTestCase; class FileNavigateTest extends TestCase { public function testInterface() { $mock = $this->createMock(interfacesIBase::class); $f3_get_FileNavigate = new FileNavigate($mock); // <= line: 10 $this->assertTrue(true); ..

Read more

I am trying to install the IBM_DB2 connector for php. However, I have trouble compiling this. but sees: [email protected]:~# pecl install ibm_db2 WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update downloading ibm_db2-2.1.5.tgz … Starting to download ibm_db2-2.1.5.tgz (196,974 bytes) …………………………………..done: 196,974 bytes 9 source files, building running: phpize Configuring for: ..

Read more