<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Wajeeh Shaikh</title>
    <description>The latest articles on Forem by Wajeeh Shaikh (@wajeehshaikh).</description>
    <link>https://forem.com/wajeehshaikh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1321433%2Fcddbe5e3-9fae-4f13-b878-10b03355026b.jpg</url>
      <title>Forem: Wajeeh Shaikh</title>
      <link>https://forem.com/wajeehshaikh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/wajeehshaikh"/>
    <language>en</language>
    <item>
      <title>Permission denied to write sitemap.xml</title>
      <dc:creator>Wajeeh Shaikh</dc:creator>
      <pubDate>Wed, 13 Mar 2024 19:02:56 +0000</pubDate>
      <link>https://forem.com/wajeehshaikh/permission-denied-to-write-sitemapxml-2pj3</link>
      <guid>https://forem.com/wajeehshaikh/permission-denied-to-write-sitemapxml-2pj3</guid>
      <description>&lt;p&gt;I have created a PHP script for my PHP ecommerce website , that whenever I run this script it replaces new sitemap inside sitemap.xml file. this script works great locally but when running this script on live server i got this error:&lt;/p&gt;

&lt;p&gt;{warning: file_put_contents(../sitemap.xml): failed to open stream: Permission denied in /var/www/mywwebsite.com/sitemap-maker.php on line 45}&lt;/p&gt;

&lt;p&gt;On local machine its working perfectly on apache/xamp, but on live its creating error which is mentioned above. live web server is: Nginx &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>php</category>
      <category>xml</category>
      <category>website</category>
    </item>
  </channel>
</rss>
