Posts by J. Doe • 107 points
12 posts
-
1
votes1
answer80
viewsQ: Search the Database (Mysql) and create Sitemap in parts (PHP)
I have the following code to generate sitemap: <?php header("Content-type: text/xml"); echo'<?xml version=\'1.0\' encoding=\'UTF-8\'?>'; echo' <urlset…
-
1
votes1
answer67
viewsQ: URL checking by % correct words
I do a check: if( $nomedoaluno <> str_replace(" ","-",semacentos($arrayReturn['nomedoaluno'])) ){ exit(); and assemble the url www.foo.com/student-name I would like to do a check so that: "If…
-
1
votes1
answer731
viewsQ: Read line by line from TXT and return at end (PHP)
I have the following function: function pegarWS($numero){ $PEGAR_WS = 'http://ws.com.br'; $URL = $PEGAR_WS.$numero; $proxies = file('pasta/secreta/inacessivel/via/http/proxies.txt'); //Limpa espaços…
-
0
votes1
answer49
viewsQ: Creating automatic htaccess urls limiting minimum number of characters
RewriteRule ^(.*)/([0-9]+)$ /nomes.php?nome=$1&matricula=$2 I need to determine that the $name redirect has at least three characters. I did something like this: $nome =…
-
1
votes2
answers26
viewsQ: If variable is blank replace
I have a $name variable $nome = str_replace("-"," ",strtolower($arrayReturn['nome'])); And I call her as follows: <p>Nome: (<?php echo $nome; ?>) </p> It turns out that sometimes…
-
0
votes1
answer42
viewsQ: Replacing URL within multiple txt file with Linux terminal
I have several files. txt Ex: arquivo1.txt arquivo2.txt arquivo3.txt Inside these files I have several urls as follows: https://www.site.com.br/diretorio/ https://www.site.com.br/diretorio/…
-
1
votes3
answers52
viewsA: Set variable according to number record up to number
Thank you Inkeliz. I Acabai doing so: switch($quantidade) { case ($quantidade <= '100'): { $valor = '1'; break; } case ($quantidade <= '500'): { .... default: { $valor = $rowcount*valor; } }…
-
2
votes3
answers52
viewsQ: Set variable according to number record up to number
I have the following idea: $quantidade = $rowcount; if $quantidade (?) '(?)') { $valor = '1'; I need to set the $value by following: de 100 a 499 = 1 de 500 a 999 = 2 de 1000 a 1499 = 3 de 1500 a…
-
0
votes1
answer35
viewsQ: Database query between tables
Database has 4 tables tabela 1 |escola|descricao| tabela 2 |matricula|nome|estado| tabela 3 |matricula|escola|posicao| tabela 4 |matricula|diretor|nome I need to do a state search (in table 2) and…
-
0
votes1
answer71
viewsQ: Auto Complete (PHP) Searching in Txt File
txt file 111111 Nome Sobrenome 222222 Nome Sobrenome 333333 Nome Sobrenome Field to fill <span>Aluno</span> : <input id="entry" type="text" name="test"> How do I get it done so…
-
0
votes1
answer188
viewsQ: Proxy to access Webservice
I feed a database with picking up data from a webservice function pegarWS($produto){ $PRODUTO_WS = 'http://webservice.com/s/produto/'; $URL = $PRODUTO_WS.$produto; It accesses the URL…
-
0
votes2
answers96
viewsQ: How to echo $arrayReturn and html code
How do I echo this whole code? <li>Número: <strong><?=$arrayReturn['numero'];?></strong> </li>