<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>PHPOnlineSupport - Recent questions and answers in General</title>
<link>http://phponlinesupport.com/qa/general</link>
<description>Powered by Portrave Solutions Pvt. Ltd.</description>
<item>
<title>Answered: How to solve warning error on php?</title>
<link>http://phponlinesupport.com/412/how-to-solve-warning-error-on-php?show=451#a451</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#202124; font-family:arial, sans-serif&quot;&gt;A warning error in PHP does not stop the script from running. It only warns you that there is a problem,&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://gbplusmod.com/download-fm-whatsapp-apk/&quot;&gt;&lt;span style=&quot;color:#ffffff&quot;&gt;&lt;span style=&quot;font-family:arial, sans-serif&quot;&gt;FMWhatsapp&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/412/how-to-solve-warning-error-on-php?show=451#a451</guid>
<pubDate>Fri, 05 Aug 2022 11:33:28 +0000</pubDate>
</item>
<item>
<title>Answered: The server requested authentication method unknown to the client</title>
<link>http://phponlinesupport.com/435/the-server-requested-authentication-method-unknown-client?show=437#a437</link>
<description>

&lt;div class=&quot;s-prose js-post-body&quot; itemprop=&quot;text&quot;&gt;

&lt;p&gt;Just change your cpanel password and it will work.&lt;/p&gt;&lt;/div&gt;

&lt;p&gt;If the option checkbox for updating the mysql password is also present , check that also while updating the cpanel password.&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/435/the-server-requested-authentication-method-unknown-client?show=437#a437</guid>
<pubDate>Wed, 16 Feb 2022 12:43:36 +0000</pubDate>
</item>
<item>
<title>Answered: How to format date and time in Day.js</title>
<link>http://phponlinesupport.com/427/how-to-format-date-and-time-in-day-js?show=428#a428</link>
<description>Take a look at&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://day.js.org/docs/en/display/format&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://day.js.org/docs/en/display/format&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Not sure what the problem is. You need to explain if there is a specific problem, then only we can help.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/427/how-to-format-date-and-time-in-day-js?show=428#a428</guid>
<pubDate>Wed, 26 Jan 2022 20:44:44 +0000</pubDate>
</item>
<item>
<title>Answered: DataTables help unknown parameter for row</title>
<link>http://phponlinesupport.com/425/datatables-help-unknown-parameter-for-row?show=426#a426</link>
<description>Either you are not retrieving value for that said field.&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
You are not returning value for that field from your render function.&lt;br /&gt;
&lt;br /&gt;
as a solution overall, you may add a default content wit the code like this&lt;br /&gt;
&lt;br /&gt;
{ &amp;quot;defaultContent&amp;quot;: &amp;quot;-&amp;quot;, &amp;quot;targets&amp;quot;: &amp;quot;_all&amp;quot; }</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/425/datatables-help-unknown-parameter-for-row?show=426#a426</guid>
<pubDate>Wed, 26 Jan 2022 20:00:55 +0000</pubDate>
</item>
<item>
<title>Answered: php get text after character</title>
<link>http://phponlinesupport.com/423/php-get-text-after-character?show=424#a424</link>
<description>

&lt;pre class=&quot;line-numbers language-php&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;delimiter important token&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class=&quot;token variable&quot;&gt;$my_string&lt;/span&gt; &lt;span class=&quot;operator token&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;single-quoted-string string token&quot;&gt;'yourSomeText.AND another'&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;keyword token&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;function token&quot;&gt;substr&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;my_string&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;function token&quot;&gt;strrpos&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;token variable&quot;&gt;$&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;&lt;code class=&quot;language-php&quot;&gt;&lt;span class=&quot;language-php php token&quot;&gt;&lt;span class=&quot;token variable&quot;&gt;my_string&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;single-quoted-string string token&quot;&gt;'.'&lt;/span&gt; &lt;span class=&quot;punctuation token&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;operator token&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;number token&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;operator token&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;double-quoted-string string token&quot;&gt;&quot;\n&quot;&lt;/span&gt;&lt;span class=&quot;punctuation token&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;delimiter important token&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/423/php-get-text-after-character?show=424#a424</guid>
<pubDate>Sun, 23 Jan 2022 20:25:15 +0000</pubDate>
</item>
<item>
<title>Answered: What are the different types of PHP variables?</title>
<link>http://phponlinesupport.com/418/what-are-the-different-types-of-php-variables?show=419#a419</link>
<description>

&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; line-height: 1.7; word-break: break-word; color: rgb(74, 74, 74); font-family: &amp;quot;Open Sans&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;There are 8&amp;nbsp;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;data types&lt;/span&gt;&amp;nbsp;in PHP which are used to construct the variables:&lt;/span&gt;&lt;/p&gt;

&lt;ol style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; margin-bottom:1rem; margin-top:0px&quot;&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Integers&lt;/span&gt;&amp;nbsp;− are whole numbers, without a decimal point, like 4195.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Doubles&lt;/span&gt;&amp;nbsp;− are floating-point numbers, like 3.14159 or 49.1.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Booleans&lt;/span&gt;&amp;nbsp;− have only two possible values either true or false.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;NULL&lt;/span&gt;&amp;nbsp;− is a special type that only has one value: NULL.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Strings&lt;/span&gt;&amp;nbsp;− are sequences of characters, like ‘PHP supports string operations.’&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Arrays&lt;/span&gt;&amp;nbsp;− are named and indexed collections of other values.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Objects&lt;/span&gt;&amp;nbsp;− are instances of programmer-defined classes, which can package up both other kinds of values and functions that are specific to the class.&lt;/span&gt;&lt;/li&gt;

&lt;li style=&quot;box-sizing: border-box; text-align: justify;&quot;&gt;&lt;span style=&quot;box-sizing:border-box&quot;&gt;&lt;span style=&quot;box-sizing:border-box; font-weight:bolder&quot;&gt;Resources&lt;/span&gt;&amp;nbsp;− are special variables that hold references to resources external to PHP.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/418/what-are-the-different-types-of-php-variables?show=419#a419</guid>
<pubDate>Fri, 29 Oct 2021 10:06:08 +0000</pubDate>
</item>
<item>
<title>Answered: What is PEAR in PHP?</title>
<link>http://phponlinesupport.com/414/what-is-pear-in-php?show=417#a417</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;PEAR is a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-weight:bolder; text-align:justify&quot;&gt;framework&lt;/span&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;&amp;nbsp;and repository for reusable PHP components. PEAR stands for&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-weight:bolder; text-align:justify&quot;&gt;PHP Extension and Application Repository&lt;/span&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;. It contains all types of PHP code snippets and libraries. It also provides a command line interface to install “packages” automatically.&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/414/what-is-pear-in-php?show=417#a417</guid>
<pubDate>Fri, 29 Oct 2021 09:57:37 +0000</pubDate>
</item>
<item>
<title>Answered: What is the meaning of ‘escaping to PHP’</title>
<link>http://phponlinesupport.com/415/what-is-the-meaning-of-escaping-to-php?show=416#a416</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;The PHP parsing engine needs a way to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-weight:bolder; text-align:justify&quot;&gt;differentiate&lt;/span&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;&amp;nbsp;PHP code from other elements in the page. The mechanism for doing so is known as ‘escaping to PHP’. Escaping a string means to reduce&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing:border-box; color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; font-weight:bolder; text-align:justify&quot;&gt;ambiguity&lt;/span&gt;&lt;span style=&quot;color:#4a4a4a; font-family:&amp;quot;Open Sans&amp;quot;,sans-serif; text-align:justify&quot;&gt;&amp;nbsp;in quotes used in that string.&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/415/what-is-the-meaning-of-escaping-to-php?show=416#a416</guid>
<pubDate>Fri, 29 Oct 2021 09:55:07 +0000</pubDate>
</item>
<item>
<title>PHP: Can PHP cURL retrieve response headers AND body in a single request?</title>
<link>http://phponlinesupport.com/413/php-can-curl-retrieve-response-headers-body-single-request</link>
<description></description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/413/php-can-curl-retrieve-response-headers-body-single-request</guid>
<pubDate>Fri, 29 Oct 2021 09:44:18 +0000</pubDate>
</item>
<item>
<title>How notice error displayed on php program?</title>
<link>http://phponlinesupport.com/411/how-notice-error-displayed-on-php-program</link>
<description></description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/411/how-notice-error-displayed-on-php-program</guid>
<pubDate>Mon, 04 Oct 2021 04:17:03 +0000</pubDate>
</item>
<item>
<title>Answered: Disable firefox startup popup update notification</title>
<link>http://phponlinesupport.com/404/disable-firefox-startup-popup-update-notification?show=408#a408</link>
<description>

&lt;div class=&quot;content&quot;&gt;

&lt;p&gt;Check this pref on the &lt;strong&gt;about:config&lt;/strong&gt; page:&lt;/p&gt;

&lt;ul&gt;

&lt;li&gt;app.update.doorhanger = false&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/404/disable-firefox-startup-popup-update-notification?show=408#a408</guid>
<pubDate>Wed, 29 Sep 2021 19:14:37 +0000</pubDate>
</item>
<item>
<title>Answered: How to delete an ArduinoJson nested key</title>
<link>http://phponlinesupport.com/406/how-to-delete-an-arduinojson-nested-key?show=407#a407</link>
<description>

&lt;p&gt;If you are using the v5 of ArduinoJson&lt;/p&gt;

&lt;p&gt;doc[&lt;span class=&quot;pl-s&quot;&gt;&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;H&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;].remove(&lt;span class=&quot;pl-s&quot;&gt;&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;J&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;);&lt;/p&gt;

&lt;p&gt;If you are using the v6 of ArduinoJson&lt;/p&gt;

&lt;pre&gt;JsonObject&amp;amp; hobj = root[&lt;span class=&quot;pl-s&quot;&gt;&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;H&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;];
hobj.remove(&lt;span class=&quot;pl-s&quot;&gt;&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;J&lt;span class=&quot;pl-pds&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;);&lt;/pre&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/406/how-to-delete-an-arduinojson-nested-key?show=407#a407</guid>
<pubDate>Wed, 29 Sep 2021 18:37:25 +0000</pubDate>
</item>
<item>
<title>Answered: What is the difference between public, private, and protected?</title>
<link>http://phponlinesupport.com/378/what-is-the-difference-between-public-private-and-protected?show=379#a379</link>
<description>

&lt;ul&gt;

&lt;li&gt;&lt;strong&gt;Public&lt;/strong&gt; scope to make that property/method available from anywhere, other classes and instances of the object.&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;Private&lt;/strong&gt; scope when you want your property/method to be visible in its own class only.&lt;/li&gt;

&lt;li&gt;&lt;strong&gt;Protected&lt;/strong&gt; scope when you want to make your property/method visible in all classes that extend current class including the parent class.&lt;/li&gt;&lt;/ul&gt;

&lt;div&gt;&lt;/div&gt;

&lt;div&gt;&lt;/div&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/378/what-is-the-difference-between-public-private-and-protected?show=379#a379</guid>
<pubDate>Fri, 04 Jun 2021 04:48:03 +0000</pubDate>
</item>
<item>
<title>Answered: Google ReCaptcha is active but not preventing spam</title>
<link>http://phponlinesupport.com/366/google-recaptcha-is-active-but-not-preventing-spam?show=367#a367</link>
<description>

&lt;p&gt;&lt;span style=&quot;font-size:16px&quot;&gt;&lt;span style=&quot;font-family:Times New Roman,Times,serif&quot;&gt;You can add a honeypot on you form. A honeypot is a field added to the form that the users can’t see due to CSS or JavaScript (which hides the field). When a spam bot comes to a form, it fills out EVERY input field, but it ignores the CSS code. This is the behavior we can exploit. You would create a regular form input field with HTML (this will be the honeypot field). The spam bot will see the field, but you’ll use JavaScript to hide the field from users. If the honeypot field is empty, the Javascript code would submit the form. On the other hand, if the honeypot field has data, you know it could only have been filled out by a spam bot.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/366/google-recaptcha-is-active-but-not-preventing-spam?show=367#a367</guid>
<pubDate>Wed, 02 Jun 2021 11:32:46 +0000</pubDate>
</item>
<item>
<title>Answered: What database actually FACEBOOK uses?</title>
<link>http://phponlinesupport.com/163/what-database-actually-facebook-uses?show=365#a365</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#073763; font-family:&amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size:17px&quot;&gt;Facebook primarily uses MySQL for structured data&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#073763; font-family:&amp;quot;Trebuchet MS&amp;quot;,sans-serif; font-size:17px&quot;&gt;storage such as wall posts, user information, timeline etc. &amp;nbsp;This data is replicated between their various data centers.&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/163/what-database-actually-facebook-uses?show=365#a365</guid>
<pubDate>Wed, 02 Jun 2021 10:02:18 +0000</pubDate>
</item>
<item>
<title>Answered: Change Fetched Date format in View</title>
<link>http://phponlinesupport.com/362/change-fetched-date-format-in-view?show=364#a364</link>
<description>In date format function use F for Full month Display.&lt;br /&gt;
&lt;br /&gt;
$date = &amp;quot;12-12-2015&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
echo date(&amp;quot;F d, Y&amp;quot;, strtotime($date));</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/362/change-fetched-date-format-in-view?show=364#a364</guid>
<pubDate>Wed, 02 Jun 2021 08:54:24 +0000</pubDate>
</item>
<item>
<title>Answered: How to Redirect Non-www to www URLs using htaccess  ?</title>
<link>http://phponlinesupport.com/348/how-to-redirect-non-www-to-www-urls-using-htaccess?show=356#a356</link>
<description>

&lt;p&gt;&lt;span style=&quot;font-size:16px&quot;&gt;You need to add&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;pre style=&quot;box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgb(226, 232, 240); font-size: 14px; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; margin-top: 10px; margin-bottom: 10px; overflow: auto; color: rgb(40, 45, 45);&quot;&gt;&lt;span style=&quot;font-size:16px&quot;&gt;RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
&lt;/span&gt;&lt;/pre&gt;

&lt;p style=&quot;box-sizing: border-box; border-width: 0px; border-style: solid; border-color: rgb(226, 232, 240); overflow-wrap: break-word; margin: 0px; color: rgb(40, 45, 45); font-family: &amp;quot;DM Sans&amp;quot;; font-size: 14px;&quot;&gt;&lt;span style=&quot;font-size:16px&quot;&gt;in &lt;strong&gt;.htaccess&lt;/strong&gt; file. Note that you must put the above lines somewhere after&amp;nbsp;&lt;strong style=&quot;border-color:#e2e8f0; border-style:solid; border-width:0px; box-sizing:border-box; letter-spacing:-0.4px; overflow-wrap:break-word&quot;&gt;RewriteEngine On&lt;/strong&gt;&amp;nbsp;line.&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/348/how-to-redirect-non-www-to-www-urls-using-htaccess?show=356#a356</guid>
<pubDate>Wed, 26 May 2021 12:11:22 +0000</pubDate>
</item>
<item>
<title>Answered: Difference between get and post on php</title>
<link>http://phponlinesupport.com/350/difference-between-get-and-post-on-php?show=355#a355</link>
<description>

&lt;p&gt;&lt;span style=&quot;font-size:16px&quot;&gt;&lt;span style=&quot;color:#222222; font-family:&amp;quot;Source Sans Pro&amp;quot;,Arial,sans-serif&quot;&gt;GET method is used to appends form data to the URL in name or value pair.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#000000; font-family:Arial,Verdana,Tahoma; text-align:justify&quot;&gt;The page and the encoded information are separated by the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#000000; font-family:Arial,Verdana,Tahoma; font-weight:640; text-align:justify&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color:#000000; font-family:Arial,Verdana,Tahoma; text-align:justify&quot;&gt;&amp;nbsp;character.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:#000000; font-family:Arial,Verdana,Tahoma; text-align:justify&quot;&gt;&lt;span style=&quot;font-size:16px&quot;&gt;The POST method transfers information via HTTP headers. The information is encoded as described in case of GET method and put into a header called QUERY_STRING.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/350/difference-between-get-and-post-on-php?show=355#a355</guid>
<pubDate>Wed, 26 May 2021 04:38:32 +0000</pubDate>
</item>
<item>
<title>Answered: reCAPTCHA problem ''Please complete the anti-spam verification''</title>
<link>http://phponlinesupport.com/351/recaptcha-problem-please-complete-anti-spam-verification?show=354#a354</link>
<description>

&lt;p&gt;It may due to server permission issue.&amp;nbsp;&lt;span style=&quot;color:#383838; font-family:Open Sans, Helvetica, Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size:17px&quot;&gt;For some security reasons, in shared hosting account allow_url_fopen is disabled by default. You need to check phpinfo(); if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#383838; font-family:&amp;quot;Open Sans&amp;quot;,Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;allow_url_fopen&lt;/span&gt;&lt;span style=&quot;color:#383838; font-family:&amp;quot;Open Sans&amp;quot;,Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;&amp;nbsp; is off then&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#383838; font-family:&amp;quot;Open Sans&amp;quot;,Helvetica,Arial,sans-serif; font-size:17px&quot;&gt;modify the custom php.ini file as&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color:#e4e6e8; color:#242729; font-family:ui-monospace,&amp;quot;Cascadia Mono&amp;quot;,&amp;quot;Segoe UI Mono&amp;quot;,&amp;quot;Liberation Mono&amp;quot;,Menlo,Monaco,Consolas,monospace; font-size:13px; white-space:pre-wrap&quot;&gt;allow_url_fopen = On&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/351/recaptcha-problem-please-complete-anti-spam-verification?show=354#a354</guid>
<pubDate>Wed, 26 May 2021 04:18:33 +0000</pubDate>
</item>
<item>
<title>Answered: Why no site links listed on google search?</title>
<link>http://phponlinesupport.com/334/why-no-site-links-listed-on-google-search?show=335#a335</link>
<description>Google does not show sitelinks for all websites. The fact that it may decide to show sitelinks when users search for your domain name or for particular queries, it’s a signal of google trust.&lt;br /&gt;
&lt;br /&gt;
You cannot directly specify which pages Google should use as sitelinks. They are chosen automatically by the Google algorithm based on the user query.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/334/why-no-site-links-listed-on-google-search?show=335#a335</guid>
<pubDate>Fri, 13 Dec 2019 03:49:05 +0000</pubDate>
</item>
<item>
<title>Answered: Adblocker blocking WP blog images</title>
<link>http://phponlinesupport.com/332/adblocker-blocking-wp-blog-images?show=333#a333</link>
<description>Check if there are any probable blacklisted words in the url your blog images. There could be probably words like &amp;quot;ad&amp;quot;, &amp;quot;ads&amp;quot; or &amp;quot;300x200&amp;quot; or something like that, which could resemble an ad image. Replacing this would solve the issue as well.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/332/adblocker-blocking-wp-blog-images?show=333#a333</guid>
<pubDate>Mon, 18 Nov 2019 15:29:00 +0000</pubDate>
</item>
<item>
<title>Answered: Scan QR code using a samsung phone</title>
<link>http://phponlinesupport.com/329/scan-qr-code-using-a-samsung-phone?show=330#a330</link>
<description>You can do it using Bixby Vision on your phone (if its after the s7 series)&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
If your Galaxy device doesn't support Bixby Vision, you are still able to scan QR Codes however this will be directly through Samsung Internet or Samsung Internet (Beta). Usually the Samsung Internet application is pre-installed on later Galaxy devices however if you have uninstalled this app or you are unable to locate this app within your apps tray, you can easily download it from the Google PlayStore.&lt;br /&gt;
&lt;br /&gt;
Samsung Internet makes separate QR code reader apps totally irrelevant. Samsung's browser includes a QR code reader directly in-app, which makes scanning website QR codes a breeze. Just enable &amp;quot;QR code reader&amp;quot; in the Extensions menu, then tap the three dots to access &amp;quot;Scan QR Code&amp;quot; at any time.&lt;br /&gt;
&lt;br /&gt;
You will need to enable the &amp;nbsp;QR code scanner from the extensions of the internet browser.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/329/scan-qr-code-using-a-samsung-phone?show=330#a330</guid>
<pubDate>Thu, 14 Nov 2019 06:25:03 +0000</pubDate>
</item>
<item>
<title>Answered: Mailchimp automatic feed mailing with custom design</title>
<link>http://phponlinesupport.com/323/mailchimp-automatic-feed-mailing-with-custom-design?show=328#a328</link>
<description>Solution for your issue is to make a custom feed with the whole HTML needed for your newsletter and pass it as a feed to the mailchimp. Note that the mailchimp processor will strip the html tags if not instructed not to do so. Passing contents through feed within a CDATA tag would do the trick, which will bypass the mailchimp processor. See below example data that should be passed in the description section of a feed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;![CDATA[&lt;br /&gt;
&lt;br /&gt;
Your full custom html (full newsletter html) here...&lt;br /&gt;
&lt;br /&gt;
]]&amp;gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/323/mailchimp-automatic-feed-mailing-with-custom-design?show=328#a328</guid>
<pubDate>Wed, 13 Nov 2019 06:40:52 +0000</pubDate>
</item>
<item>
<title>Answered: Notification popups that can allow intractions on page</title>
<link>http://phponlinesupport.com/324/notification-popups-that-can-allow-intractions-on-page?show=327#a327</link>
<description>Use Pnotify&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://sciactive.com/pnotify/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://sciactive.com/pnotify/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It is good for your requirement here.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/324/notification-popups-that-can-allow-intractions-on-page?show=327#a327</guid>
<pubDate>Wed, 13 Nov 2019 03:49:07 +0000</pubDate>
</item>
<item>
<title>Answered: View hidden folders Mac</title>
<link>http://phponlinesupport.com/325/view-hidden-folders-mac?show=326#a326</link>
<description>Here is the shortcut for Mac. Go to the root folder and press the keys&lt;br /&gt;
&lt;br /&gt;
Command + Shift + . (dot)</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/325/view-hidden-folders-mac?show=326#a326</guid>
<pubDate>Sun, 10 Nov 2019 09:23:15 +0000</pubDate>
</item>
<item>
<title>Answered: Strange “1” displayed at the end of a php print_r ?</title>
<link>http://phponlinesupport.com/311/strange-1-displayed-at-the-end-of-a-php-printr?show=312#a312</link>
<description>Remove the echo before print_r&lt;br /&gt;
&lt;br /&gt;
the print_r is supposed to return true/false which is displayed as 1 with the echo.&lt;br /&gt;
&lt;br /&gt;
So you only need the following.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo '&amp;lt;pre&amp;gt;'&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print_r($validation-&amp;gt;getErrorFields());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo '&amp;lt;/pre&amp;gt;'</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/311/strange-1-displayed-at-the-end-of-a-php-printr?show=312#a312</guid>
<pubDate>Mon, 19 Nov 2018 22:29:07 +0000</pubDate>
</item>
<item>
<title>Answered: Proper http to https redirect without harm to SEO</title>
<link>http://phponlinesupport.com/299/proper-http-to-https-redirect-without-harm-to-seo?show=300#a300</link>
<description>Try this for a complete site wide redirect to HTTPS:// &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
RewriteEngine On &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
RewriteCond %{HTTPS} off &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
All older pages should be caught under this rule. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Also remember to update your Search Console profiles, sitemap etc&lt;br /&gt;
&lt;br /&gt;
Update any hard-coded links or blocking rules you might have in your robots.txt that might still be pointing to HTTP directories or files.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/299/proper-http-to-https-redirect-without-harm-to-seo?show=300#a300</guid>
<pubDate>Thu, 06 Sep 2018 16:04:33 +0000</pubDate>
</item>
<item>
<title>Answered: Page execution time</title>
<link>http://phponlinesupport.com/288/page-execution-time?show=289#a289</link>
<description>If what you are looking for is the wall-clock time, rather than the CPU execution time, then here is simple code to calculate: &lt;br /&gt;
&lt;br /&gt;
Place this at the top of your page&lt;br /&gt;
&lt;br /&gt;
$time_start &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;= microtime(true);&lt;br /&gt;
&lt;br /&gt;
and this at the very bottom of that page.&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;Process took &amp;quot;. number_format(microtime(true) - $time_start, 2). &amp;quot; seconds.&amp;lt;/b&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
and thats it!</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/288/page-execution-time?show=289#a289</guid>
<pubDate>Thu, 19 Jul 2018 22:42:25 +0000</pubDate>
</item>
<item>
<title>Answered: How to extract domain name from a url</title>
<link>http://phponlinesupport.com/285/how-to-extract-domain-name-from-a-url?show=287#a287</link>
<description>function cleanURL($url)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$url = preg_replace(&amp;quot;/(^(http(s)?:\/\/|www\.))?(www\.)?([a-z-\.0-9]+)/&amp;quot;,&amp;quot;$5&amp;quot;, trim($url));&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(preg_match(&amp;quot;/^([a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,6})/&amp;quot;, $url, $domain)){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $domain[1];&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else return &amp;quot;not valid domain or subdomain&amp;quot;.$url;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/285/how-to-extract-domain-name-from-a-url?show=287#a287</guid>
<pubDate>Tue, 17 Jul 2018 20:41:14 +0000</pubDate>
</item>
<item>
<title>Answered: preg_replace non sensitive</title>
<link>http://phponlinesupport.com/283/pregreplace-non-sensitive?show=284#a284</link>
<description>$find =&amp;quot;/$this_exp/i&amp;quot;; //note the i for insensitive</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/283/pregreplace-non-sensitive?show=284#a284</guid>
<pubDate>Mon, 16 Jul 2018 22:06:53 +0000</pubDate>
</item>
<item>
<title>Answered: php find exact match in string?</title>
<link>http://phponlinesupport.com/280/php-find-exact-match-in-string?show=281#a281</link>
<description>Use the regex&lt;br /&gt;
&lt;br /&gt;
$wildcard = &amp;quot;india&amp;quot;;&lt;br /&gt;
$string = 'Bala Ji Karnal, India';&lt;br /&gt;
&lt;br /&gt;
if (preg_match(&amp;quot;/\b&amp;quot;.$wildcard.&amp;quot;\b/i&amp;quot;, $string))&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo &amp;quot;Got it!&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo &amp;quot;No match found!&amp;quot;;&lt;br /&gt;
}</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/280/php-find-exact-match-in-string?show=281#a281</guid>
<pubDate>Mon, 05 Mar 2018 18:01:24 +0000</pubDate>
</item>
<item>
<title>Answered: What is difference between abstract class and interface classes?</title>
<link>http://phponlinesupport.com/265/what-difference-between-abstract-class-interface-classes?show=266#a266</link>
<description>


&lt;p&gt;Google and you will find it. This is not a question to answer, but to learn yourself as all others do.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interface&lt;/strong&gt; : An interface does not contain any code,it contain only declaration of&amp;nbsp;&amp;nbsp;&amp;nbsp; methods,properties,events. Interfaces allow us to code which specifies which methods a class must have implement . Interfaces defines with the word interface . All methods in interfaces must be public
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;strong&gt; e.g&lt;/strong&gt; :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; interface myItem
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void Id();
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string description();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string Runtest(int testnumber);
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&lt;strong&gt;Abstract class&lt;/strong&gt; : Abstract classes are look like interfaces.Abstract classes may contain code although it may also have abstract method that do not have code. Abstract classes defines only signature of the method ,not implementation.&amp;nbsp; The child class which inherit the abstarct class must define all the abstarct methods of its parent class .
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt;&amp;nbsp; e.g&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abstract class myItem
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abstract protected function gettheitem();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abstract protected function settheitem();
&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/265/what-difference-between-abstract-class-interface-classes?show=266#a266</guid>
<pubDate>Tue, 02 Jan 2018 04:28:23 +0000</pubDate>
</item>
<item>
<title>Answered: In PHP using Ternary Operator without the Else statement</title>
<link>http://phponlinesupport.com/252/in-php-using-ternary-operator-without-the-else-statement?show=257#a257</link>
<description>You cannot, it requires 3 parts for that shortcut if:else</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/252/in-php-using-ternary-operator-without-the-else-statement?show=257#a257</guid>
<pubDate>Tue, 01 Aug 2017 11:06:37 +0000</pubDate>
</item>
<item>
<title>Answered: How to log all GET POST data to a file?</title>
<link>http://phponlinesupport.com/248/how-to-log-all-get-post-data-to-a-file?show=249#a249</link>
<description>Just do&lt;br /&gt;
&lt;br /&gt;
file_put_contents('savedata.txt', file_get_contents('php://input'));&lt;br /&gt;
&lt;br /&gt;
and make sure the file have sufficient ownership and permissions on the server.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/248/how-to-log-all-get-post-data-to-a-file?show=249#a249</guid>
<pubDate>Tue, 18 Jul 2017 07:05:00 +0000</pubDate>
</item>
<item>
<title>Answered: Replace all last occurrence of characters of string</title>
<link>http://phponlinesupport.com/45/replace-all-last-occurrence-of-characters-of-string?show=246#a246</link>
<description>


&lt;p&gt;Please try &lt;strong&gt;preg_replace('/-*$/', '', $var);&lt;/strong&gt;&lt;/p&gt;
</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/45/replace-all-last-occurrence-of-characters-of-string?show=246#a246</guid>
<pubDate>Wed, 31 May 2017 05:53:26 +0000</pubDate>
</item>
<item>
<title>Answered: What is phalcon php?</title>
<link>http://phponlinesupport.com/126/what-is-phalcon-php?show=245#a245</link>
<description>Phalcon is a full stack PHP framework based on the MVC pattern. It's implemented as web server extension written in C.&lt;br /&gt;
For more info please refer the following links&lt;br /&gt;
&lt;a href=&quot;https://www.sitepoint.com/phalconphp-yet-another-php-framework/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://www.sitepoint.com/phalconphp-yet-another-php-framework/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://phalconphp.com/en/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://phalconphp.com/en/&lt;/a&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/126/what-is-phalcon-php?show=245#a245</guid>
<pubDate>Tue, 30 May 2017 07:00:22 +0000</pubDate>
</item>
<item>
<title>Answered: xampp version 1.7.4 to configure oracle 12c instance client but not connecting.</title>
<link>http://phponlinesupport.com/239/xampp-version-configure-oracle-instance-client-connecting?show=240#a240</link>
<description>Here is the solution&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-084410.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-084410.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Your problem I guess, you would have downloaded the 64-bit version of Oracle instant client, and php seems to be working only with the 32-bit.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/239/xampp-version-configure-oracle-instance-client-connecting?show=240#a240</guid>
<pubDate>Fri, 19 May 2017 04:14:29 +0000</pubDate>
</item>
<item>
<title>Answered: php noobs question</title>
<link>http://phponlinesupport.com/237/php-noobs-question?show=238#a238</link>
<description>


&lt;p&gt;When you submit that form, $_POST is always set, same in case of $_POST[&quot;mailid&quot;]&lt;/p&gt;

&lt;p&gt;The variable is set, but it is blank. So you need to check if it is blank also.&lt;/p&gt;

&lt;pre&gt;if (isset($_POST[&quot;mailid&quot;]) &amp;amp;&amp;amp; !empty($_POST[&quot;mailid&quot;])) {
    echo &quot;Yes, mailid was submitted&quot;;
}else{  
    echo &quot;No, mailid was not submitted&quot;;
}&lt;/pre&gt;
</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/237/php-noobs-question?show=238#a238</guid>
<pubDate>Tue, 16 May 2017 17:58:55 +0000</pubDate>
</item>
<item>
<title>What is Magento 1.x Load and Performance?</title>
<link>http://phponlinesupport.com/232/what-is-magento-1-x-load-and-performance</link>
<description>


&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:rgb(62, 62, 62); font-family:graphik,helvetica,arial,sans-serif; font-size:16px&quot;&gt;I am new to Magento. I have developed the Magento connector for 1.x version. It has the functionality to export the Sale Order &amp;amp; customer datas bulk with huge data and daily basis. So I want to test my connector with bulk data movement with huge datas in Sale Order table. I have good configuration hosted server and mysql, So can I load or generate huge order data into magento. Please guide the direction to load the huge data.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;color:rgb(62, 62, 62); font-family:graphik,helvetica,arial,sans-serif; font-size:16px&quot;&gt;Thanks&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style=&quot;font-family:helvetica neue,helvetica,arial,sans-serif; font-size:14px&quot;&gt;I didn't find the right solution from the internet.&lt;/span&gt;&lt;/p&gt;
</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/232/what-is-magento-1-x-load-and-performance</guid>
<pubDate>Thu, 06 Apr 2017 14:38:29 +0000</pubDate>
</item>
<item>
<title>Answered: IOT and PHP?</title>
<link>http://phponlinesupport.com/123/iot-and-php?show=228#a228</link>
<description>Sorry, not for Arduino programming. But may be for API creations and all related with Arduino.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/123/iot-and-php?show=228#a228</guid>
<pubDate>Sat, 25 Mar 2017 03:44:07 +0000</pubDate>
</item>
<item>
<title>Answered: Fix the magic quotes deprecated in php 7</title>
<link>http://phponlinesupport.com/212/fix-the-magic-quotes-deprecated-in-php-7?show=213#a213</link>
<description>


&lt;p&gt;use addslashes() for every $GET and $POST variable. It does the same manually what magic_quotes switched on did with all $GET and $POST variables. But i really guess its less work to use mysqli with mysqli_real_escape_string or better, prepared statements :)&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://php.net/manual/de/function.addslashes.php&quot;&gt;http://php.net/manual/de/function.addslashes.php&lt;/a&gt;&lt;/p&gt;
</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/212/fix-the-magic-quotes-deprecated-in-php-7?show=213#a213</guid>
<pubDate>Tue, 14 Feb 2017 10:12:38 +0000</pubDate>
</item>
<item>
<title>Answered: How to modify PHP Source Code</title>
<link>http://phponlinesupport.com/207/how-to-modify-php-source-code?show=208#a208</link>
<description>Library for Analyzing and Modifying PHP Source Code &lt;a href=&quot;http://jmsyst.com/libs/php-manipulator&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://jmsyst.com/libs/php-manipulator&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Please rate me up if this helps.&lt;br /&gt;
&lt;br /&gt;
Thank you.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/207/how-to-modify-php-source-code?show=208#a208</guid>
<pubDate>Thu, 09 Feb 2017 11:47:48 +0000</pubDate>
</item>
<item>
<title>Answered: Raspberry with PHP</title>
<link>http://phponlinesupport.com/205/raspberry-with-php?show=206#a206</link>
<description>There is actually a library written in PHP to interfere with the rasp. Check this out &lt;a href=&quot;https://github.com/ronanguilloux/php-gpio&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://github.com/ronanguilloux/php-gpio&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
All cool stuff, the IOT will take the world in its hands very soon. Good luck!</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/205/raspberry-with-php?show=206#a206</guid>
<pubDate>Thu, 09 Feb 2017 11:42:22 +0000</pubDate>
</item>
<item>
<title>Answered: Email Address Regular Expression</title>
<link>http://phponlinesupport.com/199/email-address-regular-expression?show=200#a200</link>
<description>This is the Regex for PHP, it works 99.99%&lt;br /&gt;
&lt;br /&gt;
/^(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){255,})(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){65,}@)(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22))(?:\.(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\]))$/iD&lt;br /&gt;
&lt;br /&gt;
For more details on these you can see &lt;a href=&quot;http://emailregex.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://emailregex.com/&lt;/a&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/199/email-address-regular-expression?show=200#a200</guid>
<pubDate>Mon, 23 Jan 2017 04:10:09 +0000</pubDate>
</item>
<item>
<title>Answered: Php Soap client add .pem file not working .. SOAP UI process attached for more details</title>
<link>http://phponlinesupport.com/186/soap-client-file-working-soap-process-attached-more-details?show=188#a188</link>
<description>Looks like you need to do a lot of troubleshooting yourself with these. Problems can be anything. There are numerous things to figure out, many will be just related to server. Please go ahead and invest sometime digging this out. Sorry, at present I'm not able to help you with this much.&lt;br /&gt;
&lt;br /&gt;
Good luck bud! and happy coding...</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/186/soap-client-file-working-soap-process-attached-more-details?show=188#a188</guid>
<pubDate>Mon, 28 Nov 2016 03:40:17 +0000</pubDate>
</item>
<item>
<title>Answered: PHP Soap client add .pem file</title>
<link>http://phponlinesupport.com/181/php-soap-client-add-pem-file?show=184#a184</link>
<description>


&lt;p&gt;Simply extend the SoapHeader to create a Wsse compilant authentication:&lt;/p&gt;

&lt;pre&gt;class WsseAuthHeader extends SoapHeader {

private $wss_ns = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';

function __construct($user, $pass, $ns = null) {
    if ($ns) {
        $this-&amp;gt;wss_ns = $ns;
    }

    $auth = new stdClass();
    $auth-&amp;gt;Username = new SoapVar($user, XSD_STRING, NULL, $this-&amp;gt;wss_ns, NULL, $this-&amp;gt;wss_ns); 
    $auth-&amp;gt;Password = new SoapVar($pass, XSD_STRING, NULL, $this-&amp;gt;wss_ns, NULL, $this-&amp;gt;wss_ns);

    $username_token = new stdClass();
    $username_token-&amp;gt;UsernameToken = new SoapVar($auth, SOAP_ENC_OBJECT, NULL, $this-&amp;gt;wss_ns, 'UsernameToken', $this-&amp;gt;wss_ns); 

    $security_sv = new SoapVar(
        new SoapVar($username_token, SOAP_ENC_OBJECT, NULL, $this-&amp;gt;wss_ns, 'UsernameToken', $this-&amp;gt;wss_ns),
        SOAP_ENC_OBJECT, NULL, $this-&amp;gt;wss_ns, 'Security', $this-&amp;gt;wss_ns);
    parent::__construct($this-&amp;gt;wss_ns, 'Security', $security_sv, true);
}
}



$wsse_header = new WsseAuthHeader($username, $password);
$x = new SoapClient('{...}', array(&quot;trace&quot; =&amp;gt; 1, &quot;exception&quot; =&amp;gt; 0));
$x-&amp;gt;__setSoapHeaders(array($wsse_header));

&lt;/pre&gt;

&lt;pre&gt;If you need to use ws-security with a nonce and a timestamp, Peter has posted an update version on http://php.net/manual/en/soapclient.soapclient.php#114976 of which he wrote that it did work for him:&lt;/pre&gt;

&lt;pre&gt;class WsseAuthHeader extends SoapHeader
{
    private $wss_ns = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
    private $wsu_ns = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd';

    function __construct($user, $pass)
    {
        $created    = gmdate('Y-m-d\TH:i:s\Z');
        $nonce      = mt_rand();
        $passdigest = base64_encode(pack('H*', sha1(pack('H*', $nonce) . pack('a*', $created) . pack('a*', $pass))));

        $auth           = new stdClass();
        $auth-&amp;gt;Username = new SoapVar($user, XSD_STRING, NULL, $this-&amp;gt;wss_ns, NULL, $this-&amp;gt;wss_ns);
        $auth-&amp;gt;Password = new SoapVar($pass, XSD_STRING, NULL, $this-&amp;gt;wss_ns, NULL, $this-&amp;gt;wss_ns);
        $auth-&amp;gt;Nonce    = new SoapVar($passdigest, XSD_STRING, NULL, $this-&amp;gt;wss_ns, NULL, $this-&amp;gt;wss_ns);
        $auth-&amp;gt;Created  = new SoapVar($created, XSD_STRING, NULL, $this-&amp;gt;wss_ns, NULL, $this-&amp;gt;wsu_ns);

        $username_token                = new stdClass();
        $username_token-&amp;gt;UsernameToken = new SoapVar($auth, SOAP_ENC_OBJECT, NULL, $this-&amp;gt;wss_ns, 'UsernameToken', $this-&amp;gt;wss_ns);

        $security_sv = new SoapVar(
            new SoapVar($username_token, SOAP_ENC_OBJECT, NULL, $this-&amp;gt;wss_ns, 'UsernameToken', $this-&amp;gt;wss_ns),
            SOAP_ENC_OBJECT, NULL, $this-&amp;gt;wss_ns, 'Security', $this-&amp;gt;wss_ns);
        parent::__construct($this-&amp;gt;wss_ns, 'Security', $security_sv, true);
    }
}&lt;/pre&gt;
</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/181/php-soap-client-add-pem-file?show=184#a184</guid>
<pubDate>Fri, 25 Nov 2016 03:53:37 +0000</pubDate>
</item>
<item>
<title>Answered: Working with cURL as a command line client</title>
<link>http://phponlinesupport.com/161/working-with-curl-as-a-command-line-client?show=162#a162</link>
<description>There are a lot of things that can be done in a command line. If you have a specific question, we can all help you. This is a question answer forum, not really a tutorial blog. Please do a simple google search to know more about command-line usages.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/161/working-with-curl-as-a-command-line-client?show=162#a162</guid>
<pubDate>Sat, 01 Oct 2016 04:30:01 +0000</pubDate>
</item>
<item>
<title>Deactivating Zopim Live Chat on Mobile Devices</title>
<link>http://phponlinesupport.com/155/deactivating-zopim-live-chat-on-mobile-devices</link>
<description>How about deactivating Zopim Live Chat on Mobile Devices?&lt;br /&gt;
&lt;br /&gt;
The problem is that, on mobile phones with really small screens, even the minimized chat bubble can take up a significant portion of valuable screen real estate. If you happen to tap it, the minimize button may actually end up beyond the top of the screen disabling people from accessing your site. To make matters worse, a cookie will keep re-opening the window each time you reload the page.&lt;br /&gt;
&lt;br /&gt;
Does not seem to be a able to do this with CSS</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/155/deactivating-zopim-live-chat-on-mobile-devices</guid>
<pubDate>Tue, 06 Sep 2016 06:29:27 +0000</pubDate>
</item>
<item>
<title>Prevent Google Maps from scrolling with mouseover (mouse wheel actions)</title>
<link>http://phponlinesupport.com/144/prevent-google-maps-scrolling-mouseover-mouse-wheel-actions</link>
<description>


&lt;p&gt;While in the area with an embedded maps iframe using a trackpad or mouse, we get stuck inside the Maps' zooming capabilities by default (automatically), which is really annoying.&lt;/p&gt;

&lt;p&gt;Try it here: &lt;a rel=&quot;nofollow&quot; href=&quot;https://developers.google.com/maps/documentation/embed/guide#overview&quot;&gt;https://developers.google.com/maps/documentation/embed/guide#overview&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Is there a way to disable this?&lt;/p&gt;
</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/144/prevent-google-maps-scrolling-mouseover-mouse-wheel-actions</guid>
<pubDate>Thu, 01 Sep 2016 02:47:57 +0000</pubDate>
</item>
<item>
<title>Read the PDF with PHP</title>
<link>http://phponlinesupport.com/124/read-the-pdf-with-php</link>
<description>We have a list of large PDF file. It has layers for all the things including text boxes of info.&lt;br /&gt;
&lt;br /&gt;
Can we read these files with PHP, search the document for text layers, get their contents and coordinates in the file.&lt;br /&gt;
&lt;br /&gt;
Is there any way to do this via PHP? (Or even Ruby or Python if that's what's necessary)</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/124/read-the-pdf-with-php</guid>
<pubDate>Fri, 19 Aug 2016 11:55:03 +0000</pubDate>
</item>
</channel>
</rss>