Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 14,045
» Latest member: mtso86
» Forum threads: 69,686
» Forum posts: 432,611

Full Statistics

Latest Threads
User link - route all req...
Forum: CodeIgniter 4 Support
1 hour ago
» Replies: 3   » Views: 99
Installation Help
Forum: CodeIgniter 4 Support
1 hour ago
» Replies: 1   » Views: 23
file type crt as mime
Forum: CodeIgniter 3.x
4 hours ago
» Replies: 1   » Views: 21
preg_match not working we...
Forum: General Help
4 hours ago
» Replies: 3   » Views: 71
Search Criteria Ignored, ...
Forum: General Help
6 hours ago
» Replies: 17   » Views: 300
Forum: Addins
7 hours ago
» Replies: 11   » Views: 1,609
Plugin/Script reccomendat...
Forum: Addins
9 hours ago
» Replies: 4   » Views: 206
Invisible Recaptcha
Forum: Addins
Today, 03:02 AM
» Replies: 5   » Views: 502
Why Codeigniter is better...
Forum: Choosing CodeIgniter
Today, 12:47 AM
» Replies: 19   » Views: 5,696
[feature] Database Handle...
Forum: CodeIgniter 4 Roadmap
Yesterday, 11:34 PM
» Replies: 7   » Views: 891

  how to send otp to two mobile numbers?
Posted by: kvanaraj - 06-07-2019, 03:08 AM - Forum: General Help - Replies (2)

I want to send otp in to two mobile numbers. Is it possible to send?

My otp like '12345678';

for first mobile number: first 4 digit (1234)
second mobile number : last 4 digit (5678)

Need suggestion.

  How to create a complex routine?
Posted by: RRIOS - 06-06-2019, 03:02 PM - Forum: Choosing CodeIgniter - Replies (2)

Hello people. I've been a desktop programmer for several years. Now I'm migrating a great software that works in a public school, done by me, for web. I have this client / server software inside the school, it supplies one local bank and another on the web. This on the web I'm accessing with KODULAR. So I'm recreating the routines that are in a desktop language for PHP + CODEIGNITER. CRUD is already in the test phase. But I have many business rule routines and in the language I've been working on for 20 years I do it fast. In the image I have a routine to include students in class journals. After entering the class number in (1) the school year (2) and clicking on (3), I search the database:
example :
Select table
Set order to indexname
seek textbox1.value+textbox2.value
if found()
  scan    //loop

 and the result (names of school subjects) I enter in the list box (4) (5) (6) (7) (8), I enable (9) (10) and include the names of the students in (11). After selecting the student names in (11) these names appear in (12). The end of the routine happens when the user clicks the button (8). Loops, Inserts, Searches ... 

Selects - SQL returns the data in temporary tables named cursor.This cursor is a temporary table where I can also display data, search etc.
I have the knowledge that desktop and web programming we have to think a little different ....
I will have to do searches always using the Select where .. returning, rows or arrays .... and go working on those returns?
Is there an example of a routine with a database using PHP + CODEIGNITER commands and functions?
Thank you.

Attached Files Thumbnail(s)

  Rabbit MQ Update queue in CodeIgniter?
Posted by: Geetha - 06-06-2019, 07:23 AM - Forum: General Help - No Replies

Hi ,

      Rabbit MQ Queue How to delete from queues email when send Mail ?? Am send Mail from SMTP libary in CodeIgniter , am Fetch all my queue mail from consumer using api  get all queues in my host list , using these am send mail to each user Using SMTP library in CodeIgniter,But Don't know how we need to remove that email Or queue in Rabbit MQ Server after Mail Send Successfully.

  Multiple Schema Postgre
Posted by: Geetha - 06-06-2019, 02:31 AM - Forum: General Help - No Replies


How to set Multiple Schema Postgre in CodeIgniter 3 ?

Am tried like ,

$table_schema = examination,academics;
public function setSchema($table_schema) {
       if(!$table_schema) {
           return false;
       if($this->db->dbdriver == 'postgre') {
           $this->db->simple_query('SET search_path TO ' . $table_schema . ',public');
Not working Set first schema examination only, Please tell me how to set multiple Schema ??

  Session Issues
Posted by: zinzin112 - 06-05-2019, 03:01 AM - Forum: General Help - Replies (3)

So I'm having a strange issue with sessions on one of my websites. Before getting into too much detail, I have two websites using the same CI version (3.1.10) configured exactly the same and both are also using PHP 7.2. Sessions are working perfectly fine on one, but not on the other. Upon using the browser debug tools, I see that on the site that is not working, the session is showing the full array instead of the session ID. The extent of the differences between both websites are the HTML, CSS, Domain, and DB credentials (shared VPS, same PHP INI, same DB version). Both domains use SSL.

Here is my session configuration in config.php:

$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

In browser debug under storage (firefox) working website shows:

ci_session: "f89h3983hf89h389fh3" (ID isn't real, just wanted to show you what I see).

And website that has the issue shows:

ci_session: array 0 : "blah" 1 : "blah: 2 : "blah" (all the way up to...) 22 : "blah"

Funny part is that if I swap the DB configuration from the non-working site over to the working site and post information, it works without issue, which is what I've been doing to circumvent the issue in the interim. 

I turned on logging and there were no errors. Figured I'd just suck it up and ask for help because at this point I'm just spinning my wheels. Let me know if there is anything else I can provide that might shed some light on the issue.

  Using iframes triggers Fatal error: Maximum execution Session Library
Posted by: codeigniterloverforyears - 06-04-2019, 08:35 PM - Forum: CodeIgniter 4 Support - No Replies


I attempted to load 2 pages in left and right frames. I always got Maximum execution time exceeded error not just one times.

I tried session_write_close() but it did not work.

Any idea?

  How to pass in a struct to javascript
Posted by: richb201 - 06-04-2019, 05:19 PM - Forum: General Help - Replies (10)

I am trying to pass a few strings into a js function, which then passes it to my Extension. It is not working. How do I pass the data struct in?
Here is how I am calling it:
$data = array(
   'command' => 'snapshot_mode1',
   'message' => 'My Message'


I am not sure if "snapshot_mode1" it is getting into the js function. What is wrong with this? 

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script language="javascript">

   $(document).ready( function(data) {
       var editorExtensionId = "lamacgnkfoiknjpleghfknfigbmhdaei";
       // unload when done
           chrome.runtime.sendMessage(editorExtensionId, "snapshot_mode_unload")

       chrome.runtime.sendMessage(editorExtensionId, data.command,
      // chrome.runtime.sendMessage(editorExtensionId, "snapshot_mode3",
           function (response) {
               if (!response.success)




  i'm new, thank you!!
Posted by: shatter0000 - 06-04-2019, 02:08 AM - Forum: General Help - Replies (2)

I can't get Email library work with Yandex email. I tried several configurations still same result.
Email configurations are: 
PHP Code:

$config = Array(
    'protocol' => 'smtp',
    'smtp_crypto' => 'ssl',
    'smtp_host' => 'smtp.yandex.com',
    'smtp_port' => 465, //tried 25 Port also
    'smtp_user' => '[email protected]',
    'smtp_pass' => 'mypassword',
    'mailtype' => 'html',
    'charset' => 'utf-8'

This is the error I get:
Severity: Warning
Message: fsockopen(): unable to connect to smtp.yandex.com:25 (Connection timed out)
Filename: libraries/Email.php
Line Number: 2069

I tried to test with PHPMailer library, PHPMailer is working good, here is PHPMailer library configs:

PHP Code:
        $this->mailer = new PHPMailer(true); 

        $this->mailer->Host = 'smtp.yandex.com';
        $this->mailer->Port = 465;
        $this->mailer->SMTPAuth = true;
        $this->mailer->SMTPSecure = 'ssl';
        $this->mailer->SMTPOptions = array (
            'ssl' => array(
                'verify_peer' => false,
                'verify_peer_name' => false,
                'allow_self_signed' => true)
        $this->mailer->Username = '[email protected]';
        $this->mailer->Password = 'mypassword';
        $this->mailer->isHTML = true; 

  Automatic logout from website after some idle time
Posted by: AaronLe - 06-04-2019, 01:02 AM - Forum: General Help - Replies (1)

I have a web application that is automatic logout after 2 to 2:30 hrs of inactivity , i already created MY_Session library to not update existing session while ajax call also set session_update_time to '0' and session_expiration to zero but not working for me.

Please help me from out this issue.

  Maybe someone can save me today. Missing database tables/columns no migrations.
Posted by: AaronLe - 06-04-2019, 12:31 AM - Forum: General Help - Replies (1)

I never do this. I have OCD when it comes to solving problems - but I simply do not have the time to figure this out this time around, I'm really hoping someone may be able to help me - I'm willing to tip you for your time.

There's a code igniter built web app that was hacked - the database was dropped and of course no backups were maintained or kept. Migrations were not set up. I have an older copy of this database but it's missing many tables, I started reversing the code to build the tables by hand but it's just too tedious, I'm wondering if there is a quick way to generate all of the tables, columns & their datatypes from the source somehow?

[Image: sad.gif] 

Let me know

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.