php

PHP is a widely used, high-level, dynamic, object-oriented and interpreted scripting language primarily designed for server-side web development.

67 votes
20 answers
2.1K views
Create a folder if it doesn't already exist

I've run into a few cases with WordPress installs with Bluehost where I've encountered errors with m

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
58 votes
7 answers
1.7K views
CodeIgniter Active Record not equal

In CodeIgniter using active record, how do I perform a not equal to in $this->db->where(). For instance

avatar
Gigi
0 1 0 9
asked 07 September, 2021
62 votes
7 answers
2.3K views
get_instance() in Codeigniter: Why assign it to a variable?

In Codeigniter, get_instance() is a globally available function that returns the Controller super-object which

avatar
Winford
0 1 0 9
asked 07 September, 2021
60 votes
3 answers
459 views
Disable PHPStorm new file branding

When I create a new file using PhpStorm it creates it's own comment at the top, this would be fine howeve

avatar
Juliane
0 1 0 9
asked 07 September, 2021
59 votes
2 answers
1.9K views
How do I use PHPUnit with CodeIgniter?

I have read and read articles on PHPUnit, SimpleTest, and other Unit Testing frameworks. They all sound so gre

avatar
Venice
0 1 0 9
asked 07 September, 2021
61 votes
9 answers
787 views
Directory index forbidden by Options directive

I'm using the dompdf plugin for codeigniter: http://codeigniter.com/wiki/PDF_generation_using_dompdf/ to

avatar
Arline
0 1 0 9
asked 07 September, 2021
53 votes
5 answers
2.3K views
What is a slug?

I'm currently working through CodeIgniters tutorial in its fantastic documentation. However there is a te

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
52 votes
5 answers
1.2K views
Redirect with CodeIgniter

Can anyone tell me why my redirect helper does not work the way I'd expect it to? I'm trying to redi

avatar
Emilia
0 1 0 9
asked 07 September, 2021
55 votes
5 answers
1.1K views
How to add an ORDER BY clause using CodeIgniter's Active Record methods?

I have a very small script to get all records from a database table, the code is below. $query = $this->db-

avatar
Rudy
0 1 0 9
asked 07 September, 2021
66 votes
11 answers
974 views
how to get the base url in javascript

I am building a website with CodeIgniter, I have various resources that I load with the base_url helper functi

avatar
Hildegard
0 1 0 9
asked 07 September, 2021
65 votes
1 answers
2.7K views
Advantages / Disadvantages of pconnect option in CodeIgniter

One of the parameters in the CodeIgniter database config is the following ['pconnect'] TRUE/FALSE

avatar
Janella
0 1 0 9
asked 07 September, 2021
56 votes
3 answers
2.8K views
PhpStorm Field accessed via magic method

I have ignited datatables Library in my CodeIgniter library folder. Some Code from Library class Datatables {

avatar
Rudy
0 1 0 9
asked 07 September, 2021
61 votes
11 answers
2.8K views
base_url() function not working in codeigniter

In my web application using codeigniter. I am trying to use base_url() function but it shows empty results. I

avatar
Chaya
0 1 0 9
asked 07 September, 2021
63 votes
6 answers
1K views
Best method of including views within views in CodeIgniter

I'm starting a large codeigniter project and would like to try to create some reusable 'mini' v

avatar
Solomon
0 1 0 9
asked 07 September, 2021
64 votes
14 answers
1.8K views
Header and footer in CodeIgniter

I really don't enjoy writing in every controller: $this->load->view('templates/header&apo

avatar
Gigi
0 1 0 9
asked 07 September, 2021
57 votes
12 answers
2.3K views
CodeIgniter - how to catch DB errors?

Is there a way to make CI throw an exception when it encounters a DB error instead of displaying a message lik

avatar
User demo
0 1 0 9
asked 07 September, 2021
52 votes
10 answers
1.8K views
How to select rows where column value IS NOT NULL using CodeIgniter's ActiveRecord?

I'm using CodeIgniter's Active Record class to query the MySQL database. I need to select the rows i

avatar
Arline
0 1 0 9
asked 07 September, 2021
61 votes
11 answers
587 views
Inserting NOW() into Database with CodeIgniter's Active Record

I want to insert current time in database using mySQL function NOW() in Codeigniter's active record. The

avatar
Corrin
0 1 0 9
asked 07 September, 2021
62 votes
9 answers
2.8K views
Sending email with gmail smtp with codeigniter email library

<?php class Email extends Controller { function Email() { parent::Controller();

avatar
Solomon
0 1 0 9
asked 07 September, 2021
60 votes
6 answers
1.6K views
Handling PUT/DELETE arguments in PHP

I am working on my REST client library for CodeIgniter and I am struggling to work out how to send PUT and DEL

avatar
Benton
0 1 0 9
asked 07 September, 2021