Questions tagged as 'php'

0
answers

PHP: Facebook lets me post to my feed but other users can not get on theirs

I am creating a system of postings on facebook. I created an application and I put it as public. Through the application I ask the following permissions: publish_actions manage_pages publish_pages pages_show_list public_profile ema...
asked by 03.04.2017 / 00:06
0
answers

How do I separate my arrays by index?

The text boxes corresponding to the number entered by the user are generated, each text box is accompanied by several checkboxes to choose the type of text. But it goes like this: Array ( [0] => 0 ) object(ElementosDTO)#7 (2) { ["t...
asked by 05.09.2017 / 19:34
2
answers

Check if userid is logged in (session - codeigniter)

I'm building a login system and I'm doing some validation on it. All functional except, the verification if user is already logged in. I'm using the method below, but it's not 100% functional. What I want to do is check if the user trying to...
asked by 06.09.2017 / 04:01
0
answers

Doubt in PHP connection to database [duplicate]

I have a question in a PHP code. My code is generating several alerts: Anditseemsthatthesameisnotmakingconnectiontothedatabase,becauseI'mhavingitprintsomedataanditdoesnotprintanythingonthescreen.I'llputhereasnippetofcode:<?php$conect...
asked by 11.07.2017 / 21:35
0
answers

ArrayIterator Flags

I do not understand what flags actually do STD_PROP_LIST and ARRAY_AS_PROPS when configured I looked for some examples, but the explanation was a bit confusing for me, I'm a beginner in php     
asked by 19.06.2017 / 17:41
2
answers

Problems with permissions when creating folders on Linux server using mkdir

I have a PHP system using Laravel 4.2 where I use the mkdir command to create a folder in the storage / pdf directory, the command works in the Windows Dev environment, but when uploading to the UOL server the folders are not created properly, I...
asked by 11.07.2017 / 16:35
3
answers

Perform insertion into a foreign key table

include_once 'acesso_bd/conexao_bd.php'; class PropriedadeDAO { function inserirPropriedadeBD($propriedade) { $nome = $propriedade->getNome(); $endereco = $propriedade->getEndereco(); $telefone = $proprieda...
asked by 22.06.2017 / 19:49
1
answer

Validate form and insert into Database with PHP [closed]

Hello I'm still a beginner in PHP and I staggered by validating the contact form on my site. It completes client-side validation using Javascript, but the server side is still not completing the task, so ask for your help. I have the HT...
asked by 28.12.2016 / 02:22
0
answers

What reason for PHP's CURL to be so slow? comparing to wget / browse? [closed]

I've been working with CURL of PHP 5.6 , it's extremely slow compared to other features like wget/browse/file_get_contents . In a% simple%, it has a delay of 4-10 seconds compared to other resources, I have already researched...
asked by 20.01.2017 / 21:37
2
answers

get mysql data using javascript and ajax

I'm developing a web app (if interested, follow link) and it was going alright , until I get to the part below: TheNCMfieldisainputtagwithadisabledattribute.TheinformationinsideitcomesfromanautocompletethatIused,usingAJAX,adatabasesearch.ph...
asked by 14.01.2017 / 23:02