Questions tagged as 'file-get-contents'

0
answers

Get content from a site whose URL changes

I'm trying to get a video from a website. I can get the URL where this video is located, but when I run the command curl or file_get_contents it will not. The strange thing is that if I put the same link in the browser it goe...
asked by 10.11.2018 / 00:49
0
answers

Iframe shows system in localhost - PHP

Good morning I will try to explain my situation and see if there is a solution. I have a server running a web application in java that I want to work only on localhost. Also, on this server, I have a PHP system that is released for inte...
asked by 08.03.2018 / 15:50
0
answers

Display a list of files in a directory using Java Web

Good afternoon, I have a directory called "musics" with 23 files. I'm using this class: public listarArquivos() throws IOException { File file = new File(diretorio); File musicas[] = file.listFiles(); int i = 0; for (int j =...
asked by 14.03.2018 / 19:56
0
answers

Pull information from another page

Through a given url I get the following code <script> window["ytInitialData"] = {"responseContext":{"serviceTrackingParams": [{"service":"GFEEDBACK","params": [{"key":"has_unlimited_entitlement","value":"False"},...
asked by 12.11.2017 / 14:11
1
answer

Echo file with php tags

I'm developing an intra net portal for the company I work in, I'm using a central page and searching for the content of other pages via ajax, the other pages are outside the public_html folder so I use a controller to return the contents of thes...
asked by 31.10.2017 / 17:12
2
answers

file_get_contents (): Content-type not specified assuming application / x-www-form-urlencoded

In this code I'm creating to upload profile images to imgur if (isset($_POST['uploadprofileimg'])) { $image = base64_encode(file_get_contents($_FILES['profileimg']['tmp_name'])); $options = array('http' => array( 'method'...
asked by 20.02.2017 / 19:45
1
answer

Display content of the title tag of the current page using PHP

Hello, I'd like some help modifying the code below: <?php function page_title($url) { $fp = file_get_contents($url); if (!$fp) return null; $res = preg_match("/<title>(.*)<\/title>/siU", $fp, $title_matches)...
asked by 09.08.2016 / 01:11
0
answers

Capturing site content and storing in a database

Here the site that has the vacancies    If you can get inside it and see how it works. I need to get the titles of the vacancies and the descriptions that contain them as: Company, Area and Requirements . My question is how do I get...
asked by 04.04.2016 / 18:17
0
answers

Capture page with PHP Curl

Personally I need to capture the source code of a page with cURL, but the jQuery of this page that generates the content and cURL does not return this data generated with jQuery, has some way of capturing the source code of the page after it has...
asked by 06.02.2016 / 23:30
0
answers

Class mPDF + file_get_contents

I have the following code to generate a PDF file and I want to use file_get_contents to include a graph and a table that are generated dynamically on another page but the result is not what I expected. The code with the class mPDF: <?php...
asked by 01.09.2015 / 15:06