Questions tagged as 'php'

2
answers

Lack of security page register

Well, I'm having a question about security. I made a form, to register users, until then ok. But for example, this form has an action, which is for the same page in the case. If a person creates a page in PHP for example, with a form simil...
asked by 08.11.2017 / 03:08
1
answer

Alternative for NuSoap Class

I'm using the NuSoap class to do a webservice. However, when we have the php version for 7.0 or higher, I have problems with codes that are deprecated for this version. I would like to know if there is an alternative to the Nusoap class th...
asked by 19.11.2018 / 12:30
1
answer

How to send JSON as a post response

I have page A with the following code to send a POST to page B: function curlPost($url, $dados) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($dados));...
asked by 17.11.2018 / 16:35
1
answer

Removing duplicate values from an array

I am able to do the listing correctly, but some values are duplicated and I wanted to remove them and I can not at all ... if anyone can help me, I am very grateful. // Creating Variable $sector_list = $s->getSector(); // Listing &l...
asked by 15.11.2018 / 17:07
1
answer

Centralization of navbar

I'm trying to align this search bar in the middle, but the button is not beside it. If you can help me, thank you in advance. <divclass="row"> <div id="custom-search-input"> <form action="#"...
asked by 16.11.2018 / 19:16
1
answer

add more than one name in the form

I have the following problem, I have an image map , where when clicking the coordinates the result appears within a <input type="text" /> , however I can only put the name of one of the coordinates clicked. p> I would like to know...
asked by 07.02.2018 / 22:05
1
answer

.htaccess and rewriting rules on PHP server

I'm developing a php microframwork, and I'm using php's built-in server (php-127.0.0.1.18000 -t public) with root directory in public / folder. I do not know if .htaccess works or is running on this server. When accessing a non-root ("/")...
asked by 18.11.2018 / 00:50
1
answer

IPv4 only with PHP with ipv4 / ipv6 link

I've always used $_SERVER['REMOTE_ADDR'] to get the IP user / visitor on some systems. But I started to use a fixed IP at work, which is IPV4 , but when I go to see the registry I have accessed IPV6 . But on sites like forums an...
asked by 05.02.2018 / 18:36
1
answer

Regex expression to find more than one occurrence in the same string

I'm developing a template engine in PHP for learning issues as I'm new to programming, and would like a way to find more than one #include () in my view, because the one I currently have does not find all the first.     
asked by 08.02.2018 / 11:52
1
answer

PHP Error - Try_Catch [closed]

   Parse error: syntax error, unexpected 'catch' (T_CATCH), expecting end of file in C: \ xampp \ htdocs \ validar_cad_user \ face.php on line 65 My Project is there if anyone can help, Thanks! try { // Returns a 'Face...
asked by 06.02.2018 / 12:56