Re: [PHP] Numeric help needed

2012-01-15 Thread Chris Payne
Hi Jason, I've tried lots of different things, including: echo br . round(68500, 1000) . ROUNDED; thinking that might be it, but i'm stumped This is the example I was given (And have to go by): If the loan amount is $68500.00, the insurace will be based on $69000.00 as the amount is always

[PHP] Thank you all for your help

2012-01-15 Thread Chris Payne
Hi there, A big thank you to all of you who took time to help me with my numeric problem from earlier, it's been a huge help :-) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help needed with calculation

2009-11-15 Thread Chris Payne
Hi everyone, I'm not sure of the correct formula for this, if I have a file - just for example, that is 10245458756 bytes long and the download speed is 60KB a second, what formula would I use to calculate how many seconds/minutes/hours it would take to download the file? Maths really isn't my

[PHP] What method is best for generating thumbnails in PHP from PDF's?

2009-11-12 Thread Chris Payne
Hi Everyone, I have been asked to create thumbnails from the first page of a PDF document on the fly with PHP, I have looked online but am confused as there doesn't seem 1 simple solution. What would you all recommend as an easy way to do this? Any help would be really appreciated. Chris --

[PHP] Downloader help needed :-(

2009-09-24 Thread Chris Payne
HI everyone, Thanks for those of you in the past that helped me with my downloader not displaying the filename. Someone gave me a link to the downloader below which works GREAT but i've tried and tried to limit the data transfer to 60KB a second andI can't get it to work, can any of you see what

Re: [PHP] Downloader help needed :-(

2009-09-24 Thread Chris Payne
Hi there, Thank you Tommy, I will look at this when my little 3 year old devil is in bed, I appreciate your help :-) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File download question

2009-09-06 Thread Chris Payne
Hi Everyone, I've setup a filedownload which works but i'm having an issue, i've left out but when it downloads it, while it has the correct file it doesn't have a file extension associated with it, I need the .7z extension associated with the filename, can anyone see why that would do this

[PHP] pre-screening pages before served?

2009-07-20 Thread Chris Payne
Hi everyone, Is it possible to have the system pre-screen a page before it is sent to a user? What I mean is, if someone requests index.php could I have a script scan the file before I serves it? The reason I ask is this way I could check for patterns on the script to make sure the page hasn't

Re: [PHP] pre-screening pages before served?

2009-07-20 Thread Chris Payne
On Mon, Jul 20, 2009 at 12:30 PM, Per Jessenp...@computer.org wrote: Chris Payne wrote: Hi everyone, Is it possible to have the system pre-screen a page before it is sent to a user?  What I mean is, if someone requests index.php could I have a script scan the file before I serves it? Yes

Re: [PHP] pre-screening pages before served?

2009-07-20 Thread Chris Payne
Really? This is an actual problem for you? It sounds too me that you have a malicious user on your server and if so, fire them. If you suspect you've been hacked from externally, then I would format and re-install -- or use a backup from a known good date. I've been coding PHP since 1996, and

[PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Hi everyone, My server appears to be the victim of a chinese hack-attack and I believe they managed to change pages via SQL Injection, do any of you have any ideas how to lock down my forms so MySQL cannot be used from my forms? Thanks everyone Chris -- PHP General Mailing List

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Hi everyone, Hmmm i'm not sure it is an SQL Injection now, done a lot more checking and it is inserting code at the end of every index.htm index.html default.html and index.php pages on my site. Ooooh what fun :-) Chris On Fri, Jul 10, 2009 at 2:22 PM, Govindagovinda.webdnat...@gmail.com

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Hi, Yes their IP is from Russia by Chinese in origin. How can this be prevented? Thank you all SO much for your help, it is very appreciated. Chris On Fri, Jul 10, 2009 at 2:40 PM, Daniel Browndanbr...@php.net wrote: On Fri, Jul 10, 2009 at 17:37, Chris Paynechris_pa...@danmangames.com

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Chris Payne
Thank you all SO much for your help, it is very appreciated.    So would be your move to bottom-posting (with nods to the jihad that was the longest thread of the list so far this month) as per the mailing list rules.  ;-P    What's the URL to your site, if you feel comfortable in providing

[PHP] Users Online?

2009-06-20 Thread Chris Payne
Hi everyone, I have a login system that allows a user to login to my control panel, is there an easy way so that I can tell how many users / what users are logged into my system? What would I need to do to add this with the minimum of hassle? Would I just have to look at the sessions that are

[PHP] Search/Replace in entire database?

2009-06-14 Thread Chris Payne
of different column names, and it would save so much time if I could do a single query that would just search EVERYTHING within the database. Thanks for any advice you can give me. Regards Chris Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php