Search Results
… and built into Drupal's default oEmbed providers. Take the following URL of a video on the YouTube. … video using the YouTube oEmbed service. https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=uzRQ93UEOe0 YouTube responds with a … "title": "SVALBARD In The K! Pit", "author_name": "KERRANG!", "author_url": "https://www.youtube.com/c/KERRANGofficial", "type": "video", …
Article: Print Out A Random Futurama Quote
… If you sent a curl request to the slashdot.org server you get back a random Futurama quote contained within the header information. The following curl command: curl -Is slashdot.org The commands supplied are I and s. I causes only …
… this is different from the default path we need to alter the baseurlpath setting to point to the correct place 'baseurlpath' => '/idp', Your project should have the following structure, … . 'cookie_name' => 'SESSdrupalauth4ssp', // the URL of the Drupal logout page 'drupal_logout_url' => …
Project: Sitemap Checker
… This will download the sitemap.xml file, let you know how many URLs it detected before starting to crawl them. You can also use a … this will only process 10 results, regardless of the number of URLs found. php application.php sc:run -l 10 … -e chrome https://www.example.com/sitemap.xml Exclude Pass a list of URLs to exclude using the --exclude (or -x for short) flag. This will …
… curl -sSLIXGET http://www.hashbangcode.com To explain: -s flag will make curl silent. -S flag (capital s) will show any errors produced (if things fail). -L flag allows curl to look for and follow redirects. -I flag (lower case L) tells curl …
… curl -i -X POST -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -d @testcurl.txt "http://www.example.com/someform.php" The contents of the file testcurl.txt will be posted to the form. … Curl Command To Send Data In A …
… here is a simple custom entity that stores information from the parsed URL. $client = \Drupal::service('http_client'); $sitemapSource = new … items in compressed sitemap. foreach ($sitemapList as $key => $sitemapUrl) { $args = [ $key, $sitemapUrl->getRawUrl(), ]; …
Article: PHP Page Redirection
… tag being the amount of time to wait before the refresh. Adding the URL parameter into the content tells the browser to refresh to a different URL, essentially a redirect. <meta http-equiv="refresh" content="0;URL=http://www.hashbangcode.com" /> Here is the full version. $url = …
Article: Check Backlinks With PHP
… The following function takes two arguments, the first being the remote URL and the second is the URL you are checking for. The function works by doing a small amount of initial formatting on the URL you are checking for and then downloading the remote page in little …
… code is what I came up with. $username = 'philipnorton42'; $scrobbler_url = "http://ws.audioscrobbler.com/2.0/user/" . $username . "/recenttracks"; if ($scrobbler_xml = file_get_contents($scrobbler_url)) { $scrobbler_data = simplexml_load_string($scrobbler_xml); echo … is the name of the album that the track belongs to (e.g. "Nocturnal"). url : This is a URL that links back to the track information on the …