Re: [PHP] Weird behaviour with move_uploaded_file on CGI version of PHP.

2007-05-24 Thread Brett Davidson
Richard Lynch wrote: On Wed, May 23, 2007 3:36 pm, Brett Davidson wrote: Platform : FreeBSD 6.2 Release with Apache 2.0.59 running PHP 5.2.1_3 CGI under SuExec in FastCGI mode. Issue: move_uploaded_file ALWAYS crfeates uploaded files with Unix permissions 600 (read and write for user only

[PHP] Weird behaviour with move_uploaded_file on CGI version of PHP.

2007-05-23 Thread Brett Davidson
with php installed as a module. Anyone else noticed this? Anything I'm doing wrong? Cheers, Brett. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] apache2/php file manager: security suggestions

2005-05-10 Thread brett
ctories will be owned by my user id. Apache will be configured to run scripts from the scripts dir. The data dir will be opened with open_baseDir. I will set up .htaccess on the data directory. Combine this with safe mode, and will i have the desired effect? Thanks, -brett -- PHP General Ma

RE: [PHP] Sessions and cookies

2005-02-21 Thread Brett Patterson
under the impressions that both Sessions and Cookies are stored on the user end, but I may be wrong. ~Brett -Original Message- From: Jacques [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 22, 2005 1:20 AM To: php-general@lists.php.net Subject: [PHP] Sessions and cookies When a session

RE: [PHP] weird mail function problem

2005-02-21 Thread Brett Patterson
uot; . phpversion() . "\n"; $header .= "X-Priority: 1"; $header .= "To: Some [EMAIL PROTECTED]"; // Masks To: field mail($to_email, $subject, $body, $header); } That would make more sense, yet still the server load would be huge because of all th

[PHP] [NEWBIE] PEAR::Mail Help Please

2005-02-21 Thread Brett Patterson
27;username'] = "ridgeswi"; $params['password'] = "**"; The email is not sent to either recipient, and I don't get an error, or if I do, it has no values: i.e. [: message="" code=0 mode= level= prefix="" info=""] Anyone see anything wrong? Is it perhaps that I'm using tabs instead of spaces for indentation or what? Thanks for the help. ~Brett

[PHP] [NEWBIE] PEAR Help

2005-02-21 Thread Brett Patterson
27;username'] = "ridgeswi"; $params['password'] = "**"; The email is not sent to either recipient, and I don't get an error, or if I do, it has no values: i.e. [: message="" code=0 mode= level= prefix="" info=""] Anyone see anything wrong? Is it perhaps that I'm using tabs instead of spaces for indentation or what? Thanks for the help. ~Brett

[PHP] PHP crypt() now adding $1$ to password

2002-07-02 Thread Brett Hay
t;Location: user.php?stop=1"); return; } I have about 1100 users with no $1$ and 20 with... First, what have I done to myself? Second is there an easy fix to get the new users working. Thank you for all the help. - Brett [EMAIL PROTECTED]

[PHP] PHP crypt now adding $1$ to password

2002-07-02 Thread Brett Hay
t;Location: user.php?stop=1"); return; } I have about 1100 users with no $1$ and 20 with... First, what have I done to myself? Second is there an easy fix to get the new users working. Thank you for all the help. - Brett [EMAIL PROTECTED]

[PHP] Re: [PEAR] [HTML_Form] cant change values in array after getAll()

2002-05-31 Thread Peter TB Brett
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ooops, incorrect scripts. Let's try again: --script1.php-- // for loop as in Zachery's example --script2.php-- // modified for loop That's much better. ;-) Peter Brett - ---

[PHP] Re: [PEAR] [HTML_Form] cant change values in array after getAll()

2002-05-31 Thread Peter TB Brett
ld output a blank page (no array members, therefore no iterations). However, script1.php output a list of numbers from 0 to when I terminated script execution by pressing Ctrl-C. Try checking your iteration conditions and try again. ;-) Sorry if I'm barking up the wrong tree

[PHP] Security Alert! PHP CGI cannot be accessed directly. HELP!

2002-05-17 Thread Brett Jenkins
vance --- Brett Jenkins Blueyoo.com Co - Creator, Co - Editor & Co -Moderator http://www.blueyoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: executing another php.script

2001-11-12 Thread Steve Brett
you don't need a sepaerate script. define two functions and then loop through calling the second function. much neater (and easier) Steve "David Tod Sigafoos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am sure that I am just .. missing this .. > > From

[PHP] Re: emailing attachments

2001-11-12 Thread Steve Brett
you need: {can't remember the exact syntax but it's the file type you're looking for, opens the file open dialogue so they can choose local file} Steve "Don" <[EMAIL PROTECTED]> wrote in message 004a01c16b33$b43a2c60$4fad2b18@cr993021a">news:004a01c16b33$b43a2c60$4fad2b18@cr993021a... Hi, I

[PHP] Re: #!/usr/local ignore option?

2001-11-12 Thread Steve Brett
why not just keep the module and drop the #!/usr/local/bin/php at the beginning of each script .. ? I've not heard of an ISP that asked for this b4 ... Steve "Michael Rice" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > I have a kind of unique prob

[PHP] warning eror

2001-11-11 Thread brett
and leave it alone and all hell breaks loose. If anyone has any input I would appreciate it. Brett

[PHP] Re: Apostrophes and Textareas

2001-11-09 Thread Steve Brett
have a look at get_html_translation_table htmlspecialchars() , htmlentities() and get_html_translation_table. these function do all the work for you without reinventing the wheel. Steve "Joe Van Meer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi there...I'm new to php co

Re: [PHP] Truncating Lines

2001-10-25 Thread brett
> > All works fine, except when a particular line in the html file is unusually > > long. hello, you could use object buffering instead. ob_start(); include 'your_page'; $body=ob_get_contents(); ob_end_clean(); This is how I send pages from my site in html to a mail address all

[PHP] Re: Legal advice

2001-09-21 Thread Steve Brett
why not just drop access and move to postgresql or mysql. go on .. make the leap; you know you want to Steve "Jon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > We are working with PHP & MYSQL, and we would like to publish some > information th

[PHP] Re: How to update a variable on a other frame.

2001-09-21 Thread Steve Brett
you need to update the page that the frame displays. call the page and then use 'target=' to direct the output to the frame of your choice. Steve "Hvm" <[EMAIL PROTECTED]> wrote in message 001001c14270$8a563380$0601a8c0@Hans">news:001001c14270$8a563380$0601a8c0@Hans... Hi all, Is there a command

RE: [PHP] Re: php.ini not being read

2001-09-07 Thread Brett
ssion configuration they were never realised in the pages I am running. brett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] php.ini not being read

2001-09-06 Thread Brett
Changes made to my php.ini file are not showing up upon a restart of apache. I compiled php to use the php.ini in a directory of my choosing and this is the directory which phpinfo() reports the php.ini file to be found. Yet all changes are ignored. Any ideas why? brett newman [EMAIL

RE: [PHP] How to index HTML fields for Javascript and PHP at same time?

2001-09-03 Thread Brett
in my javascript to work with the field[] values: this.form.elements['addzone[]'] HTH, Brett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] wildcard redirecting

2001-08-29 Thread Brett
dex line then you must tell apache to treat any occurance of index in your url as a file with a .htaccess file. Fore more info see this: http://phpbuilder.com/columns/tim2526.php3 Brett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

[PHP] Re: konquerer and php

2001-08-24 Thread Steve Brett
konquerer is krap. :-) only kidding. i seem to remember that konquerer has specific settings for script execution - it may be worth checking out the setup... Steve "Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a database browser that I made w

Re: [PHP] numrows

2001-08-23 Thread Steve Brett
i'd have a look at the table structure. also if you're using <> to denote inequality then use != both of the previous posts are incorrect Steve "Chris Fry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Should be ORDER BY ID, DESC > > Chris > > Martin Kamph

Re: [PHP] while loop with if statement - here's the code

2001-08-20 Thread Steve Brett
okay - read all the code now. this might be a better way: 0) { for ($x=0;$x<$numrows;$x++) { $id=$one["id"]; $title=$one["title"]; $description=$one["description"]; print " $title$description\n \n "; } // end of for } else { print " NO RESULTS\n \n "; } ?> -- PHP Ge

Re: [PHP] while loop with if statement - here's the code

2001-08-20 Thread Steve Brett
try using mysql_num_rows() to get the number of rows returned by the query. you need to supply it with the identifier for the query not the sql you sent to the query. not exactly sure what you're trying to do though ... Steve <[EMAIL PROTECTED]> wrote in message BB6D932A42D6D211B4AC0090274EBB1D2

Re: [PHP] while loop with if statement - here's the attachment

2001-08-20 Thread Steve Brett
did you do it again ? :-) pasting you code is ok ... Steve <[EMAIL PROTECTED]> wrote in message BB6D932A42D6D211B4AC0090274EBB1D2EF0EE@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1D2EF0EE@GLOBAL1... > > Here's the attachment - I hate it when I do that! :) > > > > -Original Message- > Fr

[PHP] Re: Multi-Task on PHP by submitting a form!

2001-08-20 Thread Steve Brett
you're there already. have an if statement on mail.php: if (isset($posted_info)) { // send mail here // do db insert here } // end of if Steve "Jack" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all > I was trying to get a user input form to inse

[PHP] Re: session security issue

2001-08-14 Thread Steve Brett
what about registering a var called loggedin with the session and then testing on each script to see if it's set to 1 or something ? then base the access on that ? that's what i use and then register uid with the session as well so you can use it througout your site ... ok you've got me worried

Re: [PHP] Instalation

2001-08-14 Thread Steve Brett
i think pgp has a quick install text file that is superb. sorta step-by-step simple and complicated. Steve "Jean-Arthur Silve" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... check de readme or install files provided in each one ! At 15:39 14/08/01 +0200, Roman

[PHP] Re: it works at last!

2001-08-13 Thread Steve Brett
oh dear. Steve "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Okay I got it working! > > http://www.futurebird.com/wordstream/index.php3 > > go on give it a try! > > Susan > > > -- > [EMAIL PROTECTED] > http://futurebird.diaryland.com > > -- PHP General M

Re: [PHP] CGI error

2001-08-09 Thread Steve Brett
i tend to get this error when the page being called doesn't exist. check the link and the file name Steve "Phil Driscoll" <[EMAIL PROTECTED]> wrote in message 01080909463405.04245@linux">news:01080909463405.04245@linux... > On Thursday 09 August 2001 09:46, karthik wrote: > > Hi, > > > > In ins

[PHP] Re: Error using databases

2001-08-03 Thread Steve Brett
check the cache settings in IE and change to check for new version always. sounds like you're reading a cached version of your page. Steve wrote in message news:[EMAIL PROTECTED]... Hi: I'm coding my first programs in PHP using MySQL in Windows. I instaled the Xitami Web Server for Windows.

[PHP] Re: Upgrading to Windows 2000

2001-07-31 Thread Steve Brett
indeed. i also use the cgi version. Steve "Bernie Kruger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I am running PHP 4.0.5 on Win2K. The ISAPI module gave me lots of headaches > and crashed the server every other minute, but the CGI one runs li

[PHP] Re: Session life time

2001-07-31 Thread Steve Brett
check this in php.ini session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up Steve "Sheni R. Meledath" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I am using sessions for user authenticatio

Re: [PHP] Re: window.open (javascript)

2001-07-31 Thread Steve Brett
ive used a very similar function and found that javascript like single queted strings passed into it. i.e. java_function('link/to/file') just noticed in the original post that double quotes were used Steve "Dave" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: exec problem

2001-07-31 Thread Steve Brett
if you have a shell account write a batch file and install it in the crontab of the user whihc mysql runs under. i did this at work for a postgresql database and it owrks perfectly. something like this will work. crontab -u -e add: 30 7-19/2,23 * * * /backup/dumpit which runs /backup/dumpit

[PHP] Re: Upgrading to Windows 2000

2001-07-31 Thread Steve Brett
instalation under windows 2000 is very simple. just reinstall php. Steve "Amarjit Jutley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > We are presently running PHP on a Windows NT 4.0 platform and all is working > correctly, we however want to upgeade to Wi

[PHP] file upload problem - urgent help needed

2001-07-31 Thread Steve Brett
i know this has been posted before but i still haven't figured it out. the bloke who runs the server for a 'client' of mine has set safe mode on and therefore the standard file upload scripts fail. i needed to create a 'dump' of the database in text files whihc i've done by creating a dir within

[PHP] Re: php stand alone

2001-07-24 Thread Steve Brett
i don't think the last post was right, there is some stuff at phpbuilder about using php with shell access, i guess you could write a shell script that is called from cron ... here you go ... http://www.phpbuilder.com/columns/darrell2319.php3 Steve "Adrian D'Costa" <[EMAIL PROTECTED]> wrote

[PHP] Re: declaring variables in PHP???

2001-07-24 Thread Steve Brett
the zend ide @ www.zend.com is a pretty cool debugging env. Steve "René Moonen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I'm using PHP for a few weeks now, so you can imagine that I'm making a lot of typing errors... Often I make a typing error in o

[PHP] Re: One2Many Logic Problem - phpMySQL bibliography

2001-07-23 Thread Steve Brett
wouldn't the structure of the database be determined by the fact you have a many to many relationship ? i.e. the two tables would decompose into three with a 'link' table defining the many to may part ? steve "Mike Gifford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

Re: [PHP] PHP & MySQL

2001-07-23 Thread Steve Brett
'order by text asc' will sort in alphabetical order A-Z .. and your query should be select [campo] from table where campo like 'A%' ... seems like an expensive way of sorting ... i think mysql has natural order sorting functions in there somewhere ... Steve "Marisol díaz e." <[EMAIL PROTECTED

[PHP] Re: Zipping Output Before Sending To Browser

2001-07-20 Thread Steve Brett
yup. what you need is ob_start("ob_gzhandler"); at the beginning of the bit you want to compress, usually at the top of the script and //ob_end_flush(); to send the output to the browser. bit of a time lag as the browser decompresses but should save you a bomb on bandwidth. check out the php man

Re: [PHP] Re: Session problems

2001-07-19 Thread Steve Brett
you only need to register vars with the session once. Steve "Rudolf Visagie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Bernie, > > Do a session_register in the second script as well: > > session_start(); > > session_register("my_session_variable"); >

Re: [PHP] Re: Basic database questions.

2001-07-19 Thread Steve Brett
TED]... > Im using win2k, but I have no intetntion of serving a webpage off of it, I > only have a 56k modem! I'll be running the website off of an ISP. Do I > still need to install IIS and stuff? What for? > > - seb > > -Original Message- > From: Steve Brett

[PHP] Re: Session problems

2001-07-19 Thread Steve Brett
another thing you could try is find out where the php session data is stored and see if the session files are there - i think on win2k they are in c:\php\sessiondata ... Steve "Bernie Kruger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I use this s

[PHP] Re: Session problems

2001-07-19 Thread Steve Brett
id' resgister the session var first then change / set it. don't actually know if it makes a diff Steve "Bernie Kruger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I use this simple session script below, but the session variables are not > car

Re: [PHP] Re: Basic database questions.

2001-07-19 Thread Steve Brett
needed :-) > Hadn't seen nor heard of front ends for it, will look into them! > > - seb > > -Original Message- > From: Steve Brett [mailto:[EMAIL PROTECTED]] > Sent: 19 July 2001 14:27 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Basic database questio

[PHP] Re: Basic database questions.

2001-07-19 Thread Steve Brett
"Seb Frost" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi everyone, this is my first ever post on the list so please be gentle with > me ;-) > > OK I want to put a database on my website. Up until yesterday my knowledge > of databases was having created a

[PHP] Re: Sessions + Variables + includes

2001-07-19 Thread Steve Brett
great minds and all that this is some code i use but i have a login page that takes the username and passowrd and passes that to another page that does the verification. so: page 1 takes the username and password. page 2 registers session vars and sets logged in to true if accepted. every

Re: [PHP] Prevent user to close web browser

2001-07-19 Thread Steve Brett
have a javascript function that is fired when you load the index page. i have a calendar system that i wrote at work that is displayed in a window with most of the features turned off like toolbars etc. have a look at 'on load' and window properties. it's a doddle. and no i didn't find it on a

[PHP] how to include a remote file and change relative links to non-relative

2001-07-17 Thread Brett
I am trying to create a page that will get a remote file and email it to me. All works fine using several different methods (include,file,fread) only relative links for images and links get my server address instead of the actual address the images should be retrieved from. Is there a way I c

[PHP] Re: mail() help

2001-07-17 Thread Steve Brett
as afr as i know it's a recompile with a path to sendmail ... great when it works though ! Steve "Patrick W. Rateliff" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am getting this error when using the trying to use the mail function. Any > insite will hel

Re: [PHP] email counter

2001-07-17 Thread Steve Brett
how about using php mail functions if you've got the support on your server then a simple form to send the mail and you can track everything you need to ... Steve "Jorg krause" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > > Brian White [mailto

Re: [PHP] echo vs printf

2001-07-16 Thread Steve Brett
i seem to remember reading somewhere that print acts like (is) a function, presumably returning false if it cannot print to screen, whereas echo just dumps it. also you can drop vars in print like print "you have $points points"; whereas to echo it you'd have to concatenate the string. Steve

[PHP] Re: escape char hell

2001-07-16 Thread Steve Brett
sorry posted to wrong group Steve "Steve Brett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi, > > i've got myself into a bit of a mess. i have a database with approx 4000 > records (mysql) and when i pop

[PHP] escape char hell

2001-07-16 Thread Steve Brett
hi, i've got myself into a bit of a mess. i have a database with approx 4000 records (mysql) and when i populated the database i was given 4000 text files with the product name as the file name and the description of the product as the contents. so i set up a text field in the table to hold the

[PHP] Re: string search

2001-07-16 Thread Steve Brett
have a look at ereg() (regular expression match) functions in manual. they'll do exactly what you want. Steve "Joseph Bannon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I need a search function (if statement) that performs a search on a string > and if t

[PHP] Re: echo vs printf

2001-07-16 Thread Steve Brett
don't echo and printf do different jobs ? as i understand it echo will dump anything to screen, fprint will accept formatted text args like "you owe me %d dollars",$owed_amount) or something like that. i kind of use print by itself (harking back to the old days of basic etc) but use echo quite a

[PHP] www.oosha.com/phpdev/ - mailing list

2001-07-15 Thread Brett Shaw
Oosha.com's PhpDEV has got a mailing list if you would like to joing please see below: - To subscribe to the mailinglist, simply send a message with the word 'subscribe' in the Subject: field to the -request address of that list To: [EMAIL PROTECTED] Subject: subscribe To subscribe to the diges

Re: [PHP] Alternative to phpMyAdmin

2001-07-13 Thread Steve Brett
> this should be set up by your isp though so as part of a mysql package > you'd get this type of access to your db's Well, my point was, that it's normally not setup as most users don't have static ip's and allowing connects from any ip (even allowing net connects at all) is/can/might be a secu

Re: [PHP] Alternative to phpMyAdmin

2001-07-13 Thread Steve Brett
> -Original Message- > From: Alexander Skwar [mailto:[EMAIL PROTECTED]] > Sent: 13 July 2001 10:57 > To: Steve Brett; Alexander Skwar; Steve Brett; Matthew Loff; Steve > Brett; 'Steph'; [EMAIL PROTECTED] > Subject: RE: [PHP] Alternative to phpMyAdmin &g

RE: [PHP] Alternative to phpMyAdmin

2001-07-13 Thread Steve Brett
ere in the states. i install mysql and php in windows and then develop at home, then i update the live db throught mysql-front. Steve > -Original Message- > From: Alexander Skwar [mailto:[EMAIL PROTECTED]] > Sent: 13 July 2001 10:15 > To: Steve Brett; Alexander Skwar; Matthew Lof

RE: [PHP] Alternative to phpMyAdmin

2001-07-13 Thread Steve Brett
if you install mysql on a windoze machine then you can administer ANY mysql database going through the socket. i do it all the time. Steve > -Original Message- > From: Alexander Skwar [mailto:[EMAIL PROTECTED]] > Sent: 12 July 2001 19:15 > To: Matthew Loff > Cc: '

RE: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Steve Brett
mysql front is by far my favourite available from mysql download section. Steve > -Original Message- > From: Steph [mailto:[EMAIL PROTECTED]] > Sent: 12 July 2001 05:01 > To: [EMAIL PROTECTED] > Subject: [PHP] Alternative to phpMyAdmin > > > Hi all! I love phpMyAdmin, just makes life

RE: [PHP] time compare in my sql

2001-07-12 Thread Steve Brett
have a look at date_format in the mysql help and pull your sate filed out as a date Steve > -Original Message- > From: Jack [mailto:[EMAIL PROTECTED]] > Sent: 12 July 2001 21:04 > To: [EMAIL PROTECTED] > Subject: [PHP] time compare in my sql > > > Hi folks > I have a filed in data type

RE: [PHP] Average of column...

2001-07-10 Thread Steve Brett
$age_result = mysql_query("select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$teamID'"); $row = mysql_fetch_row($age_result); $average_age=$row[0]; echo "Average age of ".$teamID." is ".$average_age; or $age_result = mysql_query("select AVG(age) as avgage FROM bat_rost WHERE ownerID = '$t

RE: [PHP] Oracle 8i + non perstistant database connections remaining open.

2001-07-10 Thread Steve Brett
you could move to a database that supports hot backups. postgresql perhaps ? > -Original Message- > From: Thies C. Arntzen [mailto:[EMAIL PROTECTED]] > Sent: 10 July 2001 10:40 > To: Taylor, Stewart > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Oracle 8i + non perstistant database connecti

RE: [PHP] Single quote

2001-07-06 Thread Steve Brett
string stripslashes (string str) Returns a string with backslashes stripped off. (\' becomes ' and so on.) Double backslashes are made into a single backslash. Steve > -Original Message- > From: Andy [mailto:[EMAIL PROTECTED]] > Sent: 06 July 2001 10:29 > To: [EMAIL PROTECTED] > Subj

RE: [PHP] Socket Madness !!!!

2001-07-06 Thread Steve Brett
gt; > Justin Farnsworth wrote: > > >Steve Brett wrote: > > > >>does anyone know the ascii value for EOF ? > >> > > > >I think it is four (CTRL-D), viz: > > > >| 00 nul| 01 soh| 02 stx| 03 etx| 04 eot| 05 enq| 06 ack| 07 bel| > > >

RE: [PHP] session troubles

2001-07-05 Thread Steve Brett
your session_start() has to be the first thing in the page. no blank lines etc. like right at the top of your page. a blank line will send header info ... Steve > -Original Message- > From: Brad Wright [mailto:[EMAIL PROTECTED]] > Sent: 05 July 2001 16:21 > To: [EMAIL PROTECTED] > Subj

RE: [PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
fixed it now by adding ascii(10) to reply from server BUT what if i use fgetc ? does anyone know the ascii value for EOF ? cheers, Steve > -Original Message- > From: Steve Brett [mailto:[EMAIL PROTECTED]] > Sent: 05 July 2001 12:58 > To: Php-General (E-mail) > Subjec

[PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
thanks in advance Steve Brett Internal Development tel: 3263 EMIS Ltd. "Privileged and /or Confidential information may be contained in this message. If you are not the original addressee indicated in this message (or responsible for delivery of the message to such person), you may not c

[PHP] PhpDEV

2001-06-23 Thread Brett Shaw
www.oosha.com/phpdev/index.php3 Ive had some great response to the site but not as much as id hoped if you have any ideas please email them to me and ill implement them -- [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

[PHP] PhpDEV

2001-05-24 Thread Brett Shaw
for those of you who are interested im developing a web site for php developers to share resources and information. you wont need to be a member or commit yourself to anything its totally free. you can view the site at the following URL: - http://www.oosha.com/phpdev/index.php3 Its empty at the

Re: [PHP] Populating HTML List boxes From DB

2001-04-16 Thread Brett
Try using $row->device instead of $divice in your while statement. Brett > Thanks Jason... I've used SELECT DISTINCT ... now i doubt this has anything to do with SELECT DISTINCT as such but for some reason its only displaying the last vaule entered > > >$query ="SE

[PHP] Reading a file and changing tag values

2001-04-13 Thread Brett
if so will someone give me an idea how? Thanks. Brett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Including a URL for mailing..

2001-04-11 Thread Brett
e page use ob_end_clean() to clear the output buffering and continue scripting for normal display. check out http://www.php.net/manual/en/ref.outcontrol.php for more information on output buffering. If you are still stuck email me off list and I will send you a sample of a file that does the s

Re: [PHP] file deletions ....

2001-03-28 Thread Steve Brett
""Phil Driscoll"" <[EMAIL PROTECTED]> wrote in message 001201c0b768$60da60a0$0c81@philsntserver">news:001201c0b768$60da60a0$0c81@philsntserver... > Steve > > unlink works fine for me (on my nt boxes) providing the anonymous web user > has permission to delete the files. Note that under II

[PHP] file deletions ....

2001-03-28 Thread Steve Brett
hi, i need to delete files in my web folder so i can 'tidy' them up. i have a username and password that has ftp access and so far i've tried system(), unlink() and setting up an ftp connection (they use php 4.03 whihc seems to have ftp access closed). i have no problem listing the files i want

Re: [PHP] sql problem

2001-03-26 Thread Brett Bandy
InterBase isn't real good with subselects. Try using a join instead: select e.empname from employer e join badclient b on e.empno = b.employercode where b.pesal = '$Persal'; Brett ""Wade Halsey"" <[EMAIL PROTECTED]> wrote in message 00a501c0b38b$e

[PHP] php sessions and classes

2001-03-26 Thread Steve Brett
hi, i'm busily rewriting an exisitng calendar system that is in use at work. we're using UML as a design tool and hope to have an OO version of the system we have at the minute that wil 'fit in' with future devs. our system at the moment makes heavy use of postgresql and i am hoping to populate

Re: [PHP] LDAP problem

2001-03-22 Thread Brett Bandy
Make sure all the dlls used by php3_ldap.dll are available. I have php4 and the php_ldap.dll requires the libsasl.dll to be available. Brett ""almir"" <[EMAIL PROTECTED]> wrote in message 99d00g$j4h$[EMAIL PROTECTED]">news:99d00g$j4h$[EMAIL PROTECTED]... &g

Re: [PHP] header:(location) error

2001-03-17 Thread Brett
> Brett, I only have conditional logic above my header() call... this page is > processing form input and does a redirect based on the result? Will this not > work? > If there is a single empty line above your first http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: [PHP] How no-cache some object?

2001-03-17 Thread Brett
owsers 'hey, please don't cache this statement"? > Note inside src there is PHP program > Thanks > > Mig Hello, Do a search for no cache in the archives or on google. I don't recall the exact code, but it has been covered a lot in this list. Brett -- PHP General

Re: [PHP] Headers

2001-03-17 Thread Brett
> How do I do something like: > if headers_sent=false > include header.inc > if (headers_sent() == false)include 'header.inc'; be sure and check the manual to make sure that "header_sent()" is the correct format. Brett -- PHP General Mailing List (http://www.

Re: [PHP] header:(location) error

2001-03-16 Thread Brett
gt; /usr/home/stas/html/cathedral/scripts/act_save_resume.php on line 175 Make sure you have no whitespace above your tags. If any output is sent to the browser then you can not add a header, session, cookie. Brett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

Re: [PHP] Opening/closing a DB

2001-03-16 Thread Brett Bandy
tions correctly. Make sure you use short quick transactions. Don't leave a transaction open, always make sure the transaction is committed or rolledback. Lingering transactions are probably the biggest performance problem you'll encounter with InterBase. Brett ""Daniel Grace&qu

Re: [PHP] Error with ldap

2001-03-16 Thread Brett Bandy
php_ldap.dll also requires libsasl.dll, so make sure you move this dll to \winnt\system32 as well. Brett "Alain ROMERO" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I copy 'msvcrtd.dll' in winnt\system32 and php3 works fin

Re: [PHP] Can you recommend an ISP with the following?

2001-03-16 Thread Brett
for cobalt virtual hosts. If you want my recommendation, I have been using Interliant for a year now for co-location. They have excellent support, offer Cobalt RAQs virtual hosting, and have great connection speeds and uptime. Brett -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Interbase

2001-03-07 Thread Brett Bandy
you might try www.ibphoenix.com as they have more info (than the Borland site) regarding InterBase. Brett ""Chris"" <[EMAIL PROTECTED]> wrote in message 03fd01c0a73c$15183c00$01c8c8c8@ibcserver">news:03fd01c0a73c$15183c00$01c8c8c8@ibcserver... Hi, Has anyone

[PHP] adding support to previous build with apxs

2001-03-06 Thread Brett
instructions. So does anyone have some instructions on how this is done. I would appreciate any input. Thanks, Brett

[PHP] stumped on mailing a complete page

2001-03-03 Thread Brett
links that let you mail a page to a friend on some sites. Any help would be much appreciated. Thanks, Brett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

[PHP] logic question concerning sale prices in shopping basket app

2001-02-28 Thread Brett
u have an idea. If you want to see what this is for go to http://www.jnewman.com/oxfords. Play all you want, it does nothing but add the prices. If you add 1 buttondown and 2 of the other shirts you will see that the total is 70 something instead of 50 something. Thanks, Brett

Re: [PHP] HELP! IBase - PHP

2001-02-21 Thread Brett Bandy
rbage collection kicks off when the difference between these two numbers is 2. If this is happening it might indicate that you aren't using your transactions as effective as possible. For example leaving them open for extended periods of time. hope this helps, Brett Bandy ""N

[PHP] find out if a number is a multiple of three

2001-01-18 Thread Brett
I am trying to find out if I can take a the quantity of a product ordered and find out if it is a multiple of three. Can someone point me in the direction of some documentation or an exmaple of how this can be accomplished. Thanks, Brett -- PHP General Mailing List (http://www.php.net/) To