Re: [PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Dušan Novaković
$query = DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() - INTERVAL 3 MONTH AND NOW() On Fri, Aug 2, 2013 at 12:58 PM, Karl-Arne Gjersøyen karlar...@gmail.comwrote: Hello again, folks! I wish to delete records in my database that is older than 3 months. $todays_date =

Re: [PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Dušan Novaković
...@gmail.com wrote: 2013/8/2 Dušan Novaković ndu...@gmail.com $query = DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() - INTERVAL 3 MONTH AND NOW() This delete everything from now and 3months backwards. I want to store 3 months from now and delete OLDER than 3 months old

[PHP] Chat

2010-11-09 Thread Dušan Novaković
Hello there, I have to make chat for website that has around 10 000 users (small social network). So before I start, I would like to hear different opinions. Important thing is to have in mind that in one moment you can have over 1 000 users using chat. So, if you have time fill free to write you

Re: [PHP] Re: Text editor for Ubuntu with FTP

2010-08-02 Thread Dušan Novaković
True :-) But, in my opinion if you plan to get really serious, then you should consider using Eclipse or NetBeans :-) There you have everything you'll ever need (but of course you have to say goodbye to Designer mode from Dreamweaver :-) ) Dusan On Sun, Aug 1, 2010 at 6:32 AM, David Robley

Re: [PHP] storing files in database and retriving them

2010-07-28 Thread Dušan Novaković
rquadl...@gmail.com: 2010/7/27 Dušan Novaković ndu...@gmail.com: I don't think that it will help :-( I've tried to set different headers but still I end up with some strange response, like: %PDF-1.3 3 0 obj /Type /Page /Parent 1 0 R /Resources 2 0 R /Contents 4 0 R endobj 4 0 obj /Filter

Re: [PHP] storing files in database and retriving them

2010-07-28 Thread Dušan Novaković
Ok, I found the problem :-) There was nothing wrong with storing or sending files, it's just that I tried to load file with jQuery on wrong way :-( Sorry once more to everyone :-( Dusan 2010/7/28 Dušan Novaković ndu...@gmail.com: Hi, Here are headers: Response Headers

[PHP] storing files in database and retriving them

2010-07-27 Thread Dušan Novaković
hello, I have some problems with storing files in db and retriving them, so probably I'm doing something wrong :-) Here is the case: I have on one of the pages request to generate some PDF files and store them in database. So, I use FPDF to create files, and that's working perfect. Then my system

Re: [PHP] storing files in database and retriving them

2010-07-27 Thread Dušan Novaković
Hello, so when I'm sending the array to model it's like this: $fp = fopen(INVOICE_PATH.date('Y-m-d').DS.$pdfName, r); $pdfContent = array( 'file' = base64_encode(fread($fp, filesize(INVOICE_PATH.date('Y-m-d').DS.$pdfName))),

Re: [PHP] storing files in database and retriving them

2010-07-27 Thread Dušan Novaković
Hello Peter, I can't use files from filesystem. Let's say that they are not on the some mashine where is application that has to show files :-) So it has to be in exact order as I wrote :-( 2010/7/27 Peter Lind peter.e.l...@gmail.com: 2010/7/27 Dušan Novaković ndu...@gmail.com: Hello, so

Re: [PHP] Text editor

2010-07-27 Thread Dušan Novaković
You can use TinyMCE. It's really easy to integrate in system. Check on official website. Dusan On Tue, Jul 27, 2010 at 12:10 PM, Jordan Jovanov jovanovj...@gmail.com wrote: Hello All I need me to add form for comment to one web site, but i want to use some taxt edtior. Simething similar of

Re: [PHP] storing files in database and retriving them

2010-07-27 Thread Dušan Novaković
suggestion? Some different header or ... ? 2010/7/27 Richard Quadling rquadl...@gmail.com: 2010/7/27 Dušan Novaković ndu...@gmail.com: hello, I have some problems with storing files in db and retriving them, so probably I'm doing something wrong :-) Here is the case: I have on one of the pages

[PHP] set different .htaccess rules

2010-07-15 Thread Dušan Novaković
Hello all, I have problem with protecting files inside of folder. So, I have one folder with files inside and the idea is to be able to see those files (format is not important) only when you are logged in system. I can't use solutions like to set some wierd name so that actually user is hardly

Re: [PHP] NetBeans Question

2010-05-31 Thread Dušan Novaković
Hi, I've been using NetBeans for some time and I found that there are some issues like for Web applications if you write html tag incorrectlly, you wont be informed about that, for stand alone applications in Java there were also some stupid errors, etc. So, I strongly suggest to check out

[PHP] How to write specification

2010-01-08 Thread Dušan Novaković
Hi, I've been programing for some time, but I never tried to write code for two different application in same way. How when I work with more programmers it's even worse. Everyone is forcing it's way of writing functions inside classes or writing variables, etc. My idea is to code according to the

[PHP] Validation XHTML code and repairing broken one

2009-09-17 Thread Dušan Novaković
Hello, I have few questions about validation XHTML and repairing if it's broken. The problem is that I have some, for example HTML code (simple web page) and want to load that page to DOMDocument and than make something of it. That part works perfect, but if there is unclosed tag or something

[PHP] Notification system

2009-08-02 Thread Dušan Novaković
Hi, Does anyone has any idea how to create notification system with combination of php, mysql and javascript. It should be something similar to facebook notification system (when someone make some action it should be automatically reported to other people on system through pop-up menu or

[PHP] Font problem

2009-07-28 Thread Dušan Novaković
Hi, Is there a possibility that if there is no font installed on client side somehow browser finds it and redirect that font form server to client machine. For example: I have site that use Microsoft font and that font is not available on Linux distributions. So when u open page in FF on some

[PHP] Validation data - question

2009-06-24 Thread Dušan Novaković
Hi guys, Does anyone know how to write validation for data witch contains letters such as šđčćž (those are Serbian letters)? Here is part of my code where it does validation: $admins_validation = array('name'= '/^[[:alnum:][:punct:][:space:]]{1,50}$/',

[PHP] move_uploaded_file() problem

2009-02-07 Thread Dušan Novaković
Hi, I'm having problem with function move_uploaded_file() under Linux (Slackware 12.2). It simply want execute only that function in php file. So maybe I should add something to http.config file or ? I tried to execute that php file under Windows and it's working just fine (I've copied

[PHP] Re: move_uploaded_file() problem

2009-02-07 Thread Dušan Novaković
whole project to xampp's htdocs folder and run it normally). And also I have question, does anyone knows how to configure apache (also under same Linux) so that in future I wouldn't have to write ?php but only ? every time I start php code? Thnx, Dusan On Sat, Feb 7, 2009 at 11:53 AM, Dušan

Re: [PHP] Re: move_uploaded_file() problem

2009-02-07 Thread Dušan Novaković
On Sat, Feb 7, 2009 at 12:29 PM, Alpár Török torokal...@gmail.com wrote: 2009/2/7 Dušan Novaković ndu...@gmail.com Hi, I'm having problem with function move_uploaded_file() under Linux (Slackware 12.2). It  simply won't execute only that function in php file. So maybe I should add

[PHP] Redirecting from unreachable page on website

2009-01-21 Thread Dušan Novaković
Hi, Is there some elegant solution how to redirect if someone try to open some non existing page (e.g www.domain.com/nonexistingpage.php) to main page www.domain.com on website? thnx, Dusan -- made by Dusan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Dušan Novaković
apache :-) 2009/1/21 Kyle Terry k...@kyleterry.com: 2009/1/21 Kyle Terry k...@kyleterry.com: On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković ndu...@gmail.com wrote: Hi, Is there some elegant solution how to redirect if someone try to open some non existing page (e.g www.domain.com

[PHP] Output to matrix printer

2008-10-14 Thread Dušan Novaković
I have some request to sent text to matrix printer to print ticket for theater. Is it possible to do that whit some php functions? Main point is how to control length of paper that will be drawn inside and to print text on a specific place. It would be nice if somebody can write the code about

Re: [PHP] Session problem

2007-09-30 Thread Dušan Novaković
Does no one have some solution or suggestion? Dušan On 9/29/07, Dušan Novaković [EMAIL PROTECTED] wrote: Hm.. I don't know that. I have also another application on the same server, and I haven't encountered problems of the same kind. I don't know whether these problems don't happend at all

[PHP] Session problem

2007-09-28 Thread Dušan Novaković
Hi, I have two problems with sessions. Firstly, even though session limit is set on default value on server, which is about 5 hours, if I don't take any action for about 15 mins I am thrown out and I have to log in again. Are there any addition functions which I can use in order to explicitly