Advertisement

03.16.2008 at 08:54PM PDT, ID: 23246125
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.1

Caching PHP Query Results

Asked by arthur_raft2 in PHP Scripting Language, RSS, WebApplications

Hello,

On my website, I use scripts to call up some RSS data (actually a weather forecast) - I call up scripts 2 ways - some by PHP and other by Javascript. Examples of both are below:

BY PHP
<?php
$s_Source = file_get_contents('http://webservice.weatherzone.com.au/rss/rss2.php?code=9477&obs=1&fc=1&warn=1');
file_put_contents('C:\stuff.html', $s_Source);
$s_Regex = '`<b>Temperature:</b> (\d+\.\d*?&#176;C).*<b>Relative humidity:</b> (\d+%)<br />`sim';
preg_match($s_Regex, $s_Source, $a_Match);
print_r($a_Match[2]);
?>

AND, BY JAVASCRIPT
<script type="text/javascript">function pipeCallback(obj) { document.write(""); var x; for (x = 0; x < obj.count ; x++) {  var buildstring = obj.value.items[x].description;  document.write(buildstring);  buildstring = null; } document.write;}</script>
<script type="text/javascript"  src="http://pipes.yahoo.com/pipes/pipe.run?_id=ViZr_vDu3BG8Q9WTxQnzeQ&_render=json&amp;_callback=pipeCallback"></script>

My site is deployed via a CMS (Joomla 1.5 actually) - Caching is active on my site, but it doesnt seem to apply to data called by the above scripts. Hence this feed is slowing my site down.

What I'm looking for is some code I could appy that would cache the results for around 30 minutes.

Any suggestions? I dont know much code (I'm just a hack), so scripting suggestions would be welcomed.

Start Free Trial
[+][-]03.16.2008 at 10:40PM PDT, ID: 21140019

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 03:35AM PDT, ID: 21141000

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 04:15AM PDT, ID: 21141161

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 04:29AM PDT, ID: 21141229

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 04:39AM PDT, ID: 21141279

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 04:45AM PDT, ID: 21141299

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.17.2008 at 09:29AM PDT, ID: 21143713

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.18.2008 at 02:37AM PDT, ID: 21149400

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.18.2008 at 02:42AM PDT, ID: 21149419

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.18.2008 at 06:04PM PDT, ID: 21157680

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.18.2008 at 06:14PM PDT, ID: 21157719

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.18.2008 at 07:48PM PDT, ID: 21158109

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 02:59AM PDT, ID: 21159706

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.19.2008 at 06:39PM PDT, ID: 21167503

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, RSS, WebApplications
Sign Up Now!
Solution Provided By: seanious
Participating Experts: 3
Solution Grade: A
 
 
[+][-]03.19.2008 at 07:01PM PDT, ID: 21167596

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.22.2008 at 01:24AM PDT, ID: 21185285

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.22.2008 at 05:43AM PDT, ID: 21185913

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628