<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1029871" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1029871</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/big-help-needed-cant-figure#comment-1174498</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;?&lt;br /&gt;$trial = &amp;quot;dn(frame, \&amp;quot;qwe\&amp;quot;, new Ar(\&amp;quot;adfadfadsfsd\&amp;quot;, \&amp;quot;zfadsfadfxc\&amp;quot;, \&amp;quot;fdkasfjkasf\&amp;quot;), new Ar(\&amp;quot;dsafdsf\&amp;quot;,\&amp;quot;dasfadsf\&amp;quot;), new Ar(\&amp;quot;\&amp;quot;));&amp;quot;;&lt;br /&gt;preg_match_all(&amp;#039;/(new Ar)+\(+([A-z\&amp;quot;, ])+\)/&amp;#039;,$trial,$matches);&lt;br /&gt;$trial = $matches[0];&lt;br /&gt;$trial = str_replace(array(&amp;quot;new Ar(&amp;quot;,&amp;quot;)&amp;quot;,&amp;quot;\&amp;quot;&amp;quot;,&amp;quot;;&amp;quot;),&amp;#039;&amp;#039;,$trial);&lt;br /&gt;while(list($k,$v) = each($trial)){&lt;br /&gt;	if($v == &amp;quot;&amp;quot;){&lt;br /&gt;		unset($trial[$k]);&lt;br /&gt;		}&lt;br /&gt;	}&lt;br /&gt;print_r($trial);&lt;br /&gt;?&amp;gt;&lt;br /&gt;returns:&lt;br /&gt;Array&lt;br /&gt;(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [0] =&amp;gt; adfadfadsfsd, zfadsfadfxc, fdkasfjkasf&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [1] =&amp;gt; dsafdsf,dasfadsf&lt;br /&gt;)&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;as long as the bits between the &quot;&quot; in the Ar(&quot;&quot;) only contain letters, numbers, or spaces, you&#039;re all good.&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Jul 2005 12:43:11 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1174498 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/big-help-needed-cant-figure#comment-1174494</link>
    <description> &lt;p&gt;That doesn&#039;t matter, the script will still find other variables.&lt;/p&gt;
 </description>
     <pubDate>Sun, 10 Jul 2005 12:39:02 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1174494 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/big-help-needed-cant-figure#comment-1174471</link>
    <description> &lt;p&gt;OOPS my mistake&lt;/p&gt;
&lt;p&gt;new Ar(&quot;asd&quot;, &quot;zxc&quot;)&lt;br /&gt;
this is not a static result asd, zxc change dependant on $menua&lt;/p&gt;
&lt;p&gt;sorry&lt;/p&gt;
 </description>
     <pubDate>Sat, 09 Jul 2005 23:55:50 +0000</pubDate>
 <dc:creator>rayzun</dc:creator>
 <guid isPermaLink="false">comment 1174471 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/big-help-needed-cant-figure#comment-1174469</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;?&lt;br /&gt;$trial = &amp;quot;dn(frame, \&amp;quot;qwe\&amp;quot;, new Ar(\&amp;quot;asd\&amp;quot;, \&amp;quot;zxc\&amp;quot;), new Ar(\&amp;quot;\&amp;quot;), new Ar(\&amp;quot;\&amp;quot;));&amp;quot;;&lt;br /&gt;preg_match_all(&amp;#039;/(new Ar)+\(+([A-z\&amp;quot;, ])+\)/&amp;#039;,$trial,$matches);&lt;br /&gt;$trial = $matches[0];&lt;br /&gt;$trial = str_replace(array(&amp;quot;new Ar(&amp;quot;,&amp;quot;)&amp;quot;,&amp;quot;\&amp;quot;&amp;quot;,&amp;quot;;&amp;quot;),&amp;#039;&amp;#039;,$trial);&lt;br /&gt;while(list($k,$v) = each($trial)){&lt;br /&gt;	if($v == &amp;quot;&amp;quot;){&lt;br /&gt;		unset($trial[$k]);&lt;br /&gt;		}&lt;br /&gt;	}&lt;br /&gt;print_r($trial);&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;returns:&lt;br /&gt;Array&lt;br /&gt;(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [0] =&amp;gt; asd, zxc&lt;br /&gt;)&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Sat, 09 Jul 2005 23:22:14 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1174469 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/big-help-needed-cant-figure#comment-1174454</link>
    <description> &lt;p&gt;The result has this template&lt;br /&gt;
dn(frame, &quot;qwe&quot;, new Ar(&quot;asd&quot;, &quot;zxc&quot;), new Ar(&quot;&quot;), new Ar(&quot;&quot;));&lt;/p&gt;
&lt;p&gt;(&quot;asd&quot;, &quot;zxc&quot;) // NOTE: this is the array area, exclude the rest&lt;/p&gt;
&lt;p&gt;----------------------&lt;br /&gt;
code to put into array&lt;/p&gt;
&lt;p&gt;$trial = str_replace(&#039;dn(&#039;, &#039;&#039;, $trial);&lt;br /&gt;
$trial = str_replace(&#039;);&#039;, &#039;&#039;, $trial);&lt;br /&gt;
$pattern = &#039;/new Ar(([^)]+)?)/&#039;;&lt;br /&gt;
preg_match($pattern, $trial, $array);&lt;br /&gt;
$array = str_replace(&#039;&quot;&#039;, &#039;&#039;, $array[1]);&lt;br /&gt;
$array = explode(&#039;, &#039;, $array);&lt;br /&gt;
$array = str_replace (&quot;(&quot;, &quot;&quot;, $array);&lt;/p&gt;
&lt;p&gt;result needed:&lt;/p&gt;
&lt;p&gt;row[0] - row[1] - row[2] &lt;/p&gt;
&lt;p&gt;#########&lt;br /&gt;
Update on the query code:&lt;/p&gt;
&lt;p&gt;$result = mysql_query(&quot;SELECT * FROM `ut8` LIMIT $srt , $amn&quot;) or exit(mysql_error());&lt;br /&gt;
while ($row = mysql_fetch_assoc($result)) {$word[] = $row[&#039;word&#039;];}&lt;br /&gt;
$menua .= &quot;$word[0]&quot;;&lt;br /&gt;
$menub .= &quot;$word[1]&quot;;&lt;/p&gt;
&lt;p&gt;$trial .= file_get_contents(&quot;http://domain.com/feed/$menua&quot;);&lt;/p&gt;
&lt;p&gt;#########&lt;br /&gt;
area of problem&lt;br /&gt;
adding a period before &quot;.=&quot;&lt;br /&gt;
otherwise &quot;$menua&quot; is not being parsed.&lt;/p&gt;
 </description>
     <pubDate>Sat, 09 Jul 2005 19:49:31 +0000</pubDate>
 <dc:creator>rayzun</dc:creator>
 <guid isPermaLink="false">comment 1174454 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/big-help-needed-cant-figure#comment-1174449</link>
    <description> &lt;p&gt;What is that pattern trying to find?&lt;/p&gt;
&lt;p&gt;file_get_contents(); is like readfile(); except it doesn&#039;t just print the text, or like file(); but file breaks the file into an array based on the NewLine.&lt;/p&gt;
&lt;p&gt;do a print_r($array) at the end, and show us the results.&lt;/p&gt;
 </description>
     <pubDate>Sat, 09 Jul 2005 16:03:43 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1174449 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/big-help-needed-cant-figure#comment-1174435</link>
    <description> &lt;p&gt;I may have a turn in the right direction&lt;/p&gt;
&lt;p&gt;not sure why feeding a result from a query to a seperate php script wont be accepted..&lt;br /&gt;
what I have so far...&lt;/p&gt;
&lt;p&gt;$query = &quot;SELECT `wrd` FROM `tf` LIMIT 0,1&quot;;&lt;br /&gt;
$result = mysql_query($query) or die(mysql_error());&lt;br /&gt;
while ($row = mysql_fetch_array($result))&lt;br /&gt;
{&lt;br /&gt;
$menu .= &quot;$row[word]&quot;; }&lt;/p&gt;
&lt;p&gt;$pagedata = file_get_contents(&quot;/srch/$menu&quot;);&lt;br /&gt;
This would not work at all &quot;$menu&quot; a result from query just will not be parsed.&lt;/p&gt;
&lt;p&gt;The only way the query &amp;amp; the php parse within &quot;file_get_contents&quot; is like this...&lt;br /&gt;
$trial .= file_get_contents(&quot;http://domain.com/srch/$menu&quot;); \\  I had to add the dot part&lt;br /&gt;
see now &quot;$trial&quot; is um Im not sure???&lt;/p&gt;
&lt;p&gt;not closer to finishing the script because the next two lines are the magic.&lt;/p&gt;
&lt;p&gt;The page which Im calling &quot;http://domain.com/srch/$menu&quot; is only some text&lt;br /&gt;
where Im stripping text between some quotes.&lt;/p&gt;
&lt;p&gt;Im not sure if &quot;$trial&quot; is now an array and these 2 lines are now the wrong method.&lt;/p&gt;
&lt;p&gt;$pattern = &#039;/new (([^)]+)?)/&#039;;&lt;br /&gt;
preg_match($pattern, $trial, $array);&lt;/p&gt;
&lt;p&gt;The array var.. after this pattern match will be stored and seperated into results&lt;/p&gt;
&lt;p&gt;echo &quot;$array[0], $array[1], $array[3]&quot;;&lt;/p&gt;
 </description>
     <pubDate>Sat, 09 Jul 2005 09:34:07 +0000</pubDate>
 <dc:creator>rayzun</dc:creator>
 <guid isPermaLink="false">comment 1174435 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/big-help-needed-cant-figure#comment-1174431</link>
    <description> &lt;p&gt;remove the limit 0,1&lt;/p&gt;
 </description>
     <pubDate>Sat, 09 Jul 2005 08:03:23 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1174431 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
