Re: [PHP] How to get a unixtime with micro/mille seconds

2005-12-19 Thread Dragan Stanojevic - Nevidljivi
Mathijs wrote: I Want to have a unique time stamp. And for this i want to use the normal timestamp but it is possible that the seconds are the same, so i want to add the micro/milli seconds to the end of it. So when i have something like this as unixtime 1134989511 It wil be 113498951100 or

Re: [PHP] duplicate filenames but different .extention

2005-12-19 Thread Dragan Stanojevic - Nevidljivi
matt VanDeWalle wrote: hello again I am trying to figure out how i can read the list of files in a directory using the opendir() and readdir() functions. Normally this goes fine but within the loop, what i am wanting to do is echo the filename if it is a jpg file, but if its a .gif, just

[PHP] PHP5 class constants

2005-10-27 Thread Dragan Stanojevic - Nevidljivi
Hi guys, I think I've found a bug. I have a bunch of constants, and I'd like to present them as flags. While I can do class Foo { const AAA = 1; const BBB = 2; const CCC = 4; const DDD = 8; } and it works fine, I cannot define a constant by expression, like: class Foo { const

Re: [PHP] PHP5 class constants

2005-10-27 Thread Dragan Stanojevic - Nevidljivi
Jasper Bryant-Greene wrote: On Fri, 2005-10-28 at 01:02 +0200, Dragan Stanojevic - Nevidljivi wrote: [snip] and it works fine, I cannot define a constant by expression, like: class Foo { const AAA = 1 0; const BBB = 1 1; const CCC = 1 2; const DDD = 1 3; } Well now

Re: [PHP] Unique ID on 5.0.4 (Windows)

2005-09-21 Thread Dragan Stanojevic - Nevidljivi
Hi Chris, Chris wrote: Pretty soon I'm going to be needing to generate a unique identifier in a script. I'm looking into how to go about doing it now. It has to work on Apache 2 / PHP 5.0.4 (Module) / Windows 2000 Server. Any suggestions on how I might be able to do it? I'd appreciate any

Re: [PHP] Tidying code for PHP5.0.5/PHP4.4.0

2005-09-20 Thread Dragan Stanojevic - Nevidljivi
Jochem Maas wrote: Basically, in PHP, a reference (such as what key() takes as a parameter [1]) can only point to an actual variable, not directly to the result of a function. So you have to assign the output of the function to a variable first. wtf, Im now officially confused (before I

Re: [PHP] A dumb question - Regarding a php cms

2005-09-17 Thread Dragan Stanojevic - Nevidljivi
Troy Pieterman wrote: Im trying to run Syntax desktop which is a php cms (on my own server win2003). In the installation readme it tells me to edit a cfg.php file, i have done this but the cms still does not load, i have a feeling its becuase it dosnt know where to load its files from, here

Re: [PHP] date parsing

2005-09-13 Thread Dragan Stanojevic - Nevidljivi
Philippe Reynolds wrote: Greetings all, I am trying to find a function or a way to parse a date that has the following format 2005124 or 20051204. Well, the truth is, computers are stupid, and you need to explain this kind of date format to him by rewriting such date in a way that a

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-13 Thread Dragan Stanojevic - Nevidljivi
Ryan A wrote: I'm a bit curious, so far I have had no need to upgrade my skills or use the slightly different format / functions of PHP 5.x.infact I have not seen all that many hosts actually having support for it, so I thought of this little poll :-) [x] blah blah Don't think you'll get

Re: [PHP] Best way to mass mail

2005-09-12 Thread Dragan Stanojevic - Nevidljivi
Ryan A wrote: My client has a dating site and now he wants to mail all his members, he does not want to use any of the already installed mailing lists but wants us to make one The thing that bothers me the most is if the program times out..., how do I start again from the ones that