Category "codeigniter"

Upload media post in instagram using web api

I am using this Instagram media post third party library. When I am logged in in my Instagram account every time I am getting a checkpoint (challenge) required

How to use $this->session->set_userdata in codeigniter

I have some promblem with CI when i use $this->session->set_userdata Controller public function check_login() { $email = $this->input->pos

CodeIgniter force_download is not working

CodeIgniter force_download is not working My Code: if(!empty($articlefile)){ if(file_exists('./media/journals/xml/'.$articlefile)){ $this->load->hel

Codeigniter changes with `count_all_results`

So... it appears as if overnight, SOME-thing has changed with either the Codeigniter 4 framework or PHP in general, as my website is now down - and it seems to

Database error on website

I got this error trying to access our SCADA website: A Database Error Occurred Unable to connect to your database server using the provided settings. Filena

Get data from accuweather api url

I am trying to get json data from the accuweather API for a locationKey in PHP. The output is as: file_get_contents(https://dataservice.accuweather.com/forecast

Populate dynamic dropdown, Codeigniter

I'm trying to make a dynamic dropdown with Codeigniter but I'm having trouble getting the values on the next dropdown. When I select and option on the first dro

how to check version of codeigniter framework?

I recently setup a old Codeigniter framework on my xampp.But i don't know the version of this framework. I use the code <?php echo CI_VERSION; ?> bu

CI->session->userdata['email'] Undefined Index

### I'm running a PHP script on Web Hosting and continue to receive errors like: ### A PHP Error was encountered Severity: Notice Message: Undefined in

How to pass security cloudflare server with php curl

I used curl for getting data from biorxiv site. This is not an illegal job. $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => '

How to embed a pdf file in an excel worksheet using phpspreadsheet?

How to embed a pdf file in an excel worksheet using phpspreadsheet? $file= 'kl.pdf'; $objDrawing = new PHPExcel_Worksheet_Drawing();

Codeigniter send email OpenSSL error

I am having trouble sending email. I don't know what to do. I already un-commented the extension=php_openssl.dll in php.ini file, but I still receive this error

Using a single form for insert and update function, Codeigniter

I'm trying to use a single form for inserting a new data and updating the value of an existing data.I have no trouble displaying the form, fetching the data and

localhost is currently unable to handle this request HTTP ERROR 500 in Codeigniter3

I use MAMP for MAC and I had a project on my local. It worked well. I decided to update this project and downloaded from my web server after what localhost show

Font family issue in dompdf

I'm using DOMPDF v0.8.0 I'm having a problem with this library. I'm using this dompdf library with codeigniter2. I need to implement digital signature and co

How to show a popup modal in codeIgniter?

I have written a javascript click function to a class to display a popup when the relevant class be clicked. When i just put an alert it gives me the correct ou

Lost connection to MySQL server during query In codeigniter query ,Live site

I'm getting the following error on my live site. "Error Number: 2013 Lost connection to MySQL server during query" It was working fine before a day but now the

CodeIgniter Fatal error: Cannot redeclare class

I'm getting the error: Fatal error: Cannot redeclare class News in application\models\Entities\News.php The two classes are as follow: application/models/News

Captcha Helper Codeigniter Error - imagettftext(): Could not find/open font

please help me solve this problem. I want to use the captcha in my login page using captcha helper in CodeIgniter, but got some error like this : A PHP Error w

CodeIgniter 4 \Config\Service::my-instance-method returns NULL on true $getShared

Config\Services is a class made to reduce huge code development on singleton. Unfortunately I have committed an error. When repositoryFacade is got from getShar