Router.php - preg_replace
Would anyone be able to explain why or why not the preg_replace function is potentially vulnerable inside of Router.php? Specifically on line 413.
View ArticleWhat coding challenges or projects have you given up on?
Intrigued by a post by ChicagoPhil: (Yesterday, 11:48 PM)ChicagoPhil Wrote: I do find it funny that people panic about code still because I was there once myself. I wanted to bring a bit of levity to...
View ArticleCodeigniter3 EC2 remove index.php
I have an EC2 instance running Ubuntu 16.04. I have installed a LAMP stack and am using Codeigniter. the removal of index.php is not working as it should. I can reach the first page but if I click on...
View ArticleExplode for selected
Hi all, I have trouble on this code, In DB "planCurrencies" = "1,2,3,4" PHP Code: <select class="select2" name="currency[]" style="width: 100%" multiple="multiple" data-placeholder="Choose">...
View ArticleBefore the insert a modal
Hello everybody, I would like to call a modal before executing an insert, where I can check something else and if all fits. Should this be entered in the database. How does it look like in Model or /...
View ArticleIdentify PHP Process by ID ? (issue with exec time out)
Hello to the great CI community ! Recently i had issues with some execution time out while working on image resizing/cropping function. The PHP FPM logs : Code: [03-Nov-2017 12:25:25] WARNING: [pool...
View ArticleAvoid conflict between column names ?
Hello to the great CI community ! Before i used to write my columns names as follow : [dbprefix]_[tablename]_[columnname] for example abc_recipes_name It avoided any conflict with other tables in...
View ArticleA link in a generated table
Hi guys, How do I make a link in a generated table? I want the first row called 'Campagne' and the fourth row called 'Terugbellers' to be a link. But how? Thanks in advance. My code: PHP Code: public...
View Articlecontrolling and specification of loop items
i am using codeigniter to replace files in directory and update location in database, i have multiple files so when i update them all it works good updates and replaces all of them, but when i update...
View ArticleHelp with pagination
WARNING: It's not the usual paging post, but help finding the alternative to the usual one! Hi guys, I had already found a working solution for paging, but it is not very beautiful at aesthetic level...
View Articlefew libraries
hello everybody as all of you know, one of the most important reasons that we use frameworks is simple and fast web app development and the framework must have the all needed classes I think the only...
View ArticleAn user can view info of another users
Hi! I' ve a seriuos problem: my users can see info of another users. How? I don't know, but I suspect that session variables in my server are the problem. How do I test it? Situation is next: User A...
View ArticleHow to watch iTunes movies on Windows player
To be honest, I'm a iTunes fan who have purchased many iTunes movies and TV shows. But now I found it is impossible for me to play these videos on Windows player. All iTunes videos are in M4V which DRM...
View ArticleGenerate limit UUID code
Hello guys I need generate limit UUID example generate code about 10 length in mysql And it is very important that code be unique after limit code Thanks
View ArticleCall to a member function real_escape_string() on boolean
Hello I recently started using codeigniter 3.1.6 and I am facing a strange error whenever I use where function of query builder. Details : When I hit the query string like below select * from user...
View ArticleLabel in Form Validation
How do I put the name of the label in validation? Not the field name. in codeigniter 3 I did this PHP Code: $this->form_validation->set_rules('first_name','First Name','required'); how do i do...
View ArticleUsing Whoops Error Handler
Hi, I've manage to installed Whoops in CI 3 using composer, with addition to index.php like so. Code: switch (ENVIRONMENT) { case 'development': error_reporting(-1);...
View ArticleIs that right way to inject data from models to another model?
Hi, Im new CI user and writing php is my hobby from some years. I want to make football manager to play with my friends. So the most important part of my code is my Match Engine, where I calculate data...
View ArticleUnable to locate the specified class: Session.php
Hi! I've been struggling trying to figure out what's going on to my code. I updated CI version of a application from 2x to the latest one available. This app uses tank_auth and grocery_crud. I'm aware...
View ArticleHow to interact with another database and send the data also to another...
Greetings, please show what code to write, so that after the transfer of money, he sent the data also to another database. Projects are located on the same server, they have different databases, how to...
View Article