$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
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
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
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
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
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:
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
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
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:
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
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
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
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]
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
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.
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.
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
?
$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;
}
?
$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:
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]
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:
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
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
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---
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
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();
}
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
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
-
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
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
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
?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)
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:
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.
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-
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
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
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
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
39 matches
Mail list logo