Questions tagged as 'url'

4
answers

How to get the last segment of the path?

URLs de exemplo: content/edit content/edit/ content/edit?q= content/edit/?q= I tried to make the code but it always fails when the url does not have "/" or "?" and if you have "/?" in the end. The code I made was: .*\/([a-zA-Z0-9]*)[\/\?].*...
asked by 18.09.2017 / 16:25
1
answer

URL with uppercase letters

Is there a problem naming high-end pages? ex: http://exemplo.com.br/Minha-Pagina.php     
asked by 15.09.2016 / 17:23
2
answers

How do I always keep my URLs in lowercase?

I want all URLs on my site to be lowercase to help with SEO and for consistent link sharing. How can I do this?     
asked by 12.12.2013 / 15:08
1
answer

Get URL table in R

I need to do this here: library(xml) URL <- "http://globoesporte.globo.com/futebol/brasileirao-serie-a/" tabela1 <- readHTMLTable(URL, which = 1, colClasses = ) tabela1$V3 <- NULL names(tabela1) <- c("Posição","Time") tabela2...
asked by 09.11.2017 / 20:30
1
answer

Is there an online service that makes requests in a given url? [closed]

I need to make a GET request in a url every 5 minutes. Is there a free service that does this?     
asked by 01.12.2016 / 16:42
1
answer

Replace backslashes with single bars - Image URL

I'm trying to remove the backslashes to open the URL of the image, I found a way to override, but part of my string was lost: function formatURL( $url ) { echo $url."<br />"; $url = str_replace('\', '/', $url); echo $ur...
asked by 27.01.2015 / 17:20
2
answers

How to find source Url

I need a function that shows me the url of the origin of the visitor of my page. I've already tried $_SERVER['HTTP_REFERER'] , but it seems to only work when the source comes from a clicked link. Currently working with an affiliate syst...
asked by 04.01.2018 / 16:14
1
answer

Request field fill in url

Good afternoon ... I need your help. I have a page in html + php which basically is a field that queries a mysql database with ajax and returns the result as the field is filled with the correct number of numbers (10 digits). I wanted to m...
asked by 11.11.2017 / 22:18
1
answer

Use .htaccess in a directory with files and folders with the same name

My directory is as follows: root/ ├── index.php ├── about.php ├── privacy.php └── about/ ├── brand.php └── history.php I would like that when the user types meusite.com/about , HTACCESS redirects it to the about.php fil...
asked by 23.01.2017 / 20:06
1
answer

How do I make a friendly url in PHP [duplicate]

I know you've asked before and you have several answers on the internet but none have solved my problem. I have a whole site in php, with several pages and would like to make url friendly to their variables. I wanted, for example, to let index...
asked by 09.02.2016 / 16:36