Questions tagged as 'php'

1
answer

assign a Twig global variable

Hi, I'm learning to use twig, and I can not assign a variable to use in all the templates, in the documentation it says $twig = new Twig_Environment($loader); $twig->addGlobal('text', new Text()); and I use it like that $twig = new Twi...
asked by 07.03.2017 / 06:15
4
answers

Do not insert form in the Database

Good afternoon. I am doing an inventory system with PHP AND SQL SERVER 2008, when making the connection it is successful but when inserting data and consulting them in the database I verify and it does not insert anything. $serverName = ("...
asked by 07.03.2017 / 18:14
0
answers

How can heavy files be uploaded in javascript and PHP? [closed]

My question (as it appears in the title) How can heavy files be uploaded in javascript and PHP? What I want is, when a file exceeds 10MB will be partitions and upload to the server to PHP. To upload heavy files more than anything ...     
asked by 04.03.2017 / 04:45
1
answer

You can call a WSDL locally using PHP

I am learning how to use Soapclient in PHP and I get an error when trying to consume a service:    link This returns the following error to me    Parsing WSDL BillServicePortBinding already defined According to what I was inves...
asked by 02.03.2017 / 23:48
1
answer

Next and previous buttons in form / php query

I have connected my database to my html page, I made it in the form of a query using <input> text labels, which only show a data of each column in the table (they are 5), they are around 1810 records and I need the buttons to show m...
asked by 23.03.2017 / 17:15
1
answer

Help with Mongodb + PHP + hightcharts

Dear, the following code does not work for me, I do not know what is the part I am doing wrong, this is the code: I wanted to see a line chart of the api highcharts <?php $dbname = 'db'; $m = new MongoClient(); $db = $m->$dbname; $c...
asked by 22.02.2017 / 20:03
0
answers

avoid downloading Documents

I am setting up a page for the company where you work which has a compilation of the files that we send to our clients with the final product, the problem comes when the client when logging in has access to both reading and downloading. these do...
asked by 22.02.2017 / 19:38
1
answer

How to upload several images to the server and the database?

I am working on a project but I have a problem, what I want to do is register the images uploaded by the user in an individual folder; the code is as follows. ' <form action="" method="post" enctype="multipart/form-data">...
asked by 23.02.2017 / 00:33
0
answers

Driver fails to call PHP model

How about, I'm a bit green in this, I was creating an api with php following the mvc model, I had managed to connect to the base using PDO, I did my controller std, my users ctrl, user model and my index, it works well with only one (users), but...
asked by 16.05.2017 / 01:29
2
answers

Error changing the name of the email column to email in login laravel

I want to change the name of the column "email" to "mail" in the default login of laravel, but it is giving me problems, I spent some time looking at this and within this function, which is what is called when I do the login. (This is located in...
asked by 16.05.2017 / 16:25