<?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>WebDeveloper.com - PHP</title>
		<link>http://www.webdeveloper.com/forum</link>
		<description>Discussion and technical support for using and deploying PHP based websites.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 06:24:38 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.webdeveloper.com/forum/images/misc/rss.jpg</url>
			<title>WebDeveloper.com - PHP</title>
			<link>http://www.webdeveloper.com/forum</link>
		</image>
		<item>
			<title>PHP Session HELP!!!</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220277&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 21:19:06 GMT</pubDate>
			<description><![CDATA[Hello again  
I'm new to php just know the basics and i'm having a problem with session variables  
 
whats happening is i'm using a commenting program from GentleSource which is working great the only problem is that it produces its own session variables  
and well i'm carring session varibles...]]></description>
			<content:encoded><![CDATA[<div>Hello again <br />
I'm new to php just know the basics and i'm having a problem with session variables <br />
<br />
whats happening is i'm using a commenting program from GentleSource which is working great the only problem is that it produces its own session variables <br />
and well i'm carring session varibles from page to page starting from the login <br />
<br />
login<br />
session_start();<br />
$_session['....'] = $.....;<br />
<br />
other pages <br />
session_start();<br />
$.... = $_session['...'];<br />
<br />
now all my session variables are doing is carring over the user information from page to page to make sure someone is logged in or not <br />
<br />
the problem i'm having is that there are 2 session_start so i get an ignore message for the other set of session variables and i was wonder is there a way i can add my session variables that are being asked on pages to the other set. <br />
<br />
i've tried putting them in the commenting program but the code is way over my head so i cant do it that way . if any one could help me that would be awesome.</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>Yokiest</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220277</guid>
		</item>
		<item>
			<title>Make it so only specified IP address can see site</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220263&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 16:37:32 GMT</pubDate>
			<description>In PHP, how can I make it so only a specified IP address can see a website? All other users will be directed to another website?</description>
			<content:encoded><![CDATA[<div>In PHP, how can I make it so only a specified IP address can see a website? All other users will be directed to another website?</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>comptech520</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220263</guid>
		</item>
		<item>
			<title>Simple question for an experienced developer</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220252&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 14:17:10 GMT</pubDate>
			<description>I am new to PHP and I am sure there is a simple solutionsto this, I am just not sure how to attack it.  
 
I have a confirmation page, after a form that submits the results to a MySQL db and emails me the form.   It works great.   The issue that I am having is everytime you refresh the confirmation...</description>
			<content:encoded><![CDATA[<div>I am new to PHP and I am sure there is a simple solutionsto this, I am just not sure how to attack it. <br />
<br />
I have a confirmation page, after a form that submits the results to a MySQL db and emails me the form.   It works great.   The issue that I am having is everytime you refresh the confirmation page it sumbit the data again and send me another email.   <br />
<br />
What do i need to do so that my page knows that it is being refreshed and not actually submitted again?</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>kpikul</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220252</guid>
		</item>
		<item>
			<title>search inside a CSV</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220246&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 09:45:04 GMT</pubDate>
			<description><![CDATA[Hi, i've made this script. 
I want to search inside a CSV file, everything works (well sort of) 
I have 3 little problems. 
 
-when i type something in the search field, it displays the whole CSV file, so it doesn't search the words i fill in. 
 
-when the above problem happens, it also replaces...]]></description>
			<content:encoded><![CDATA[<div>Hi, i've made this script.<br />
I want to search inside a CSV file, everything works (well sort of)<br />
I have 3 little problems.<br />
<br />
-when i type something in the search field, it displays the whole CSV file, so it doesn't search the words i fill in.<br />
<br />
-when the above problem happens, it also replaces the output with the name i searched for.<br />
So if i search for brand &quot;test&quot; it shows the whole csv file and every brand has been replaced bij &quot;test&quot;<br />
<br />
-when i type nothing and just press enter it gives me error<br />
<br />
If anyone can help me with this...<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
&lt;html&gt;<br />&lt;form method="get"&gt;<br />ZOEKEN: &lt;input type="text" name="merk" /&gt;&lt;br /&gt;<br />&lt;input type="submit" /&gt;<br />&lt;/form&gt;&lt;/html&gt;<br /><br /><font color="#0000BB">&lt;?php<br /><br /></font><font color="#007700">if ( !empty ( </font><font color="#0000BB">$_GET</font><font color="#007700">&#91;</font><font color="#DD0000">'merk'</font><font color="#007700">&#93; ) ) {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$merk </font><font color="#007700">= </font><font color="#0000BB">$_GET</font><font color="#007700">&#91;</font><font color="#DD0000">'merk'</font><font color="#007700">&#93;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br /></font><font color="#0000BB">$file_handle </font><font color="#007700">= </font><font color="#0000BB">fopen</font><font color="#007700">(</font><font color="#DD0000">"web.txt"</font><font color="#007700">, </font><font color="#DD0000">"rb"</font><font color="#007700">);<br />while (!</font><font color="#0000BB">feof</font><font color="#007700">(</font><font color="#0000BB">$file_handle</font><font color="#007700">) ) {<br />&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$parts </font><font color="#007700">= </font><font color="#0000BB">fgetcsv</font><font color="#007700">(</font><font color="#0000BB">$file_handle</font><font color="#007700">,</font><font color="#0000BB">4096</font><font color="#007700">,</font><font color="#DD0000">","</font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$file_arr </font><font color="#007700">= </font><font color="#0000BB">preg_split </font><font color="#007700">( </font><font color="#DD0000">"/\n/" </font><font color="#007700">, </font><font color="#0000BB">$file_content </font><font color="#007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$found </font><font color="#007700">= </font><font color="#0000BB">false</font><font color="#007700">;<br /> {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach ( </font><font color="#0000BB">$file_arr </font><font color="#007700">as </font><font color="#0000BB">$item </font><font color="#007700">) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ( </font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">0</font><font color="#007700">&#93; = </font><font color="#0000BB">$merk </font><font color="#007700">) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$found </font><font color="#007700">= </font><font color="#0000BB">true</font><font color="#007700">;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$resultaat </font><font color="#007700">= </font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">0</font><font color="#007700">&#93;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}}<br /></font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">0</font><font color="#007700">&#93; = </font><font color="#0000BB">ucwords</font><font color="#007700">(</font><font color="#0000BB">strtolower</font><font color="#007700">(</font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">0</font><font color="#007700">&#93;));<br /></font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">1</font><font color="#007700">&#93; = </font><font color="#0000BB">ucwords</font><font color="#007700">(</font><font color="#0000BB">strtolower</font><font color="#007700">(</font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">1</font><font color="#007700">&#93;));<br />if ( </font><font color="#0000BB">$found </font><font color="#007700">) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Print </font><font color="#DD0000">""</font><font color="#007700">. </font><font color="#0000BB">$resultaat</font><font color="#007700">; echo </font><font color="#DD0000">"&lt;br&gt;"</font><font color="#007700">;<br />print </font><font color="#DD0000">"Naam: " </font><font color="#007700">. </font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">0</font><font color="#007700">&#93;; echo </font><font color="#DD0000">"&lt;br&gt;"</font><font color="#007700">;<br />print </font><font color="#DD0000">"Subnaam: " </font><font color="#007700">. </font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">1</font><font color="#007700">&#93;; echo </font><font color="#DD0000">"&lt;br&gt;"</font><font color="#007700">;<br />print </font><font color="#DD0000">"Prijs: " </font><font color="#007700">. </font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">2</font><font color="#007700">&#93;; echo </font><font color="#DD0000">"&lt;br&gt;"</font><font color="#007700">;<br />print </font><font color="#DD0000">"Aantal: " </font><font color="#007700">. </font><font color="#0000BB">$parts</font><font color="#007700">&#91;</font><font color="#0000BB">3</font><font color="#007700">&#93;; echo </font><font color="#DD0000">"&lt;br&gt;&lt;br&gt;"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print </font><font color="#DD0000">"Not found"</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />}}}<br /></font><font color="#0000BB">fclose</font><font color="#007700">(</font><font color="#0000BB">$file_handle</font><font color="#007700">);<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div></div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>madmega</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220246</guid>
		</item>
		<item>
			<title>Debugging in netbeans</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220245&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 07:54:11 GMT</pubDate>
			<description>Hi, 
 
How can i install xdebug in netbeans 6.7.1 IDE for php please help. 
 
Thanks</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
How can i install xdebug in netbeans 6.7.1 IDE for php please help.<br />
<br />
Thanks</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>tariq_wajiha</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220245</guid>
		</item>
		<item>
			<title>Please help... I need to read a PHP variable in an iframe and am completely stuck.</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220243&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 07:36:10 GMT</pubDate>
			<description>I have a page with an iframe in it. Inside this iframe is a variable. I need to use this variable in the main page. How in the world do I read it out of there? 
 
I am using sessions in the inside page, but it does not seem to work. I am really stuck. Can anyone help me? :confused: 
 
Thanks! :)</description>
			<content:encoded><![CDATA[<div>I have a page with an iframe in it. Inside this iframe is a variable. I need to use this variable in the main page. How in the world do I read it out of there?<br />
<br />
I am using sessions in the inside page, but it does not seem to work. I am really stuck. Can anyone help me? :confused:<br />
<br />
Thanks! :)</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>multimediocrity</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220243</guid>
		</item>
		<item>
			<title>Session Issue - Cannot Send?</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220241&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 05:48:51 GMT</pubDate>
			<description><![CDATA[Code: 
--------- 
Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at *URL*/choose.php:5) in *URL*/choose.php on line 7 
 
Warning: session_register() [function.session-register]: Cannot send session cache limiter -...]]></description>
			<content:encoded><![CDATA[<div><div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at *URL*/choose.php:5) in *URL*/choose.php on line 7<br />
<br />
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at *URL*/choose.php:5) in *URL*/choose.php on line 7</code><hr />
</div><br />
Does anybody know what this means? How do I fix my sessions?<br />
<br />
Please note I've used *URL* in place of the actual URL for privacy.<br />
<br />
Thanks!</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>multimediocrity</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220241</guid>
		</item>
		<item>
			<title>Php ajax dropdownlist problem</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220240&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 04:00:10 GMT</pubDate>
			<description>Hi, i have this problem regarding ajax dropdownlist. Here is my code. 
 
this is my ajax code 
 
Code: 
--------- 
function getXMLHTTP()  
{  
	var xmlhttp=false;	 
	try</description>
			<content:encoded><![CDATA[<div>Hi, i have this problem regarding ajax dropdownlist. Here is my code.<br />
<br />
this is my ajax code<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">function getXMLHTTP() <br />
{ <br />
&nbsp; &nbsp; &nbsp; &nbsp; var xmlhttp=false;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlhttp=new XMLHttpRequest();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; catch(e)&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlhttp= new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch(e)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlhttp = new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; catch(e1)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlhttp=false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; return xmlhttp;<br />
}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
function getIpt(strURL) <br />
{&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; var req = getXMLHTTP();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (req) <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.onreadystatechange = function() <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (req.readyState == 4) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // only if &quot;OK&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (req.status == 200) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('institusidiv').innerHTML=req.responseText;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;There was a problem while using XMLHTTP:\n&quot; + req.statusText);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.open(&quot;GET&quot;, strURL, true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.send(null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
function getKursus(strURL) <br />
{&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; var req = getXMLHTTP();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (req) <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.onreadystatechange = function() <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (req.readyState == 4) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // only if &quot;OK&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (req.status == 200) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.getElementById('kursusdiv').innerHTML=req.responseText;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;There was a problem while using XMLHTTP:\n&quot; + req.statusText);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.open(&quot;GET&quot;, strURL, true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; req.send(null);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
}</code><hr />
</div><br />
Here is my php code (ajaxIPT.php)<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?php<br />
require_once(&quot;../../class/class.mysqldb.php&quot;);<br />
$code = intval($_REQUEST['code']);<br />
$kod_ins = $_REQUEST['kod_ins'];<br />
$con = new MysqlDB;<br />
$con-&gt;connectMysql();<br />
<br />
<br />
if($code == 1)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $queryIpt = &quot;select ctext from kod_ipt where kat_ipt = 1&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $resultQuery = $con-&gt;query($queryIpt);<br />
?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;INSTITUSI&quot; id=&quot;INSTITUSI&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option&gt;--Choose--&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while($row=$con-&gt;fetch_array($resultQuery)) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;&lt;?php echo $row['ctext']; ?&gt;&quot;&gt;&lt;?php echo $row['ctext']; ?&gt;&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;?php <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&lt;?php <br />
}<br />
elseif($code == 2)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $queryIpt = &quot;select ctext from kod_ipt where kat_ipt = 2&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $resultQuery = $con-&gt;query($queryIpt);<br />
?&gt;<br />
&nbsp; &nbsp; &lt;select name=&quot;INSTITUSI&quot; id=&quot;INSTITUSI&quot;&gt;<br />
&nbsp; &nbsp; &lt;option&gt;--Choose--&lt;/option&gt;<br />
&nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; while($row=$con-&gt;fetch_array($resultQuery)) <br />
&nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &lt;option value=&quot;&lt;?php echo $row['ctext']; ?&gt;&quot;&gt;&lt;?php echo $row['ctext']; ?&gt;&lt;/option&gt;<br />
&nbsp; &nbsp; &lt;?php <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &lt;/select&gt;<br />
&lt;?php <br />
}<br />
elseif($code == 3)<br />
{<br />
?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;INSTITUSI&quot; type=&quot;text&quot; id=&quot;INSTITUSI&quot; size=&quot;30&quot; value=&quot;&quot; /&gt;<br />
&lt;?php <br />
}<br />
elseif($code == 4)<br />
{<br />
?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;input name=&quot;INSTITUSI&quot; type=&quot;text&quot; id=&quot;INSTITUSI&quot; size=&quot;30&quot; value=&quot;Test&quot; /&gt; <br />
&lt;?php<br />
}<br />
?&gt;</code><hr />
</div>And this is my form<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;table width=&quot;100%&quot; cellspacing=&quot;1&quot; class=&quot;main&quot;&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;th width=&quot;25%&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div align=&quot;left&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;strong&gt;A&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;th align=&quot;center&quot; width=&quot;2%&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div align=&quot;center&quot;&gt;:&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td width=&quot;73%&quot; class=&quot;bodystyle&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;KOD_INSTITUSI&quot; id=&quot;KOD_INSTITUSI&quot; onchange=&quot;getIpt('ajaxIPT.php?code='+this.value),tukarPeringkat(this.value);&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;&quot;&gt;-Choose-&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  while($row=$con-&gt;fetch_array($resultIptQuery)) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value = &quot;&lt;?php echo $row['id']; ?&gt;&quot;&gt;&lt;?php echo $row['cat']; ?&gt;&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;?php <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt; <br />
&nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div align=&quot;left&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;strong&gt;B&lt;/strong&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;th align=&quot;center&quot;&gt;&lt;div align=&quot;center&quot;&gt;:&lt;/div&gt;&lt;/th&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;td class=&quot;bodystyle&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;div id=&quot;institusidiv&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;select name=&quot;INSTITUSI&quot; id=&quot;INSTITUSI&quot; onchange=&quot;&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;option value=&quot;&quot;&gt;-Choose-&lt;/option&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/select&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/div&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;</code><hr />
</div>this code works perfectly. When i choose KOD_INSTITUSI, the INSTITUSI dropdownlist change. The problem now is, when i post the form, the INSTITUSI IS NULL. It is like, the result in INSTITUSI dropdownlist only &quot;virtually/temporarily&quot;(sorry if im using wrong word ;)) exist there not the real object. That's y when i post the form, the INSTITUSI dropdownlist post NULL. I think maybe it is because the way i send data from ajaxIPT.php to the ajax code?? Hope someone out there can help me. Thanks in advance.</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>warhead2020</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220240</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] include(); not doing what I want]]></title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220213&amp;goto=newpost</link>
			<pubDate>Thu, 19 Nov 2009 16:39:01 GMT</pubDate>
			<description>Hey all!  I am making a website where it will have a news feed on  every page at the bottom, and instead of going to everypage and updating it, which would take a while because of the number of pages, I want an include function to include just the rss box info so I update that file and upload it...</description>
			<content:encoded><![CDATA[<div>Hey all!  I am making a website where it will have a news feed on  every page at the bottom, and instead of going to everypage and updating it, which would take a while because of the number of pages, I want an include function to include just the rss box info so I update that file and upload it and it changes on each webpage, but I have an issue, its not showing the boxes, here is the main code:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;<br />&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br /><br />&lt;head&gt;<br />&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;<br />&lt;link href="index.css" type="text/css" rel="stylesheet"/&gt;<br />&lt;title&gt;1 DH im. Stefana Czarnieckiego&nbsp;&nbsp;"Zapraszamy do naszego szeregu" | Dom &lt;/title&gt;<br />&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;<br /><br />&lt;script type="text/javascript" src="fadeslideshow.js"&gt;&lt;/script&gt;<br />&lt;script type="text/javascript"&gt;<br /><br />var mygallery=new fadeSlideShow({<br />&nbsp;&nbsp;&nbsp;&nbsp;wrapperid: "fadeshow1", //ID of blank DIV on page to house Slideshow<br />&nbsp;&nbsp;&nbsp;&nbsp;dimensions: &#91;378, 408&#93;, //width/height of gallery in pixels. Should reflect dimensions of largest image<br />&nbsp;&nbsp;&nbsp;&nbsp;imagearray: &#91;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#91;"pictures/Picture 001.jpg"&#93;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#91;"pictures/Picture 008.jpg"&#93;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#91;"pictures/Picture 017.jpg"&#93;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#91;"pictures/Picture 027.jpg"&#93;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#93;,<br />&nbsp;&nbsp;&nbsp;&nbsp;displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false},<br />&nbsp;&nbsp;&nbsp;&nbsp;persist: false, //remember last viewed slide and recall within same session?<br />&nbsp;&nbsp;&nbsp;&nbsp;fadeduration: 500, //transition duration (milliseconds)<br />&nbsp;&nbsp;&nbsp;&nbsp;descreveal: "ondemand",<br />&nbsp;&nbsp;&nbsp;&nbsp;togglerid: ""<br />})<br />&lt;/script&gt;<br />&lt;style type="text/css"&gt;<br />.style1 {<br />&nbsp;&nbsp;&nbsp;&nbsp;padding-left:25px;<br />&nbsp;&nbsp;&nbsp;&nbsp;padding-top:20px;<br />&nbsp;&nbsp;&nbsp;&nbsp;text-align: right;<br />}<br />.style2 {<br />&nbsp;&nbsp;&nbsp;&nbsp;float:right;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:457px;<br />&nbsp;&nbsp;&nbsp;&nbsp;height:432px;<br />}<br />.space {<br />&nbsp;&nbsp;&nbsp;&nbsp;float:left;<br />&nbsp;&nbsp;&nbsp;&nbsp;padding-right:23px;<br />}<br /><br />.stylex {<br />&nbsp;&nbsp;&nbsp;&nbsp;font-family: "Times New Roman";<br />&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;<br />}<br />.style3 {<br />&nbsp;&nbsp;&nbsp;&nbsp;font-size: x-small;<br />}<br />.style5 {<br />&nbsp;&nbsp;&nbsp;&nbsp;font-family: "Times New Roman";<br />&nbsp;&nbsp;&nbsp;&nbsp;text-align: right;<br />}<br /><br />.style6 {<br />&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;<br />}<br /><br />.style7 {<br />&nbsp;&nbsp;&nbsp;&nbsp;text-decoration: underline;<br />}<br /><br />&lt;/style&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />&lt;div id="main"&gt;<br />&lt;a href="index.html"&gt;<br />&lt;img id="dh" alt="1DH_im_Stefana_Czarnieckiego" src="images/header.png"/&gt;&lt;/a&gt;&lt;a href="http://zhpzlot2010.org/"&gt;&lt;img id="zlot" alt="Zlot2010" src="images/zlot.png"/&gt;&lt;/a&gt;&lt;a href="http://www.zhp.us/"&gt;&lt;img id="chicago" alt="60" src="images/60.png"/&gt;&lt;/a&gt;&lt;a href="http://www.harcerzewchicago.org/"&gt;&lt;img id="warta" alt="warta" src="images/warta.png"/&gt;&lt;/a&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="text"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href="signup.html"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;img id="first" alt="Zapisz_Si&#281;" src="images/zs.jpg"/&gt;&lt;/a&gt;&lt;a href="leaders.html"&gt;&lt;img alt="Opiekunowie" src="images/opiek.jpg"/&gt;&lt;/a&gt;&lt;a href="calender.html"&gt;&lt;img alt="kalendarz" src="images/kalendarz.jpg"/&gt;&lt;/a&gt;&lt;a href="images.html"&gt;&lt;img alt="zdj&#281;cia" src="images/zdjecia.jpg"/&gt;&lt;/a&gt;&lt;a href="news.html"&gt;&lt;img alt="wiadomo&#347;ci" src="images/wiadomosci.jpg"/&gt;&lt;/a&gt;&lt;a href="warta.html"&gt;&lt;img alt="Informacja_o_Hufcu" src="images/warta.jpg"/&gt;&lt;/a&gt;&lt;a href="meeting.html"&gt;&lt;img alt="miejsce_spotaka&#324;" src="images/meeting.jpg"/&gt;&lt;/a&gt;&lt;a href="forms.html"&gt;&lt;img alt="Formularze" src="images/forms.jpg"/&gt;&lt;/a&gt;&lt;a href="contact.php"&gt;&lt;img alt="Kontakt" src="images/contact.jpg"/&gt;&lt;/a&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="writing" class="style2"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h2&gt;Krótka Historia 1 Dru&#380;yny&lt;/h2&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="blank" class="style1"&gt;&lt;div id="fadeshow1"&gt;&lt;/div&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="news_rss"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img alt="Informacja_o_przysz&#322;ych_zbiórkach_lub_imprezach,_wiadomo&#347;ci" src="images/bar.jpg"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000BB">&lt;?php </font><font color="#007700">include(</font><font color="#DD0000">"prss.php"</font><font color="#007700">);</font><font color="#0000BB">?&gt;</font>&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="contact"&gt;&lt;p&gt;Contact information&lt;/p&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="other"&gt;&lt;p id="copyright" class="style5"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;To view this site in English press &lt;a href="index2.html"&gt;here.&lt;/a&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;br/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;span class="style3"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;© 2009 All Rights Reserved - Polish Scouting Organization, Inc.,Boys Division&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;br/&gt;Web Design by:&lt;a href="http://www.tbwebproductions.com"&gt;&lt;img alt="TB Web Productions" src="images/web.png"/&gt;&lt;/a&gt;&lt;/span&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/p&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;/body&gt;<br /><br />&lt;/html&gt;</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>here is the prss code:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
<font color="#0000BB">&lt;?php<br /></font><font color="#DD0000">'&lt;div id="news"&gt;&lt;div id="sbox"&gt;&lt;p id="sand" class="style6"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img alt="dpoland" src="images/dpoland.png" style="float: left"/&gt;&lt;span class="style7"&gt;&lt;strong&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15-tego Listopada<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/strong&gt;&lt;/span&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Akademia z okazji rocznicy Dnia Niepodleglosci. Zbiorka w Domu Harcerskim w pelnym mundurze. Msza Sw. o godz. 10:30am. <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wiecej informacji nacisnij &lt;a href="akademia.html"&gt;tutaj&lt;/a&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/p&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="space"&gt;&lt;p&gt; &lt;/p&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="bbox"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img alt="dwa" src="images/dwa.JPG" style="float: left; padding-left:10px; padding-top:10px"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;&lt;span class="style7"&gt;&lt;strong&gt;12-tego Grudnia &lt;/strong&gt;&lt;/span&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Turniej Dwa Ognie miedzy druzynami w Nelson School, 8901 N. Ozanam w Niles o godz 1:30pm.<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wiecej informacji nacisnij &lt;a href="dwa.html"&gt;tutaj&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class="space"&gt;&lt;p&gt;&lt;/p&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id="ssbox"&gt;&lt;p id="sand2"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img alt="halloween" src="images/halloween.jpg" style="float: left; padding-left:10px; padding-top:10px"/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;span class="style7"&gt;&lt;strong&gt;31-szy Pazdziernik&lt;/strong&gt;&lt;/span&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;br/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wi&#281;cej zdj&#281;&#263; z zabawy hallo&#322;ynowej naci&#347;nij &lt;a href="somelinnk/albumhalloween"&gt;tutaj&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;'<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>any help would be great. <br />
<br />
FYI the site is not complete yet so some of the a links have weird names and the rss boxes are floated left to align the horizontally and they are abut 200px; x 175px.</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>UAL225</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220213</guid>
		</item>
		<item>
			<title>php if more than a value?</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220203&amp;goto=newpost</link>
			<pubDate>Thu, 19 Nov 2009 14:04:05 GMT</pubDate>
			<description><![CDATA[I'm trying to write a statement in php so when a product is over a certain amount the price changes to P.O.A... 
 
Currently if a product is sold out I can get it to be marked as sold but just can't figure it out for this...  
 
The code I'm trying is: 
 
 
PHP: 
--------- 
Price:<span><strong>]]></description>
			<content:encoded><![CDATA[<div>I'm trying to write a statement in php so when a product is over a certain amount the price changes to P.O.A...<br />
<br />
Currently if a product is sold out I can get it to be marked as sold but just can't figure it out for this... <br />
<br />
The code I'm trying is:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><font color="#000000">
Price:&lt;span&gt;&lt;strong&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000BB">&lt;?php </font><font color="#007700">if (</font><font color="#0000BB">$rug</font><font color="#007700">-&gt;</font><font color="#0000BB">data</font><font color="#007700">&#91;</font><font color="#DD0000">'sold'</font><font color="#007700">&#93;) { </font><font color="#0000BB">?&gt;<br /></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sold &lt;/strong&gt;&lt;/span&gt; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;span&gt;&lt;strong&gt;<font color="#0000BB">&lt;?php </font><font color="#007700">if (.</font><font color="#0000BB">$rug</font><font color="#007700">-&gt;</font><font color="#0000BB">data</font><font color="#007700">&#91;</font><font color="#DD0000">'price'</font><font color="#007700">&#93; &gt;= </font><font color="#0000BB">1000</font><font color="#007700">); </font><font color="#0000BB">?&gt;</font> P.O.A &lt;/strong&gt;&lt;/span&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;span&gt;&lt;strong&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000BB">&lt;?php </font><font color="#007700">} else echo </font><font color="#DD0000">'&amp;pound;'</font><font color="#007700">.</font><font color="#0000BB">$rug</font><font color="#007700">-&gt;</font><font color="#0000BB">data</font><font color="#007700">&#91;</font><font color="#DD0000">'price'</font><font color="#007700">&#93;; </font><font color="#0000BB">?&gt;</font>
</font>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div></div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>little-persia</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220203</guid>
		</item>
		<item>
			<title>get_browser help</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220201&amp;goto=newpost</link>
			<pubDate>Thu, 19 Nov 2009 13:44:06 GMT</pubDate>
			<description>Hi, 
 
Is there anyway I can enable the get_browser() function without editing my php.ini. I am on a shared server and do not have access to it. I really need to get the browser information through PHP not javascript. 
 
I am currently getting the error: 
 
Warning: get_browser()...</description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
Is there anyway I can enable the get_browser() function without editing my php.ini. I am on a shared server and do not have access to it. I really need to get the browser information through PHP not javascript.<br />
<br />
I am currently getting the error:<br />
<br />
Warning: get_browser() [function.get-browser]: browscap ini directive not set. in /websites/LinuxPackage04/am/pm/ca/ampmcateringgroup.co.uk/public_html/test.php on line 3<br />
<br />
Thanks in advance,<br />
<br />
Ben</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>Benji6996</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220201</guid>
		</item>
		<item>
			<title>HTTP file posting</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220195&amp;goto=newpost</link>
			<pubDate>Thu, 19 Nov 2009 12:43:56 GMT</pubDate>
			<description>Hi 
i have move one xml file from one server to another server using PHP. 
 
need suggestions .. 
Thanks in ADV</description>
			<content:encoded><![CDATA[<div>Hi<br />
i have move one xml file from one server to another server using PHP.<br />
<br />
need suggestions ..<br />
Thanks in ADV</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>pradeepg459</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220195</guid>
		</item>
		<item>
			<title>Using the php metadata toolkit with multiple images</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220180&amp;goto=newpost</link>
			<pubDate>Thu, 19 Nov 2009 00:09:31 GMT</pubDate>
			<description>I recently built a site for a photographer. 
He uploads a chunk of images by ftp. The script then parses the folder, creates thumbnails, extracts image names from the filename, and keywords from the IPTC metadata. 
 
Midway through the project the keywords stopped being extracted. It seems some of...</description>
			<content:encoded><![CDATA[<div>I recently built a site for a photographer.<br />
He uploads a chunk of images by ftp. The script then parses the folder, creates thumbnails, extracts image names from the filename, and keywords from the IPTC metadata.<br />
<br />
Midway through the project the keywords stopped being extracted. It seems some of the data is being stored in XMP or similar.<br />
<br />
The keywords are plainly visible in windows, but the only php I can find to extract them is this toolkit:<br />
<a rel="nofollow" href="http://www.ozhiker.com/electronics/pjmt/index.html" target="_blank">http://www.ozhiker.com/electronics/pjmt/index.html</a><br />
This works perfectly, until I try to use a foreach loop to read for every file.<br />
Basically the values come out as the first one repeated for each file.<br />
<br />
I've popped my code below. There may be some errors as I've been hacking it about for the last week lol. Anyone have any ideas? My brain is fried.<br />
<br />
Cheers<br />
Dave<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?php<br />
<br />
<br />
/****************************************************************************<br />
*<br />
* Filename:&nbsp; &nbsp;  Edit_File_Info.php<br />
*<br />
* Description:&nbsp; Allows the user to edit the metadata of an image over the internet<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  in the same way that Photoshop edits 'File Info' data<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  This file provides only the html for a form containing the file info<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  input fields. The rest of the html file must be provided by the calling script.<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $outputfilename must always be defined - it is ne name of the file which<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  have the metadata changed after the form has been submitted<br />
*<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  This file has several modes of operation:<br />
*<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  1) If $new_ps_file_info_array is defined then it's data will be used<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; to fill the fields.<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  2) If $new_ps_file_info_array is not defined but $filename is defined,<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; then the file info fields will be filled from the metadata in the file specified<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  3) If $new_ps_file_info_array is not defined but $filename and $default_ps_file_info_array<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; are defined, then the file info fields will be filled from the metadata<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; in the file specified, but where fields are blank, they will be filled from $default_ps_file_info_array<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  4) Otherwise the fields will be blank<br />
*<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  See Edit_File_Info_Example.php for an example of usage<br />
*<br />
* Author:&nbsp; &nbsp; &nbsp;  Evan Hunter<br />
*<br />
* Date:&nbsp; &nbsp; &nbsp; &nbsp;  17/11/2004<br />
*<br />
* Project:&nbsp; &nbsp; &nbsp; PHP JPEG Metadata Toolkit<br />
*<br />
* Revision:&nbsp; &nbsp;  1.11<br />
*<br />
* Changes:&nbsp; &nbsp; &nbsp; 1.10 -&gt; 1.11 : Changed displayed toolkit version numbers to reference Toolkit_Version.php<br />
*<br />
* URL:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; http://electronics.ozhiker.com<br />
*<br />
* Copyright:&nbsp; &nbsp; Copyright Evan Hunter 2004<br />
*<br />
* License:&nbsp; &nbsp; &nbsp; This file is part of the PHP JPEG Metadata Toolkit.<br />
*<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  The PHP JPEG Metadata Toolkit is free software; you can<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  redistribute it and/or modify it under the terms of the<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  GNU General Public License as published by the Free Software<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Foundation; either version 2 of the License, or (at your<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  option) any later version.<br />
*<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  The PHP JPEG Metadata Toolkit is distributed in the hope<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  that it will be useful, but WITHOUT ANY WARRANTY; without<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  even the implied warranty of MERCHANTABILITY or FITNESS<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  FOR A PARTICULAR PURPOSE.&nbsp; See the GNU General Public License<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  for more details.<br />
*<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  You should have received a copy of the GNU General Public<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  License along with the PHP JPEG Metadata Toolkit; if not,<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  write to the Free Software Foundation, Inc., 59 Temple<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Place, Suite 330, Boston, MA&nbsp; 02111-1307&nbsp; USA<br />
*<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  If you require a different license for commercial or other<br />
*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  purposes, please contact the author: evan@ozhiker.com<br />
*<br />
***************************************************************************/<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
// Define defaults for the fields - These are only used where the image has blank fields<br />
$default_ps_file_info_array = array ('keywords' =&gt; array(), );<br />
<br />
#$outputfilename = get_next_filename( );<br />
#copy( $filename, $outputfilename );<br />
<br />
include 'Toolkit_Version.php';&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Change: added as of version 1.11<br />
include 'JPEG.php';<br />
include 'XMP.php';<br />
include 'Photoshop_IRB.php';<br />
include 'EXIF.php';<br />
include 'Photoshop_File_Info.php';<br />
<br />
$filename1 = &quot;../../galleries/hvendparty/_MG_4587.jpg&quot;;<br />
$filename2 = &quot;../../galleries/hvendparty/_MG_4548.jpg&quot;;<br />
<br />
$files = array($filename2, $filename1);<br />
<br />
foreach ($files as $filename) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
// Check for operation modes 2 or 3<br />
// i.e. $filename is defined, and $new_ps_file_info_array is not<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ( ( ! isset( $new_ps_file_info_array ) ) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ( isset( $filename ) ) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  ( is_string( $filename ) ) )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Hide any unknown EXIF tags<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $GLOBALS['HIDE_UNKNOWN_TAGS'] = TRUE;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Accessing the existing file info for the specified file requires these includes<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Retrieve the header information from the JPEG file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $jpeg_header_data = get_jpeg_header_data( $filename );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Retrieve EXIF information from the JPEG file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $Exif_array = get_EXIF_JPEG( $filename );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Retrieve XMP information from the JPEG file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $XMP_array = read_XMP_array_from_text( get_XMP_text( $jpeg_header_data ) );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Retrieve Photoshop IRB information from the JPEG file<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $IRB_array = get_Photoshop_IRB( $jpeg_header_data );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Retrieve Photoshop File Info from the three previous arrays<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $new_ps_file_info_array = get_photoshop_file_info( $Exif_array, $XMP_array, $IRB_array );<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Check for operation mode 4 - $new_ps_file_info_array and $filename are not defined,<br />
&nbsp; &nbsp; &nbsp; &nbsp; else if ( ( ( !isset($new_ps_file_info_array) ) || ( ! is_array($new_ps_file_info_array) ) ) &amp;&amp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ( ( !isset($filename) ) || ( ! is_string( $filename ) ) ) )<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // No filename or new_ps_file_info_array defined, create a blank file info array to display<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $new_ps_file_info_array = array(&quot;keywords&quot; =&gt; array());<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
?&gt;<br />
<br />
<br />
<br />
&lt;?php<br />
foreach( $new_ps_file_info_array[ 'keywords' ] as $keyword )<br />
{<br />
echo &quot;$keyword, &quot;;<br />
}<br />
<br />
}<br />
?&gt;</code><hr />
</div></div>


	<br />
	<div style="padding:6px">

	

	

	
		<fieldset class="fieldset">
			<legend>Attached Images</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr>
	<td><img class="inlineimg" src="http://www.webdeveloper.com/forum/images/attach/jpg.gif" alt="File Type: jpg" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
	<td><a href="http://www.webdeveloper.com/forum/attachment.php?attachmentid=13254&amp;d=1258589069" target="_blank">IMG_4548.jpg</a> (42.6 KB)</td>
</tr>
			</table>
			</fieldset>
	

	

	</div>
]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>DaveSW</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220180</guid>
		</item>
		<item>
			<title><![CDATA[[RESOLVED] How to list mySQL Tables?]]></title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220169&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 21:29:33 GMT</pubDate>
			<description><![CDATA[I tried searching around a bit but didn't see anything. 
I am trying to list the tables that are in my database but I get the 
error that mysql_list_tables($db); is deprecated. 
what would take the place of this query now?]]></description>
			<content:encoded><![CDATA[<div>I tried searching around a bit but didn't see anything.<br />
I am trying to list the tables that are in my database but I get the<br />
error that mysql_list_tables($db); is deprecated.<br />
what would take the place of this query now?</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>linewire</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220169</guid>
		</item>
		<item>
			<title>User registration/login system</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?t=220156&amp;goto=newpost</link>
			<pubDate>Wed, 18 Nov 2009 17:50:24 GMT</pubDate>
			<description><![CDATA[I trying to find some code that will allow me to gather users information when they register. I just want to place a username & password form box on my main page, and once logged in it displays the users name.  I just need it for email, name, state, city information. What would be the best...]]></description>
			<content:encoded><![CDATA[<div>I trying to find some code that will allow me to gather users information when they register. I just want to place a username &amp; password form box on my main page, and once logged in it displays the users name.  I just need it for email, name, state, city information. What would be the best direction to move forward with this? Any ideas would be greatly appreciated.</div>

]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?f=16">PHP</category>
			<dc:creator>LUTRELLA</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?t=220156</guid>
		</item>
	</channel>
</rss>
