Skip to content

Tag: php

Sending a mail using PHPMailer with Gmail Account

I am trying to send an email from my website using the PHPMailer library. All I did so for was: I downloaded PHPMailer 5.2-stable from this link. I uploaded the following files on my hosting: class.phpmailer.php, class.smtp.php and PHPMailerAutoload.php Then I created a file name contact.php and wrote the fol…

how to add a specific letter in a specific word in php

Hello everyone I am new on PHP, in my case I want to add a specific letter in a specific word in the sentence. For example : I have a function that returns this string in html => “Order #00000001000” , I want to add a letter “P” after the “#” like this => “Order…

check in blade if exists variable in @include

I´m developping a system with laravel 7.4 and i need check if one variable that i´m sending from my controller exists in my blade. If exists, include it: I have this code in my controller: this return profile image or system image but it´s possible that this images don´t exists and i need check before, becaus…

Images not loading in CodeIgniter, image path correct error 403

I have an application where I save the image path in the database. I have a method Uploads //base url is $config[‘base_url’] = ‘https://localhost/salon’; $path is taken from the image This is how i set the background image. The error I get is 403 forbidden access when I try to open the…

Insert an array using seeders with laravel

Hi I want to insert this array using seeders into Laravel framework: I read that I can do it this way: But I want to insert these countries in the column name of my table: I don’t want to do it manually, I want to insert the array of above completely. Thank you so much. Answer Try this solution