GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #11  
Old 05-Dec-2003, 15:09
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
Ok, so I figured out the best way to present this data.

I can output the data using something like:

xyz.com/test.php?name=JdS

I have since embedded it within the existing template using @include.

Now I just have to read JdS' tutorial on parsing PHP in html files, test it out and I'll be ready to go.

The moral of this story: I saw a script that did more than what I have done (I don't mind doing some work since the data feed doesn't change that often) for $100. And of course it was restricted to one domain, the one merchant, etc. So by asking a few questions, doing some research and a little bit of hacking around (programming), I saved enough for almost 4 cases of beer.
__________________
Web Hosting Tips | Career Advice
Last edited by Div : 05-Dec-2003 at 16:03.
  #12  
Old 06-Dec-2003, 02:38
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Quote:
Originally posted by Div
ps - you should put this in the PHP library...cause I actually checked.


I am glad it all worked out for you... someday, I will add it to the Library.
  #13  
Old 28-Dec-2003, 11:17
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
The application went smoothly for my first project.

But for the second one is somewhat larger, with a larger database, etc. So I have been thinking about ways to optimize the script and have started looking at some caching utilities. Apart from that, my template system (Templatepower) doesn't seem as efficient with embedded php includes.

So, any ideas on php caching options? I just looked at Turck MMCache but I don't have the ability to compile it on my server. Another option would be phpCache (http://www.0x00.org/php/phpCache/). I'm not sure about the templating system...I might just use regular php includes.
__________________
Web Hosting Tips | Career Advice
  #14  
Old 28-Dec-2003, 11:31
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Quote:
Originally Posted by Div
So, any ideas on php caching options? I just looked at Turck MMCache but I don't have the ability to compile it on my server. Another option would be phpCache (http://www.0x00.org/php/phpCache/). I'm not sure about the templating system...I might just use regular php includes.

That phpcache thingy, it's a bit old isn't it? If you can you should try convincing your host to install Turck MMCache... that's preferred but if you can't, you can't.

Another thing that I do nowadays when I write my newer scripts is to store common db data serialize()'ed. The PHP function pair of serialize() / unserialize() is funky to use when you find you are grabbing the same (or rarely changing) data off a db table often...
  #15  
Old 28-Dec-2003, 11:58
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
Yeah it is pretty old...I might look around a bit more for another caching system. Thanks.
__________________
Web Hosting Tips | Career Advice
  #16  
Old 02-Jan-2004, 23:12
pamela pamela is offline
New Member
 
Join Date: Jan 2004
Location: Alberta
Posts: 1
pamela is on a distinguished road
Okay I am trying to use the code above to use a datafeed from one of my merchants, but I can't seem to get it to work. ( I AM VERY NEW TO PHP and mysql)

I created all the tables and put the data in but I am having troubles trying to use the data in any of my pages.

Could someone help me please?

Sincerely yours,
Pamela
  #17  
Old 03-Jan-2004, 00:06
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hello Pamela,

It may be a good idea for you to start a new thread with your question... and about your question, you definitely need to tell us what exactly you "can't seem to get to work"!
  #18  
Old 03-Jan-2004, 10:55
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
Can you run raw queries on you data? Do they yield relevant results? You might have to post a link or two and some of your code...
__________________
Web Hosting Tips | Career Advice
  #19  
Old 30-Jan-2004, 18:59
jvanv8 jvanv8 is offline
New Member
 
Join Date: Jan 2004
Posts: 1
jvanv8 is on a distinguished road
I have my script populating a large database. Some of the datafeed file sizes (txt files) are more than 70 MB. The main problem I have is errors or missing data in the feed, and categorizing the data into one category structure for multiple feeds.

Anyone found a good way to deal with this?
- John
  #20  
Old 30-Jan-2004, 19:43
Div's Avatar
Div Div is offline
Moderator
 
Join Date: May 2002
Posts: 996
Div has a spectacular aura aboutDiv has a spectacular aura about
That's the tough part John. I only use the subset of a feed from one merchant so its only 1-2 megs, but the 10-20 errors I usually come across have to be corrected by hand.
__________________
Web Hosting Tips | Career Advice
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Adsense could mean death to affilliate programs jrobbio AdSense Forum 12 11-Feb-2006 16:51
premade forums and other premade php programs invaderz MySQL / PHP Forum 1 06-Jul-2003 03:10

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:15.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.