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
$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,
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
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
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
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
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
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
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: [
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
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:
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
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
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
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
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
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
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
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
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
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
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
$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
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
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:
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);
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:
;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
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
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
-
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
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
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
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
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
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:
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
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.
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
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
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
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
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
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
44 matches
Mail list logo