{"id":5557,"date":"2019-12-16T14:51:54","date_gmt":"2019-12-16T10:51:54","guid":{"rendered":"https:\/\/www.smartwebsolutions.org\/blog\/?p=5557"},"modified":"2019-12-16T14:53:45","modified_gmt":"2019-12-16T10:53:45","slug":"reading-and-writing-to-files-in-php","status":"publish","type":"post","link":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/","title":{"rendered":"Reading and writing to files in PHP"},"content":{"rendered":"<p>Let&#8217;s see the reading and writing to files in PHP with the help of an Example.<\/p>\n<p>Create a text file example &#8220;file.txt&#8221; in the root folder.<\/p>\n<p><code><br \/>\n\/\/reading the contect<\/code><\/p>\n<p><code>$stockFile = \"file.txt\"; <\/code><\/p>\n<p><code>$fh = <strong>fopen<\/strong>($stockFile, 'r'); <\/code><\/p>\n<p><code>$stockfileContents = <strong>fread<\/strong>($fh, 21); fclose($fh);<\/code><\/p>\n<p>You can open the file using &#8220;<strong>fopen<\/strong>&#8221; command<\/p>\n<p>The &#8220;<strong>fread<\/strong>&#8221; command is for reading the content of file<\/p>\n<p><code> <\/code><\/p>\n<p><code>\/\/writing <\/code><\/p>\n<p><code>if(isset($_POST['update'])){ <\/code><\/p>\n<p><code>\u00a0if(!empty($_POST['filename'])){<\/code><\/p>\n<p><code>\u00a0 $stockFilew = \"file.txt\";<\/code><\/p>\n<p><code>\u00a0 $stockFilew2 = <strong>fopen<\/strong>($stockFilew, 'w+') or die(\"Can't open file.\"); <\/code><\/p>\n<p><code>\u00a0 $newContents = $_POST['filename']; <\/code><\/p>\n<p><code>\u00a0 <strong>fwrite<\/strong>($stockFilew2, $newContents); <\/code><\/p>\n<p><code>\u00a0 <strong>fclose<\/strong>($stockFilew2); <\/code><code> <\/code><\/p>\n<p><code>\u00a0}<\/code><\/p>\n<p><code> }<\/code><\/p>\n<p>Here &#8220;fopen and fwrite&#8221; is for opening the file and write operation. The fclose for close the file.<\/p>\n<p><code><\/code><\/p>\n<div class=\"col-sm-12 col-md-12 col-xs-12\" style=\"text-align: center; padding-left: 3px;\"><\/div>\n<p><a href=\"https:\/\/www.smartwebsolutions.org\/blog\/50-us-states-list-php-array-useful-for-website-development\/\">Useful PHP SCripts<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s see the reading and writing to files in PHP with the help of an Example. Create a text file example &#8220;file.txt&#8221; in the root folder. \/\/reading the contect $stockFile = &#8220;file.txt&#8221;; $fh = fopen($stockFile, &#8216;r&#8217;); $stockfileContents = fread($fh, 21); fclose($fh); You can open the file using &#8220;fopen&#8221; command The &#8220;fread&#8221; command is for reading&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5558,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,36,340],"tags":[1898,1896,1892,1895,1894,1897,1899,1893],"class_list":["post-5557","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-webtips","category-website-development","tag-how-to-open-a-text-file-in-html-page","tag-html-read-text-file","tag-php-create-empty-file","tag-php-fopen-create-file","tag-php-read-file-line-by-line","tag-php-read-specific-line-from-file","tag-php-write-log-to-text-file","tag-php-write-to-file"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PHP Coding TIP-Reading and writing to files in PHP -<\/title>\n<meta name=\"description\" content=\"PHP-Read and Write to File. Useful Tutorial for PHP Programmers. The fopen,fread,fwrite,fclose file Commands to do the basic file operations.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Coding TIP-Reading and writing to files in PHP -\" \/>\n<meta property=\"og:description\" content=\"PHP-Read and Write to File. Useful Tutorial for PHP Programmers. The fopen,fread,fwrite,fclose file Commands to do the basic file operations.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/\" \/>\n<meta property=\"og:site_name\" content=\"Internet Tips &amp; Tricks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/teamsmartwebsolutions\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-16T10:51:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-16T10:53:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.smartwebsolutions.org\/blog\/wp-content\/uploads\/2019\/12\/php.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sijo Thomas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sijo Thomas\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/\"},\"author\":{\"name\":\"Sijo Thomas\",\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/#\\\/schema\\\/person\\\/e4ba20079d2443439eaff9afbca38506\"},\"headline\":\"Reading and writing to files in PHP\",\"datePublished\":\"2019-12-16T10:51:54+00:00\",\"dateModified\":\"2019-12-16T10:53:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/\"},\"wordCount\":74,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/php.jpg\",\"keywords\":[\"how to open a text file in html page\",\"html read text file\",\"php create empty file\",\"php fopen create file\",\"php read file line by line\",\"php read specific line from file\",\"php write log to text file\",\"php write to file\"],\"articleSection\":[\"PHP\",\"Web Tips\",\"Website Development\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/\",\"url\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/\",\"name\":\"PHP Coding TIP-Reading and writing to files in PHP -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/php.jpg\",\"datePublished\":\"2019-12-16T10:51:54+00:00\",\"dateModified\":\"2019-12-16T10:53:45+00:00\",\"description\":\"PHP-Read and Write to File. Useful Tutorial for PHP Programmers. The fopen,fread,fwrite,fclose file Commands to do the basic file operations.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/php.jpg\",\"contentUrl\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/php.jpg\",\"width\":1280,\"height\":720,\"caption\":\"PHP coding\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/reading-and-writing-to-files-in-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reading and writing to files in PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/\",\"name\":\"Web Tips|Internet Tips|Tech Tips| Smart Web Solutions\",\"description\":\"Technical and non technical\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/#organization\",\"name\":\"Smart Web solutions\",\"url\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/smart-web-logo-blog.png\",\"contentUrl\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/smart-web-logo-blog.png\",\"width\":151,\"height\":47,\"caption\":\"Smart Web solutions\"},\"image\":{\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/teamsmartwebsolutions\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/teamsmartwebsolutions\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/#\\\/schema\\\/person\\\/e4ba20079d2443439eaff9afbca38506\",\"name\":\"Sijo Thomas\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a4788f700620aaaaaa174bf6f8e1fa6a70ea80736db997435ff719642f69e1e9?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a4788f700620aaaaaa174bf6f8e1fa6a70ea80736db997435ff719642f69e1e9?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a4788f700620aaaaaa174bf6f8e1fa6a70ea80736db997435ff719642f69e1e9?s=96&r=g\",\"caption\":\"Sijo Thomas\"},\"description\":\"Sijo Thomas is a web developer and blogger at SmartWebSolutions, with a strong interest in creating practical digital tools, websites, and online content. He focuses on building user-friendly web solutions that help businesses and individuals improve their online presence. With experience in web development, blogging, and digital platforms, Sijo combines technical knowledge with content creation to share useful insights, tutorials, and technology-related updates. Through SmartWebSolutions, he works on developing simple, effective, and reliable web-based solutions for modern digital needs.\",\"sameAs\":[\"https:\\\/\\\/smartwebsolutions.org\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sijo-thomas-it-seo-and-dm\\\/\"],\"url\":\"https:\\\/\\\/www.smartwebsolutions.org\\\/blog\\\/author\\\/smartadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP Coding TIP-Reading and writing to files in PHP -","description":"PHP-Read and Write to File. Useful Tutorial for PHP Programmers. The fopen,fread,fwrite,fclose file Commands to do the basic file operations.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/","og_locale":"en_GB","og_type":"article","og_title":"PHP Coding TIP-Reading and writing to files in PHP -","og_description":"PHP-Read and Write to File. Useful Tutorial for PHP Programmers. The fopen,fread,fwrite,fclose file Commands to do the basic file operations.","og_url":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/","og_site_name":"Internet Tips &amp; Tricks","article_publisher":"https:\/\/www.facebook.com\/teamsmartwebsolutions\/","article_published_time":"2019-12-16T10:51:54+00:00","article_modified_time":"2019-12-16T10:53:45+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.smartwebsolutions.org\/blog\/wp-content\/uploads\/2019\/12\/php.jpg","type":"image\/jpeg"}],"author":"Sijo Thomas","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sijo Thomas","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/#article","isPartOf":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/"},"author":{"name":"Sijo Thomas","@id":"https:\/\/www.smartwebsolutions.org\/blog\/#\/schema\/person\/e4ba20079d2443439eaff9afbca38506"},"headline":"Reading and writing to files in PHP","datePublished":"2019-12-16T10:51:54+00:00","dateModified":"2019-12-16T10:53:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/"},"wordCount":74,"commentCount":0,"publisher":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/#organization"},"image":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.smartwebsolutions.org\/blog\/wp-content\/uploads\/2019\/12\/php.jpg","keywords":["how to open a text file in html page","html read text file","php create empty file","php fopen create file","php read file line by line","php read specific line from file","php write log to text file","php write to file"],"articleSection":["PHP","Web Tips","Website Development"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/","url":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/","name":"PHP Coding TIP-Reading and writing to files in PHP -","isPartOf":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/#primaryimage"},"image":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/#primaryimage"},"thumbnailUrl":"https:\/\/www.smartwebsolutions.org\/blog\/wp-content\/uploads\/2019\/12\/php.jpg","datePublished":"2019-12-16T10:51:54+00:00","dateModified":"2019-12-16T10:53:45+00:00","description":"PHP-Read and Write to File. Useful Tutorial for PHP Programmers. The fopen,fread,fwrite,fclose file Commands to do the basic file operations.","breadcrumb":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/#primaryimage","url":"https:\/\/www.smartwebsolutions.org\/blog\/wp-content\/uploads\/2019\/12\/php.jpg","contentUrl":"https:\/\/www.smartwebsolutions.org\/blog\/wp-content\/uploads\/2019\/12\/php.jpg","width":1280,"height":720,"caption":"PHP coding"},{"@type":"BreadcrumbList","@id":"https:\/\/www.smartwebsolutions.org\/blog\/reading-and-writing-to-files-in-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.smartwebsolutions.org\/blog\/"},{"@type":"ListItem","position":2,"name":"Reading and writing to files in PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.smartwebsolutions.org\/blog\/#website","url":"https:\/\/www.smartwebsolutions.org\/blog\/","name":"Web Tips|Internet Tips|Tech Tips| Smart Web Solutions","description":"Technical and non technical","publisher":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.smartwebsolutions.org\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.smartwebsolutions.org\/blog\/#organization","name":"Smart Web solutions","url":"https:\/\/www.smartwebsolutions.org\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.smartwebsolutions.org\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.smartwebsolutions.org\/blog\/wp-content\/uploads\/2020\/07\/smart-web-logo-blog.png","contentUrl":"https:\/\/www.smartwebsolutions.org\/blog\/wp-content\/uploads\/2020\/07\/smart-web-logo-blog.png","width":151,"height":47,"caption":"Smart Web solutions"},"image":{"@id":"https:\/\/www.smartwebsolutions.org\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/teamsmartwebsolutions\/","https:\/\/www.linkedin.com\/in\/teamsmartwebsolutions\/"]},{"@type":"Person","@id":"https:\/\/www.smartwebsolutions.org\/blog\/#\/schema\/person\/e4ba20079d2443439eaff9afbca38506","name":"Sijo Thomas","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/a4788f700620aaaaaa174bf6f8e1fa6a70ea80736db997435ff719642f69e1e9?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a4788f700620aaaaaa174bf6f8e1fa6a70ea80736db997435ff719642f69e1e9?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a4788f700620aaaaaa174bf6f8e1fa6a70ea80736db997435ff719642f69e1e9?s=96&r=g","caption":"Sijo Thomas"},"description":"Sijo Thomas is a web developer and blogger at SmartWebSolutions, with a strong interest in creating practical digital tools, websites, and online content. He focuses on building user-friendly web solutions that help businesses and individuals improve their online presence. With experience in web development, blogging, and digital platforms, Sijo combines technical knowledge with content creation to share useful insights, tutorials, and technology-related updates. Through SmartWebSolutions, he works on developing simple, effective, and reliable web-based solutions for modern digital needs.","sameAs":["https:\/\/smartwebsolutions.org","https:\/\/www.linkedin.com\/in\/sijo-thomas-it-seo-and-dm\/"],"url":"https:\/\/www.smartwebsolutions.org\/blog\/author\/smartadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/posts\/5557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/comments?post=5557"}],"version-history":[{"count":0,"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/posts\/5557\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/media\/5558"}],"wp:attachment":[{"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/media?parent=5557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/categories?post=5557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.smartwebsolutions.org\/blog\/wp-json\/wp\/v2\/tags?post=5557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}