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 databases

RE: [PHP] Making a string from an Array

2001-10-25 Thread Taylor, Stewart
$ignored = ""; $include = ""; { $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 question,

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 lik

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 myString.indexOf

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 br

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

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 d

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 Li

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

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

RE: [PHP] NT Authentication

2001-07-19 Thread Taylor, Stewart
You can install an apache module which does this. Then all you do is edit apache's httpd.conf file to say which directories you want to be authenticated and information about your NT domain and backup servers etc... e.g. Authname"Company Intranet Server" AuthTypeB

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

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

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

2001-06-26 Thread Taylor, Stewart
or to apply the your 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

[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. A

[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. A

RE: [PHP] UGH

2001-05-17 Thread Taylor, Stewart
SCHOOL'S OUT FOR SUMMER!!! *guitar ballad*"; } else { echo "Only $math days until school's out!!! w00p w00p!"; } ?> -Original Message- From: chris herring [mailto:[EMAIL PROTECTED]] Sent: 17 May 2001 09:56 To: [EMAIL PROTECTED] Subject: [PHP] UGH This is really bugging me. I don't

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" dependi

RE: [PHP] detecting HTML tags

2001-05-15 Thread Taylor, Stewart
You could try something like if (strlen($string) != strlen(strip_tags($string)) { // maybe some html in string } -Stewart -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: 15 May 2001 15:40 To: [EMAIL PROTECTED] Subject: [PHP] detecting HTML tags Is there a way to detec

RE: [PHP] still not friends with RegExps..

2001-05-15 Thread Taylor, Stewart
preg_replace does not seem to agree with '\\'. Below seems to work with ereg_replace. -Stewart ~ -Original Message- From: elias [mailto:[EMAIL PROTECTED]] Sent: 15 May 2001 23:37 To: [EMAIL PROTECTED] Subject: [PHP] still not friends with RegExps.. Hello, Maybe RegExps are still my

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] include("../file

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

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 t

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

2001-05-09 Thread Taylor, Stewart
You might use the following method, which will work under Internet Explorer. .. etc " " " TD2 etc TD6 var which=1; function progress_bar() { eval("TD"+which+".className='DONE'"); which++; if (which>6) clearTimeout(); } window.setTimeout('progress_bar()',1);

RE: [PHP] Search a string between

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>/U"; $rep = "\\1"; $string = preg_replace($pat, $rep, $string); -Stewart -Original Message- From: Luiz Vitor [mailto:[EMAIL PROTECTED]] Sent: 09 May 2001 15:14 To:

RE: [PHP] Variables in variable names

2001-05-09 Thread Taylor, Stewart
;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 > -Origin

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 na

RE: [PHP] Choosing a random value out of two

2001-05-04 Thread Taylor, Stewart
srand((double) microtime() * 100); $which = rand(0,1); $variable = ($which)? $value1 : $ value2; -Stewart -Original Message- From: Sebastian Sprenger [mailto:[EMAIL PROTECTED]] Sent: 04 May 2001 10:21 To: [EMAIL PROTECTED] Subject: [PHP] Choosing a random value out of two hi. i wan

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 increa

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 timeou

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 constant will only be expanded when cookies are switched off. Anyway, yes you will have to add to al

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 mor

RE: [PHP] Links

2001-04-28 Thread Taylor, Stewart
How about something like. 'start_page.php' Some HTML... display screen 1 display screen 2 More HTML... 'index.php' -Original Message- From: Ben Quinn [mailto:[EMAIL PROTECTED]] Sent: 28 April 2001 11:57 To: [EMAIL PROTECTED] Subject: [PHP] Links Hi all, I've been trying for many

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] if... then... else with HTML

2001-04-23 Thread Taylor, Stewart
HTML HTML -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) output this html-block else output that

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.

[PHP] unserialize returns nothing.

2001-04-21 Thread Taylor, Stewart
I'm fetching a serialized array from a database but when I call unserialize() the function returns false. Any suggestions as to why unserialize is returning false? Regards, -Stewart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

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

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 (or

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

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 ou