The online racing simulator
Searching in All forums
(947 results)
CSU1
S2 licensed
Quote from cargame.nl :Go SSD and stop collecting garbage.

OT:

I imagine they are much more vulnerable to data corruption/loss?

...I don't think I'll ever feel sage keeping my irreplaceable data on an SSD...
CSU1
S2 licensed


meh - I thought it was a good idea to purchase these womans clothing domains as the contained very popular search terms - turns out eCommerce website are a bit more tricky than im used too.

Fumbling through different parsing components for Joomla is just cack.

I guess I'll have to manually populate my store manufactures, vendors and products (almost one hundred thousand products) and I might be able to get the stock and pricing info auto update myself, I just don't see how on earth it's possible to auto grab products from any CSV that has such poor product category structure, for example, virtuemart uses an integer to identify categories and is auto incremented as they are added, I needed to change it to VARCHAR as any attempt to import the CSV into the correct category would first need an interpreter to cross reference the old INT category ID with the content of the category field in the CSV - it's all like this and very messy.

The single most annoying thing about all of this is the fact that suppliers wont use or agree on standard category names & structure...it gets confusing - was three in the morn and I was like :insane:

If it works out I guess I'll pay someone to come in and rebuild/sort out some things...
help a php n00b <-_->
CSU1
S2 licensed
...anyone here have a moment to spare with a complete n00b?

I has a problem. I need to write a script that:
  • Gets csv from http
  • extracts a number of fields and inserts into MySQL tables (field structure of web CSV does not match that of the MySQL table)
...
CSU1
S2 licensed
I found this - through insims we stop autotrololol

CSU1
S2 licensed
Quote from bunder9999 :w3c html validation.

use & instead of the & character.

Feedgator takes RSS feeds and converts it into content and articles, the problem is that the component (feedgator) does not like to see XML language anywhere in the title or body of any RSS feed.
This is only happening with that one feed so screw it - i thought it was a problem on my end (although it would be nice to have a workaround in case it comes across this & in the future...)
CSU1
S2 licensed
Quote from bunder9999 :you had set the path to E:\php, did it create anything in there?

na, afaik you just need to declare where php.exe is at the start of the batch file, php.exe itself would direct any errors to the set error/log folders

Quote from MadCatX :"echo" in PHP is a command to write text to output. What breadfan suggests is that you put

echo "Script got here";

In the PHP script in a few places. As the script is executed line by line, you'll see the text written by "echo" appearing. It will help you track down where the script hangs, I hope you get the idea behind this...

yes, thanks - It's getting to the 3rd last line of code ($controller->import('all');), and firefox threw out this error:
SimplePie error: XML error: XML_ERR_NAME_REQUIRED at line 376, column 64 for Auto Mechanic Dublin (http://www.beepbeep.ie/newsrss.php?section=Industry+News)

Reading around about this Simplepie error it seems to be something todo with the ampersand in feeds...feed validation for this feed confirms...

What's up with this '&', has anyone come across such errors and have worked around it???

E;

Ok, I understand the ampersand is XML spec and should not be used in RSS feeds,
Anyone know how I could tell the cron.php to replace '&' with 'and' in that code above???
Last edited by CSU1, .
CSU1
S2 licensed
Quote from breadfan :Echo a unique string after each suspicious line of code to see where the program stops. Or echo the important variables at various point to work as "watches" for values.

would you mind giving me (complete n00b) an example please?

I have MS Visual Web Dev. installed...dunno why lol, I've no clue about coding
Anyone here good with IIS + Cronjobs?
CSU1
S2 licensed
...on the off chance anyone is clued up on the above.

[brief description of setup]
IIS7 running latest MySQL and versions of PHP, the site in question is running Jooomla 1.5

I'm using MS Task Scheduler to run this batch file (cron.bat):
SET PATH="E:\php"
start php.exe E:\www\AMD\administrator\components\com_feedgator\cron.feedgator.php

and here is cron.feedgator.php:


<?php 
php

/**
* FeedGator - Aggregate RSS newsfeed content into a Joomla! database
* @version 2.3.2
* @package FeedGator
* @author Original author Stephen Simmons
* @now continued and modified by Matt Faulds, Remco Boom & Stephane Koenig and others
* @email [email protected]
* @Joomla 1.5 Version by J. Kapusciarz (mrjozo)
* @copyright (C) 2005 by Stephen Simmons - All rights reserved
* @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
*
**/


define'_JEXEC');

define('DS'DIRECTORY_SEPARATOR);
define('JPATH_ROOT'substr(__FILE__,0,strrpos(__FILE__DS.'administrator')));
define('JPATH_BASE'JPATH_ROOT.DS.'administrator');
define('JPATH_COMPONENT'JPATH_BASE.DS.'components'.DS.'com_feedgator');

@require_once( 
JPATH_BASE.DS.'includes'.DS.'defines.php' );
require_once( 
JPATH_BASE.DS.'includes'.DS.'framework.php' );
require_once( 
JPATH_BASE.DS.'includes'.DS.'helper.php' );
require_once( 
JPATH_BASE.DS.'includes'.DS.'toolbar.php' );

$mainframe = &JFactory::getApplication('site');
$mainframe->initialise();

define('FG_VERSION''2.3.2');

$version = new JVersion();
define('J_VERSION'$version->getShortVersion());

require_once ( 
JPATH_COMPONENT.DS.'controller.php');
require_once ( 
JPATH_COMPONENT.DS.'factory.feedgator.php');
require_once ( 
JPATH_COMPONENT.DS.'helpers'.DS.'feedgator.helper.php');
require_once ( 
JPATH_COMPONENT.DS.'helpers'.DS.'feedgator.utility.php');
if(
file_exists(JPATH_ROOT.DS.'plugins'.DS.'system'.DS.'addkeywords.php')) {
    require_once( 
JPATH_ROOT.DS.'plugins'.DS.'system'.DS.'addkeywords.php' );
}
FeedgatorUtility:[:p]rofiling('Start cron');

define('SPIE_CACHE_AGE'60*10);

require_once( 
JPATH_ROOT.DS.'libraries'.DS.'simplepie'.DS.'simplepie.php');
require_once(
JPATH_COMPONENT.DS.'inc'.DS.'simplepie'.DS.'overrides.php');
FeedgatorUtility:[:p]rofiling('Loaded SimplePie');

JRequest::setVar('task','cron','get');
JRequest::setVar(JUtility::getToken(),'1','get');

$controller = new FeedgatorController();
$controller->import('all');

FeedgatorUtility:[:p]rofiling('End');
echo 
'Import finished';
?>

Long story short, I have to use this component (feedgator) as it grabs RSS feeds in a specific way no others do. Other components run their cron's without fail, but feedgators just doesn't seem to do anything even when I manually run the cron.bat

Q. How do I "see" any error's created by cron.feedgator.php? I have tried manually navigating to \administrator\components\com_feedgator\cron.feedgator.php with PHP error reporting turned ON but it creates nothing, no errors... Anyone have any ideas of what could be wrong by glancing through it and how I could debug it???
CSU1
S2 licensed
Quote from dadge :... mustache).

Thats called giving someone a smear lmao - tis horseplay (sticking your finger in yer rusty an wipin' on face - LMAO*
CSU1
S2 licensed
Quote from dadge :? they nearly start at your top lip lmao!!
.



It herededatary(SP?)

shud see by sister
CSU1
S2 licensed
Quote from Scrabby :

U have a wooden seahorse? AWSOME!!

me.tree+sheep



CSU1
S2 licensed

Happy

E;

I need not Photoshop this pic same as OP to illustrate how ***ked up I was =)
CSU1
S2 licensed
CSU1
S2 licensed
...hardest hurdle to overcome is getting your head down into the books without distractions...

You've probably gotten attached to certain commitments in your life by now and have certain things you like to do throughout the day from time to time with friends & familly, so once you get your head around morphing into a solitary being for a couple of months you will find it a whole lot smoother
CSU1
S2 licensed
Quote from no_one :An old mercedes?

(choc chip cookies plz!)

nope, car is one of a kind and is well known all over the world
CSU1
S2 licensed
My fav car sound!

OnE MiLliOn CoOkiEs! to who can guess what car it's from...
hehe.mp3
CSU1
S2 licensed
Quote from dadge :my mum has the one with the ipod dock in it.

Quote from dadge :Nobody puts baby in the corner! apart from that, i know the butt plug is my dads. it was my sisters but it kept ripping her twitter (the bit of skin between the twat and the shitter). and my dad's a sucker for a bargain. so to speak.

Quote from -NightFly- :But why are you walking eyes closed through your moms bedroom?
Dadge haven't said anything about his mom, you made your own conclusions wich usually comes from own experience and you even confirmed it.
Now some pics pl0x!

Would you not close your eye's in a house laike that? - besides, I'm always blind-folded when I come over...just a little game we play hehe LoL ^^

Nice one dadge - can always rely on you for the goddies lmao
CSU1
S2 licensed
Quote from -NightFly- :Milf?

Understatement

Dadge's MoM = SuperMilf
CSU1
S2 licensed
Quote from dadge :we'll just assume it's the Cactus Jack foot long butt plug

...you been in your mothers bedroom again ? - you should probably keep your eye's closed when walking through that part of the house (I do)
CSU1
S2 licensed
Quote from U4IK ST8 :
And no one is bickering, we are trying to find out what really happened through discussion, to find the truth, so that the families of the people who did die on 911 will know exactly what happened!

I'm pretty sure two planes crashed into the World Trade Center Towers...countless died - that's what happened.

These discussions are dis-tasteful (check the smiley-face dust/rain pic above) - show some respect and leave it alone.
CSU1
S2 licensed
Please let these people rest in peace.

Stop bickering - I feel oddly disturbed about this kind of discussion and don't see the need why people feel the need to dissect the event, it's ignorant.
CSU1
S2 licensed
Quote from XCNuse :I bought minecraft last Saturday

There's hope for us all

Sorry to hear that btw...
FGED GREDG RDFGDR GSFDG