[PHP] Confused overSimple PHP mySQL date question

2004-09-14 Thread Scott Miller
Hi, I have checked the recent list archives and looked up various PHP functions. I know what I want should be simple but, apparently not simple enought for me. I have a mysql database that has a date field and a time field. I want users to be able to enter a date and a time in text boxes on an

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
> [snip] > > $file ="/var/log/radius.log"; > > > $fp = popen("/usr/bin/tail -$limit $file", 'r'); > if (! $fp ) { > echo 'unable to pipe command'; > } > while (!feof($fp) ) { >$line = fgets($fp, 4096); > print $line.""; > > > } > ?> > > I've tried bumping up the 4096 to a higher numb

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
- Original Message - From: "Oliver Hankeln" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 10:01 AM Subject: Re: [PHP] Read Last Lines of a Text File > Scott Miller wrote: > > > - Original Message - > >

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
- Original Message - From: "Oliver Hankeln" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:29 AM Subject: Re: [PHP] Read Last Lines of a Text File > Scott Miller wrote: > > >>>I've changed my script to the fol

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
- Original Message - From: "Oliver Hankeln" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 9:13 AM Subject: Re: [PHP] Read Last Lines of a Text File > Scott Miller wrote: > > >>* Thus wrote Scott Miller ([EMAIL PROTECTED

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Scott Miller
> * Thus wrote Scott Miller ([EMAIL PROTECTED]): > > I have a text file (log file) that I want to be able to read the last 30 or > > 40 lines of. I've created the code below, but since this file is so large > > (currently 8 MB) it won't work. The code works on

[PHP] Read Last Lines of a Text File

2004-06-16 Thread Scott Miller
went wrong? Thanks, Scott Miller -- Outgoing mail is certified Virus Free. Checked by AVG Anti-Virus (http://www.grisoft.com). Version: 7.0.251 / Virus Database: 263.3.2 - Release Date: 6/15/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple Selection Box

2003-09-08 Thread Scott Miller
AAHH - stupid mistake - thanks! Guess I better re-read PHP-101 Thanks, Scott - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Scott Miller" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, September 08, 2003 1:54 PM S

[PHP] Simple Selection Box

2003-09-08 Thread Scott Miller
I"m attempting to create a simple selection box in PHP, but to no avail. It keeps giving me an error: You have an error in your SQL syntax near '; City='Eureka/'' at line 6 Here's a snip from my code: Add New User New user added'); } else { echo('Error adding new user: ' .

[PHP] Ticket Master-type script

2003-08-29 Thread Scott Miller
g would be greatly appriciated. Thanks, Scott Miller -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] One form - two db's?

2003-04-02 Thread Scott Miller
Is it feasible to have a php form update two different MySQL DB's at the same time, with all info going to one DB, and just certain info going to the second? Just dreaming of ways to make my life easier. Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] mailing forms and input into MySQL

2003-04-02 Thread Scott Miller
ripts that e-mail info, and ones that just enter info into a database, but have not attempted combining them. Anyone have any ideas, or is anyone doing this? If so, could you give me a quick how-to or point me in the direction of some online documentation? Thanks, Scott Miller

[PHP] Question about fopen()

2002-03-04 Thread Scott Miller
Hi, Does fopen() work similar to open in CGI ? If the file doesn't exist will it create it? What is the best way to test if the file was created? TIA Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php