The online racing simulator
Searching in All forums
(980 results)
PHP help needed
keiran
S2 licensed
Somethings got me a little confused and I can't seem to work a solution to it. I know it must be simple but I just can't figure out why this is happening .


<?php 
while($b $a){
    while(
$z $half){           
        echo 
"<td>";
            
$images mysql_query("SELECT * FROM gallery_photos WHERE photo_id = '$image[$b]'");
            while(
$myrow mysql_fetch_assoc($images))
            {
            
$filename $myrow['photo_filename'];
            
$caption $myrow['photo_caption'];
            }
            
            <
a href="image.php?code=echo $caption;" target="_blank"><img src="im/echo $images_dir;/tb_echo $filename;" alt="click for larger image"/></a>
            
php
        
echo "</td>";
        
$b $b 1;
        
$z $z 1;
    }
        echo 
"</tr>";
        
$z 0;
?>

The problem I have with the above code is that during the (while($z < $half){), $b can become a larger number than $a because it obviously bypasses the `main` while. My solution to this was to add an if like so:


<?php 
    
while($z $half){            // Displays the top row in table (images)
        
if($b $a){
        echo 
"<td>";
            
$images mysql_query("SELECT * FROM gallery_photos WHERE photo_id = '$image[$b]'");
            while(
$myrow mysql_fetch_assoc($images))
            {
            
$filename $myrow['photo_filename'];
            
$caption $myrow['photo_caption'];
            }
            
            <
a href="image.php?code=echo $caption;" target="_blank"><img src="im/echo $images_dir;/tb_echo $filename;" alt="click for larger image"/></a>
            
php
        
echo "</td>";
        
$b $b 1;
        
$z $z 1;
        }
    }
?>

Whilst this does what I need it to do, the page never stops loading so I assume the `if` statement is never closing.

The reason I need to do this is because the way it works at the moment it just repeats the same item till it reaches `$half`. Example of my test page (http://www.designsonpine.co.uk ... ctsT.php?sub_categoryid=4).

Anyone got any ideas?
keiran
S2 licensed
What a silly claim, anyone can be as good as anyone else? There is no such thing as talent? Your point doesn't make much sense, Leprekaun.

I'll beat people with more mileage than me in LFS and people with less mileage than me also manage to beat me. That throws your theory right out the window.

Mileage and practice will only get you to a certain level, after that it comes down to talent in finding that little extra. Sure, with determination you can try improve this talent but it will just never come as naturally as it does to the ones who are `born` with it, so to speak. I’ve watched people race karts for years and years and still never get good at it. One in particular practically finished last in every race he did, even against people in their first race meeting (novices). For me it just never seemed to click, he could never improve.

To me it’s just logical that some people just can’t think the way they need to, to go quick. Some people are good with maths, some with English and some are better at thinking logically. Whether this is something we are born with or it’s to do with how we’ve been brought up at a very young age, I have no idea. I just know that people are better than me at various tasks, no matter how much work I put in. I had to work my ass off to pass higher English where as a couple of my friends passed with an A without doing much work.

I know for a fact I'll never be as good as Bawbag or any of the other well known drivers. I just can't find that limit and whilst I may with more practice get closer to this, they will just move the marker further in that time.

I started racing R/C Touring Cars four years back and I'm beating/competing with drivers who have probably covered more than 4 times the mileage I've done. Considering some of them have been racing for 15+ years, they should be beating me with that extra 11 years `experience.`

I can't help but laugh when people join servers, leave the pits and fly off the road a few times. Stop and ask for a setup, saying "Setup plz, mine keeps spinning" or words to that affect. They then get the setup and continue to fly off the road. I know this isn’t your point, before you repeat it I’m just stating something whilst we’re on the topic.

I’ll finish this off with a question for you. If it comes down to experience, why in the world did Ferrari pay Schumacher 50+ Million to drive for them, why did they lure Raikkonen with a similarly scary salary? Why do teams try lure great designers and engineers from other teams with big sums of money? If in actual fact they could grab a student and train them up to do the job whilst paying minimum wage. Give them more experience than Adrian Newey etc received before they started designing race winning cars…
keiran
S2 licensed
You have unzipped it keeping the folder structure?
keiran
S2 licensed
I don't quite understand how you can be globally banned today when your last race was on the 6th - http://www.lfsworld.net/?win=stats&racer=funnybone2 and only been in 5 different servers this month.
keiran
S2 licensed
Quote from Cr!t!calDrift :While palying on the Demo servers, if you press ctrl+shift, would it be better if you could see who has a license? (As displayed as you unlocked it)

This could also reveal crackers--as their usernames would not be in the database.

Could it check people on demo servers who have s2 licenses?

Would this even help?

People who crack the game can't connect to the master server as it stands... That's why you have to enter a username + password to unlock LFS. That username and password is checked everytime you connect to the master server.
keiran
S2 licensed
Quote from Becky Rose :Ah ok, I had no idea Hamilton was running Bridgestone F1 tyres last season. If you dismiss everything else as the car, the fact that Hamilton has adapted to his new environment faster than Alonso is in itself a huge achievement.

Hamilton has been testing that McLaren for months prior to Alonso getting out of his Renault contract. Lewis had already established himself and his style with the engineers well before Alonso was even getting a seat fitted .

Quote from Boris Lozac :And that crap about the qualification, "he was on low fuel"... How's that an excuse? Isn't it the point to have low fuel in the qualis to make the best time out of the car?

Heh? Have you actually watched F1 in the past 3 years...

Drivers carry their race fuel load through the qualifying session (for the past two seasons they carry it in the final session). So a driver who qualified a few tenths shy with 4 more laps of fuel in it did a hell of a lot better of a lap than the lighter one. The aim is to run longer than your competitor and throw in the quick laps while they are out struggling with a heavy fuel load.

Quote from tristancliffe :
I do hate Alonso though. Grumpy, crap under (political) pressure, whining, silly driving style. I just never 'warmed' to him like I did with Senna, Schumi, Hill, Hakkinen, Villeneuve (during his championship years, he later became a whiner too), Kimi, Irvine, Herbert. Prost I always found dull (though that was part of his magic), and Mansell was great to watch desite the dull whinyness...

I'd actually like to see you back up them statements, as I think you'll fail miserably .

Grumpy? Debateable, he has his moments like any other driver. Although he has yet to claim another driver tried to kill him and throw the toys out the pram at his own mistake . Or slag off another driver and throw his helmet at the garage at his own mistake of brake testing another driver in a dark tunnel.

Crap under (political) pressure? Lets look back to last year. He had the mass damper saga, an unfair penalty for being let past another car under yellow flags (Hungary) and another unfair penalty at Monza. Not to mention the struggle with a car that just simply wasn't as quick as the Ferraris and the various retirements, none of which were his fault.

Now at Hungary Alonso drove a stunning race until the wheel nut came off, some of the best overtaking in a long time. At Monza which caused the biggest who-ha, he drove another stunning race until the engine let go. I actually can't remember any mistakes from him as a driver last year, he drove a faultless season and kept pushing against the odds while Ferrari had the quicker car.

His head was stronger than Schumacher last year who was in the quickest car for over half the season but binned it a couple of times during the season and attempted a rather silly parking manoeuvre.
Last edited by keiran, .
keiran
S2 licensed
As far as I can recall McLaren and Ferrari were the two teams setting the pace in winter testing. Renault were quite far off the mark and admitted themselves they had to push the development of the R26 further into the season than they wanted to win the championships.

The interesting thing with Hamilton so far is the last two races he has been on his back foot when it comes to pace. He was slower than Alonso in France and Silverstone. He was also slower in Indy if I recall correctly but McLaren had the car to be in there. Before anyone mentions his qualifying lap, well his lack of fuel was where that came from.

What I'm interested to see is now how he keeps his head in what is looking like a very strong come back from Ferrari, now he doesn't have a car that is the quickest. As things stand just now it's up to the driver to make it quicker.

I couldn't help but laugh every time Steve Ryder said, "But there are another 3 British drivers." I was almost shocked to know there was another 3 drivers, yet alone another 21. They filled the show with so much Hamilton blurb they couldn't even fit in their special feature...
keiran
S2 licensed
It's not a case of preference, it's the case that someone using 3rd person view has a huge advantage over someone who uses the cockpit view. With options like digital/analogue speedo that's down to preference.

Someone using 3rd person view can see exactly where the car is positioned, they can see any car alongside them without having to look left/right.

That is an unfair advantage over us who drive the car where your supposed to drive it from. What's the point in pushing the physics to the limit and drive it as if you were playing Grand Theft Auto?
keiran
S2 licensed
Great drives from Raikkonen and Alonso. Also a good recovery from Massa and another strong finish for Kubica.

Hamilton seemed to really be on his back foot. His laptimes on the soft tyre didn't even match what Alonso and Kimi were doing on the hard tyre.
keiran
S2 licensed
Quote from BenjiMC :Funny how FA's crew refuses to share information with LH's crew, i highly doubt he would be reading his telemtry, LH likes his cars to oversteer, FA likes it to be more understeery. if it rains i have a feeling LH has it in the bag cus of his driving style.

It's common knowledge that Alonso and Hamilton trade telemetry during qualifying. Why does driving styles come into this? Hamilton/Alonso aren't looking at the data to understand what there opponents car is doing. They are reading into it to understand where they are losing time...

Alonso hasn't driven with an understeery car all season... The Renault was naturally a very understeery car and still is. If it rains I don't see Hamilton's driving style paying off, getting the back end out in the wet is often dangerous as he proved in Hungary last year in GP2 .

The only information Alonso and Hamiltons crews don't share is fuel strategy, which after the first stops they share. With two highly competitive drivers they need to try keep them happy.

I'm interested to see why Alonso opted to save his harder tyres, especially after he set a super quick lap on the harder tyre.

keiran
S2 licensed
Quote from Nathan_French_14 :it was a simlulator created by bmw Toyota-Williams, so therefor, is'nt available to buy.

FYI, BMW has nothing to do with Toyota or Williams...

Quote from Nathan_French_14 :looked very realistic. they had one of the commentators who was an ex-formula one driver (martin blundell) and he was going around silverstone. He was sat inside the cockpit part of an F1 car with a huge projector in front of him showing the image from the simulator. The FFB seemed to be very impressive, martin blundell seems like quite a strong bloke, and yet even he was fighting against the ffb, it was jolting about when he hit the curbs, and it was responding to every little crack in the tarmac. At the end of the simulator run, his face was as red as a tomato

It's also Mark Blundell .


The actual driving part of the simulator appeared to be pretty good and the wheel seemed to have a strong force acting on it. Graphics wise it was nothing special, pretty basic shading and not even sure the suspension graphically moved, didn't pay too much attention to that.
keiran
S2 licensed
I think the smoking ban was great and has worked well in Scotland the last wee while.

The way I see it is why should a smoker have more rights than me, to force me to go outside and grab some fresh air every hour? Hell they most likely end up stretching the NHS even more for something so pointless. Smoking doesn't fufill any requirement needed to live...

I work in a karting centre and we recon (yet to test it) that you breath more carbon manoxiadte from a small group of smokers than you do while standing down on track with 14 karts running. For health and safety reasons we have to have sufficient ventaliation and montior the carbon manoxiadte readings, so why didn't pubs/restauratnts have to as well?

Quote from Bladerunner :Could not agree more... It's exactly the same as when they bought in the crash helmet law years ago, although I am a firm believer in wearing a lid, I _HATE_ some jumped up little prat* of a jobsworth government idiot telling me that I _HAVE_ to wear one, and I wouldn't force anybody else to wear one either!

Maybe because it's not you that has to view the mangled wreck? Why should the police/paramedics/fire brigade have to view someone's face worn through to the skull as it's scraped down the tarmac?
Last edited by keiran, .
keiran
S2 licensed
Watch some of the SPRs on LFS World, go to the hotlaps section and click on the laptime to download the replay.

You need to be a lot smoother. At the moment you're practically driving as if you were using a keyboard. Full throttle, lots of steering etc.

http://www.racerpartswholesale.com/images/_8119_figure30.gif
Basically that's how you want to position your car when cornering (line m).

Calm it all down, take the widest line into the corner, get the bulk of the braking done in a straight line. Hit the apex (inside of the corner) and then gently start accelerating on the exit. Take is slowly to start with and build up the speed as you gain confidence.

At the moment you're being so aggressive with the throttle that you end up using so much steering lock to make up for the understeer. Also don't shift down the gears so hard.
Last edited by keiran, .
keiran
S2 licensed
http://video.google.co.uk/vide ... ocid=-5305992491462766951

Slight disadvantage is its size, not quite big enough for a human
keiran
S2 licensed
Quote from ans7812 :what a dumb statement. When you are travelling at 70 mph and get flipped into the air after you rub tires with someone else, you will probably reconsider putting a safety belt in your kart.

For starters, the karts on indoor tracks will usually only hit 40mph. Second of all you don't want to be in a kart when it goes over, believe me I've seen people come out with neck injuries from getting trapped in their kart upside down. That's in a kart that weight a hell of a lot less than a hire kart. Yet to see someone get hurt when thrown clear of the kart. You want to be out of that thing ASAP if it's going to go over, why do you think superkarts hitting 150mph have no `safety` belts?

At the place I work we have `sodi` karts and even lifting the front end of one of them is heavy, yet alone the rear where all the weight is.


Only time I've seen some flames from a kart was a hire kart. It was a 4 stroke Honda with the fuel tank mounted on the engine, who ever fuelled it didn't put the lid back on properly. So of course not long in some fuel splashed on the exhaust and there was soon a bit of fire , spotted early enough though to get it out ASAP before it did any damage.

Quote from 11SuLLy11 :also almost impossible to flip a rental kart with there big V8 looking engine block weighing it down and there 110mm tubing and re-inforced side pods

I've yet to see a kart go over in the place I work but I've heard many stories of it happening from others who work their.

The public hire karts have exposed front wheels (all be it still fairly well hidden with plastic) but if you get an idiot who rams someone the plastic flexes just enough to allow contact and then with the aid of the track markers can put it upside down. Very rare though, as you usually can get the dangerous ones off the circuit before they cause any serious accident .
keiran
S2 licensed
Quote from tristancliffe :
And finally Kieran - you used to be sensible. But now you are only seeing 'The Rules'. Driver on the outside is wrong? No rights to corner? You cannot judge racing by the black and white application of rules. In this instance (going into a ~140mph(?) chicane already offline with another car poking his nose up the inside) he had just as much right.

Used to be sensible? Funny that my views of this have never been any different and has been the way I've raced in LFS and anything else.

There's where you are wrong and I'm surprised to see you say that. Schumacher was always stretching the rules to the limit and has done on many occasions left another driver out to dry, there is nothing wrong with doing such.

Quote :Besides, I've never seen a single rule saying "The driver on the inside is allowed to run drivers off the road".

Where do I say that, what I've stated is if the driver on the outside ends up off the track it's there fault.

http://www.youtube.com/watch?v=NPdnGa_VKjE - Schumacher gives Coulthard no room and actually takes him out wide for good measure. Had Coulthard kept his foot in it Schumacher would have driven him off the road. So are you saying that's unfair driving?

A driver on the outside is off line and in danger of attack from following cars, hence why many drivers will never leave themselves in this position. They'll yield and get back in line, just as Nick would have done had he not had the concrete area. Except he had a nice choice to lose less time and give himself a fighting chance of fighting Alonso back.

If anyone should be complaining about how `dangerous` the move was, surely Nick would be? But in fact he is actually praising the battle and so is Alonso...

Poking his nose? Really Tristan, you're being pathetic. We all know you hate Alonso but your persistency in trying to slag him off at any moment is just incredible, how you can be bothered is beyond me.

Go watch the clips posted above, Alonso's car was pretty much fully past Nick before they even reached the apex... and Nick had no hope in hell of staying on the track had he even attempted to hit the second apex. He knew that himself and went straight across the run off well before Alonso had any chance of `running` him off the road.
keiran
S2 licensed
Quote from DeKo :Yes, i have lots of karting experience, regularly go to the indoor kart track in falkirk, and am within 3/4 of a second of the record. I make the same types of overtakes that your talking about all the time on a kart track, but the fact is that they just do not pass in real motor racing.

I'm not wanting to get involved with this argument as it's getting a little bit silly but I do want to point out the sort of karts these guys are talking about couldn't be more different from your lawn more powered hire kart, that tops out at 40mph and weigh more than a racing shifter kart . Not to mention they are built ready for a petrol version of dodgems.

If you want to see proper karting, youtube/google/motors TV etc all have coverage and you'll see what these guys are saying. I want to make it clear that no one itentially forces the person on the outside off the track because the person on the outside realises he has lost the corner so doesn't leave himself in that position. Otherwise you'll end up losing 3 places, easily and in the mix of things you'll end up either hitting the 4th kart in the train while you try get back in line or drive yourself off the road. In this situation Nick knew he had a tarmac run off area, had that been grass or a wall he'd have backed out before the first apex. The biggest difference is in a competitive field of drivers, you can often have 4 or 5 karts in one train nose to tail. Even if you just miss one apex, 2 karts will nip past, or at least try. It's just the nature of having so much mechanical grip that it really does take very good race craft to do well.

Too many people make the mistake of comparing 4 stroke hire lawn mores to proper 2 stroke karts which aren't built to withstand hitting walls. What ever you want to believe people are just as cautious in overtaking in a kart as they are in single seaters. I've only raced one guy who was rather stupid and lets just say he got what was coming to him and became a lot more cautious after the scare.

Contact in a kart can result in a very heavy accident, real karts don't have near the same amount of plastic as hire karts. I've seen countless karts go end over end, and some where the driver has got trapped under them. The most spectacular being when a kart went barrel rolling end over end, more than I could count. The driver was luckily thrown clean out and was just a little shaken.

I've just kissed the rear tyre of a kart in front of me and it sent the front end of my kart up in the air, the majority of my vision very briefly was of the sky. I've had karts go over the top of me and hit my arm, hand etc.

There is still a lot of danger in contact and your a lot more exposed than a single seater, so I'd say you are more at risk of getting hurt.

In the end, the way I see it is if a driver has clearly got an overlap into the corner, there is very little point going the long way. If I go the long way in LFS and run out of road because of the guy on the inside I don't blame them, I'll blame my self for running my self off the road.

I just can't quite see what's so hard to understand that it sparks such a debate... The same thing happens in every single race series in the world, it's racing...
Last edited by keiran, .
keiran
S2 licensed
Quote from PwrSlave :
And for Alonso, imo this race was one in the series of this season where it can be briliantly seen that he is not true champion material. Only thing that got him the 2 titles was Mr. Briattore and the supremacy of the renault over the past 2 seasons.

The supremacy of that Renault was all too obvious in the hands of Fisi the last two seasons... Only finishing 20+ seconds behind his team mate on a good day in the same car... . (who apparently is not champion material, yet has won two of them... beating Schumacher fair & square)

If the Renault was so supreme why did they find themselves on their back foot and losing points hands over fist?

If anyone seriously believes an F1 driver reaches the sport (after probably 10-15 years of racing 100s even 1000s of different drivers in their life) and wins world titles without bags of skill. they really need to question what they believe IMO.

So on your theory does Schumacher deserve to be 7WDC, surely he only won 5 of them because of the supremacy of the Ferrari...
keiran
S2 licensed
Quote from N I K I :
Alonso sucked

Wearing tinted glasses?

Nothing sucked about his race. Did you not notice the director actually focused on his battles most of the race due to the fact it was the focal point of the entire race?

I thoroughly enjoyed the race and personally think he did a brilliant job, driver of the race IMO. Having a fuel strategy geared towards being out in clean air at the front did not help matters because he always pitted before the car he was battling. Nothing he could do about that... Overtaking in F1 is a difficult task and he managed to pull off some great moves, all be it blinded fan boys with a vendetta against him will continue to pursue the `Hate Alonso fan club.`

Quote from tristancliffe :Wasn't impressed by Alonso's move on Heidfeld. Forcing someone to take to the 'escape road' (note: he left no room on the second apex had Nick tried to stay on the track). Completely lacked finesse, fairness or flair - not very becoming of a two-times world champion in my opinion.

Funny how a Schumacher fan can come out with such a statement, I can recall a few occasions where he forced other drivers off the track

Surely of all people you understand that Nick was leaving himself in danger and that where he ended up was his fault? Alonso was clearly sighted down the inside well before they even hit the apex where Nick decided to keep his foot in it with no where to go, Nick was to blame in my view.

Any driver who finds himself off the track on the outside of another car is to blame, they don't have the right to the corner. Nick was off the track before the 2nd apex, he was carrying far too much speed to have a hope in hell of making that apex and stay on the track on the exit.

Does the fact both Alonso and Nick said it was a great race and neither complained about the other not show both felt it was a clean fight?

Quote :Anyway, it was all for nought - he was beaten by the BMW even though he was a lot faster. Ha ha ha ha ha!

So you put down a driver battling hard and in the end it not paying off due to pit strategy? So if you were in a similar situation I guess you'd give up? What a fighting sprit that is...
keiran
S2 licensed
Quote from theirishnoob :there no discussion about it , your right foot is always over the accl and you use your left for clutch/brake , if you don't use this style then your most likely the slower racer on the circuit

Eh?... How do you plan on clutching while braking? Hence the technique heal-toe...

If your right foot was always on the accelerator and left used for brake/clutch you would be the slowest racer on the circuit
keiran
S2 licensed
Quote from drinklime :lean out???? why? wouldnt you want more weight on the inside wheels?

You want to get as much weight on the tyres that are working, it also helps lift the inside rear which helps the kart turn as it doesn't have a differential.

Although those things will be that damn heavy I doubt leaning is going to make much difference.
keiran
S2 licensed
Quote from srdsprinter :45mph is somewhat decently quick for a kart though, it should be a fun time.

Even twin engined 4 stroke hire pro karts struggle to top much more than 50-55mph so I'm highly doubting something that's probably not far off the weight can do 45. Maybe 25-30mph with a tail wind
keiran
S2 licensed
Quote from sam1600 :
He can't even tell which car is which, let alone which driver.


Exactly why he was great. He made the commentating interesting and got the audience more interested in the race because he was more excitable. The Brundle, Walker combination made a great team IMO. Made the races a lot more entertaining than Allan and Brundle.

The things Murray came out with were hilarious and there's a whole web page full of sound clips of the man at work - http://www.farzadsf1gallery.com/f1_sounds.php

Keiran

keiran
S2 licensed
or just follow the FAQ on lfs.net... http://www.lfs.net/?page=dummies_page

Quote from http://www.lfs.net/?page=dummies_page :If your email address has changed since you registered and thus your password cannot be sent to you automatically, you can get your login details back from us,
provided that you can send us proof of purchase, like the purchase receipt email, or a scan of your credit card statement, showing your full name and address and the Live for Speed purchase details (you can hide the rest).

If you can provide any of these you can mail us to regain access to your account.

When you have regained access to your account, do not forget to write down your login details on a piece of paper and store it safely with other important documents, so you won't forget them again.

FGED GREDG RDFGDR GSFDG