<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>WebTalk | Webmaster Forum for Programming, SEO Forums, HTML Forums and More! - PHP</title>
		<link>http://webta.lk/</link>
		<description>PHP Programming Forum discussions and help - This is a forum got PHP coding (Hypertext Preprocessor) discussion.</description>
		<language>en</language>
		<lastBuildDate>Fri, 24 May 2013 14:34:14 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://webta.lk/images/styles/Modern/misc/rss.png</url>
			<title>WebTalk | Webmaster Forum for Programming, SEO Forums, HTML Forums and More! - PHP</title>
			<link>http://webta.lk/</link>
		</image>
		<item>
			<title>Fix for Gallery issues on 4.4.1 servers.</title>
			<link>http://webta.lk/php/95569-fix-gallery-issues-4-4-1-servers.html</link>
			<pubDate>Mon, 20 May 2013 07:25:41 GMT</pubDate>
			<description><![CDATA[As most of you are (or should be!) aware, we've been updating PHP slowly to 4.4.1. This appears to have caused some issues for Gallery users trying...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->As most of you are (or should be!) aware, we've been updating PHP slowly to 4.4.1. This appears to have caused some issues for Gallery users trying to create, edit, or delete an exhibition. The fix is simple, just download the following script and replace the current editor_functions.php file. To download, right click the link and choose &quot;Save As&quot;.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>noahwilson</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95569-fix-gallery-issues-4-4-1-servers.html</guid>
		</item>
		<item>
			<title>Why this code doesnt work?</title>
			<link>http://webta.lk/php/95566-why-code-doesnt-work.html</link>
			<pubDate>Mon, 20 May 2013 06:47:47 GMT</pubDate>
			<description>I have a code that is suppose to display 55 different banners depending on a domain name, and for some reason it works only on the first five sites....</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->I have a code that is suppose to display 55 different banners depending on a domain name, and for some reason it works only on the first five sites. I've checked everything one hundred times, and I am not sure why it does not work. The code outputs the code on a website, but there is no banners displayed. <br />
 <br />
The code is here: <br />
<a href="http://pastebin.com/MXVjz2uB" target="_blank">banners code - Pastebin.com</a><br />
 <br />
Thank you.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>joliett89</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95566-why-code-doesnt-work.html</guid>
		</item>
		<item>
			<title>A Problem with Apache + PHP .</title>
			<link>http://webta.lk/php/95508-problem-apache-php.html</link>
			<pubDate>Thu, 16 May 2013 18:55:28 GMT</pubDate>
			<description><![CDATA[Hi friends, 
 I've installed Apache server (2.0.48) and PHP (4.3.4) and I've encountered this problem when trying to get variables from the address...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hi friends,<br />
 I've installed Apache server (2.0.48) and PHP (4.3.4) and I've encountered this problem when trying to get variables from the address bar (don't know any    other way to describe it). it can't get the id variable from there. i don't know if the problem is with apache settings or php.ini.<br />
   thanks in advance.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>noahwilson</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95508-problem-apache-php.html</guid>
		</item>
		<item>
			<title>syntax error</title>
			<link>http://webta.lk/php/95458-syntax-error.html</link>
			<pubDate>Wed, 15 May 2013 09:33:18 GMT</pubDate>
			<description><![CDATA[Hi there, 
I can't find where I made a mistake, for years... 
$row = "INSERT INTO Student (Name, Surename, StudentID, Generation) VALUES...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hi there,<br />
I can't find where I made a mistake, for years...<br />
$row = &quot;INSERT INTO Student (Name, Surename, StudentID, Generation) VALUES ('$_POST[$student_data[0]]', '$_POST[$student_data[1]]', '$_POST[$student_data<br />
<br />
[2]]', '$_POST[$student_data[3]]')&quot;;<br />
<br />
This is report: Parse error: syntax error, unexpected '[', expecting ']' in<br />
Thanks in advance...<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>noahwilson</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95458-syntax-error.html</guid>
		</item>
		<item>
			<title>How to remove malware from website?</title>
			<link>http://webta.lk/php/95416-how-remove-malware-website.html</link>
			<pubDate>Tue, 14 May 2013 11:53:06 GMT</pubDate>
			<description>Hi friends, 
How to remove malware from my website. please share your suggestion. thanks.</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hi friends,<br />
How to remove malware from my website. please share your suggestion. thanks.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>noahwilson</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95416-how-remove-malware-website.html</guid>
		</item>
		<item>
			<title>which is the best framework for php?</title>
			<link>http://webta.lk/php/95385-best-framework-php.html</link>
			<pubDate>Mon, 13 May 2013 11:50:07 GMT</pubDate>
			<description>Hello Guys 
I am new in Development, so please tell me which is the best framework for php. share your feedback and suggestion. 
 
Thanks</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hello Guys<br />
I am new in Development, so please tell me which is the best framework for php. share your feedback and suggestion.<br />
<br />
Thanks<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>noahwilson</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95385-best-framework-php.html</guid>
		</item>
		<item>
			<title>Why the following code doesnt work?</title>
			<link>http://webta.lk/php/95372-why-following-code-doesnt-work.html</link>
			<pubDate>Mon, 13 May 2013 07:53:55 GMT</pubDate>
			<description><![CDATA[<?php 
$banners = array( 
'' => '', 
'' => '', 
'' => '', 
); 
foreach ($banners as $domain => $banner) { 
 if(stristr($_SERVER['SERVER_NAME'],...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->&lt;?php<br />
$banners = array(<br />
'' =&gt; '',<br />
'' =&gt; '',<br />
'' =&gt; '',<br />
);<br />
foreach ($banners as $domain =&gt; $banner) {<br />
 if(stristr($_SERVER['SERVER_NAME'], $domain)) {<br />
  echo $banner; <br />
  }<br />
 }<br />
?&gt;<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>joliett89</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95372-why-following-code-doesnt-work.html</guid>
		</item>
		<item>
			<title>Which type of keywords we should use?</title>
			<link>http://webta.lk/php/95334-type-keywords-we-should-use.html</link>
			<pubDate>Sat, 11 May 2013 10:50:20 GMT</pubDate>
			<description><![CDATA[Hello friends, 
Which type of keywords we should use for getting backlinks and add in the content for better ranking in SERP's? i want to do SEO of a...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hello friends,<br />
Which type of keywords we should use for getting backlinks and add in the content for better ranking in SERP's? i want to do SEO of a news website. so guide me how choose best keywords for it.<br />
Thanks.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>noahwilson</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95334-type-keywords-we-should-use.html</guid>
		</item>
		<item>
			<title>What is CakePHP?</title>
			<link>http://webta.lk/php/95298-what-cakephp.html</link>
			<pubDate>Fri, 10 May 2013 10:54:21 GMT</pubDate>
			<description>Hello friends, 
Do you know what is Cake PHP?Is it a tool or a framework? 
Please let me know your views..... 
Thanks</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hello friends,<br />
Do you know what is Cake PHP?Is it a tool or a framework?<br />
Please let me know your views.....<br />
Thanks<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>noahwilson</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95298-what-cakephp.html</guid>
		</item>
		<item>
			<title>Inserting dates into a database posted from html form</title>
			<link>http://webta.lk/php/95263-inserting-dates-into-database-posted-html-form.html</link>
			<pubDate>Thu, 09 May 2013 13:29:10 GMT</pubDate>
			<description><![CDATA[Hi team! 
 
I am feeding data into a database using a html form with date text input field. I don't want to enter the current date as what I am...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hi team!<br />
<br />
I am feeding data into a database using a html form with date text input field. I don't want to enter the current date as what I am recording happened in the previous but I still need to calculate the number of days, months and years since the event occured. I have writen the following code to insert date into the database table:<br />
<br />
<b>$event_date=mysql_real_escape_string($_POST['date']);<br />
$event_date=date('Y-m-d,strtotime($event_date));<br />
$insert_date=maysql_query(&quot;insert into table_name(date_field)VALUES('$event_date')&quot;;</b><br />
<br />
surpringly, the insert query is inserting 0000-00-00.  The user is entering date in m-d-yyyy format. I have validated the user input date using the following code:<br />
$date_arr  = explode('-', $event_date);<br />
<b>if (checkdate($date_arr[0], $date_arr[1], $date_arr[2])==false) {<br />
    // valid date ...<br />
 $errors[]=&quot;What you entered is not a valid date format&quot;;<br />
} </b><br />
the validation have worked fine. <br />
<br />
This is my question: What is going wrong in that the query is inserting 0000-00-00 instead of the date value? When echo the $event_date before inserting into the database is like is working fine. Any help please. <br />
thank you in advance.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>okoa</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95263-inserting-dates-into-database-posted-html-form.html</guid>
		</item>
		<item>
			<title>Are certain Header / redirect scripts blocked by WHC / ISPs?  Struggling w/ mob redir</title>
			<link>http://webta.lk/php/95239-certain-header-redirect-scripts-blocked-whc-isps-struggling-w-mob-redir.html</link>
			<pubDate>Wed, 08 May 2013 21:00:48 GMT</pubDate>
			<description>Is it possible that certain web hosting companies or ISPs are somehow blocking common PHP Header scripts used to redirect a URL request, mobile or...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Is it possible that certain web hosting companies or ISPs are somehow blocking common PHP Header scripts used to redirect a URL request, mobile or otherwise?<br />
<br />
Strange that a simple script like this would just disappear from a displayed page, I'm open to any suggestions.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><font color="#333333"><span style="font-family: Droid Sans Mono">&lt;?php<br />
</span></font><font color="#333333"><span style="font-family: Droid Sans Mono">&nbsp; &nbsp; &nbsp; &nbsp;  header( 'Location: Full URL.html' ) ;&nbsp; //full url blocked by this forum ???<br />
</span></font><font color="#333333"><span style="font-family: Droid Sans Mono">&nbsp; &nbsp; &nbsp;  ?&gt;</span></font></code><hr />
</div><span style="font-family: inherit"><br />
<br />
I'm struugling to get a php mobile redirect going using a URL query string instead of a cookie.</span><!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>Ashton</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95239-certain-header-redirect-scripts-blocked-whc-isps-struggling-w-mob-redir.html</guid>
		</item>
		<item>
			<title>PHP redirect code in an HTML page stops page load, this must be simple...</title>
			<link>http://webta.lk/php/95237-php-redirect-code-html-page-stops-page-load-must-simple.html</link>
			<pubDate>Wed, 08 May 2013 16:05:53 GMT</pubDate>
			<description><![CDATA[I'm testing some PHP redirect code, and its acting in an unexpected way.  I'm not a coder of php, but have had great success modifying and using it...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->I'm testing some PHP redirect code, and its acting in an unexpected way.  I'm not a coder of php, but have had great success modifying and using it on the server-side for years.<br />
<br />
I have tested my web server and added an .htaccess line to allow php recognition, and tested it with &quot;Hellow wordl&quot; -- all good.<br />
<br />
Here is the code, page stops loading soon as this hits:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&lt;!----------&nbsp; Mobile Device Redirect function ------&gt;&lt;?php<br />
switch($_GET['mode'])<br />
&nbsp; &nbsp; {<br />
case 'mobile':<br />
&nbsp; &nbsp; $mode = &quot;mobile&quot;;<br />
&nbsp; &nbsp; break;<br />
case 'desktop':<br />
&nbsp; &nbsp; $mode = &quot;desktop&quot;;<br />
&nbsp; &nbsp; break;<br />
default:<br />
&nbsp; &nbsp; $mode = IsMobile() ? &quot;mobile&quot; : &quot;desktop&quot;;<br />
&nbsp; &nbsp; break;<br />
&nbsp; &nbsp; }<br />
<br />
<br />
if ($mode == &quot;mobile&quot;)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; header (&quot;Location: site URL (link blocked??&quot;);<br />
&nbsp; &nbsp; return;<br />
&nbsp; &nbsp; }<br />
?&gt;</code><hr />
</div>Any suggestions appreciated.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>Ashton</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95237-php-redirect-code-html-page-stops-page-load-must-simple.html</guid>
		</item>
		<item>
			<title>SMS send on mobile php script help?</title>
			<link>http://webta.lk/php/95128-sms-send-mobile-php-script-help.html</link>
			<pubDate>Sat, 04 May 2013 18:20:01 GMT</pubDate>
			<description><![CDATA[Hello Guys,  
I want to make my website registration more secure, and sent to the verification text message on the  user's mobile. so please help me...]]></description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->Hello Guys, <br />
I want to make my website registration more secure, and sent to the verification text message on the  user's mobile. so please help me and suggest me the php script and give your feedback on this topic.<br />
Thanks<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>noahwilson</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95128-sms-send-mobile-php-script-help.html</guid>
		</item>
		<item>
			<title>PHP files decoded from IonCube Loader dont work</title>
			<link>http://webta.lk/php/95115-php-files-decoded-ioncube-loader-dont-work.html</link>
			<pubDate>Fri, 03 May 2013 16:54:55 GMT</pubDate>
			<description>I have a Wordpress plugin consisting of 12 files, and after decoding them with IONCUBE 7 ONLINE DECODER (http://ioncube-decoder.no-ip.org/) most of...</description>
			<content:encoded><![CDATA[<div><!-- google_ad_section_start -->I have a Wordpress plugin consisting of 12 files, and after decoding them with <a href="http://ioncube-decoder.no-ip.org/" target="_blank">IONCUBE 7 ONLINE DECODER</a> most of them don't work; I think that the decoder works fine etc. These are the particular errors that I get after checking the files with <a href="http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/v4/syntax-check.php" target="_blank">Syntax Check PHP 4 File</a><br />
1) Parse error:  syntax error, unexpected ';' in wpt.php on line 569<br />
569:     $state = ; (this is the line and its contents) <br />
2) Parse error:  syntax error, unexpected ';' in wpt_feeds.php on line 512<br />
512:     $wptMessage = ;<br />
3) Parse error:  syntax error, unexpected '[' in wpt_feeds_spec.php on line 259<br />
259:     $seconds = explode( ':', (bool)$videoInfo-&gt;duree )[1];<br />
4) Parse error:  syntax error, unexpected ';' in wpt_image.php on line 158<br />
158:     $etag = ;<br />
5) Parse error:  syntax error, unexpected ';' in wpt_rewriter.php on line 27<br />
27:      $wptError = ;<br />
6) Parse error:  syntax error, unexpected ';' in wpt_settings.php on line 26<br />
26:      $wptMessage = ;<br />
7) Parse error:  syntax error, unexpected ';' in wpt_utils.php on line 386<br />
386:     $contentId = ;<br />
8) Parse error:  syntax error, unexpected ';' in wpt_views.php on line 27<br />
27:      $wptError = ;<br />
Parse error:  syntax error, unexpected ';' in wpt_widget.php on line 362<br />
362:     $wptMessage = ;<br />
Is there any way to figure out whats going on and how to get it to work. Is it possible that the files need to be encoded in order for the plugin to work? <br />
Thank you.<!-- google_ad_section_end --></div>

]]></content:encoded>
			<category domain="http://webta.lk/php/">PHP</category>
			<dc:creator>joliett89</dc:creator>
			<guid isPermaLink="true">http://webta.lk/php/95115-php-files-decoded-ioncube-loader-dont-work.html</guid>
		</item>
	</channel>
</rss>
