Re: [php-list] MYSQL - limit....

2007-07-01 Thread Ski Dawg
On Sun, 2007-07-01 at 22:45 +1200, Gordon Stewart wrote: > ORDER BY `montha` DESC, > > Hi, my month column/field is MM format... > > The above is part of a MYSQL query...I know I can use limit 5 - > however that will get me 5 rows of datais there a way to limit by > 5 months of data ?? >

Re: [php-list] Emails & PHP / PEAR ?

2007-01-27 Thread Ski Dawg
On Sat, 2007-01-27 at 19:57 +1300, Gordon Stewart wrote: > On 1/27/07, Ski Dawg <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-01-27 at 14:26 +1300, Gordon Stewart wrote: > > > The error message is :- > > > > > > Quote: > > > Fatal error:

Re: [php-list] Emails & PHP / PEAR ?

2007-01-26 Thread Ski Dawg
On Sat, 2007-01-27 at 14:26 +1300, Gordon Stewart wrote: > The error message is :- > > Quote: > Fatal error: main() [function.require]: Failed opening required > 'Mail.php' (include_path='.:/usr/local/lib/php') in /hermes/web09/ > etc... > > Does the error message mean I need to find the exact pa

Re: [php-list] redirect if not logged in

2006-10-28 Thread Ski Dawg
On Sat, 2006-10-28 at 22:57 +0100, Mark Mckee wrote: > hi all > > im having a little trouble with a login script. all works fine but i can > still access the admin pages with the full url. do you have any pointers > on how i can solve this? You have to check that they are logged in on every pag

Re: [php-list] process a BIG string

2006-10-07 Thread Ski Dawg
On Thu, 2006-10-05 at 05:44 +0100, Umang Savaliya wrote: > if error is error: Maximum execution time of 30 seconds exceeded > then set into php.ini file... > > header('Content-Type: text/html; charset=UTF-8'); > ini_set ( "memory_limit", "20M"); > ini_set ( "max_execution_time",-1); I haven't b

RE: [php-list] fgets question

2006-09-17 Thread Ski Dawg
On Sun, 2006-09-17 at 07:38 -0600, Mike Johnston wrote: > I don't think there is a problem adding the length parameter. > If it were me, I would write a program in C or C# to do this. Thanks for the reply Mike. I figured it wasn't a problem adding the length parameter. I just didn't know if that w

[php-list] fgets question

2006-09-16 Thread Ski Dawg
Hello everyone, I have run into an issue that I am not sure the best way to resolve. I am reading in a file (for an MLS data import) one line at a time, and then storing that line into a database. Here is what I am doing (with error checking and unrelated processing removed for brevity): Co

Re: [php-list] scanning a file for text and coping it

2006-09-09 Thread Ski Dawg
On Sat, 2006-09-09 at 13:14 -0500, Wade Smart wrote: > 09092006 1312 GMT-6 > > That is what Im talking about, except for one thing. > There are usually more than one section to copy. So, when I used > strpos() to find the first section to be copied, I might still have two > to 15 other sections t

Re: [php-list] scanning a file for text and coping it

2006-09-09 Thread Ski Dawg
On Sat, 2006-09-09 at 08:54 -0500, Wade Smart wrote: > Here is what I need to do: > 1. open a text file in a folder, > 2. scan the file for a predetermined word that marks the beginning of an > area, > 3. scan the file for a predetermined word that marks the end of an > area, > 4. copy the text be

Re: [php-list] CAT command

2006-08-26 Thread Ski Dawg
On Sat, 2006-08-26 at 19:18 +1200, Gordon Stewart wrote: > Hi there, Im not sure if this is a PHP command, or a specific server command.. > > but Im using :- > > echo `cat $temp >>$output 2>&1`; Without actually testing, and this may not work since it is early for me, but I would try this: echo

php-list@yahoogroups.com

2006-06-13 Thread Ski Dawg
On Tue, 2006-06-13 at 13:16 -0500, Mike Brandonisio wrote: > Also you have to use empty() on each var. > > if (empty($_POST['phhome']) && empty($_POST['phcell']) && empty($_POST > ['phwork']) && > empty($_POST['email'])) { This may be obvious, but it has caught me before. This will only return t

[php-list] file upload script question

2006-05-01 Thread Ski Dawg
Hello Everyone, I am working on a script that will allow (administrative only) users to upload some images for their site, but I am running into one problem. When I upload the images, they are owned by the user & group of the webserver. I have seen this be a pain in the arse for other programs

Re: [php-list] php redirect not working correctly

2006-02-19 Thread Ski Dawg
On Sun, 2006-02-05 at 00:56 -0700, Ski Dawg wrote: > I have run into an issue that I haven't seen before. I have a form that > I am working on to allow members to log into a site. Everything seems to > work correctly in IE 6, Firefox, konqueror, Opera and even Netscape 4.7 > mostl

Re: [php-list] php redirect not working correctly

2006-02-05 Thread Ski Dawg
On Sun, 2006-02-05 at 07:55 -0600, Wade Smart wrote: > 02052006 0754 GMT-6 > > I myself use this: > > > |session_encode(); > print ''; > echo "REDIRECTING";| Wade, Thanks for this feedback. I tried this and in the older IE browsers, it displays the REDIRECTING and then goes back to the log

[php-list] php redirect not working correctly

2006-02-04 Thread Ski Dawg
Hello Everyone, I have run into an issue that I haven't seen before. I have a form that I am working on to allow members to log into a site. Everything seems to work correctly in IE 6, Firefox, konqueror, Opera and even Netscape 4.7 mostly works. But when I try it in IE 5.5 or IE 5.01 (or I have b

Re: [php-list] PHP editor

2005-06-11 Thread Ski Dawg
On Sat, 2005-06-11 at 11:22 +, Javed Ahmed wrote: > Can anyone suggest me a good PHP editor to work with. My notebook has > got 128MB RAM and could not digest Zend client! I just stumbled across this site that has many different PHP editors listed (and reviewed). It seems to have a pretty good

Re: [php-list] getting the refferer of a visitor

2005-03-15 Thread Ski Dawg
On Wed, 2005-03-16 at 06:55 +0200, [EMAIL PROTECTED] wrote: > Hello, > I am implementing a visitor tracking system, and i do not know how can > i find where my visitort came from. Is there any avaiable piece of code, > Mike You can use $_SERVER['HTTP_REFERER']