Questions tagged as 'php'

1
answer

How to customize a 404 error page in CodeIgniter 2.1.4 using base_url ()?

I would like to use a% custom%, but accessing an image using the página de erro 404 function does not work. How to solve?     
asked by 18.04.2014 / 08:23
3
answers

MVC class diagram

I'm developing a web system in php, where all controllers extend their respective models, for example: I have a userController and a userModel, my question is as follows, in the precise class diagram represent the controller's methods. p> Anot...
asked by 02.04.2017 / 00:50
2
answers

What is the use of declaring variables using braces?

In PHP, variables usually have a pattern to follow in their declaration. According to the manual:    Variables in PHP are represented by a dollar sign ($) followed by   variable name. The variable names in PHP distinguish between   upperca...
asked by 31.07.2015 / 20:48
2
answers

Date of database returning 31/12/1969

I have in my script a call to date and to start for me brings me a date of 12/31/1969, not the date that is in the database. data. This is my Code: @$pag = "$_GET[pag]"; if($pag >= '1'){ $pag = $pag; }else{...
asked by 30.09.2015 / 20:03
1
answer

How to do to bring table with data when returning from an insert

I have edited the post question because I consider it to be the most logical solution to the question. I have a page with 3 tabs and in one of these I upload files to my hosting and send the necessary information to the database, I am adding an...
asked by 30.07.2015 / 00:24
3
answers

How to manipulate large volumes of data in a database?

I have a process that I need to implement on my system which, at a certain point, will check a relatively large number of data and, if it does not find it, should save to the MySQL database. I'm not finding a way to do this without overloading...
asked by 30.05.2015 / 22:52
1
answer

Use of memory PHP images

I have an upload of images and to handle the images I have already used ( ImageWorkShop and # Tested images: Imagem 01 (1920x1080 1,27MB JPG); Imagem 02 (4134x2362 132KB PNG); I have the following test code to upload (library Imag...
asked by 08.05.2015 / 20:22
1
answer

Operator "and" for assignment in classes

Looking at some repositories of GitHub I found this repository for generation of tickets with php and within the class Cedente caught my attention the use of the word and within the function construct in this file . Th...
asked by 05.05.2017 / 19:02
1
answer

Reserved word include or "use" in PHP?

I saw somewhere that the reserved word include in PHP should be used only in procedural programming, and that in object-oriented programming you should opt for the reserved word use . I did not find anything that would lead me to...
asked by 23.09.2017 / 17:34
4
answers

How to save line breaks from a textarea to the database? [duplicate]

I have textarea and would like to save the line breaks made by the user in the database. For example , the user writes the following: "Lorem Ipsum. Is simply. Dummy text. Of the printing. And typesetting." But in the database, i...
asked by 06.01.2017 / 20:08