<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>PHPOnlineSupport - Recent questions tagged php</title>
<link>http://phponlinesupport.com/tag/php</link>
<description>Powered by Portrave Solutions Pvt. Ltd.</description>
<item>
<title>php get text after character</title>
<link>http://phponlinesupport.com/423/php-get-text-after-character</link>
<description>How to get get text after character in PHP?</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/423/php-get-text-after-character</guid>
<pubDate>Sun, 23 Jan 2022 20:06:52 +0000</pubDate>
</item>
<item>
<title>What are the different types of PHP variables?</title>
<link>http://phponlinesupport.com/418/what-are-the-different-types-of-php-variables</link>
<description></description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/418/what-are-the-different-types-of-php-variables</guid>
<pubDate>Fri, 29 Oct 2021 10:04:29 +0000</pubDate>
</item>
<item>
<title>What is PEAR in PHP?</title>
<link>http://phponlinesupport.com/414/what-is-pear-in-php</link>
<description></description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/414/what-is-pear-in-php</guid>
<pubDate>Fri, 29 Oct 2021 09:52:17 +0000</pubDate>
</item>
<item>
<title>How to solve warning error on php?</title>
<link>http://phponlinesupport.com/412/how-to-solve-warning-error-on-php</link>
<description></description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/412/how-to-solve-warning-error-on-php</guid>
<pubDate>Mon, 04 Oct 2021 04:25:10 +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>What is the difference between public, private, and protected?</title>
<link>http://phponlinesupport.com/378/what-is-the-difference-between-public-private-and-protected</link>
<description>When and why should I use public, private, and protected functions and variables inside a class? What is the difference between them?</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/378/what-is-the-difference-between-public-private-and-protected</guid>
<pubDate>Fri, 04 Jun 2021 04:44:29 +0000</pubDate>
</item>
<item>
<title>Change Fetched Date format in View</title>
<link>http://phponlinesupport.com/362/change-fetched-date-format-in-view</link>
<description>

&lt;p&gt;&lt;span style=&quot;color:#34495e; font-family:Ubuntu,Helvetica,Arial,FreeSans,sans-serif; font-size:12px&quot;&gt;I have a date value from database as 12-12-2015. I want December 12, 2015 as output.&lt;/span&gt;&lt;/p&gt;</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/362/change-fetched-date-format-in-view</guid>
<pubDate>Wed, 02 Jun 2021 07:03:26 +0000</pubDate>
</item>
<item>
<title>Difference between get and post on php</title>
<link>http://phponlinesupport.com/350/difference-between-get-and-post-on-php</link>
<description></description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/350/difference-between-get-and-post-on-php</guid>
<pubDate>Tue, 25 May 2021 11:31:59 +0000</pubDate>
</item>
<item>
<title>How to extract domain name from a url</title>
<link>http://phponlinesupport.com/285/how-to-extract-domain-name-from-a-url</link>
<description>How is it possible to extract a domain name (only) from a url input?&lt;br /&gt;
&lt;br /&gt;
Please help.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/285/how-to-extract-domain-name-from-a-url</guid>
<pubDate>Tue, 17 Jul 2018 15:49:20 +0000</pubDate>
</item>
<item>
<title>php find exact match in string?</title>
<link>http://phponlinesupport.com/280/php-find-exact-match-in-string</link>
<description>php find exact match in string. not just contain words?&lt;br /&gt;
&lt;br /&gt;
ie check if exact &amp;quot;India&amp;quot; inside a string, should not consider &amp;quot;Indiana&amp;quot; or something similiar.&lt;br /&gt;
&lt;br /&gt;
How would you do that?</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/280/php-find-exact-match-in-string</guid>
<pubDate>Mon, 05 Mar 2018 17:57:03 +0000</pubDate>
</item>
<item>
<title>What is difference between abstract class and interface classes?</title>
<link>http://phponlinesupport.com/265/what-difference-between-abstract-class-interface-classes</link>
<description>Can someone tell me in simple words, the actual difference between abstract class and interface classes?</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/265/what-difference-between-abstract-class-interface-classes</guid>
<pubDate>Tue, 02 Jan 2018 04:26:17 +0000</pubDate>
</item>
<item>
<title>In PHP using Ternary Operator without the Else statement</title>
<link>http://phponlinesupport.com/252/in-php-using-ternary-operator-without-the-else-statement</link>
<description>How can I write a conditional statement like this?&lt;br /&gt;
&lt;br /&gt;
$admin = ($user['permissions'] == 'admin') ? true;&lt;br /&gt;
&lt;br /&gt;
Please note that there is no else statement. Is it possible to write this without else?</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/252/in-php-using-ternary-operator-without-the-else-statement</guid>
<pubDate>Mon, 31 Jul 2017 09:19:08 +0000</pubDate>
</item>
<item>
<title>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</link>
<description>I have xampp version 1.7.4 in which my PHP Version 5.3.5 . I am trying to configure oracle 12c instance client but not connecting. Please provide which version of php will support oracle 12c</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/239/xampp-version-configure-oracle-instance-client-connecting</guid>
<pubDate>Thu, 18 May 2017 14:54:11 +0000</pubDate>
</item>
<item>
<title>How to modify PHP Source Code</title>
<link>http://phponlinesupport.com/207/how-to-modify-php-source-code</link>
<description>How can we modify the source code of PHP so that it behaves differently than normal, a great potential I see if it can be done nicely to bring down any attacks and all by the bad guys.</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/207/how-to-modify-php-source-code</guid>
<pubDate>Thu, 09 Feb 2017 11:46:32 +0000</pubDate>
</item>
<item>
<title>Raspberry with PHP</title>
<link>http://phponlinesupport.com/205/raspberry-with-php</link>
<description>Does anyone know is it possible to program a raspberry with the PHP. Would be cool if it could do so!</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/205/raspberry-with-php</guid>
<pubDate>Thu, 09 Feb 2017 11:40:53 +0000</pubDate>
</item>
<item>
<title>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</link>
<description>


&lt;p&gt;Thanks in advance.. I have Attached all images for &amp;nbsp;the process of doing with&amp;nbsp;SOAP UI. I got results with SOAP but same i need to do it with php code.. I have written php code by adding the soap header security multiple ways.&amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=5635919275476046671&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=13664156286378393687&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=14375899661098089229&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=115623201452039446&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=15698906735410660791&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=16993628242934455665&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=8677658012777239544&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=5306561893078605665&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=1237551493923127954&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=79119324465654538&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=111692823044376188&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;http://phponlinesupport.com/?qa=blob&amp;amp;qa_blobid=3710949571373085775&quot; style=&quot;height:337px; width:600px&quot;&gt;&lt;/p&gt;

&lt;p&gt;PHP &amp;nbsp;Code:&lt;/p&gt;

&lt;p&gt;$wsdl = '&lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;http://192.168.5.234:3333/AuthWSSecurity/services/AuthHelloWS?wsdl&quot;&gt;http://192.168.5.234:3333/AuthWSSecurity/services/AuthHelloWS?wsdl&lt;/a&gt;';&amp;nbsp;
&lt;br&gt;$local_cert = 'client_load.pem';&amp;nbsp;
&lt;br&gt;$passphrase = 'password';&amp;nbsp;
&lt;br&gt;$client = new SoapClient($wsdl, array('trace'=&amp;gt;true, 'exceptions'=&amp;gt;true, 'local_cert' =&amp;gt; $local_cert, 'passphrase' =&amp;gt; $passphrase));&amp;nbsp;
&lt;br&gt;$request = array(&amp;nbsp;
&lt;br&gt;&quot;name&quot; =&amp;gt; 'welcome'&amp;nbsp;
&lt;br&gt;);&amp;nbsp;
&lt;br&gt;$results = $client-&amp;gt;authHelloWS($request);&amp;nbsp;
&lt;br&gt;var_dump($results);&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Result:&amp;nbsp;&amp;nbsp;
&lt;br&gt;&lt;strong&gt;Fatal error&lt;/strong&gt;&lt;span style=&quot;color:rgb(0, 0, 0); font-family:times new roman; font-size:medium&quot;&gt;: Uncaught SoapFault exception: [wsse:InvalidSecurity] Missing wsse:Security header in request in D:\wamp\www\soap\test\test_new_soap.php:98 Stack trace: #0 D:\wamp\www\soap\test\test_new_soap.php(98): SoapClient-&amp;gt;__call('authHelloWS', Array) #1 D:\wamp\www\soap\test\test_new_soap.php(98): SoapClient-&amp;gt;authHelloWS(Array) #2 {main} thrown in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;D:\wamp\www\soap\test\test_new_soap.php&lt;/strong&gt;&lt;span style=&quot;color:rgb(0, 0, 0); font-family:times new roman; font-size:medium&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;98&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;
</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/186/soap-client-file-working-soap-process-attached-more-details</guid>
<pubDate>Fri, 25 Nov 2016 08:08:46 +0000</pubDate>
</item>
<item>
<title>PHP Soap client add .pem file</title>
<link>http://phponlinesupport.com/181/php-soap-client-add-pem-file</link>
<description>


&lt;p&gt;$wsdl = 'http://192.168.5.234:3333/AuthWSSecurity/services/AuthHelloWS?wsdl';
&lt;br&gt;$local_cert = 'client_load.pem';
&lt;br&gt;$passphrase = 'password';
&lt;br&gt;$client = new SoapClient($wsdl, array('trace'=&amp;gt;true, 'exceptions'=&amp;gt;true, 'local_cert' =&amp;gt; $local_cert, 'passphrase' =&amp;gt; $passphrase));
&lt;br&gt;$request = array(
&lt;br&gt;&quot;name&quot; =&amp;gt; 'welcome'
&lt;br&gt;);
&lt;br&gt;$results = $client-&amp;gt;authHelloWS($request);
&lt;br&gt;var_dump($results);&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Result:&amp;nbsp;
&lt;br&gt;&lt;strong&gt;Fatal error&lt;/strong&gt;&lt;span style=&quot;color:rgb(0, 0, 0); font-family:times new roman; font-size:medium&quot;&gt;: Uncaught SoapFault exception: [wsse:InvalidSecurity] Missing wsse:Security header in request in D:\wamp\www\soap\test\test_new_soap.php:98 Stack trace: #0 D:\wamp\www\soap\test\test_new_soap.php(98): SoapClient-&amp;gt;__call('authHelloWS', Array) #1 D:\wamp\www\soap\test\test_new_soap.php(98): SoapClient-&amp;gt;authHelloWS(Array) #2 {main} thrown in&amp;nbsp;&lt;/span&gt;&lt;strong&gt;D:\wamp\www\soap\test\test_new_soap.php&lt;/strong&gt;&lt;span style=&quot;color:rgb(0, 0, 0); font-family:times new roman; font-size:medium&quot;&gt;&amp;nbsp;on line&amp;nbsp;&lt;/span&gt;&lt;strong&gt;98&lt;/strong&gt;&lt;/p&gt;
</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/181/php-soap-client-add-pem-file</guid>
<pubDate>Thu, 24 Nov 2016 08:16:38 +0000</pubDate>
</item>
<item>
<title>Working with cURL as a command line client</title>
<link>http://phponlinesupport.com/161/working-with-curl-as-a-command-line-client</link>
<description>The title says it all. Can someone help me for my understanding?</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/161/working-with-curl-as-a-command-line-client</guid>
<pubDate>Sat, 01 Oct 2016 04:24:38 +0000</pubDate>
</item>
<item>
<title>What is phalcon php?</title>
<link>http://phponlinesupport.com/126/what-is-phalcon-php</link>
<description>Can someone tell me what is this Phalcon PHP thing? what is C doing with this PHP thing?</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/126/what-is-phalcon-php</guid>
<pubDate>Fri, 19 Aug 2016 13:27:11 +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>
<item>
<title>IOT and PHP?</title>
<link>http://phponlinesupport.com/123/iot-and-php</link>
<description>Is PHP used for building Internet Of Things (IOT) development like the Python?</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/123/iot-and-php</guid>
<pubDate>Fri, 05 Aug 2016 21:41:20 +0000</pubDate>
</item>
<item>
<title>Install version of PHP Buildpack extension, Phalcon?</title>
<link>http://phponlinesupport.com/116/install-version-of-php-buildpack-extension-phalcon</link>
<description>


&lt;p&gt;I am trying to use PHP Buildpack to use Phalcon extension.&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/cloudfoundry/php-buildpack&quot;&gt;PHP-buildpack &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://phalconphp.com/en/&quot;&gt;Phalcon extension&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I successfully installed Phalcon extension on my Bluemix PHP app, but its version is automatically v1.3.4 Current release is v2.0.5, so I want to install the recent one. I have been trying to find out the solution, but I'm struggling.&lt;/p&gt;

&lt;p&gt;How can I install updated version of Phalcon on my PHP Buildpack?&lt;/p&gt;

&lt;p&gt;(FYI I have compiled .so file for the latest Phalcon extension)&lt;/p&gt;

&lt;p&gt;Thank you!&lt;/p&gt;
</description>
<category>Phalcon</category>
<guid isPermaLink="true">http://phponlinesupport.com/116/install-version-of-php-buildpack-extension-phalcon</guid>
<pubDate>Fri, 29 Jul 2016 03:39:40 +0000</pubDate>
</item>
<item>
<title>Phalcon PHP error handling</title>
<link>http://phponlinesupport.com/115/phalcon-php-error-handling</link>
<description>


&lt;p&gt;When I try to save my model like if( !$myModel-&amp;gt;save() )&lt;/p&gt;

&lt;p&gt;I have to surround in try catch my condition if I want to get the errors messages...&lt;/p&gt;

&lt;p&gt;I can't seem to check if the save() is false, because this will not return the errors.&lt;/p&gt;

&lt;p&gt;How can I do to get $myModels-&amp;gt;getMessages() without using try catch ?&lt;/p&gt;

&lt;p&gt;I want to do like this &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.phalconphp.com/en/latest/reference/models.html#creating-updating-records&quot;&gt;example&lt;/a&gt; and return json_encode if the save doesn't work.&lt;/p&gt;
</description>
<category>Phalcon</category>
<guid isPermaLink="true">http://phponlinesupport.com/115/phalcon-php-error-handling</guid>
<pubDate>Fri, 29 Jul 2016 03:35:18 +0000</pubDate>
</item>
<item>
<title>Replace all last occurrence of characters of string</title>
<link>http://phponlinesupport.com/45/replace-all-last-occurrence-of-characters-of-string</link>
<description>How to replace all last occurrence of specific character of a string? for example if I want to replace all the characters (say &amp;quot;-&amp;quot;) from the end of a sentence?&lt;br /&gt;
&lt;br /&gt;
eg. &amp;quot;Hello world--- This is me----&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I only need the end all &amp;quot;-&amp;quot; characters to be removed, so string will finally be just&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Hello world--- This is me&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Is there a php function like trim() or please suggest how can I do this?</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/45/replace-all-last-occurrence-of-characters-of-string</guid>
<pubDate>Fri, 03 Jun 2016 07:09:25 +0000</pubDate>
</item>
<item>
<title>Help with Slim form</title>
<link>http://phponlinesupport.com/25/help-with-slim-form</link>
<description>


&lt;p&gt;Hi, I'm noob to this framework. Trying new when I get some time in between. Please help me out with the below.&lt;/p&gt;

&lt;p&gt;For posting from a form I do the following&lt;/p&gt;

&lt;pre&gt;&amp;lt;?php
$email = $app-&amp;gt;request-&amp;gt;post('email');
?&amp;gt;
&lt;/pre&gt;

&lt;p&gt;So, how can I post an image into a variable? I mean, how to receive an image from a form?&lt;/p&gt;

&lt;p&gt;Please also let me know if any good tutorials are available for this online?&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;
</description>
<category>Slim</category>
<guid isPermaLink="true">http://phponlinesupport.com/25/help-with-slim-form</guid>
<pubDate>Wed, 25 May 2016 07:03:15 +0000</pubDate>
</item>
<item>
<title>Check where the current time is between a given time limit or not - PHP</title>
<link>http://phponlinesupport.com/14/check-where-the-current-time-between-given-time-limit-not-php</link>
<description>Hi there,&lt;br /&gt;
&lt;br /&gt;
I want to change my website logo to something special on every Friday between night 8PM and 1AM. Theoretically 1AM is on the next day which is Saturday. How to do this with PHP ? Thanks in advance.&lt;br /&gt;
&lt;br /&gt;
- Mike</description>
<category>General</category>
<guid isPermaLink="true">http://phponlinesupport.com/14/check-where-the-current-time-between-given-time-limit-not-php</guid>
<pubDate>Thu, 19 May 2016 12:29:24 +0000</pubDate>
</item>
</channel>
</rss>