Tuesday 25 October 2016

How can I get the title of an HTML page using php?



How can I get the title of an HTML page using php? I've made a php web crawler and I want to implement this feature into my crawler so that it will have the name of the page and the url. Thanks in advance. Possibly using preg_match.


Answer




Would this help?



$myURL = 'http://www.google.com';
if (preg_match(
'/(.+)<\/title>/',<br/> file_get_contents($myURL),$matches) <br/> && isset($matches[1] )<br/> $title = $matches[1];<br/>else<br/> $title = "Not Found";<br/><br/></code></pre><br/> </div> <div style='clear: both;'></div> </div> <div class='post-footer'> <div class='post-footer-line post-footer-line-1'> <span class='post-author vcard'> </span> <span class='post-timestamp'> - <meta content='https://stklowf.blogspot.com/2016/10/how-can-i-get-title-of-html-page-using.html' itemprop='url'/> <a class='timestamp-link' href='https://stklowf.blogspot.com/2016/10/how-can-i-get-title-of-html-page-using.html' rel='bookmark' title='permanent link'><abbr class='published' itemprop='datePublished' title='2016-10-25T02:04:00-07:00'>October 25, 2016</abbr></a> </span> <span class='post-comment-link'> </span> <span class='post-icons'> <span class='item-control blog-admin pid-1083048888'> <a href='https://www.blogger.com/post-edit.g?blogID=8010773932506618868&postID=3427682179354886614&from=pencil' title='Edit Post'> <img alt='' class='icon-action' height='18' src='https://resources.blogblog.com/img/icon18_edit_allbkg.gif' width='18'/> </a> </span> </span> <div class='post-share-buttons goog-inline-block'> <a class='goog-inline-block share-button sb-email' href='https://www.blogger.com/share-post.g?blogID=8010773932506618868&postID=3427682179354886614&target=email' target='_blank' title='Email This'><span class='share-button-link-text'>Email This</span></a><a class='goog-inline-block share-button sb-blog' href='https://www.blogger.com/share-post.g?blogID=8010773932506618868&postID=3427682179354886614&target=blog' onclick='window.open(this.href, "_blank", "height=270,width=475"); return false;' target='_blank' title='BlogThis!'><span class='share-button-link-text'>BlogThis!</span></a><a class='goog-inline-block share-button sb-twitter' href='https://www.blogger.com/share-post.g?blogID=8010773932506618868&postID=3427682179354886614&target=twitter' target='_blank' title='Share to Twitter'><span class='share-button-link-text'>Share to Twitter</span></a><a class='goog-inline-block share-button sb-facebook' href='https://www.blogger.com/share-post.g?blogID=8010773932506618868&postID=3427682179354886614&target=facebook' onclick='window.open(this.href, "_blank", "height=430,width=640"); return false;' target='_blank' title='Share to Facebook'><span class='share-button-link-text'>Share to Facebook</span></a><a class='goog-inline-block share-button sb-pinterest' href='https://www.blogger.com/share-post.g?blogID=8010773932506618868&postID=3427682179354886614&target=pinterest' target='_blank' title='Share to Pinterest'><span class='share-button-link-text'>Share to Pinterest</span></a> </div> </div> <div class='post-footer-line post-footer-line-2'> <span class='post-labels'> </span> </div> <div class='post-footer-line post-footer-line-3'> <span class='post-location'> </span> </div> </div> </div> <div class='comments' id='comments'> <a name='comments'></a> <h4>No comments:</h4> <div id='Blog1_comments-block-wrapper'> <dl class='avatar-comment-indent' id='comments-block'> </dl> </div> <p class='comment-footer'> <div class='comment-form'> <a name='comment-form'></a> <h4 id='comment-post-message'>Post a Comment</h4> <p> </p> <a href='https://www.blogger.com/comment/frame/8010773932506618868?po=3427682179354886614&hl=en-GB' id='comment-editor-src'></a> <iframe allowtransparency='true' class='blogger-iframe-colorize blogger-comment-from-post' frameborder='0' height='410px' id='comment-editor' name='comment-editor' src='' width='100%'></iframe> <script src='https://www.blogger.com/static/v1/jsbin/2315299244-comment_from_post_iframe.js' type='text/javascript'></script> <script type='text/javascript'> BLOG_CMT_createIframe('https://www.blogger.com/rpc_relay.html'); </script> </div> </p> </div> </div> </div></div> </div> <div class='blog-pager' id='blog-pager'> <span id='blog-pager-newer-link'> <a class='blog-pager-newer-link' href='https://stklowf.blogspot.com/2016/10/plot-explanation-is-x-men-first-class_25.html' id='Blog1_blog-pager-newer-link' title='Newer Post'>Newer Post</a> </span> <span id='blog-pager-older-link'> <a class='blog-pager-older-link' href='https://stklowf.blogspot.com/2016/10/c-how-to-check-if-file-exists_25.html' id='Blog1_blog-pager-older-link' title='Older Post'>Older Post</a> </span> <a class='home-link' href='https://stklowf.blogspot.com/'>Home</a> </div> <div class='clear'></div> <div class='post-feeds'> <div class='feed-links'> Subscribe to: <a class='feed-link' href='https://stklowf.blogspot.com/feeds/3427682179354886614/comments/default' target='_blank' type='application/atom+xml'>Post Comments (Atom)</a> </div> </div> </div><div class='widget FeaturedPost' data-version='1' id='FeaturedPost1'> <div class='post-summary'> <h3><a href='https://stklowf.blogspot.com/2017/06/c-does-curly-brackets-matter-for-empty_20.html'>c++ - Does curly brackets matter for empty constructor?</a></h3> <p> Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t... </p> </div> <style type='text/css'> .image { width: 100%; } </style> <div class='clear'></div> </div><div class='widget PopularPosts' data-version='1' id='PopularPosts1'> <div class='widget-content popular-posts'> <ul> <li> <div class='item-content'> <div class='item-title'><a href='https://stklowf.blogspot.com/2016/11/analysis-were-parts-of-dark-knight.html'>analysis - Were parts of The Dark Knight Rises a commentary on the Occupy movement? - Movies & TV</a></div> <div class='item-snippet'>A fair amount of the second act of The Dark Knight Rises has a class warfare plotline. This is foreshadowed in the trailers with Selina Ky...</div> </div> <div style='clear: both;'></div> </li> <li> <div class='item-content'> <div class='item-title'><a href='https://stklowf.blogspot.com/2016/01/detect-whether-python-string-is-number.html'>Detect whether a Python string is a number or a letter</a></div> <div class='item-snippet'> How can I detect either numbers or letters in a string? I am aware you use the ASCII codes, but what functions take advantage of the...</div> </div> <div style='clear: both;'></div> </li> <li> <div class='item-content'> <div class='item-title'><a href='https://stklowf.blogspot.com/2017/03/javascript-create-multidimensional.html'>javascript - Create multidimensional array from string</a></div> <div class='item-snippet'> I want to create an options array from a string. How can i create an array as { width : 100, height : 200 } from a string ...</div> </div> <div style='clear: both;'></div> </li> </ul> <div class='clear'></div> </div> </div></div> </div> </div> <div class='column-left-outer'> <div class='column-left-inner'> <aside> </aside> </div> </div> <div class='column-right-outer'> <div class='column-right-inner'> <aside> <div class='sidebar section' id='sidebar-right-1'><div class='widget BlogSearch' data-version='1' id='BlogSearch1'> <h2 class='title'>Search This Blog</h2> <div class='widget-content'> <div id='BlogSearch1_form'> <form action='https://stklowf.blogspot.com/search' class='gsc-search-box' target='_top'> <table cellpadding='0' cellspacing='0' class='gsc-search-box'> <tbody> <tr> <td class='gsc-input'> <input autocomplete='off' class='gsc-input' name='q' size='10' title='search' type='text' value=''/> </td> <td class='gsc-search-button'> <input class='gsc-search-button' title='search' type='submit' value='Search'/> </td> </tr> </tbody> </table> </form> </div> </div> <div class='clear'></div> </div><div class='widget BlogArchive' data-version='1' id='BlogArchive1'> <h2>Blog Archive</h2> <div class='widget-content'> <div id='ArchiveList'> <div id='BlogArchive1_ArchiveList'> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2017/'> 2017 </a> <span class='post-count' dir='ltr'>(2404)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2017/06/'> June 2017 </a> <span class='post-count' dir='ltr'>(276)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2017/05/'> May 2017 </a> <span class='post-count' dir='ltr'>(434)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2017/04/'> April 2017 </a> <span class='post-count' dir='ltr'>(433)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2017/03/'> March 2017 </a> <span class='post-count' dir='ltr'>(450)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2017/02/'> February 2017 </a> <span class='post-count' dir='ltr'>(379)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2017/01/'> January 2017 </a> <span class='post-count' dir='ltr'>(432)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate expanded'> <a class='toggle' href='javascript:void(0)'> <span class='zippy toggle-open'> ▼  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/'> 2016 </a> <span class='post-count' dir='ltr'>(3825)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/12/'> December 2016 </a> <span class='post-count' dir='ltr'>(446)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/11/'> November 2016 </a> <span class='post-count' dir='ltr'>(421)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate expanded'> <a class='toggle' href='javascript:void(0)'> <span class='zippy toggle-open'> ▼  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/10/'> October 2016 </a> <span class='post-count' dir='ltr'>(458)</span> <ul class='posts'> <li><a href='https://stklowf.blogspot.com/2016/10/datetime-how-to-get-current-datetime-in.html'>datetime - How to get the current date/time in Java</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/casting-why-didn-katie-holmes-play.html'>casting - Why didn't Katie Holmes play Rachel Dawe...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/php-bad-sql-syntax.html'>php - Bad SQL syntax?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-casting-allocated-memory-through.html'>c - Casting allocated memory through double pointer</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/what-difference-between-java-8.html'>What's the difference between java 8 ZonedDateTime...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/calculator-computing-negative-numbers.html'>calculator - Computing negative numbers in Java</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/how-to-get-buildversion-number-of-your.html'>How to get the build/version number of your Androi...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-entity-framework-claims-to-save.html'>c# - Entity Framework claims to save changes but s...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/primitive-type-casting-in-java.html'>Primitive type 'short' - casting in Java</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/java-how-to-add-image-to-jpanel_31.html'>java - How to add an image to a JPanel?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-variable-inside-settimeout.html'>javascript - Variable inside setTimeout says it is...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-send-get-request-via-jquery.html'>javascript - send get request via jquery slider an...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-how-do-i-install-openssl-libraries-on.html'>c++ - How do I install the OpenSSL libraries on Ub...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/fopen-php-feof-returning-true-before.html'>fopen - PHP feof() returning true before the end o...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/sql-inner-join-on-vs-where-clause.html'>sql - INNER JOIN ON vs WHERE clause</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/tag-wiki.html'>'saw-3' tag wiki</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-how-do-you-validate-phone-number-in.html'>c# - How do you validate phone number in asp.net?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/operators-using.html'>operators - Using</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/program-error-in-visual-studio-c-2010.html'>Program error in visual studio c++ 2010 express</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/plot-explanation-was-frodo-baggins-in.html'>plot explanation - Was Frodo Baggins in the origin...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-object-reference-not-set-to-object.html'>c# - Object Reference not set to an object (callin...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/r-how-to-display-messagewarningerror.html'>r - How to display a message/warning/error with Un...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-use-ndk-build-to-link-with-existing.html'>c++ - Use ndk-build to link with an existing stati...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/plot-explanation-cracks-in-wall.html'>plot explanation - Cracks in the wall inconsistencies</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-javascript-validation-for-email.html'>c# - javascript validation for email format accept...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/java-systemcurrenttimemillis-accuracy.html'>java - System.currentTimeMillis()'s accuracy on wi...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/how-do-i-get-extra-data-from-intent-on.html'>How do I get extra data from intent on Android?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/python-regex-include-line-breaks.html'>python - Regex include line breaks</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-how-to-escape-double-quotes-with.html'>c# - How to escape double quotes with string inter...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-await-function-when-used-as.html'>javascript - Await function when used as a functio...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/creating-new-column-for-reactive.html'>Creating new column for reactive dataframe in shin...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-pause-function-execution.html'>javascript - Pause the function execution flow til...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/gradle-cannot-find-android-support.html'>Gradle cannot find the Android Support Repository ...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/linux-oprofile-can-not-use-hardware_30.html'>linux - oprofile can not use hardware performance ...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/php-mysqlfetcharraymysqlfetchassocmysql.html'>php - mysql_fetch_array()/mysql_fetch_assoc()/mysq...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-dom-manipulation-in-angular.html'>javascript - DOM manipulation in Angular directive...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-malloc-vs-new-different-padding.html'>c++ - Malloc vs new -- different padding</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/cors-angularjs-performs-options-http_29.html'>cors - AngularJS performs an OPTIONS HTTP request ...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/how-to-set-cursor-color-in-bash-shell.html'>How to set cursor color in bash shell</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/jquery-if-variable-in-list-of-values.html'>jquery if variable in a list of values</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-function-that-returns-ajax.html'>JavaScript function that returns AJAX call data</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-angularjs-load-service-then.html'>javascript - AngularJS load service then call cont...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/awkward-way-of-executing-javascript-code_29.html'>Awkward way of executing JavaScript code</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/phpmysqli-update-insert-with-prepared.html'>PHP/MySQLi: Update / Insert with prepared queries ...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/getting-special-characters-out-of-mysql.html'>Getting special characters out of a MySQL database...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/in-c-when-reassigning-object-why-does.html'>In C++, when reassigning an object, why does the c...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/ubuntu-java-error-could-not-find-or.html'>ubuntu - Java - Error : Could not find or load mai...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/assembly-cost-of-polymorphism.html'>assembly - Cost of polymorphism</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/multithreading-difference-between_28.html'>multithreading - The difference between the Runnab...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-origin-requests-are-only.html'>javascript - "Cross origin requests are only suppo...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-adding-event-listeners-in.html'>javascript - adding 'click' event listeners in loop</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/php-could-not-connect-access-denied-for.html'>php - Could not connect: Access denied for user 'r...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/length-of-javascript-object.html'>Length of a JavaScript object</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/sort-list-of-class-objects-in-c.html'>Sort list of class objects in c#</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/ios-update-or-reload-uitableview-after.html'>ios - Update or reload UITableView after completio...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-jquery-dynamic-content-click.html'>javascript - jQuery Dynamic content's click doesn'...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/dictionary-how-do-i-efficiently-iterate.html'>dictionary - How do I efficiently iterate over eac...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-showhide-input-field-based.html'>javascript - Show/hide input field based on checkbox</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/net-what-are-correct-version-numbers.html'>.net - What are the correct version numbers for C#?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-correct-way-to-compare-floating-point.html'>c++ - Correct Way to Compare Floating-point Numbers</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-breakpoint-will-not-currently-be-hit.html'>c# - The breakpoint will not currently be hit. No ...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/difference-between-python-datetime-vs.html'>Difference between Python datetime vs time modules</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/android-surfaceview-oncreated-not.html'>Android surfaceview oncreated not called when draw...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-reading-string-with-scanf.html'>c - Reading a string with scanf</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/php-can-sql-injection-be-made-with.html'>php - Can an SQL injection be made with a single w...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/analysis-is-john-keating-to-blame-for.html'>analysis - Is John Keating to blame for Neil's sui...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/java-loop-break-not-working-inside.html'>java - loop break not working inside switch block ...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/clojure-how-to-cycle-list-infinitely.html'>clojure - How to cycle a list infinitely and lazil...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/string-extract-first-word-from-line-in.html'>string - Extract first word from a line in a file ...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/android-can-create-handler-inside.html'>android - Can't create handler inside thread that ...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/get-random-numbers-in-specific-range-in.html'>Get random numbers in a specific range in java</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/plot-explanation-what-did-david-say-to.html'>plot explanation - What did David say to the engin...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/regex-how-can-i-write-regular.html'>regex - How can I write a regular expression to fi...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/how-to-clean-list-from-deleted-shiny.html'>How to clean the 'input' list from deleted Shiny i...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-how-to-run-async-method-synchronously.html'>c# - How to run an async method synchronously?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/plot-explanation-how-did-they-get-to.html'>plot explanation - How did they get to Singapore i...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/php-how-to-turn-off-magic-quotes-on_26.html'>php - How to turn off magic quotes on shared hosting?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/my-c-output-is-always-0.html'>My C++ output is always 0</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/oop-preserving-reference-to-in_26.html'>oop - Preserving a reference to "this" in JavaScri...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/security-watson-api-access-from-adobe.html'>security - Watson API access from adobe action scr...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/php-send-email-from-localhost-xampp.html'>php - Send Email from Localhost XAMPP</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/what-time-format-is-this-guy.html'>What time format is this guy's "watch"?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-is-typecast-required-in-malloc.html'>c - Is typecast required in malloc?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/organization-managing-css-explosion.html'>organization - Managing CSS Explosion</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/javascript-how-can-i-get-jquery-to.html'>javascript - How can I get jQuery to perform a syn...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/how-can-we-match-bn-with-java-regex.html'>How can we match a^n b^n with Java regex?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/php-how-to-convert-string-into-readable.html'>php - How to convert a string into a readable view</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/php-white-screen-of-death_25.html'>php - White screen of death!</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/bash-difference-between-single-and.html'>bash - Difference between single and double quotes...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/multithreading-runnable-vs-thread-in.html'>multithreading - "implements Runnable" vs "extends...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/user-input-string-and-integers-in-java.html'>user input string and integers in Java</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/can-cmake-create-solution-for-visual.html'>Can CMake Create Solution for Visual Studio Expres...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/plot-explanation-why-were-american.html'>plot explanation - Why were American accents commo...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/login-script-is-there-html-function-to.html'>login script - Is There An HTML Function To Execut...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/php-syntax-error-unexpected-tfunction.html'>php - syntax error, unexpected T_FUNCTION, expecti...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/plot-explanation-is-x-men-first-class_25.html'>plot explanation - Is X-Men First Class based earl...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/how-can-i-get-title-of-html-page-using.html'>How can I get the title of an HTML page using php?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-how-to-check-if-file-exists_25.html'>c++ - How to check if a file exists (regardless of...</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/c-what-does-mean-before-function.html'>c++ - What does [&] mean before function?</a></li> <li><a href='https://stklowf.blogspot.com/2016/10/iis-7-aspnet-application.html'>iis 7 - asp.net application userprincipal.findbyid...</a></li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/09/'> September 2016 </a> <span class='post-count' dir='ltr'>(374)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/08/'> August 2016 </a> <span class='post-count' dir='ltr'>(369)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/07/'> July 2016 </a> <span class='post-count' dir='ltr'>(355)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/06/'> June 2016 </a> <span class='post-count' dir='ltr'>(306)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/05/'> May 2016 </a> <span class='post-count' dir='ltr'>(305)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/04/'> April 2016 </a> <span class='post-count' dir='ltr'>(311)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/03/'> March 2016 </a> <span class='post-count' dir='ltr'>(269)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/02/'> February 2016 </a> <span class='post-count' dir='ltr'>(145)</span> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2016/01/'> January 2016 </a> <span class='post-count' dir='ltr'>(66)</span> </li> </ul> </li> </ul> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2015/'> 2015 </a> <span class='post-count' dir='ltr'>(11)</span> <ul class='hierarchy'> <li class='archivedate collapsed'> <a class='toggle' href='javascript:void(0)'> <span class='zippy'> ►  </span> </a> <a class='post-count-link' href='https://stklowf.blogspot.com/2015/12/'> December 2015 </a> <span class='post-count' dir='ltr'>(11)</span> </li> </ul> </li> </ul> </div> </div> <div class='clear'></div> </div> </div></div> <table border='0' cellpadding='0' cellspacing='0' class='section-columns columns-2'> <tbody> <tr> <td class='first columns-cell'> <div class='sidebar no-items section' id='sidebar-right-2-1'></div> </td> <td class='columns-cell'> <div class='sidebar no-items section' id='sidebar-right-2-2'></div> </td> </tr> </tbody> </table> <div class='sidebar no-items section' id='sidebar-right-3'></div> </aside> </div> </div> </div> <div style='clear: both'></div> <!-- columns --> </div> <!-- main --> </div> </div> <div class='main-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> <footer> <div class='footer-outer'> <div class='footer-cap-top cap-top'> <div class='cap-left'></div> <div class='cap-right'></div> </div> <div class='fauxborder-left footer-fauxborder-left'> <div class='fauxborder-right footer-fauxborder-right'></div> <div class='region-inner footer-inner'> <div class='foot no-items section' id='footer-1'></div> <table border='0' cellpadding='0' cellspacing='0' class='section-columns columns-2'> <tbody> <tr> <td class='first columns-cell'> <div class='foot no-items section' id='footer-2-1'></div> </td> <td class='columns-cell'> <div class='foot no-items section' id='footer-2-2'></div> </td> </tr> </tbody> </table> <!-- outside of the include in order to lock Attribution widget --> <div class='foot section' id='footer-3' name='Footer'><div class='widget Attribution' data-version='1' id='Attribution1'> <div class='widget-content' style='text-align: center;'> Theme images by <a href='http://www.istockphoto.com/file_closeup.php?id=9505737&platform=blogger' target='_blank'>Ollustrator</a>. Powered by <a href='https://www.blogger.com' target='_blank'>Blogger</a>. </div> <div class='clear'></div> </div></div> </div> </div> <div class='footer-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </footer> <!-- content --> </div> </div> <div class='content-cap-bottom cap-bottom'> <div class='cap-left'></div> <div class='cap-right'></div> </div> </div> </div> <script type='text/javascript'> window.setTimeout(function() { document.body.className = document.body.className.replace('loading', ''); }, 10); </script> <script type="text/javascript" src="https://www.blogger.com/static/v1/widgets/2591855913-widgets.js"></script> <script type='text/javascript'> window['__wavt'] = 'AOuZoY5t3_q6ur20dUBnQPn8fClGyZFsUA:1730849268361';_WidgetManager._Init('//www.blogger.com/rearrange?blogID\x3d8010773932506618868','//stklowf.blogspot.com/2016/10/how-can-i-get-title-of-html-page-using.html','8010773932506618868'); _WidgetManager._SetDataContext([{'name': 'blog', 'data': {'blogId': '8010773932506618868', 'title': 'Blog', 'url': 'https://stklowf.blogspot.com/2016/10/how-can-i-get-title-of-html-page-using.html', 'canonicalUrl': 'https://stklowf.blogspot.com/2016/10/how-can-i-get-title-of-html-page-using.html', 'homepageUrl': 'https://stklowf.blogspot.com/', 'searchUrl': 'https://stklowf.blogspot.com/search', 'canonicalHomepageUrl': 'https://stklowf.blogspot.com/', 'blogspotFaviconUrl': 'https://stklowf.blogspot.com/favicon.ico', 'bloggerUrl': 'https://www.blogger.com', 'hasCustomDomain': false, 'httpsEnabled': true, 'enabledCommentProfileImages': true, 'gPlusViewType': 'FILTERED_POSTMOD', 'adultContent': false, 'analyticsAccountNumber': '', 'encoding': 'UTF-8', 'locale': 'en-GB', 'localeUnderscoreDelimited': 'en_gb', 'languageDirection': 'ltr', 'isPrivate': false, 'isMobile': false, 'isMobileRequest': false, 'mobileClass': '', 'isPrivateBlog': false, 'isDynamicViewsAvailable': true, 'feedLinks': '\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Blog - Atom\x22 href\x3d\x22https://stklowf.blogspot.com/feeds/posts/default\x22 /\x3e\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/rss+xml\x22 title\x3d\x22Blog - RSS\x22 href\x3d\x22https://stklowf.blogspot.com/feeds/posts/default?alt\x3drss\x22 /\x3e\n\x3clink rel\x3d\x22service.post\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Blog - Atom\x22 href\x3d\x22https://www.blogger.com/feeds/8010773932506618868/posts/default\x22 /\x3e\n\n\x3clink rel\x3d\x22alternate\x22 type\x3d\x22application/atom+xml\x22 title\x3d\x22Blog - Atom\x22 href\x3d\x22https://stklowf.blogspot.com/feeds/3427682179354886614/comments/default\x22 /\x3e\n', 'meTag': '', 'adsenseHostId': 'ca-host-pub-1556223355139109', 'adsenseHasAds': true, 'adsenseAutoAds': false, 'boqCommentIframeForm': true, 'loginRedirectParam': '', 'view': '', 'dynamicViewsCommentsSrc': '//www.blogblog.com/dynamicviews/4224c15c4e7c9321/js/comments.js', 'dynamicViewsScriptSrc': '//www.blogblog.com/dynamicviews/6eb7ce967db05cf0', 'plusOneApiSrc': 'https://apis.google.com/js/platform.js', 'disableGComments': true, 'interstitialAccepted': false, 'sharing': {'platforms': [{'name': 'Get link', 'key': 'link', 'shareMessage': 'Get link', 'target': ''}, {'name': 'Facebook', 'key': 'facebook', 'shareMessage': 'Share to Facebook', 'target': 'facebook'}, {'name': 'BlogThis!', 'key': 'blogThis', 'shareMessage': 'BlogThis!', 'target': 'blog'}, {'name': 'Twitter', 'key': 'twitter', 'shareMessage': 'Share to Twitter', 'target': 'twitter'}, {'name': 'Pinterest', 'key': 'pinterest', 'shareMessage': 'Share to Pinterest', 'target': 'pinterest'}, {'name': 'Email', 'key': 'email', 'shareMessage': 'Email', 'target': 'email'}], 'disableGooglePlus': true, 'googlePlusShareButtonWidth': 0, 'googlePlusBootstrap': '\x3cscript type\x3d\x22text/javascript\x22\x3ewindow.___gcfg \x3d {\x27lang\x27: \x27en_GB\x27};\x3c/script\x3e'}, 'hasCustomJumpLinkMessage': false, 'jumpLinkMessage': 'Read more', 'pageType': 'item', 'postId': '3427682179354886614', 'pageName': 'How can I get the title of an HTML page using php?', 'pageTitle': 'Blog: How can I get the title of an HTML page using php?'}}, {'name': 'features', 'data': {}}, {'name': 'messages', 'data': {'edit': 'Edit', 'linkCopiedToClipboard': 'Link copied to clipboard', 'ok': 'Ok', 'postLink': 'Post link'}}, {'name': 'template', 'data': {'name': 'custom', 'localizedName': 'Custom', 'isResponsive': false, 'isAlternateRendering': false, 'isCustom': true}}, {'name': 'view', 'data': {'classic': {'name': 'classic', 'url': '?view\x3dclassic'}, 'flipcard': {'name': 'flipcard', 'url': '?view\x3dflipcard'}, 'magazine': {'name': 'magazine', 'url': '?view\x3dmagazine'}, 'mosaic': {'name': 'mosaic', 'url': '?view\x3dmosaic'}, 'sidebar': {'name': 'sidebar', 'url': '?view\x3dsidebar'}, 'snapshot': {'name': 'snapshot', 'url': '?view\x3dsnapshot'}, 'timeslide': {'name': 'timeslide', 'url': '?view\x3dtimeslide'}, 'isMobile': false, 'title': 'How can I get the title of an HTML page using php?', 'description': 'How can I get the title of an HTML page using php? I\x27ve made a php web crawler and I want to implement this feature into my crawler so that ...', 'url': 'https://stklowf.blogspot.com/2016/10/how-can-i-get-title-of-html-page-using.html', 'type': 'item', 'isSingleItem': true, 'isMultipleItems': false, 'isError': false, 'isPage': false, 'isPost': true, 'isHomepage': false, 'isArchive': false, 'isLabelSearch': false, 'postId': 3427682179354886614}}]); _WidgetManager._RegisterWidget('_HeaderView', new _WidgetInfo('Header1', 'header', document.getElementById('Header1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogView', new _WidgetInfo('Blog1', 'main', document.getElementById('Blog1'), {'cmtInteractionsEnabled': false, 'lightboxEnabled': true, 'lightboxModuleUrl': 'https://www.blogger.com/static/v1/jsbin/1888409851-lbx__en_gb.js', 'lightboxCssUrl': 'https://www.blogger.com/static/v1/v-css/13464135-lightbox_bundle.css'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_FeaturedPostView', new _WidgetInfo('FeaturedPost1', 'main', document.getElementById('FeaturedPost1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_PopularPostsView', new _WidgetInfo('PopularPosts1', 'main', document.getElementById('PopularPosts1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogSearchView', new _WidgetInfo('BlogSearch1', 'sidebar-right-1', document.getElementById('BlogSearch1'), {}, 'displayModeFull')); _WidgetManager._RegisterWidget('_BlogArchiveView', new _WidgetInfo('BlogArchive1', 'sidebar-right-1', document.getElementById('BlogArchive1'), {'languageDirection': 'ltr', 'loadingMessage': 'Loading\x26hellip;'}, 'displayModeFull')); _WidgetManager._RegisterWidget('_AttributionView', new _WidgetInfo('Attribution1', 'footer-3', document.getElementById('Attribution1'), {}, 'displayModeFull')); </script> </body> </html>