-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: 01 October 2002 02:21
To: 'Daren Cotter'; 'PHP General Mailing List'
City: Just ' ??
I'd allow space and period, too, for Ft. Gordon for example.
^[-a-zA-Z0-9' .]+$
Well, there's an English west
-Original Message-
From: Jennifer Swofford [mailto:[EMAIL PROTECTED]]
Sent: 01 October 2002 21:21
To: [EMAIL PROTECTED]
Subject: [PHP] eregi_replace / preg_match_all
Why does this work:
$contents =
eregi_replace((\)(.(/))*[A-Z0-9_/-]+(.gif|.jpg),
\blah.gif, $contents);
-Original Message-
From: michael saxbury [mailto:[EMAIL PROTECTED]]
Sent: 01 October 2002 22:57
I am trying to understand in deatil exactly what PHP is, I
know that it is a
scripting markup type language, but.
Is it correct to say that PHP is essentially just C++ code
-Original Message-
From: Paul Nicholson [mailto:[EMAIL PROTECTED]]
Sent: 02 October 2002 02:11
Hey gang,
I've been wondering about developing scripts that the
end-user might run on
php 4.1.0. I've heard allot of ways except for one that I
recently thought
of.
How about
-Original Message-
From: Rick Beckman [mailto:[EMAIL PROTECTED]]
Sent: 02 October 2002 12:12
? for ($i = 7; $i sizeof($info); $i+=1) { echo $info[$i]; } ?
That line of code successfully will display lines 7 and on of
an included
text file into my HTML boilerplate. However, in
-Original Message-
From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 09:39
Here's a simplier version...and I'm still having a problem
with it. It's
driving me insane!!! :)
class MySQL
{
function SET ( )
{
$this-MYVAR = Hello World!;
}
-Original Message-
From: Andy White [mailto:[EMAIL PROTECTED]]
Sent: 15 October 2002 16:08
To: [EMAIL PROTECTED]
I'm trying to allow my Apache webserver, on Win 98 to run PHP
files without
extensions.
Where the file is index without an extension and xxx and
yyy are the
-Original Message-
From: Reginald Alex Mullin [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2002 05:27
To: '[EMAIL PROTECTED]'
LoadModule php4_module C:/PHP/sapi/php4apache.dll
AddModule mod_php4.c
As you're trying to use Apache 2.0.43, this won't work -- there's a
different .dll
-Original Message-
From: Paonarong Buachaiyo [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2002 09:04
To: [EMAIL PROTECTED]
Simple, how can we earse all $SESSION variable except one or
two variables.
Any way to do it except
unset($_SESSION['xx1']);
unset($_SESSION['xx2']);
-Original Message-
From: Justin French [mailto:justin;indent.com.au]
Sent: 28 October 2002 07:27
Please start by looking in the manual... I simply typed
http://php.net/oracle into my browser, which resulted in this page:
http://www.php.net/manual/en/ref.oracle.php
Seems to
-Original Message-
From: Faisal Abdullah [mailto:faisal;magnifix.com.my]
Sent: 28 October 2002 09:51
To: Subodh Gupta; [EMAIL PROTECTED]
Subject: RE: [PHP] error connecting to oracle.
-Original Message-
From: Subodh Gupta [mailto:Subodh.Gupta;seepz.tcs.co.in]
Sent:
-Original Message-
From: PHP List [mailto:php_list;ibcnetwork.net]
Sent: 28 October 2002 22:48
To: php
Subject: [PHP] Array Question
Hi,
Lets say I have a simple array like this:
$myarray = array(a=b,d=c);
echo $myarray[0] will return 'b';
How can I get the name of the
-Original Message-
From: Rick Emery [mailto:remery;emeryloftus.com]
Sent: 29 October 2002 16:15
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Select values in an array???
I HAVE selected multiple items without including MULTIPLE.
The following link displays a form in which there
-Original Message-
From: PHP List [mailto:php_list;ibcnetwork.net]
Sent: 29 October 2002 17:20
To: php
Subject: Re: [PHP] Array Question
No, array_keys does not do what I want, in order to user
array_keys, it
assumes I know the value of the key, but I don't,
Er -- no. Go
-Original Message-
From: John W. Holmes [mailto:holmes072000;charter.net]
Sent: 30 October 2002 01:15
To: 'Jarrad Kabral'; [EMAIL PROTECTED]
Pretty sure this is a known bug; it's been discussed on here a few
times. Do a search for it.
Oh yeah, at least half a dozen -- I found them
-Original Message-
From: Paul Nicholson [mailto:paul;dtnicholson.com]
Sent: 29 October 2002 19:10
To: Sascha Cunz; Petre Agenbag; [EMAIL PROTECTED]
Hey,
I think you should be able to serialize and urlencode the
array and then
pass that via get/post.post would be a lot better
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: 30 October 2002 13:46
I never noticed before...there is no easy way to perform
random-access read and WRITE on a
file.
I vote/recommend/suggest that this most basic functionality
be added to the next release
of
-Original Message-
From: David Russell [mailto:DavidR;BarloworldOptimus.com]
Sent: 30 October 2002 14:32
I am having problems unsetting Session Variables - where I know it
should work.
I have a form. It contains both links with GET variables, and also a
POST form. They all go to
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: 30 October 2002 14:35
You are correct. In fact, simply r+ works; I just tried it.
Thanks
Yes, but that's not guaranteed to be binary-safe on Windows -- if your data happens to
include null bytes, you might get
-Original Message-
From: David Russell [mailto:DavidR;BarloworldOptimus.com]
Sent: 30 October 2002 15:30
To: 'Ford, Mike [LSS]'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Unsetting Session Variables
PHP 4.2.2
Register Globals Off
Using only $_SESSION
No session_register() calls
-Original Message-
From: -[ Rene Brehmer ]- [mailto:metalbunny;metalbunny.net]
Sent: 30 October 2002 19:54
[snip, snip, snip...]
My structure also ensure that
if someone's
called something like Mackenzie for first name, it will not
be incorrectly
cap'ed, as it only does the
-Original Message-
From: Darwin [mailto:superbus22;attbi.com]
Sent: 01 November 2002 10:17
Well, the way I've read it is that if you use require within control
structures then all files are included, regardless of whether
the script
exits before it reaches its next
-Original Message-
From: Daevid Vincent [mailto:daevid;daevid.com]
Sent: 06 November 2002 12:23
To: [EMAIL PROTECTED]
That's the EASY part John!
The hard part is converting the array (which was a checkbox
array from a
form submission) into the binary string (as per the
-Original Message-
From: Kevin Stone [mailto:kevin;helpelf.com]
Sent: 06 November 2002 18:32
The method that you have described below is going to produce
a numerical Key
which is going to result in several errors.
Huh? What on earth does this mean?
-Kevin
- Original
-Original Message-
From: Kevin Stone [mailto:kevin;helpelf.com]
Sent: 06 November 2002 18:50
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Code Advice
All I have to go by is what I see. The method was this..
?
$get_allow = array('foo', 'bar', 'add', 'takeovertheworld');
while
-Original Message-
From: Ernest E Vogelsinger [mailto:ernest;vogelsinger.at]
Sent: 06 November 2002 18:49
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Code Advice
Ever had a headache with posted parameters, as to where to
look for the
value, in _GET or _POST? Try this:
-Original Message-
From: Rick Widmer [mailto:php3;developersdesk.com]
Sent: 08 November 2002 04:16
To: Jill S; [EMAIL PROTECTED]
Subject: Re: [PHP] Most current non-beta version, and bcc
At 02:38 PM 11/7/02 -0600, Jill S wrote:
so again I'll ask - Are the 4.2.3 downloads at the
-Original Message-
From: Martin Towell [mailto:martin.towell;world.net]
Sent: 08 November 2002 06:23
what is the technical difference between using
else if
Well, technically this starts a new block structure level...
and
elseif
... and this doesn't.
But to all
-Original Message-
From: Erwin [mailto:erwin;isiz.com]
Sent: 08 November 2002 08:55
Jack Sasportas wrote:
I get the following error when using a previously working cookie
function: expects parameter 3 to be long
Code is below... I just don't see the difference then the
way
-Original Message-
From: Daevid Vincent [mailto:daevid;daevid.com]
Sent: 08 November 2002 11:13
Is PHP smart enough to optimize loops?
That is, are these two 'for...loops' equivalent or is one slower than
the other?
$max = max($myArray);
for( $x = 1; $x = $length; $x++ ) {}
-Original Message-
From: John Meyer [mailto:johnmeyer_1978;yahoo.com]
Sent: 08 November 2002 11:45
for($i=1;$i13;$i++) {
?
lia
href=categoryresult.php?condition=?=urlencode(where
month(UserDOB)= .
-Original Message-
From: Terry McBride [mailto:terry;boxitllc.com]
Sent: 11 November 2002 15:53
I have a question about php and OO. I want to chain methods
together having
them performed on the results of the following method.
Meaning something
like $foo-get(bar)-getBaz().
Apologies for the previous truncated version of this -- dunno what happened there!!
-Original Message-
From: Terry McBride [mailto:terry;boxitllc.com]
Sent: 11 November 2002 15:53
I have a question about php and OO. I want to chain methods
together having
them performed on the
-Original Message-
From: Jim Hatridge [mailto:hatridge;fecundswamp.net]
Sent: 11 November 2002 16:27
looking at the code below. It works and I get what I want on
the screen. BUT
it leaves a gap between the top lines and where the table
starts equal to the
size of the table,
-Original Message-
From: Dan Field [mailto:danf;ceredigion.gov.uk]
Sent: 12 November 2002 12:18
Can anyone tell me if Oracle 7 is supported by PHP 4.2.2 ?
Yes.
I have found functions specific to Oracle 8i and some more generic
functions (are these only for Oracle 9?).
No -- the
-Original Message-
From: Dan Field [mailto:danf;ceredigion.gov.uk]
Sent: 12 November 2002 13:39
On Tue, 2002-11-12 at 13:03, Ford, Mike [LSS] wrote:
-Original Message-
From: Dan Field [mailto:danf;ceredigion.gov.uk]
Sent: 12 November 2002 12:18
Can anyone tell
-Original Message-
From: Charles Wiltgen [mailto:lists;wiltgen.net]
Sent: 12 November 2002 18:48
Your method assumes something about your users: that they
click on links.
This may be unlikely, but what if a user uses the 'copy URL
to clipboard'
(or equivalent) feature of
-Original Message-
From: Charles Wiltgen [mailto:lists;wiltgen.net]
Sent: 12 November 2002 20:14
For example, take my spinner object example. By using
Invisible Get,
after clicking on the increment spinner button the user sees
http://www.getsome.com/
rather than
-Original Message-
From: David Rice [mailto:davidrice;rogers.com]
Sent: 13 November 2002 01:00
On Tuesday, November 12, 2002, at 07:34 PM, Ernest E
Vogelsinger wrote:
Sure it is - just name the listbox control myvar[] (note the angle
brackets). PHP will recognize this being
-Original Message-
From: Ernest E Vogelsinger [mailto:ernest;vogelsinger.at]
Sent: 13 November 2002 07:34
To: David Rice
I've made quite a number of JavaScripts controlled PHP
dialogs containing
the [], they all work like a charm. There's only one thing
you cannot do AFAIK:
-Original Message-
From: Charles Wiltgen [mailto:lists;wiltgen.net]
Sent: 13 November 2002 18:28
Here's what I
was using:
Form:
form method=post action=http://domain.com/; name=the_form
input type=hidden name=foo value=DUMMY
/form
Link:
a
Additionally...
-Original Message-
From: Charles Wiltgen [mailto:lists;wiltgen.net]
Sent: 13 November 2002 18:28
Ford, Mike [LSS] wrote...
...But why would they even see that in the first place
If I want them
to click on a button to do something, I simply
-Original Message-
From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]]
Sent: 16 November 2002 07:23
To: [EMAIL PROTECTED]
Subject: [PHP] Re: session handling
Here's what you need:
on page 1.php:
?php
session_start();
$temp = 'someValue';
session_register(temp);
?
on
-Original Message-
From: Jeff Bluemel [mailto:[EMAIL PROTECTED]]
Sent: 17 November 2002 17:50
ok - the more I look at this the more I'm a bit lost.
passing the variables
from php to java makes sense. however, from your scripts you
listed it is
only possible to pass jsp
-Original Message-
From: Scott [mailto:[EMAIL PROTECTED]]
Sent: 17 November 2002 20:55
To: php-general
Subject: Re: [PHP] running php as cgi script
Well, I've got a few test scripts to run by following the
suggestions from
the posts. There's just one thing that's not quite
-Original Message-
From: Paul [mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 11:49
To: 'Tim Ward'; [EMAIL PROTECTED]
Subject: RE: [PHP] RE: Problem with Class - incomplete object error
Yes, I have included class definition on the top of the page.
And are you 100% sure it's
-Original Message-
From: Dave J. Hala Jr. [mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 17:30
I'm running php-4.2.2-8.0.5 on Redhat 8.0
Lately I've noticed that when doing a form, listbox variables
have funky
values in certain situations. Unfortunately, I haven't been to
-Original Message-
From: Phoebe Bright [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 14:20
My remaining problem is that the array that PHP sees only
has the final
few characters of the values it should have.
This is the result of print_r after selecting two items
-Original Message-
From: Richard Pijnenburg [mailto:[EMAIL PROTECTED]]
Sent: 19 November 2002 18:48
When will there be a new release of php?
Well, http://www.php.net/ says:
[14-Nov-2002] PHP 4.3.0RC1 has been released. This is the first
release candidate and
So, er,
-Original Message-
From: Daevid Vincent [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2002 19:23
To: [EMAIL PROTECTED]
Subject: [PHP] Bug with register_globals on versus 1 and php_value vs
php_flag?
I don't know if this is a known bug or it's supposed to work
like this,
but
-Original Message-
From: Floyd Baker [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 17:09
OK, I think I'm finally beginning to understand what you're up to, and it seems to me
everyine's been making rather heavy weather of it so far!
The user's choice is made from a drop down
-Original Message-
From: Mako Shark [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 18:20
A little more info on my count()ing.
I have $issue[0][number] to $issue[x][number] just
like any other multidimensional array (we'll call them
m-arrays for simplicity).
If I try to
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: 29 November 2002 20:45
To: php-gen
Subject: [PHP] Sessions not written to db on windows...
I have a bit of code that uses sessions and stores session
data in the
database.
Works flawlessly on FreeBSD
-Original Message-
From: bob pilly [mailto:[EMAIL PROTECTED]]
Sent: 02 December 2002 11:24
Im trying to load php 4.2.3 as a dynamic module into
apache server 2.0.43 but am running into problems.
Everytime i run the configtest or try and start the
apache server i get the following
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: 03 December 2002 05:31
I'm looking to get a unix timestamp for the first and last
day of a month,
given a timestamp.
But so far everything i've come up with has been wy too
many lines of
trickery --
-Original Message-
From: Beth Gore [mailto:[EMAIL PROTECTED]]
Sent: 03 December 2002 02:12
However bizarrely this seems to behave incorrectly, as it
cuts out 0
as well. Can anyone explain why it does this?
function stripnum($rawinput)
{
for($x=0;$x
-Original Message-
From: Larry Brown [mailto:[EMAIL PROTECTED]]
Sent: 03 December 2002 07:02
Because its better to have someone waste time trying known hacks for a
platform I don't have than to have the same person not know
the platform and
start spending time figuring out what
-Original Message-
From: christian haines [mailto:[EMAIL PROTECTED]]
Sent: 03 December 2002 13:32
hi all,
is it possible to somehow have a function which takes a
variable number
of arguments
Yes -- look at the manual pages for func_num_args
On 01 October 2003 11:25, Angelo Zanetti contributed these pearls of wisdom:
Hi
If I have an array and want to remove and element from this
array. correct me if this is the wrong approach:
It's the wrong approach ;)
create a temporary array with 1 element less than the
origional array,
On 01 October 2003 21:02, [EMAIL PROTECTED] wrote:
1. The PHP manual sais to escape the escape char, it has to
be written
twice*, but:
Yes, it does. But it also says that to put a \ into a string, you need to
write it twice (escape it) ***. So:
$term = preg_replace('/(\\)/', 'backslash
Ooops, forgot the footnote:
***
http://www.php.net/manual/en/language.types.string.php#language.types.string
.syntax
Cheers!
Mike
-
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning
On 02 October 2003 17:27, Jeff McKeon wrote:
Ok,
I've got a login page that has these funtions to set the userid and
password to session variables
[code start]
session_start();
if(!isset($userid)) {
login_form();
exit;
}
else {
On 03 October 2003 05:06, John Taylor-Johnston wrote:
Brian or anyone,
Ok, supposing I don't want someone to be able to use script
language=php and I'm the paranoid sysadmin, (WebCT system
see open source moodle.org). What advice would you give me?
Students are allowed to upload files to
On 07 October 2003 18:15, Pat Carmody contributed these pearls of wisdom:
So far everyone is telling me that it won't work, but no one
is telling me
why. (btw I did search extensively for the answer to this
question but so
far have found nothing). Robert, could you be more specific
in your
On 08 October 2003 15:19, Chris Blake contributed these pearls of wisdom:
On Wed, 2003-10-08 at 15:23, Marek Kilimajer wrote:
Then check your httpd.conf for php_(admin_)?(flag|value)
OK, so I`ve tried all the suggestions posted, thanks
guys...but then I went and deleted the php.ini file
On 08 October 2003 16:13, Chris Shiflett contributed these pearls of wisdom:
--- Ford, Mike [LSS] [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Firstly, or, as a Boolean operator requires two operands,
both of which must have an actual value.
[snip]
statements don't have a value
On 08 October 2003 16:43, Robert Cummings contributed these pearls of wisdom:
On Wed, 2003-10-08 at 11:43, Curt Zirzow wrote:
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]):
--- Ford, Mike [LSS] [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Firstly, or, as a Boolean operator requires two
On 08 October 2003 17:20, Chris Shiflett wrote:
The internals developers probably didn't see a need to provide
support for return in conditionals since it can't return a value
to the conditional.
Ugh. This is the same misconception, again. Let's try some different
code:
?
function
On 09 October 2003 16:57, Davy Campano wrote:
I am having a problem with a form. I am trying to have a form pass a
variable so that I can update an item. I think the problem
is that the
variable (ticketed) is being read as text instead of a number. These
are the tests I have run.
This
On 10 October 2003 21:28, James Johnson wrote:
Hi,
I'm getting so frustrated with this.
I have put some error trapping code in my site with the
following code (an
included file):
?php
ob_start();
error_reporting(E_ALL);
set_error_handler('pc_error_handler');
On 11 October 2003 02:23, Lowell Allen wrote:
I'm trying to track down some issues with my site, and am trying to
decide if it's a session variable issue. On a random basis, it
appears that session vars are being dumped, deleted, or unset, as
the site will break. Queries based on session
On 12 October 2003 23:36, Eugene Lee wrote:
On Mon, Oct 13, 2003 at 03:23:53AM +1000, Wang Feng wrote:
1. An optional padding specifier that says what character will be
used for padding the results to the right string size. This may be
a space character or a 0 (zero character). The
On 13 October 2003 13:49, 'Eugene Lee' wrote:
On Mon, Oct 13, 2003 at 10:32:18AM +0100, Ford, Mike
[LSS] wrote:
On 12 October 2003 23:36, Eugene Lee wrote:
The PHP manual is vague in several sections. I wonder how bug
reports get submitted for it?
http://bugs.php.net
On 14 October 2003 11:26, David T-G wrote:
On the first server when you enter the password and hit the button the
page comes back up with $pw set and in you go. On the second
server $pw
is always empty and we are endlessly prompted.
I ran a phpinfo() comparison and didn't see anything
On 14 October 2003 18:59, Carl Furst contributed these pearls of wisdom:
double quotes say interpolate $variables. However I have
discovered (at
least in php 4.2.3) that you cannot use subarrays in double
quotes like my
var in the subarray subarray: $array['subarray']['subarray']
That
On 14 October 2003 20:11, Chris Hubbard contributed these pearls of wisdom:
All,
I have done a number of searches.
I have read the online documentation and user supplied
comments.
I recently ran into problem using:
-some code here to create session and set variables-
header('Location:
On 15 October 2003 01:31, Mike Brum contributed these pearls of wisdom:
One quick note - if you're starting a session then you can't
user the header() function afterwards. You'll get the lovel
headers
already sent
error.
Actually, so long as you do both *before* outputting any actual page
On 15 October 2003 05:25, Jake McHenry contributed these pearls of wisdom:
Yes, submit, inout, username and password all come from the
index.php form submission, but username changes throughout the
different pages, that was one of my problems. I'm not sure
what I did wrong before, but once I
On 14 October 2003 14:45, David T-G wrote:
Mike, et al --
...and then Ford, Mike [LSS] said...
%
% On 14 October 2003 11:26, David T-G wrote:
%
% I ran a phpinfo() comparison and didn't see anything markedly
% different (except for how the output is formatted, which
made
On 18 October 2003 10:10, Wang Feng wrote:
I can't uderstand why the number 18 is stored in the $third
rather than
$first. I tried to change the 18 to 18, that is, change it
from a decimal
number to a string and by that way, 18 is stored in the $first,
which is what I expected. But why
On 19 October 2003 13:00, David T-G wrote:
It seems to me that for a fast fix I could set $pw
and other
vars in my include file in place of registering them and then, later,
take my time to correctly switch over to $_POST['pw'] and
$_SESSION['pw'] everywhere. Does that sound like a good
On 20 October 2003 13:36, Wang Feng wrote:
Mike,
So, in PHP, when a string is converted to a number to compare
with the other
decimal input, the compiler doesn't look at the ascii set
table *at all*?
Instead, it simply convert the string to 0?
Yes, if it doesn't start with a valid string
On 20 October 2003 13:53, Ford, Mike [LSS] wrote:
Yes, if it doesn't start with a valid string representation of a
string -- see
Oops -- string representation of a *number*, of course... ;)
Cheers!
Mike
-
Mike Ford
On 04 November 2003 20:43, Pablo Gosse contributed these pearls of wisdom:
On Tuesday, November 04, 2003 12:45 PM Kevin wrote:
[snipped]
How can I test for it without getting an error if it is not
checked??
[/snipped]
Hey Kevin. Use isset($var) to test if a var has been set.
So you
On 05 November 2003 14:39, Mike At Spy contributed these pearls of wisdom:
I re-checked the files - nothing I change in the php.ini
files seems to take
effect. How do I check apache?
I saw the post_max_size thing and changed that to be equal to
the upload_max_filesize. I'll make it a
On 07 November 2003 08:41, Yonatan Ben-Nes wrote:
Hi all,
I made a form which pass constant variables which never
change (Ex. product_name) and dynamic variables which i
withdraw from the db (Ex. attribute_id = 1, value = color).
Now my problem is with the passing of the dynamic variables.
On 19 November 2003 12:59, David Strencsev contributed these pearls of wisdom:
Wouter Van Vliet [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
First of all, you said to use the first three values of the
array for
anoter
reason .. well the, what I'd do is this:
$FirstThree =
On 19 November 2003 14:25, Jay Blanchard contributed these pearls of wisdom:
[snip]
for ($letter = 'A'; $letter++; $letter = 'Z')
echo a
href=\?action=alphabetletter=$letter\$letter/a\n;
[/snip]
I tested this and found two small problems. The code works if
you do this (I was myself
On 19 November 2003 16:15, Jay Blanchard contributed these pearls of wisdom:
[snip]
'Z'+1 is defined to be 'AA' (it says that in the manual,
too!), so your loop has to be:
for($letter = 'A'; $letter = 'AA'; $letter++){
echo $letter . \n;
}
[/snip]
Run this, you'll be
On 20 November 2003 14:53, Scott Fletcher wrote:
Hi Everyone!
Is there a way to get the strpos() to find the next needle in
the haystack instead of just the 1st one only? (Where the 1st
needle is the same string as the next needle)...
Look at the optional 3rd parameter to strpos().
On 20 November 2003 17:39, Scott Fletcher wrote:
How exactly does the 3rd parameter option work. I tried this
but it doesn't
work, so I don't know how exactly does it work... There isn't detail
information on the php.net website...
--snip--
$XML_Start =
On 20 November 2003 20:39, Scott Fletcher wrote:
Yea, the manual is clear but honestly, don't know what the offset
really meant since there is no definition or explaination of how the
offset work.
Well, I really don't know how much clearer the sentence that says The optional offset
parameter
On 26 November 2003 03:28, [EMAIL PROTECTED] contributed these pearls
of wisdom:
Hello all mailing list, I am wondering if it exists a PHP
built-in function to determine the numbers of dimensions of
any type of array (indexed, and associative), thanks for any
help, bye.
(i) All PHP arrays
On 25 November 2003 18:48, Video Populares et Optimates contributed these pearls of
wisdom:
Hi!
I'm sifting through the possibilities with PHP and naturally
one of the first things I searched for was the possibility
for OO development. Now, I found chapter LXXII in the PHP
manual (file
On 26 November 2003 12:43, Jay Blanchard contributed these pearls of wisdom:
[snip]
Well, so is there any online resource whereby I can read up on
FLAG ???Or any idea how should I go about creating the
memory location to store the binary-ish information (e.g.
true/false, yes/no, 1/0)? Hope
On 26 November 2003 13:09, Jay Blanchard contributed these pearls of wisdom:
[snip]
(ii) All PHP arrays are 1-dimensional. Some elements of an
array may themselves contain arrays, but that only makes them
nested arrays, not multi-dimensional. If what you want to
know is the deepest level
On 26 November 2003 16:59, [EMAIL PROTECTED] contributed these pearls of wisdom:
Why doesn't this work...?
$body =
pblurb blah
phappy days
pend of text;
$body = trim($body);
$body now should output:
pblurb blah\nphappy days\npend of text but it
doesn't...?
No it shouldn't -- it
On 26 November 2003 15:23, David T-G wrote:
Jay, et al --
...and then Jay Blanchard said...
%
% Curious, how is it that you define multi-dimensional?
I'm no expert, but I'd say that a multi is addressed as
array[x,y,z]
while a nested is
array[x][y][z]
In a nutshell, yes --
On 28 November 2003 14:21, Shaun wrote:
Thanks you for your replies,
is there a reason why i couldn't use the following?
$_POST = $_POST;
None whatsoever -- but it's an expensive way of effectively doing nothing!
(Which, I suspect, is not what you want to do.)
The fact that you are even
On 28 November 2003 14:36, Dave Carrera wrote:
Hi List,
I have a dynamically generated form with inputs with names that
create arrays i.e.:
input name=fname[]
input name=flab[]
input name=fplc[]
The extra bits for the inputs are omitted deliberately for
this question but
exists in
401 - 500 of 661 matches
Mail list logo