Questions tagged as 'php'

1
answer

Feedback equal #region Visual Studio

Is there a comment like #region of Visual Studio in PHP with NetBeans?     
asked by 12.08.2015 / 17:52
1
answer

Using ajax serialize in Laravel

What I need When the user clicks the send button, ajax will call a method of a class to check if the typed text already exists and in a table. It returns the result, if false it leaves the form to be sent and the field is registered in the bd...
asked by 27.02.2015 / 14:03
1
answer

Secure REST Authentication in PHP

I am wondering how to work with system authentication using restful. In my case there will be user / password and permissions / hierarchies for the user, and until then as the most interesting solution found in searches was the work with token,...
asked by 20.03.2015 / 13:00
1
answer

Querying the status of PayPal transactions by URL

Is there any way to return transaction information via transaction id in PayPal? Example ( API PagSeguro ): link The most I could find was: paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=7DJ47958EX567045P This is exactly what...
asked by 23.02.2015 / 01:57
2
answers

Recover image and return to function

I need to pass an image file to a certain function, this function normally receives the image of an upload like this: $filter = new ImageFilter; $score = $filter->GetScore($_FILES['photoimg']['tmp_name']); But I need to pass an image alr...
asked by 04.03.2015 / 19:14
1
answer

Problem with dynamic UPDATE in PDO

I'm creating a CRUD dynamic in pdo , where I get several parameters inside an array, and inside this array there can be several other arrays. The problem is when I'm mounting SQL. I asked a similar question here , but the solution was not...
asked by 14.12.2015 / 18:58
2
answers

PHP search system without MySQL

I have a website with several HTML files, and I want to do a search engine in PHP, search for words in those HTML files, and show me the page or pages where they find themselves without using MySQL. How can I do this?     
asked by 30.03.2015 / 22:47
1
answer

Traits do not accept overrides of properties?

According to the PHP Manual excerpt    A Trait is intended to reduce some simple inheritance limitations by allowing a developer to freely reuse sets of methods ... See an example: trait Stack { protected $items = []; public fu...
asked by 24.02.2015 / 16:35
1
answer

How to insert external CSS in Codeigniter 3

I would like to know how to insert an external css file into a Codeigniter 3 view. I configured the $ autoload ['helper'] = array ('url'); I tried calling in the following ways: <link rel="stylesheet" type="text/css" href="<?=site_url(...
asked by 05.12.2015 / 22:49
1
answer

How to do ascending and descending listing in records with PHP

My table looks like this ThroughPHP,IamlistingMYSQLdatabaserecordswithinaWHILELOOP.Iwouldliketoknowhowtodothissothat,byclickingonID,or,DATA,thedatawillbedisplayedinascendingordescendingorder.SCRIPTPHP:<?php$strSQL="SELECT * FROM TABELA ORDER...
asked by 18.12.2015 / 19:26