[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 problem

[PHP] Re: emailing attachments

2001-11-12 Thread Steve Brett
you need: input type=file/input {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

[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 one

[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 coming

[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=frame' 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

[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 that we

[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 with

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 Kampherbeek

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- From:

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

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: ?php $results = mysql_db_query($db, select * from $table where $query order by update_datetime desc limit $offset, 10); $one = mysql_fetch_array($results); $numrows=mysql_num_rows($one);// get the number of results if ($numrows0)

[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 insert to

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: 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

[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 Mailing List

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 install.txt

[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 Jorge Fernando Tamez Seceñas wrote in message news:[EMAIL PROTECTED]... Hi: I'm coding my first programs in PHP using MySQL in Windows. I instaled the

[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

[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 Windows

[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 user -e add: 30 7-19/2,23 * * * /backup/dumpit which runs

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: 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 authentication on

[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 like a

[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 one

[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 in

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: 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

[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

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

[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

[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 very

[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 carried

[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 simple

Re: [PHP] Re: Basic database questions.

2001-07-19 Thread Steve Brett
k, 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 [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 15:33 To

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: ?php session_start(); session_register(my_session_variable); print

[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 help, I

[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] 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 the

[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

[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 populated the database i was given 4000 tex

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

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: 'Steve Brett'; 'Steph

RE: [PHP] Alternative to phpMyAdmin

2001-07-13 Thread Steve Brett
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 Loff; Steve Brett; 'Steph

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 i'm sorry but i seem

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 time ,

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 so easy

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 connections

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 =

RE: [PHP] Socket Madness !!!!

2001-07-06 Thread Steve Brett
: 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| Actually EOT is not EOF. There is no such ASCII character as EOF. It is a condition not a character. Different

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] Subject:

[PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
Hello world,255); fputs($socket,$message); echo fgets($socket, 255); fclose($socket); } the socket is opened using fsockopen() and the message get there but i only get the reply when the remote socket server is closed ... can anyone help ? thanks in advance Steve

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) Subject: [PHP] Socket Madness

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 ?php session_start(); include(db.inc); include(classes/user-class.inc); session_register(user); ? right at the top of your page. a blank line will send header info ... Steve -Original Message- From:

[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] 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 IIS and

[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