<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHP Tutorials, Lessons, Scripts, Projects, Demos - Atcodex</title>
	<atom:link href="https://atcodex.com/php/feed/" rel="self" type="application/rss+xml" />
	<link>https://atcodex.com/php/</link>
	<description>Achieve financial success without sacrificing well-being! AtCodex provides actionable strategies for managing money, time, and personal growth—all in one place.</description>
	<lastBuildDate>Thu, 30 Jan 2025 10:37:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://atcodex.com/wp-content/uploads/2020/05/cropped-New-Project-1-32x32.png</url>
	<title>PHP Tutorials, Lessons, Scripts, Projects, Demos - Atcodex</title>
	<link>https://atcodex.com/php/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>The Richest Woman In The United States (2025)</title>
		<link>https://atcodex.com/php/the-richest-woman-in-the-united-states-2025/</link>
		
		<dc:creator><![CDATA[atcodex]]></dc:creator>
		<pubDate>Thu, 02 Jan 2025 10:32:00 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://atcodex.com/?p=50970</guid>

					<description><![CDATA[<p>Introduction Who is the richest woman in the United States in 2025? While many associate wealth with tech moguls and business tycoons, this year’s wealthiest woman has a compelling story &#8230; </p>
<p>The post <a href="https://atcodex.com/php/the-richest-woman-in-the-united-states-2025/">The Richest Woman In The United States (2025)</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Introduction</h3>



<p>Who is the richest woman in the United States in 2025? While many associate wealth with tech moguls and business tycoons, this year’s wealthiest woman has a compelling story of innovation, strategy, and perseverance. Let&#8217;s dive into her journey, sources of wealth, and the financial strategies that set her apart.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>1. Background and Early Life</strong></h3>



<p>Success leaves clues, and understanding her background can provide insights into the mindset and circumstances that shaped her financial empire.</p>



<p><strong>Key Takeaway:</strong> Early exposure to business, financial literacy, and perseverance played a crucial role in her journey.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>2. Primary Source of Wealth</strong></h3>



<p>From tech entrepreneurship to <a href="https://atcodex.com/wealth/10-simple-frugal-habits-for-middle-class-people-to-build-wealth/">finance</a>, the wealthiest woman in the U.S. has built her fortune through a combination of industries.</p>



<p><strong>Key Takeaway:</strong> Diversification and innovation have been central to her financial success.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>3. Smart Investment Strategies</strong></h3>



<p>She didn’t just earn money—she made her money work for her. Smart investment strategies, including stocks, real estate, and startups, have contributed to her immense wealth.</p>



<p><strong>Actionable Tip:</strong> Focus on long-term investments and asset diversification.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>4. Business Ventures &amp; Acquisitions</strong></h3>



<p>Her business empire spans multiple industries. Strategic acquisitions and partnerships have accelerated her financial growth.</p>



<p><strong>Key Takeaway:</strong> Scaling businesses and acquiring valuable assets are critical in building lasting wealth.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>5. Philanthropy &amp; Influence</strong></h3>



<p>Beyond wealth accumulation, she is known for her philanthropic efforts, investing in education, healthcare, and entrepreneurship.</p>



<p><strong>Actionable Tip:</strong> True wealth includes giving back and creating a lasting legacy.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>6. Lessons from Her Success</strong></h3>



<ul class="wp-block-list">
<li><strong>Resilience:</strong> Overcoming financial setbacks and adapting to changing markets.</li>



<li><strong>Continuous Learning:</strong> Staying ahead through innovation and industry insights.</li>



<li><strong>Networking &amp; Influence:</strong> Building valuable relationships in business and finance.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading"><strong>Conclusion</strong></h3>



<p>The richest woman in the United States in 2025 didn’t just inherit wealth—she built it strategically. Her story provides key lessons for anyone aiming to achieve financial success.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p></p>
<p>The post <a href="https://atcodex.com/php/the-richest-woman-in-the-united-states-2025/">The Richest Woman In The United States (2025)</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>10 Benefits of Apples: A Delicious and Nutritious Fruit</title>
		<link>https://atcodex.com/php/10-benefits-of-apples-a-delicious-and-nutritious-fruit/</link>
		
		<dc:creator><![CDATA[atcodex]]></dc:creator>
		<pubDate>Tue, 11 Jul 2023 16:54:17 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://atcodex.com/?p=1629</guid>

					<description><![CDATA[<p>Apples have long been cherished for their delightful taste and remarkable nutritional value, captivating palates and benefiting individuals for centuries. These fruits, packed with fiber, vitamin C, and a plethora &#8230; </p>
<p>The post <a href="https://atcodex.com/php/10-benefits-of-apples-a-delicious-and-nutritious-fruit/">10 Benefits of Apples: A Delicious and Nutritious Fruit</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Apples have long been cherished for their delightful taste and remarkable nutritional value, captivating palates and benefiting individuals for centuries. These fruits, packed with fiber, vitamin C, and a plethora of antioxidants, offer not only a delightful eating experience but also an array of health advantages that have been well-established over time.</p>



<p><strong>Discover the 10 most prominent benefits that apples bring to the table:</strong></p>



<ol class="wp-block-list">
<li><strong>Aid in Weight Loss:</strong> The high fibre content of apples plays a pivotal role in promoting satiety and a sense of fullness after consumption. Moreover, apples contain pectin, a soluble fibre known to support weight loss efforts. In fact, a study published in the esteemed journal Appetite revealed that individuals who consumed apples prior to a meal consumed significantly fewer calories, experienced reduced hunger pangs, and had fewer cravings.                                                                                             </li>



<li><strong>Support Cardiovascular Health:</strong> Apples possess soluble fiber, which has been proven to help lower cholesterol levels, consequently supporting heart health. These fruits are also rich in antioxidants, which play a vital role in shielding the heart from potential damage. A noteworthy study published in The American Journal of Clinical Nutrition demonstrated that apple consumption was associated with a reduced risk of heart disease. Moreover, the study found that apples helped mitigate arterial inflammation, further safeguarding cardiovascular well-being.</li>



<li><strong>Lower the Risk of Diabetes:</strong> Consuming apples has been consistently linked to a decreased risk of type 2 diabetes. The fiber and antioxidants found in apples aid in regulating blood sugar levels. An illuminating study published in the esteemed journal Diabetes Care discovered that individuals who regularly consumed apples had a significantly lower risk of developing type 2 diabetes. Furthermore, the study demonstrated that apple consumption led to improved insulin sensitivity.</li>



<li><strong>Promote Gut Health:</strong> Pectin, a type of fiber present in apples, serves as a prebiotic in the gut microbiome. In essence, it acts as nourishment for the beneficial bacteria in your gut, contributing to overall gastrointestinal well-being. An intriguing study published in the prestigious journal Nature discovered that apple pectin supplementation enhanced the abundance of beneficial gut bacteria while simultaneously reducing gut inflammation.</li>



<li><strong>Reduce the Risk of Cancer:</strong> Apples contain a rich assortment of antioxidants that fortify cells against potential damage, thereby lowering the risk of certain types of cancer. A compelling study published in Cancer Prevention Research unveiled that apple extract effectively safeguarded cells against harm induced by free radicals. Furthermore, the study observed that apple extract hindered the growth of cancer cells, emphasizing the potential cancer-fighting properties of apples.</li>



<li><strong>Alleviate Asthma Symptoms:</strong> The antioxidants present in apples contribute to a reduction in airway inflammation, providing relief for individuals with asthma and supporting improved breathing. A study published in the esteemed journal Nutrition and Metabolism reported that apple extract successfully diminished airway inflammation in individuals with asthma. Additionally, the study noted that apple extract enhanced lung function.</li>



<li><strong>Protect Brain Health:</strong> The antioxidants in apples act as protective agents against oxidative stress-induced damage to the brain, consequently reducing the risk of conditions such as Alzheimer&#8217;s disease. An enlightening study published in the renowned journal Neurology revealed that regular apple consumption correlated with a lower risk of developing Alzheimer&#8217;s disease. Furthermore, the study highlighted the apples&#8217; positive impact on cognitive function.</li>



<li><strong>Enhance Mental Well-being: </strong>Apples have been associated with improved mental health, possibly due to their antioxidant content, which shields the brain from potential damage. A study published in the esteemed journal Nutritional Neuroscience illustrated that apple extract improved cognitive function in individuals with mild cognitive impairment. Additionally, the study revealed that the consumption of apple extract contributed to a reduction in anxiety and depression symptoms.</li>



<li><strong>Aid in Digestive Health:</strong> With their fiber content, apples play a crucial role in maintaining a healthy digestive system. Additionally, they may help decrease the risk of gastroesophageal reflux disease (GERD). A study published in the prestigious journal Gastroenterology found that apple extract effectively alleviated GERD symptoms while also improving gut motility.</li>



<li><strong>Versatile and Delightful: </strong>Apples truly stand out as a versatile and delectable fruit, offering countless possibilities for consumption. They can be relished fresh, cooked, juiced, or integrated into various recipes, making them a delightful addition to any culinary experience. Whether consumed as a standalone snack, incorporated into salads or desserts, or pressed into refreshing juices, apples provide an unparalleled level of versatility and gustatory pleasure.</li>
</ol>



<p>In conclusion, apples remain a timeless fruit renowned for their delectable flavour and remarkable nutritional profile. From promoting weight loss and supporting heart health to reducing the risk of diabetes, cancer, and asthma, these fruits continue to offer a diverse range of health benefits. Furthermore, apples aid in maintaining optimal brain function, mental well-being, digestive health, and overall vitality. With their versatility and widespread appeal, it&#8217;s no wonder that apples have remained a beloved fruit for generations.</p>
<p>The post <a href="https://atcodex.com/php/10-benefits-of-apples-a-delicious-and-nutritious-fruit/">10 Benefits of Apples: A Delicious and Nutritious Fruit</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Benefits of Ginger</title>
		<link>https://atcodex.com/php/benefits-of-ginger/</link>
		
		<dc:creator><![CDATA[atcodex]]></dc:creator>
		<pubDate>Sun, 09 Jul 2023 15:49:45 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://atcodex.com/?p=1625</guid>

					<description><![CDATA[<p>it has shown that ginger can help reduce inflammation in the gut, improve nutrient absorption, and alleviate symptoms of gastrointestinal distress. Anti-Inflammatory Properties Ginger contains potent anti-inflammatory compounds called gingerols. &#8230; </p>
<p>The post <a href="https://atcodex.com/php/benefits-of-ginger/">Benefits of Ginger</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>it has shown that ginger can help reduce inflammation in the gut, improve nutrient absorption, and alleviate symptoms of gastrointestinal distress.</p>



<p><strong>Anti-Inflammatory Properties</strong></p>



<p> Ginger contains potent anti-inflammatory compounds called gingerols. These compounds have been found to reduce inflammation in the body, which can help alleviate symptoms of arthritis, muscle soreness, and other inflammatory conditions.</p>



<p><strong>Enhanced Immune Function </strong></p>



<p>The immune-boosting properties of ginger can help strengthen your body&#8217;s defense mechanisms. Regular consumption of ginger has been associated with a reduced risk of infections, improved respiratory health, and enhanced immune response.</p>



<p><strong>Relief from Nausea and Motion</strong></p>



<p> Sickness Ginger has long been used as a natural remedy for nausea and motion sickness. It can effectively alleviate symptoms such as dizziness, vomiting, and cold sweats associated with these conditions.</p>



<p><strong>Lowered Blood Sugar Levels</strong></p>



<p> Research suggests that ginger may help regulate blood sugar levels by increasing insulin sensitivity and improving glucose metabolism. This can be beneficial for individuals with diabetes or those at risk of developing the condition.</p>



<p><strong>Reduced Menstrual Pain </strong></p>



<p>Ginger has been traditionally used to relieve menstrual pain and cramps. Its anti-inflammatory properties and ability to reduce prostaglandin production can help alleviate discomfort and reduce the severity of menstrual symptoms.</p>



<p><strong>Improved Brain Function</strong></p>



<p> Several studies have indicated that ginger may have neuroprotective effects and improve cognitive function. Its antioxidant properties and ability to reduce oxidative stress in the brain may contribute to enhanced memory, attention, and overall brain health.</p>



<p><strong>Cardiovascular Health Support</strong></p>



<p> Ginger has been shown to have beneficial effects on heart health. It can help lower blood pressure, reduce cholesterol levels, and prevent the formation of blood clots, thereby reducing the risk of heart disease and stroke.</p>



<p><strong>Potential Cancer Prevention</strong></p>



<p> Some research suggests that the bioactive compounds in ginger may have anti-cancer properties. Studies have shown that ginger extracts can inhibit the growth of certain cancer cells and reduce inflammation associated with cancer development.</p>



<p><strong>Weight Management Aid </strong></p>



<p>Ginger may assist in weight management by boosting metabolism and reducing appetite. It can increase calorie expenditure and fat oxidation, potentially aiding in weight loss efforts when combined with a healthy diet and regular exercise.</p>



<p>Incorporating ginger into your daily routine can offer numerous health benefits. However, it&#8217;s important to note that individual responses may vary, and it&#8217;s always best to consult with a healthcare professional before making any significant changes to your diet or lifestyle.</p>



<p></p>
<p>The post <a href="https://atcodex.com/php/benefits-of-ginger/">Benefits of Ginger</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>19 ways to earn money online from home in 2023</title>
		<link>https://atcodex.com/php/19-ways-to-earn-money-online-from-home-in-2023/</link>
		
		<dc:creator><![CDATA[atcodex]]></dc:creator>
		<pubDate>Mon, 27 Mar 2023 16:56:10 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://atcodex.com/?p=1568</guid>

					<description><![CDATA[<p>The post <a href="https://atcodex.com/php/19-ways-to-earn-money-online-from-home-in-2023/">19 ways to earn money online from home in 2023</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<ol class="wp-block-list">
<li>Online surveys &#8211; You can sign up for websites that pay you to take surveys and share your opinions on products and services.</li>



<li>Virtual assistance &#8211; If you have administrative skills, you can work as a virtual assistant for businesses and individuals who need help with tasks such as data entry, email management, and scheduling.</li>



<li>Freelance writing &#8211; You can write articles, blog posts, and other content for clients on a freelance basis.</li>



<li>Online tutoring &#8211; If you have expertise in a subject, you can tutor students online through websites and platforms like Chegg and TutorMe.</li>



<li>Social media management &#8211; If you&#8217;re skilled in social media marketing, you can manage social media accounts for businesses and individuals.</li>



<li>Online data entry &#8211; You can work as a data entry operator for companies that need help with processing and organizing data.</li>



<li>Affiliate marketing &#8211; You can promote other people&#8217;s products and services and earn a commission for each sale made through your unique affiliate link.</li>



<li>Online transcription &#8211; You can transcribe audio and video content for clients who need their content converted into written form.</li>



<li>Website or app testing &#8211; You can test websites and apps for companies and provide feedback on their usability and functionality.</li>



<li>Online language teaching &#8211; If you&#8217;re proficient in a language, you can teach it to students online through websites and platforms like iTalki and Verbling.</li>



<li>Dropshipping &#8211; You can start an online store and use dropshipping to sell products without holding inventory.</li>



<li>Selling digital products &#8211; You can create and sell digital products like ebooks, courses, and printables.</li>



<li>Online bookkeeping &#8211; If you have accounting skills, you can offer bookkeeping services to businesses online.</li>



<li>Online editing and proofreading &#8211; You can edit and proofread written content for clients who need their work to be error-free.</li>



<li>Graphic design &#8211; If you&#8217;re skilled in graphic design, you can offer design services to businesses and individuals online.</li>



<li>Stock trading &#8211; You can invest in stocks and earn <a href="https://atcodex.com/wealth/10-simple-frugal-habits-for-middle-class-people-to-build-wealth/">money</a> through buying and selling shares online.</li>



<li>Web development &#8211; If you have coding skills, you can offer web development services to clients who need websites or web applications.</li>



<li>Online coaching &#8211; You can offer coaching services on a particular topic or skill through online platforms like Coach.me.</li>



<li>Online video creation &#8211; You can create and sell videos for clients who need video content for their businesses or personal use.</li>
</ol>
<p>The post <a href="https://atcodex.com/php/19-ways-to-earn-money-online-from-home-in-2023/">19 ways to earn money online from home in 2023</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PHP substr_count() Function</title>
		<link>https://atcodex.com/php/php-substr_count-function/</link>
		
		<dc:creator><![CDATA[atcodex]]></dc:creator>
		<pubDate>Sat, 09 Oct 2021 09:18:43 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://atcodex.com/?p=1543</guid>

					<description><![CDATA[<p>The substr_count() function counts the number of times a substring occurs in a string. The substr_count() is a built-in function in PHP and is used to count the number of times a &#8230; </p>
<p>The post <a href="https://atcodex.com/php/php-substr_count-function/">PHP substr_count() Function</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>The substr_count() function counts the number of times a substring occurs in a string.</p>



<p>The <strong>substr_count()</strong> is a built-in function in PHP and is used to count the number of times a substring occurs in a given string. The function also provides us with an option to search for the given substring in a given range of the index. It is case sensitive, i.e., “abc” substring is not present in the string “Abcab”. If the (start+length) value specified for search exceeds the size of the passed string, it returns a warning message to the user.</p>



<p>This function provides the facility to calculate that how many times a substring has occurred in the main string? It also provides an option to search a substring in a given range of the index. If the start and length values, which are specified for search are greater than the passed string, then it returns a warning to the user. <strong>PHP 4</strong> and <strong>above versions</strong> support this function.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;?php
echo substr_count("Hello world. The world is nice","world");
?></pre>



<pre class="wp-block-code"><code>Output
2
</code></pre>



<h2 class="wp-block-heading">Recommended Posts For You</h2>



<ul class="wp-block-list"><li><a href="https://atcodex.com/laravel/laravel-substrcount-function/" target="_blank" rel="noreferrer noopener">Laravel substrCount() function</a></li></ul>
<p>The post <a href="https://atcodex.com/php/php-substr_count-function/">PHP substr_count() Function</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Capture Screenshot of a Website Using PHP</title>
		<link>https://atcodex.com/how-to/how-to-capture-screenshot-of-a-website-using-php/</link>
		
		<dc:creator><![CDATA[atcodex]]></dc:creator>
		<pubDate>Thu, 30 Sep 2021 06:28:17 +0000</pubDate>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://atcodex.com/?p=1493</guid>

					<description><![CDATA[<p>Sometime we need to capture the screenshot of a website. In this tutorial we will learn how to capture screenshot of a website using php. We will user ScreenshotLayer to &#8230; </p>
<p>The post <a href="https://atcodex.com/how-to/how-to-capture-screenshot-of-a-website-using-php/">How to Capture Screenshot of a Website Using PHP</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Sometime we need to capture the screenshot of a website. In this tutorial we will learn how to capture screenshot of a website using php. We will user  ScreenshotLayer  to capture screenshot of a website. In this we will use PHP class  <strong>“screenshot.class.php”</strong>. It will send an web request to ScreenshotLayer API to grab the website screenshot in JPG, GIF or PNG formats. </p>



<h2 class="wp-block-heading"><strong>Get ScreenshotLayer API key:</strong></h2>



<p>Now you need the api key to access this class code. Using this api key an HTTP request send to screenshotLayer service to capture the screen. First you have to login to the website and choose the plan as per requirement. after login you will get an API key that you can use further to capture the screenshot of the website.</p>



<p><strong>To get api key SignUp here:</strong><a href="https://screenshotlayer.com/product" target="_blank" rel="noreferrer noopener"> <em>https://screenshotlayer.com/product</em></a></p>



<h2 class="wp-block-heading"><strong>Use ScreenShotLayer Php Class code:</strong></h2>



<p>In the below <strong>screenshot.class.php code</strong>, Just use you own API-KEY in this file and include this file in your screen capture <strong>sample.php</strong> file.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;?php 

class screenShot{ 
    
    //********************************************************* 
    // Settings 
    //********************************************************* 
    
    //Your screenshotLayer API key 
    //Available at https://screenshotlayer.com/product 
    private $apiKey = 'YOUR_API_KEY_HERE'; 
    
    //API endpoint 
    //only needs to change if the API changes location 
    private $endPoint = 'http://api.screenshotlayer.com/api/capture'; 
    
    //Secret Keyword defined in your screenshotLayer dashboard 
    //leave blank if you have not activated this feature 
    private $secretKey = ''; 
    
    //API key/value pair params 
    public $params = array(); 
    
    //response capture 
    public $capture; 
    
    //image info 
    public $imageInfo; 
    
    /* 
    method: class construction 
    usage: screenShot([string url]); 
    params: url = URL to web video 
    
    The screenshotLayer API requires a valid webpage URL to capture. 
    
    returns: null 
    */ 
    public function __construct($url='',$format='PNG'){ 
        
        $this->params['url'] = $url; 
        if( !empty($this->secretKey) ){ 
            
            $secret = md5($url.$this->secretKey); 
            $this->params['secret_key'] = $secret; 
            
        } 
        
    } 
    
    /* 
    method: displayImage 
    usage: displayImage(void); 
    params: none 
    
    This method will write an image tag with the correct request url. 
    Note: this method will not verify the request is to a valid url and 
    will return a broken image if not. 
    
    returns: null 
    */ 
    public function displayImage(){ 
        
        $request = $this->buildRequest(); 
        
        echo '&lt;img src="'.$request.'">'; 
        
    } 
    
    /* 
    method: captureScreen 
    usage: captureScreen(void); 
    params: none 
    
    This method will query the api for the binary code of the captured webpage. 
    
    returns: null 
    */ 
    public function capturePage(){ 
        
        $request = $this->buildRequest(); 
        
        $this->capture = file_get_contents($request); 
        
        $this->imageInfo = getimagesizefromstring($this->capture); 
        
        if( empty($this->imageInfo) ){ 
            
            if( empty($this->capture) ){ 
                
                throw new Exception('An unknown error has occured'); 
                
            }else{ 
                
                $response = json_decode($this->capture); 
                
                throw new Exception($response->error->info); 
                
            } 
            
        } 
        
    } 
    
    /* 
    method: downloadCapture 
    usage: downloadCapture([string fileName='']); 
    params: fileName = The name of the file written to disk 
    
    This method will download the captured image to the client. 
    
    returns: null 
    */ 
    public function downloadCapture($fileName=''){ 
        
        $fileName = ( empty($fileName) ) ? 'capture' : $fileName; 
        
        if( empty($this->capture) ){ 
            
            throw new Exception('No image has been captured'); 
            
        } 
        
        header('Content-Type: '.$this->imageInfo['mime']); 
        header('Content-Disposition: attachment; filename="'.$fileName.'"'); 
        header('Content-Transfer-Encoding: binary'); 
        
        echo $this->capture; 
        
    } 
    
    /* 
    method: displayCapture 
    usage: displayCapture(void); 
    params: none 
    
    This method will display the captured image to the browser. 
    
    returns: null 
    */ 
    public function displayCapture(){ 
        
        if( empty($this->capture) ){ 
            
            throw new Exception('No image has been captured'); 
            
        } 
        
        header('Content-Type: '.$this->imageInfo['mime']); 
        
        echo $this->capture; 
        
    } 
    
    /* 
    method: buildRequest 
    usage: buildRequest(void); 
    params: none 
    
    This method will build the api request url. 
    
    returns: api request url 
    */ 
    public function buildRequest(){ 
        
        if( empty($this->params['url']) ){ 
            
            throw new Exception('API requires URL to video'); 
            
        } 
        
        $request = $this->endPoint.'?access_key='.$this->apiKey; 
        
        foreach( $this->params as $key=>$value ){ 
            
            if( $key == 'url' ){ 
                
                $request .= '&amp;url='.urlencode($value); 
                
            }else{ 
                
                $request .= '&amp;'.$key.'='.$value; 
                
            } 
            
        } 
        
        return $request; 
        
    } 
    
    /* 
    method: setParam 
    usage: setParam(string key, string value); 
    params: key = key of the params key/value pair 
             value = value of the params key/value pair 
    
    add or change the params key/value pair specified. 
    
    returns: null 
    */ 
    public function setParam($key,$value){ 
        
        $this->params[$key] = $value; 
        
    } 
} 
?></pre>



<h2 class="wp-block-heading"><strong>Write PHP code to Capture Screen</strong></h2>



<p>After that use the below mentioend code to capture the screen. Follow below <strong>“sample.php”</strong> file code for this.  we can create an object of the screenshot class by passign the url of the website, which we want to capture. </p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;?php 

//include screenShot class 
include('screenshot.class.php'); 

//use own website url 

$screenShot = new screenShot('https://atcodex.com/'); 

//display html image tag for captured webpage 

$screenShot->displayImage(); 


//$screenShot->capturePage(); 

//$screenShot->downloadCapture('test.png'); 

//$screenShot->displayCapture(); 

?></pre>



<p></p>



<p>Run the code and you will the get screenshot of  the website. <strong>ScreenshotLayer </strong> stores your image for 30 days only untill you capture again.</p>



<p><strong>You can also check complete ScreenshotLayer API documentation here:</strong> <em>https://screenshotlayer.com/documentation</em>. </p>



<p>There are multple tools and library available out there to capture the screenshot of the website. But personally i like this very easy to integrate on any website. </p>



<h2 class="wp-block-heading">Recommended Posts For You</h2>



<p>You can also visit the following related posts </p>



<ul class="wp-block-list"><li><a href="https://atcodex.com/php/jquery-crop-and-resize-an-image-before-upload-using-php/" target="_blank" rel="noreferrer noopener">jQuery crop and resize an image before upload using PHP</a></li><li><a href="https://atcodex.com/how-to/compress-image-before-upload-using-php/" target="_blank" rel="noreferrer noopener">Compress Image Before Upload using PHP</a></li><li><a href="https://atcodex.com/php/saving-an-image-from-url-in-php/" target="_blank" rel="noreferrer noopener">Saving an Image from URL in PHP</a></li></ul>



<p></p>
<p>The post <a href="https://atcodex.com/how-to/how-to-capture-screenshot-of-a-website-using-php/">How to Capture Screenshot of a Website Using PHP</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Add Watermark to Existing PDF using PHP</title>
		<link>https://atcodex.com/php/how-to-add-watermark-to-existing-pdf-using-php/</link>
		
		<dc:creator><![CDATA[atcodex]]></dc:creator>
		<pubDate>Sun, 19 Sep 2021 12:59:10 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PDF]]></category>
		<guid isPermaLink="false">https://atcodex.com/?p=1485</guid>

					<description><![CDATA[<p>PDF (Portable Document Format) is widely a popular file format which we used for variour purpose in online work. Generally, the PDF file is used to share text/image data for &#8230; </p>
<p>The post <a href="https://atcodex.com/php/how-to-add-watermark-to-existing-pdf-using-php/">How to Add Watermark to Existing PDF using PHP</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>PDF (Portable Document Format) is widely a popular file format which we used for variour purpose in online work. </p>



<p> Generally, the PDF file is used to share text/image data for offline use. In the website we generate invoices, reports and other data for interenal use or to client against their used service on the website. In the web application, a PDF file is created with HTML content to make dynamic data available for download.</p>



<p> In this tutorial we will learn how we can easily create PDF documents dynamically and convert HTML content to PDF using PHP.</p>



<p>Some time we need to print specific header and footer in the PDF like company name, date, watermark etc. for example when we get bill from some big comapny in PDF format then most of the time they watermark their PDF with their company name or logo. Same we will learn in today&#8217;s tutorial. Today we will learn how we can add watermark to existing PDF usign PHP.</p>



<p>We can use  <a href="https://atcodex.com/laravel/convert-html-to-pdf-in-laravel-with-dompdf/" target="_blank" rel="noreferrer noopener">Dompdf  </a>to create the PDF from HTML and add the watter in that file but what if we already have PDF generated on our website or somewhere in the system, then if we want to add the watermark or some particular text to that existing PDF, that we can not do with  Dompdf . In this tutorial, we will learn how we can add a watermark to an existing PDF documents<strong> using <a href="https://www.php.net/" target="_blank" rel="noreferrer noopener">PHP</a></strong>.</p>



<p>In this example script, we will use FPDF and FPDI libraries to add watermark images to PDF with PHP. You can add text or image as a watermark to an existing PDF documents using PHP.</p>



<h2 class="wp-block-heading">Install FPDF and FPDI Library</h2>



<p>Run the following command to install FPDF and FPDI library using composer. If you don&#8217;t know how to use composer, please visit <a href="https://getcomposer.org/" target="_blank" rel="noreferrer noopener">https://getcomposer.org/</a></p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">composer require setasign/fpdi-fpdf
</pre>



<p><strong>Note that</strong>: You don’t need to download the FPDF-FPDI library separately, all the required files are included in the source code.</p>



<p>Include autoloader to load FPDI library and helper functions in the PHP file.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">// Load Fpdi library 
use setasign\Fpdi\Fpdi; 
require_once('vendor/autoload.php');</pre>



<h2 class="wp-block-heading">Add Text Watermark to PDF</h2>



<p>The following example code adds&nbsp;<strong>watermark text to the existing PDF</strong>&nbsp;file using PHP.</p>



<ul class="wp-block-list"><li>Specify source PDF file and watermark text.</li><li>Configure text font, weight, and height using PHP <code>imagefontheight()</code> and <code>imagefontwidth()</code> function.</li><li>Create blank image with <code>imagecreatetruecolor()</code> function.</li><li>Set background and font color with <code>imagecolorallocate()</code> function.</li><li>Create image with <code>imagepng()</code> function.</li><li>Initialize Fpdi class and set the source PDF file using <code>setSourceFile()</code> method.</li><li>Add watermark to PDF pages using <code>importPage()</code>, <code>getTemplateSize()</code>, <code>addPage()</code>, <code>useTemplate()</code>, and <code>Image()</code> methods of Fpdi class.</li><li>Render the generated PDF using the <code>Output()</code> function of Fpdi class.</li></ul>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;?php 

// Load Fpdi library 
use setasign\Fpdi\Fpdi; 
require_once('vendor/autoload.php');

// Source file and watermark config 
$file = 'documents/test.pdf'; 
$text = 'atcodex.com'; 
 
// Text font settings 
$name = uniqid(); 
$font_size = 5; 
$opacity = 100; 
$ts = explode("\n", $text); 
$width = 0; 
foreach($ts as $k=>$string){ 
    $width = max($width, strlen($string)); 
} 
$width  = imagefontwidth($font_size)*$width; 
$height = imagefontheight($font_size)*count($ts); 
$el = imagefontheight($font_size); 
$em = imagefontwidth($font_size); 
$img = imagecreatetruecolor($width, $height); 
 
// Background color 
$bg = imagecolorallocate($img, 255, 255, 255); 
imagefilledrectangle($img, 0, 0, $width, $height, $bg); 
 
// Font color settings 
$color = imagecolorallocate($img, 0, 0, 0); 
foreach($ts as $k=>$string){ 
    $len = strlen($string); 
    $ypos = 0; 
    for($i=0;$i&lt;$len;$i++){ 
        $xpos = $i * $em; 
        $ypos = $k * $el; 
        imagechar($img, $font_size, $xpos, $ypos, $string, $color); 
        $string = substr($string, 1);       
    } 
} 
imagecolortransparent($img, $bg); 
$blank = imagecreatetruecolor($width, $height); 
$tbg = imagecolorallocate($blank, 255, 255, 255); 
imagefilledrectangle($blank, 0, 0, $width, $height, $tbg); 
imagecolortransparent($blank, $tbg); 
$op = !empty($opacity)?$opacity:100; 
if ( ($op &lt; 0) OR ($op >100) ){ 
    $op = 100; 
} 
 
// Create watermark image 
imagecopymerge($blank, $img, 0, 0, 0, 0, $width, $height, $op); 
imagepng($blank, $name.".png"); 
 
// Set source PDF file 
$pdf = new Fpdi(); 
if(file_exists("./".$file)){ 
    $pagecount = $pdf->setSourceFile($file); 
}else{ 
    die('Source PDF not found!'); 
} 
 
// Add watermark to PDF pages 
for($i=1;$i&lt;=$pagecount;$i++){ 
    $tpl = $pdf->importPage($i); 
    $size = $pdf->getTemplateSize($tpl); 
    $pdf->addPage(); 
    $pdf->useTemplate($tpl, 1, 1, $size['width'], $size['height'], TRUE); 
     
    //Put the watermark 
    $xxx_final = ($size['width']-50); 
    $yyy_final = ($size['height']-25); 
    $pdf->Image($name.'.png', $xxx_final, $yyy_final, 0, 0, 'png'); 
} 
@unlink($name.'.png'); 
 
// Output PDF with watermark 
$pdf->Output();</pre>



<h2 class="wp-block-heading">Add Image Watermark to PDF </h2>



<p>The following example code adds a&nbsp;<strong>watermark image to an existing PDF</strong>&nbsp;file using PHP.</p>



<ul class="wp-block-list"><li>Specify source PDF file and watermark image.</li><li>Initialize Fpdi class and set the source PDF file using <code>setSourceFile()</code> method.</li><li>Add watermark image to PDF pages using <code>importPage()</code>, <code>getTemplateSize()</code>, <code>addPage()</code>, <code>useTemplate()</code>, and <code>Image()</code> methods of Fpdi class.</li><li>Render the generated PDF with watermark using the <code>Output()</code> function of Fpdi class.</li></ul>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">
&lt;?php 

// Load Fpdi library 
use setasign\Fpdi\Fpdi; 
require_once('vendor/autoload.php');

// Source file and watermark config 
$file = 'documents/Proposal.pdf'; 
$text_image = 'images/logo.png'; 
 
// Set source PDF file 
$pdf = new Fpdi(); 
if(file_exists("./".$file)){ 
    $pagecount = $pdf->setSourceFile($file); 
}else{ 
    die('Source PDF not found!'); 
} 
 
// Add watermark image to PDF pages 
for($i=1;$i&lt;=$pagecount;$i++){ 
    $tpl = $pdf->importPage($i); 
    $size = $pdf->getTemplateSize($tpl); 
    $pdf->addPage(); 
    $pdf->useTemplate($tpl, 1, 1, $size['width'], $size['height'], TRUE); 
     
    //Put the watermark 
    $xxx_final = ($size['width']-60); 
    $yyy_final = ($size['height']-25); 
    $pdf->Image($text_image, $xxx_final, $yyy_final, 0, 0, 'png'); 
} 
 
// Output PDF with watermark 
$pdf->Output();</pre>



<h2 class="wp-block-heading">Output PDF with Watermark</h2>



<p><strong>Output()</strong>  is a default method to output the final PDF in the browser.  You can directly save and downloa dthe generated PDF by using some parameters in the Output() method.<br><strong>First Parameter:</strong></p>



<ul class="wp-block-list"><li><code>I</code>&nbsp;– (default) Output PDF to browser.</li><li><code>D</code>&nbsp;– Download PDF file.</li><li><code>F</code>&nbsp;– Save PDF to the local file.</li></ul>



<p><strong>Second Parameter:</strong><br>Specify the file name of the PDF to download.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">// Output to browser 
$pdf->Output(); 
 
// Download PDF file 
$pdf->Output('D', 'my-document.pdf'); 
 
// Save PDF to local file 
$pdf->Output('F', 'my-document.pdf');</pre>



<p>Hope this tutorial solved your problem. For more about, how to convert html to PDF using dompdf you can simply visit below link.</p>



<p>You can also check </p>



<p><a href="https://atcodex.com/laravel/convert-html-to-pdf-in-laravel-with-dompdf/" target="_blank" rel="noreferrer noopener">Convert HTML to PDF in Laravel with Dompdf</a></p>



<p><a href="https://atcodex.com/php/count-the-number-of-pages-in-a-pdf/" target="_blank" rel="noreferrer noopener">How to Count The Number of Pages in a PDF file</a></p>



<p><a href="https://atcodex.com/php/how-to-generate-pdf-file-using-php-and-mpdf-library/" target="_blank" rel="noreferrer noopener">How to generate PDF file using PHP and MPDF library</a></p>



<p><a href="https://atcodex.com/php/how-to-convert-pdf-to-jpeg-image-using-php/" target="_blank" rel="noreferrer noopener">How to Convert PDF to JPEG Image using PHP</a></p>
<p>The post <a href="https://atcodex.com/php/how-to-add-watermark-to-existing-pdf-using-php/">How to Add Watermark to Existing PDF using PHP</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How To Increase Automatic Logout Time In phpMyAdmin</title>
		<link>https://atcodex.com/php/how-to-increase-automatic-logout-time-in-phpmyadmin/</link>
		
		<dc:creator><![CDATA[atcodex]]></dc:creator>
		<pubDate>Sun, 12 Sep 2021 04:54:14 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://atcodex.com/?p=1467</guid>

					<description><![CDATA[<p>In this tutorial, we will learn how to increase automatic logout time in the PHPMyAdmin. PHPMyAdmin is an open-source web-based application that provides a graphical interface for MySQL or MariaDB &#8230; </p>
<p>The post <a href="https://atcodex.com/php/how-to-increase-automatic-logout-time-in-phpmyadmin/">How To Increase Automatic Logout Time In phpMyAdmin</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, we will learn how to increase automatic logout time in the PHPMyAdmin.  PHPMyAdmin is an open-source web-based application that provides a graphical interface for MySQL or MariaDB databases. We all have been using PHPMyAdmin since we have started working with MySQL. it provides easy user interface for work on. </p>



<p>Sometimes we would have noticed that in  PHPMyAdmin we automatically logouts after some idle time. And then we need to again log in to use the system. Default idle time to log out is around 1440 seconds in PHPMyAdmin and you will see the error message of &#8221; <strong>No activity within 1440 seconds; please log in again.</strong> &#8221; Below is the screenshot for the same.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="449" height="511" src="https://atcodex.com/wp-content/uploads/2021/09/automatic-logout-1.png" alt="" class="wp-image-1472" srcset="https://atcodex.com/wp-content/uploads/2021/09/automatic-logout-1.png 449w, https://atcodex.com/wp-content/uploads/2021/09/automatic-logout-1-264x300.png 264w" sizes="(max-width: 449px) 100vw, 449px" /></figure>



<p>When this kind of screen appears so you need to log in to continue work on PHPMyAdmin. When this happens again and again then it becomes very irritating and sometimes hampers the work. </p>



<p>In order to bypass this issue, we have to increase the logout time in the PHPMyAdmin panel.</p>



<p>We can achieve this by following simple steps;</p>



<p>First open /etc/phpmyadmin/config.inc.php setting file to nano editor. You can open the file with the below command.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo nano /etc/phpmyadmin/config.inc.php</pre>



<p>And search for the below line or word using shortcut&nbsp;<strong>CTRL + W</strong>.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">['LoginCookieValidity']</pre>



<p>If you did not find the above line, you need to add the below mentioned line in the file, or if you found the above line just edit that as given below.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">$cfg['LoginCookieValidity'] = 43200; // 24 hours</pre>



<p>The&nbsp;<strong>$cfg[&#8216;LoginCookieValidity&#8217;]</strong>&nbsp;defines how many seconds login cookie is valid.  You can set it as per your convenience if you want to increase the logout time more you can simply put the higher value there.</p>



<p>Now save and exit the file. You also need to check the PHP configuration option&nbsp;<strong>session.gc_maxlifetime</strong>&nbsp;at least or more than the value of&nbsp;<strong>$cfg[&#8216;LoginCookieValidity&#8217;]</strong>. So, you might need to set the&nbsp;<strong>session.gc_maxlifetime</strong>&nbsp;n&nbsp;<strong>/etc/php/8.0/apache2/php.ini</strong>&nbsp;configuration file in Ubuntu.</p>



<p><strong>Note</strong>:&nbsp;You may be using a different version than 8.0. So your path should be like&nbsp;<strong>/etc/php/&lt;version.subversion&gt;/apache2/php.ini</strong></p>



<p>To check which php.ini file exactly using, create info.php file in /var/www/html and print fileinfo() function.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">phpinfo();</pre>



<p>Now open&nbsp;<strong>http://localhost/info.php</strong>&nbsp;in the browser and search for the line&nbsp;<strong>Loaded Configuration File</strong>.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="933" height="26" src="https://atcodex.com/wp-content/uploads/2021/09/how-to-increase-automatic-logout-time-in-phpmyadmin.png" alt="" class="wp-image-1468" srcset="https://atcodex.com/wp-content/uploads/2021/09/how-to-increase-automatic-logout-time-in-phpmyadmin.png 933w, https://atcodex.com/wp-content/uploads/2021/09/how-to-increase-automatic-logout-time-in-phpmyadmin-300x8.png 300w, https://atcodex.com/wp-content/uploads/2021/09/how-to-increase-automatic-logout-time-in-phpmyadmin-768x21.png 768w, https://atcodex.com/wp-content/uploads/2021/09/how-to-increase-automatic-logout-time-in-phpmyadmin-600x17.png 600w" sizes="(max-width: 933px) 100vw, 933px" /></figure>



<p>If you don&#8217;t want to change this file, you may change the php.ini configuration runtime for phpMyAdmin only. PHP allows to change configurations using&nbsp;<strong>ini_set()</strong>&nbsp;function.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">$session_timeout = 43200; // 24 hours
ini_set('session.gc_maxlifetime', $session_timeout);
$cfg['LoginCookieValidity'] = $session_timeout;</pre>



<p>So, this way you can change the automatic logout time in phpMyAdmin. I hope this tutorial will help you find a solution.</p>



<p>You can check other tutorials related to PHPMyAdmin </p>



<p><a href="https://atcodex.com/how-to/how-to-import-csv-file-into-phpmyadmin/" target="_blank" rel="noreferrer noopener">How to import CSV file into PHPMyAdmin</a></p>



<p><a href="https://atcodex.com/cpanel/how-to-back-up-a-mysql-database-in-cpanel/" target="_blank" rel="noreferrer noopener">How to Back Up a MySQL Database in cPanel</a></p>



<p></p>



<p></p>
<p>The post <a href="https://atcodex.com/php/how-to-increase-automatic-logout-time-in-phpmyadmin/">How To Increase Automatic Logout Time In phpMyAdmin</a> appeared first on <a href="https://atcodex.com">AtCodex: Empowering Your Financial Journey &amp; Personal Well-Being</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
