RE: [PHP] Making a string from an Array

2001-10-25 Thread Taylor, Stewart
$ignored = ; $include = ; snip { $ignored.= $words[$i]; } else { $included.= $words[$i]; -Stewart -Original Message- From: Sam [mailto:[EMAIL PROTECTED]] Sent: 25 October 2001 16:18 To: 'php' Subject: [PHP] Making a string from an Array Hi all, this may be an easy

RE: [PHP] Databases?

2001-10-25 Thread Taylor, Stewart
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html -Stewart -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: 26 October 2001 00:49 To: [EMAIL PROTECTED] Subject: [PHP] Databases? Can someone please give me the simplest tutorial to

RE: [PHP] Database editor

2001-10-05 Thread Taylor, Stewart
http://www.phpwizard.net/projects/phpMyAdmin/ -Stewart -Original Message- From: -:-Doigy-:- [mailto:[EMAIL PROTECTED]] Sent: 05 October 2001 12:34 To: [EMAIL PROTECTED] Subject: [PHP] Database editor Hi Folks, I'm after a quick and easy way to edit tables in a mySQL database, much

RE: [PHP] Re: PHP indexOf()?

2001-08-21 Thread Taylor, Stewart
http://www.php.net/manual/en/function.strpos.php -Stewart -Original Message- From: Kevin P [mailto:[EMAIL PROTECTED]] Sent: 21 August 2001 20:44 To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP indexOf()? For someone used to Java JavaScript.. what function would replace

RE: [PHP] How to get the query string?

2001-08-13 Thread Taylor, Stewart
foreach ($HTTP_POST_VARS as $key=$value) { echo $key = $value; } -Stewart -Original Message- From: Tamas Bucsu [mailto:[EMAIL PROTECTED]] Sent: 13 August 2001 14:07 To: [EMAIL PROTECTED] Subject: [PHP] How to get the query string? hi guys, I'd like to get the query string the

RE: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Taylor, Stewart
This is because you currently only have one field on your form named arraystuff. The browser only creates an array of elements if there is more than one of them. arraystuff.focus(), would work at present. -Stewart -Original Message- From: Daniel James [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Re: HTTP header question.

2001-07-30 Thread Taylor, Stewart
The easiest solution is to create the failure variable as a session variable. -Stewart -Original Message- From: Matt Rogers [mailto:[EMAIL PROTECTED]] Sent: 30 July 2001 04:00 To: [EMAIL PROTECTED] Subject: [PHP] Re: HTTP header question. I don't know how to solve your problem, but I

RE: [PHP] fopen - warnings

2001-07-26 Thread Taylor, Stewart
Assuming that your code works fine apart from the warning message you can use @ so suppress any warning messages e.g. @fopen( -Stewart -Original Message- From: Vanessa [mailto:[EMAIL PROTECTED]] Sent: 26 July 2001 17:06 To: [EMAIL PROTECTED] Subject: [PHP] fopen - warnings Hello

RE: [PHP] Prevent user to close web browser

2001-07-20 Thread Taylor, Stewart
That should not be a problem because if a user shuts down their web browser this means they no longer want to see the report. -Stewart -Original Message- From: Mihailo Dzigurski [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001 23:06 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE:

RE: [PHP] Prevent user to close web browser

2001-07-19 Thread Taylor, Stewart
Then you should be using the ignore_user_abort function which keeps a script running even if a user shuts own their browser. http://www.php.net/manual/en/function.ignore-user-abort.php -Stewart -Original Message- From: Mihailo Dzigurski [mailto:[EMAIL PROTECTED]] Sent: 19 July 2001

RE: [PHP] array question

2001-07-19 Thread Taylor, Stewart
Try using mysql_fetch_array instead of mysql_fetch_object. You then then use a simple loop to assign your variables e.g. foreach($row as $k=$v) { $GLOBALS[$k] = $v; // or $GLOBALS[$k][$i++] = $v if multiple records being read } This will result in a set of global variables matching your

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

2001-07-10 Thread Taylor, Stewart
Hello, I'm using OCI8 Revision 1.96 Oracle Version 8.1 Apache Apache/1.3.11 Redhat Linux 6.2 php 4.0.2 I am connecting to my database using a non-persistant connection (ocilogin). My applications run with no problems during the day.However, at the end of the day there is about 20

RE: [PHP] passing variables from - to frames

2001-06-27 Thread Taylor, Stewart
The correct javascript syntax is. parent.frames[1].document.formb.varb.value = parent.frames[0].document.forma.vara.value; -Stewart -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: 26 June 2001 16:18 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP]

RE: [PHP] Oracle Database keeps disconnecting - or something

2001-06-26 Thread Taylor, Stewart
suggested fix below to the test server to see what happens and I'll let you know the results after he gets round to doing it. Best regards, -Stewart -Original Message- From: Thies C. Arntzen [mailto:[EMAIL PROTECTED]] Sent: 22 June 2001 19:11 To: Taylor, Stewart; Zeev Suraski Cc: [EMAIL

[PHP] Oracle Database keeps disconnecting - or something

2001-06-22 Thread Taylor, Stewart
Hello, Just in case anyones got any ideas. I've been testing an application for a few weeks on a test server without any problems. After releasing it onto the live server, which is - according to the administrator - setup exactly the same as the test server I've been running into problems.

[PHP] Oracle Database keeps disconnecting - or something

2001-06-22 Thread Taylor, Stewart
Hello, Just in case anyones got any ideas. I've been testing an application for a few weeks on a test server without any problems. After releasing it onto the live server, which is - according to the administrator - setup exactly the same as the test server I've been running into problems.

RE: [PHP] group comparision

2001-05-17 Thread Taylor, Stewart
How about if (($add + $remove + $view) 1) { //error } -Stewart -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 17 May 2001 09:45 To: php-gen Subject: [PHP] group comparision i have a php script that has three variables that could be set to 1 depending

RE: [PHP] UGH

2001-05-17 Thread Taylor, Stewart
? $date = date (d); $math = 24 - $date; if ($date == 24); { '=' shoud be '==' echo FONT SIZE=4 FACE=ARIAL COLOR=#808080SCHOOL'S OUT FOR SUMMER!!! *guitar ballad*/font; } else { echo FONT SIZE=4 FACE=ARIAL COLOR=#808080Only $math days until school's out!!! w00p w00p!/font; } ?

RE: [PHP] split string

2001-05-11 Thread Taylor, Stewart
$test = 1,2,3; $arrTest = explode(,,$test); foreach($arrTest as $k=$v) { $vname = test.(!$k?:$k); // global for use later global $$vname; $GLOBALS[$vname] = $v; } // now global $test, $test1, $test2 exist etc -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] include(../file.inc);

2001-05-11 Thread Taylor, Stewart
Either of the first two should work under linux. I have done similar many times myself e.g. require_once ../common/localvars.php; -Stewart -Original Message- From: Matthew Ralston [mailto:[EMAIL PROTECTED]] Sent: 11 May 2001 11:40 To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] SESSIONS: What does this error mean

2001-05-10 Thread Taylor, Stewart
This error occurrs when you start a session that recreates an object variable but does not know the class definition for it. You need to make sure you include the class source before you start the session. -Stewart -Original Message- From: Davor Pleskina [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Defining the Return-Path in an email header?

2001-05-10 Thread Taylor, Stewart
Maybe try using Reply-To instead of Return-Path -Stewart -Original Message- From: Kevin Price-Ward [mailto:[EMAIL PROTECTED]] Sent: 10 May 2001 11:18 To: [EMAIL PROTECTED] Subject: [PHP] Defining the Return-Path in an email header? Hi, I am setting up a php emailer facility using the

RE: [PHP] Variables in variable names

2001-05-09 Thread Taylor, Stewart
Maybe an array would be more appropriate. e.g. $name[$i] = . . -Stewart -Original Message- From: seriousj [mailto:[EMAIL PROTECTED]] Sent: 09 May 2001 12:09 To: [EMAIL PROTECTED] Subject: [PHP] Variables in variable names Hello, I need some help (newbie). I have some variable

RE: [PHP] Variables in variable names

2001-05-09 Thread Taylor, Stewart
the browser store the info in an array and have it passed by a form post command? Taylor, Stewart [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Maybe an array would be more appropriate. e.g. $name[$i] = . . -Stewart -Original Message---

RE: [PHP] Search a string between foo/foo

2001-05-09 Thread Taylor, Stewart
Try using the perl regular expressions and setting the quantifier to ungreedy e.g. This should work. $pat = /url(.*)\/url/U; $rep = A HREF='\\1'\\1/A; $string = preg_replace($pat, $rep, $string); -Stewart -Original Message- From: Luiz Vitor [mailto:[EMAIL PROTECTED]] Sent: 09 May

RE: [PHP] progession bar

2001-05-09 Thread Taylor, Stewart
You might use the following method, which will work under Internet Explorer. HTML .. etc TABLE TR TD ID=TD1 CLASS=NOTDONE/TD TD2 etc TD6 /TR /TABLE SCRIPT var which=1; function progress_bar() { eval(TD+which+.className='DONE'); which++; if (which6) clearTimeout(); }

RE: [PHP] Sessions

2001-04-29 Thread Taylor, Stewart
The SID will only be added automatically if -enable-trans-sid is set and your browser has cookies switched off. When cookies are on the session id is propagated using a cookie. So likewise the ?=SID? constant will only be expanded when cookies are switched off. Anyway, yes you will have to add

RE: [PHP] getting sessions lifetime

2001-04-29 Thread Taylor, Stewart
You can get the lifetime of a session cookie by calling the get_cookie_params function http://www.php.net/manual/en/function.session-get-cookie-params.php. How do you propose to hit a hidden frame just before the session times out? A better solution would be to increase the session cookie

RE: [PHP] getting sessions lifetime

2001-04-29 Thread Taylor, Stewart
- From: Jens Kisters [mailto:[EMAIL PROTECTED]] Sent: 29 April 2001 14:27 To: Taylor, Stewart Subject: Re: [PHP] getting sessions lifetime How do you propose to hit a hidden frame just before the session times out? javascript window.setTimeout A better solution would be to increase the session

RE: [PHP] Links

2001-04-28 Thread Taylor, Stewart
How about something like. 'start_page.php' Some HTML... A HREF=index.php?action=displayScreen1display screen 1/A A HREF=index.php?action=displayScreen2display screen 2/A More HTML... 'index.php' ?php Some Code switch($action) { case displayScreen1: { include_once

RE: [PHP] sorting filenames using opendir and readdir

2001-04-28 Thread Taylor, Stewart
Read them into an array then sort the array. while more files { get file name $arrFilenames[] = $filename; $arrFilenames = array_sort($arrFilenames); } The above sorts the array each time a file is read as you requested, however its more efficient to read them all in then sort while

RE: [PHP] if... then... else with HTML

2001-04-23 Thread Taylor, Stewart
?php if (condition) { ? HTML ?php { else { ? HTML ?php } ? -Stewart -Original Message- From: Martin Thoma [mailto:[EMAIL PROTECTED]] Sent: 23 April 2001 13:41 To: [EMAIL PROTECTED] Subject: [PHP] if... then... else with HTML Hello ! I want to do something like if (condition)

RE: [PHP] Newbie Question

2001-04-23 Thread Taylor, Stewart
You've got some typo's if (my_type != 0){ -- if ($my_type != 0) { Plus you forgot to use the print function (or to turn off php ?) to output the Select HTML. -Stewart -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: 23 April 2001 16:15 To: [EMAIL PROTECTED] Subject:

RE: [PHP] Remove duplicates, as long as you have it.

2001-04-22 Thread Taylor, Stewart
Have you tried the array_unique function http://www.php.net/manual/en/function.array-unique.php -Stewart -Original Message- From: Richard [mailto:[EMAIL PROTECTED]] Sent: 22 April 2001 12:36 To: [EMAIL PROTECTED] Subject: [PHP] Remove duplicates, as long as you have it. Greetings.

RE: [PHP] PDFlib 4.0.0.... any experiences..

2001-04-20 Thread Taylor, Stewart
Dean, I too want to instal pdflib4, however I can't see a reference to pdflib4 on the web page you've given (unless my visions not working correctly of course). All the links are for pdflib3.3 Are they on this actual page or are they hidden somewhere. -Stewart -Original Message-

RE: [PHP] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-12 Thread Taylor, Stewart
This error suggests the $tpl is undefined i.e. you forget to create it using new. -Stewart -Original Message- From: g0thic [mailto:[EMAIL PROTECTED]] Sent: 12 April 2001 01:17 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] HELP with (Fatal Error: Call to a member function on

RE: [PHP] Error Handling class

2001-04-12 Thread Taylor, Stewart
the PEAR library has an error class -Stewart. -Original Message- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: 12 April 2001 16:19 To: Php (E-mail) Subject: [PHP] Error Handling class I've looked around but haven't really found one... Does anyone know where I can find a class

RE: [PHP] what does this error means?

2001-04-10 Thread Taylor, Stewart
You are trying to add a record whose primary key/unique index already exists in the database. -Stewart -Original Message- From: Jacky@lilst [mailto:[EMAIL PROTECTED]] Sent: 10 April 2001 23:25 To: [EMAIL PROTECTED] Subject: [PHP] what does this error means? When Itried to insert a

RE: [PHP] Real Problem: Accessing Array In A Class

2001-04-09 Thread Taylor, Stewart
Try, print "blah blah blah {$this-arrayname['value']} blah"; -Stewart -Original Message- From: DELAP, SCOTT F (SBCSI) [mailto:[EMAIL PROTECTED]] Sent: 09 April 2001 15:28 To: [EMAIL PROTECTED] Subject: [PHP] Real Problem: Accessing Array In A Class I've been trying to figure this