Questions tagged as 'php'

1
answer

This web page has a redirection loop

Well folks, after a long search on google, I did not find anything similar to my problem, so I thought I'd report it here. Yesterday a system I'm building started displaying this problem "This web page has a redirect loop". The server I'm usi...
asked by 08.02.2016 / 12:20
1
answer

Error putting composer as global MAC

I installed the composer on my Mac with this command: curl -s https://getcomposer.org/installer | php He downloaded composer.phar and tested: php compser.phar I returned everything ok But when I tried to use the command: sudo mv comp...
asked by 08.02.2016 / 20:11
1
answer

How to remove duplicate rows from txt using php?

Well I'm creating a div that updates every x seconds and I'm displaying the currently logged in users, however my code is inserting each update the same record. Is there any way to exclude repeated lines? Here is the code I'm currently...
asked by 10.02.2016 / 00:13
1
answer

Laravel session does not work on another page

I'm working on a project with laravel, in it I created a session variable that takes a parameter from the url as follows: if(!empty(Input::get('lang'))){ $lang = Input::get('lang'); Session::put('lang', $lang); } else { $lang = "e...
asked by 05.04.2016 / 20:52
2
answers

Problem with query in php because of quotation marks

I'm having trouble with a query in php as follows, Example: INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country) VALUES ('Cardinal','Tom B. Erichsen','Skagen 21','Stavanger','4006','Norway'); This query wor...
asked by 07.04.2016 / 15:20
1
answer

Creating a CRAWLER php [closed]

I'm a layman on the subject and would like to know where I can find more information on creating a crawler to download data and images from some sites. I searched a lot but until now I did not find anything very detailed! Thank you for the an...
asked by 12.04.2016 / 15:53
1
answer

I can not put a new column inside a table

I would like you to help me put a column (painted in yellow) as shown in the attached image. Ialsoleavemycurrentcodetohelp:<?php$database="anomalias"; $server="127.0.0.1"; $connect= mysql_connect('localhost','root',''); $selecio...
asked by 12.04.2016 / 21:14
1
answer

Doubt how to query multiple tables with one word

I'm setting up a search system, where the user types in a search box any word, eg "Programmer", mysql will have to search that word in several fields in several tables, if by chance he finds that word in some place get back to me who is the prof...
asked by 27.09.2015 / 07:52
1
answer

Disable Debug Mode in Wordpress

Problem I have a WordPress template, which was working normally. At some point, without altering anything, the following error began to appear at the top of the page: Debug Mode On Array ( [page] => 0 [ad_listing] => [..] What...
asked by 04.04.2016 / 13:57
2
answers

I can not call user information [closed]

User.php <?php class User { public static $Row = []; public static function Check() { global $PDO; $usersql = $PDO->prepare("SELECT * FROM users WHERE username = :username AND password = :p...
asked by 29.09.2015 / 15:29