[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

[PHP] stumped on mailing a complete page

2001-03-03 Thread Brett
the 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] 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

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

2001-03-16 Thread Brett
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 unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] header:(location) error

2001-03-16 Thread Brett
/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 PROTECTED] For additional

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.php.net/) To unsubscri

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 ? tag then that will cause the error. If you post yor code it will be more helpful

Re: [PHP] Truncating Lines

2001-10-25 Thread brett
pages from my site in html to a mail address all the time. 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] 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

RE: [PHP] wildcard redirecting

2001-08-29 Thread Brett
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 additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

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

2001-09-03 Thread Brett
BUT not in PHP script. /snip I use the following 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

[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] Re: php.ini not being read

2001-09-07 Thread Brett
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] 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

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

2001-02-28 Thread Brett
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

[PHP] apache2/php file manager: security suggestions

2005-05-10 Thread brett
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 Mailing List (http://www.php.net/) To unsubscribe

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

2001-04-11 Thread Brett
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 same thing for me. Brett -- PHP General Mailing List (http

[PHP] Reading a file and changing a href tag values

2001-04-13 Thread Brett
this and 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] 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 select name="device" ?php $quer

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 here deal

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 fine, but not php4

Re: [PHP] Opening/closing a DB

2001-03-16 Thread Brett Bandy
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"" [EM

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]... ok i am

[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

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$e2a27ea0$256410ac@wade

[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 crypt now adding $1$ to password

2002-07-02 Thread Brett Hay
: 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
: 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] Security Alert! PHP CGI cannot be accessed directly. HELP!

2002-05-17 Thread Brett Jenkins
--- 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: 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: #!/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] 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: 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

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

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

[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

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

[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

[PHP] Socket Madness !!!!

2001-07-05 Thread Steve Brett
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 copy or deliver this message to anyone

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:

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:

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

[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

[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

[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

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: 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] 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: 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] 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] [NEWBIE] PEAR Help

2005-02-21 Thread Brett Patterson
or what? Thanks for the help. ~Brett

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

2005-02-21 Thread Brett Patterson
or what? Thanks for the help. ~Brett

RE: [PHP] weird mail function problem

2005-02-21 Thread Brett Patterson
. Look into PEAR::Mail or using SMTP. ~Brett -Original Message- From: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED] Sent: Monday, February 21, 2005 2:39 PM To: php-general@lists.php.net Subject: [PHP] weird mail function problem hi i use this code to send email from mysite but when it sends

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

[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] Re: [PEAR] [HTML_Form] cant change values in array after getAll()

2002-05-31 Thread Peter TB Brett
). 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... Peter Brett - --- peter:AT:peter-b:DOT:co:DOT:uk www.peter-b.co.uk

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

2002-05-31 Thread Peter TB Brett
; } ? --script2.php-- // modified for loop ?php $res = array(); for( $i=0; $icount($res); $i++ ) { $res[$i] = $i; echo $i, \n; } ? That's much better. ;-) Peter Brett - --- peter:AT:peter