Questions tagged as 'php'

2
answers

get captcha with curl

I found this code on the internet, and I want to get your captcha from this page link your captcha is generated every time you refresh the page, is it possible to obtain it? <?php $cookie="cookie.txt"; function open($url)...
asked by 17.10.2016 / 19:30
2
answers

Can I use the same driver to register two types of people?

Well I have a form in php I have a select in which I choose if the type of client to register is natural or legal, by selecting which of the two shows the corresponding form. The problem is that to register each client type I am using two contro...
asked by 08.12.2016 / 03:32
1
answer

Load MySQLl data in Modal Bootstrap

Hello, how could I load all the data of the person in a modal window when clicking on the button that is shown in the image called Register? I need to click on it to load all the data, which is in a database in MySQL. I know th...
asked by 22.02.2017 / 15:08
3
answers

Sum of inputs Checkbox and Text Real time

I need to add the text type input with the checkbox type input, at this moment when I click on the checkbox it adds up and shows the total, but I need to add the text type input called service price. This is a screenshot of my form:...
asked by 21.02.2017 / 18:09
1
answer

Error Undefined offset in PHP

I need to separate the elements of an array according to their type and print them in a list. <?php $d[0] = 13; $d[1] = 133; $d[2] = 45; $d[3] = "Hice 89 lagartijas"; $d[4] = 778; $d[5] = 67; $d[6] = "Que onda"; $d[7] = 456; $d[8] = 34; $d...
asked by 19.02.2017 / 08:04
4
answers

Show result of a PHP file in HTML

I'm working with an API and I have the following code in php <?php $link = file_get_contents('http://api.steampowered.com/IEconItems_440/GetPlayerItems/v0001/?key=APIKEY&SteamID=STEAMID64&format=json'); $myarray = json_decode($link...
asked by 05.06.2016 / 23:28
1
answer

How to search for a word in a text

I have a string that comes from a database which I read with fetch_array() . Example: $row=$query->fetch_array(); What I would like is to understand words. For example, if in that string there is the word "CARRO", put that word in...
asked by 25.12.2018 / 23:00
3
answers

Count elements of an XML file that contain a text

I would like to use PHP to show only the elements of an XML with the value <disponible>si</disponible> I have an .xml file with the following format: <?xml version="1.0" encoding="UTF-8"?> <libros> <OctavioP...
asked by 31.03.2017 / 05:19
3
answers

Remove string before a point in PHP

Is there any way to remove a string before a point in PHP? I have the following: 1. paqueteNombre.appNombre 2. paqueteNombre2.appNombre2 and I would like to have only the name of the app. I still can not find documentation on how to carr...
asked by 10.04.2017 / 21:31
1
answer

Connect an active directory or LDAP with PHP

I am trying to connect the active directory or LDAP of the window with an application ( GLPI ) made in PHP. Connection parameters: $ds = ldap_connect($host, $port) // me retorna verdadero @ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)...
asked by 10.12.2018 / 21:12