Category "codeigniter"

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

How active a function with time interval PHP | Codeigniter 3

There's a way to call a function every minute? i have an API call from my codeigniter controller with cURL, can php call that function every min?

Best Practice to Print Barcode In dompdf

I want to create a label sticker with barcode in PDF. Please give me the suggestion to create this things. Now , I use CI3 and dompdf. I have tried googling a

Creating live search with AJAX and CodeIgniter

I'm trying to create a live search feature in CI (which I've never done before). I'm pretty new to web development and am still learning things. I found this li

GuzzleHttp Hangs When Using Localhost

Here is a simple code snipplet but this just hangs and unresponsive. $httpClient = new GuzzleHttp\Client(); // version 6.x $headers = ['X-API-KEY' =&g

CodeIgniter extend CI_URI undefined method

So I've been in the process of updating someones old CI 1 to CI 3 code. In process. In particular, the URI class extension is not working. I've read the CI doc

How to display table header in every page using FPDF library?

just need your help with my code. My question is how can I get the table header from the previous page and access it on the remaining pages? If I have a large d

CodeIgniter 3 is generating a session file on each request, why?

I use CodeIgniter (v3.1.11) for my webapp and files as session_driver. The session library is autoloaded and configured like this $config['sess_driver']