Posts by Antonio Oliveira • 45 points
12 posts
-
1
votes3
answers237
viewsQ: How to send Jquery variable content to an html textarea?
I’m having a hard time sending the contents of a variable JS for a <textarea> (in a bootstrap modal) and with XML formatting defined in the variable. Both the JS as to textarea are in the same…
-
1
votes0
answers527
viewsQ: How to protect source code from PHP scripts without preventing it from working?
Use a free provider (Hostinger) to remotely test some scripts PHP mine. Some of them use set-cookie to record cookies in the folder in which they are located. The problem is that currently the…
phpasked Antonio Oliveira 45 -
0
votes1
answer42
viewsQ: Absolute address (including script) in PHP
Consider the following html address: http://exemplo.com/1/2/3/teste.php I would like to indicate in the variable $ender the absolute address of my scripts (including them) to be found independent of…
phpasked Antonio Oliveira 45 -
0
votes0
answers36
viewsQ: Using regex (PHP) how to limit the search to a text group?
Considering the text hypothesis (with and without separation by paragraphs - for each group whose content is repeated): group1, Tiago, ball, spring, brick, peter, ball, spring, brick, Raimundo,…
phpasked Antonio Oliveira 45 -
0
votes0
answers55
viewsQ: Domxpath and foreach. How to have a preview of the captured elements?
I’m learning to deal with DOMXpath in the php. Was using regex (but I was discouraged here in the stack when for html capture). I confess that for me it is not so simple and the DOM has its limits…
phpasked Antonio Oliveira 45 -
0
votes0
answers33
viewsQ: In PHP how to limit regex search to a div html class?
In php, how to mount a regex (to use with preg_match_all) the link on href and the title between >(.*?)< ONLY IN class "container" (15 occurrences). In the source, without the limitation to a…
phpasked Antonio Oliveira 45 -
1
votes1
answer119
viewsQ: For file_get_contents are there options similar to those of Curl?
For file_get_contents there are options similar to those of Curl? $cookie_file = "cookie1.txt"; curl_setopt($curl, CURLOPT_COOKIESESSION, 1); curl_setopt($curl, CURLOPT_COOKIEFILE, $cookie_file);…
phpasked Antonio Oliveira 45 -
1
votes0
answers95
viewsQ: Help with $GET[id]
Considering the php below: <?php require_once 'gerarxml.php'; /*O gerarxml.php foi uma valiosa contribuição do amigo Guilherme Nascimento:…
phpasked Antonio Oliveira 45 -
-1
votes2
answers85
viewsQ: Quantify new line ( n) in regex
Is there any way to quantify many paragraphs without being literally to use with PHP? \d{54}, for example represents 54 digits, but you can’t use \n{54}. I want in one regex take a dice that is 54…
regexasked Antonio Oliveira 45 -
0
votes0
answers37
viewsQ: Relative and/or Absolute path in PHP
I’ve done a few searches on Stackoverflow about Absolute path and relative path, but none of the solutions worked for what I need. I need the $host (example below) point to where my index.php…
phpasked Antonio Oliveira 45 -
0
votes0
answers36
viewsQ: PHP Generator from Parsing
Friends, I am a student in php (online, because in my region there are no courses in php). If anyone can help me with a project and tell me which are the best tools, I appreciate it. Also, if that…
phpasked Antonio Oliveira 45 -
0
votes1
answer626
viewsQ: Generate xml automatically
I want after reading the html page with the file_get_contents and select what matters with the preg_match_all a is automatically generated xml (calling the function below) and generating the file.…