[PHP] Re: Convert time

2005-03-18 Thread Jim Plush
try something like echo date(Y, m, d, g, i, s, $timevalue); thats based on your example or you can do echo date(m/d/Y g:i s, $timevalue); which would show something like 05/19/2005 5:45 23 Jim's PHP Weblog www.litfuel.net/plush [EMAIL PROTECTED] wrote: Hi, I have a database where i store the

[PHP] Re: getting text with strange encodng

2005-03-17 Thread Jim Plush
Where did the string come from? Jim PHP WebBlog = http://www.litfuel.net/plush/ Diana Castillo wrote: Does anyone know what kind of string encoding this is : regreg mAreg and how can I decode this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Screen resolution in php

2005-03-15 Thread Jim Plush
you can get the resolution from javascript then pass that info to php using HTTP REQUEST http://jibbering.com/2002/4/httprequest.html or super low budget way could be to get that information from javascript then right after forward the page using javascript with the resolution variable in the

[PHP] Re: recommending a PHP book?

2005-03-15 Thread Jim Plush
Hey Danny, no good books on that subject regarding php/mcv that I've seen but PHP Architecht has some good articles on MVC, I believe they have a free issue that has a huge article on PHP/MVC. www.phparch.com Danny Lin wrote: Can any one recommend a good book that discusses MVC design patterns

[PHP] Re: PHP/Craig's List Scripts?

2005-03-14 Thread Jim Plush
Mike check out hotscripts.com in the PHP section, there are a billion scripts on there. you should be able to find one that matches your needs Jim carreraSC wrote: Hi, Has anyone ever seen a mockup or simulation of CL done in PHP, for download? I need to do a small scale version of it for an

[PHP] Re: Building PHP5 on Windows - VS.net?

2005-03-13 Thread Jim Plush
do you happen to remember what issues you may have had? thanks again [EMAIL PROTECTED] wrote: Jim, i had only minor issues, but it builds fine otherwise. Jim Plush [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Has anyone successfully built php5 using visual studio.net ? or is VC6

[PHP] Re: passing variables between pages without sessions

2005-03-13 Thread Jim Plush
Ross, is there a reason you don't want to use sessions again? Creating an associative array of each pages answers is much cleaner than passing hidden fields or get vars. Another option you could use it write the files to disk after each page save, that way if anything goes wrong(IE user

[PHP] Re: eregi expression for checking a domain

2005-03-13 Thread Jim Plush
this should work for any web address starting with www. // test for domain $domain = www.example.com; // This pattern will match anything that STARTS with www followed by a period, followed by at least 2 characters, // numbers and periods followed by a period followed by at least two characters

[PHP] Re: eregi expression for checking a domain

2005-03-13 Thread Jim Plush
also, note I used preg_match instead of ereg, preg is a better choice over ereg usually (flexibility, speed, etc) Ross Hulford wrote: Does anyone know a working eregi expression for determining a domain is valid? don't need the http:// just looking for www.thedomain.com cheers, R. -- PHP

[PHP] Re: Reading directory contents

2005-03-12 Thread Jim Plush
what you need is to make a recursive function, that is a function that calls itself like function open_dir() { if(is_dir($my_dir)) { open_dir(); } else { // read files here } } basically you're saying... I'm reading the top level directory, are you a file? ok I'll

[PHP] Building PHP5 on Windows - VS.net?

2005-03-12 Thread Jim Plush
Has anyone successfully built php5 using visual studio.net ? or is VC6 still only supported? thanks, Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Imap and attachments

2005-03-10 Thread Jim Plush
here is a script I use to get jpg attachments with IMAP.. good luck ?php //--+-- ---+-- -- - # view the contents of an array in html format #--- -+- // return the email account of the user so we can assign it to a user account function get_phone_address($i) {