Questions tagged as 'url'

1
answer

RegExp for URL

Good day! I have a regular expression to get only the part that interests me about a URL. I have 2 types of URL link link For now, I have achieved with this regexp ".*\/(.*\/.+)" get: page/login?execution=s3p1 The issue i...
asked by 04.12.2018 / 11:36
3
answers

Validate a URL with PHP

I have a big doubt about how I can validate a URL from PHP but that, in addition, it has https protocol or it is incorrect. Based on this I could say if a URL is valid: Code: <?php // Variable to check $url = "http://www.w3s...
asked by 08.03.2017 / 05:26
2
answers

Is it possible to prohibit access to PHP documents from URLS?

I have .php files that make includes of other files, and AJAX scripts that need to make requests to other .php documents. For example, Document X.php has an AJAX script that sends a request to a B.php document and brings some information. Obv...
asked by 12.05.2018 / 08:06
1
answer

How to download a file with PHP

Hello and Happy New Year for all Today I have a question as I can make a script to download a file from a url and change the name of the file with php this is my code I hope you help me and thanks <?php $headers = "https://r8---sn-0op...
asked by 02.01.2018 / 03:14
1
answer

Create friendly URLs with htaccess

I am creating a dynamic web page in which certain information is loaded using a $ _GET variable. and the urls are left of the type https://www.dominio.com/deals/deals.php?sdeal_id=483&name=nombre-producto where the variable deal_i...
asked by 26.12.2017 / 15:13
3
answers

Long variables by URL

I am creating a website of readings but it happens that when sending by the URL the content of a TextArea is very long and it returns an error 414 the browser, I am using PHP with AJAX This is the TextArea field: <textarea id="I_Conte...
asked by 13.11.2017 / 04:42
2
answers

Help with extracting URLs with php

How can I extract a specific url from a website? Because the url of this web is dynamic I would like to extract it and follow it with php and turn it into a url of mine. Example: See internal code and extract url from mp4 video from: www....
asked by 06.08.2017 / 06:13
1
answer

Url AJAX variables

Sorry I have a question about how I can send the same variables to two different URLs in an ajax     
asked by 29.11.2018 / 20:45
1
answer

Get specific content in a JSON

I need to capture the uid and the osgjsSize that are within Files . I do not know how to solve this error ( I am a student / novice ). Thank you very much in advance for your help. <?php $url = 'https://pastebin.com/raw/...
asked by 07.11.2018 / 03:45
1
answer

Open the same file from several (or all) URLs

I have seen that many pages open the same file (for example /home/index.php ) whether you put ejemplo.com/articulo1 or ejemplo.com/articulo2 . My goal with this is to replace the home/&var=ejemplo with home/ej...
asked by 03.12.2018 / 19:34