-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2002 07:15
Ok, basically I only configured php with apxs
However, I noticed the mysql was supported (It said so on php
info page)
How is that possible?
MySQL support is built in to PHP.
-Original Message-
From: James Arthur [mailto:[EMAIL PROTECTED]]
Sent: 07 January 2002 21:41
snip
For example, consider the string $body = I am saying \Hello\;
input type=hidden name=body value=?=$body
is interpreted by the browser as
input type=hidden name=body value=I am
-Original Message-
From: Eric McKeown [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2002 05:53
I
could store the list in a conventional serial array...
$valid[0] = Valid One;
$valid[1] = Valid Two;
$valid[2] = Valid Three;
.
and so on, and then use a for loop to iterate
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2002 19:22
I'm trying to write my code in accordance with the PHP 4.1.0 security
advisory -- that is, I want to use the $_GET and $_POST arrays when
grabbing variables passed with GET and POST forms.
-Original Message-
From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2002 20:56
while (!feof ($fp)) {
$line = fgets($fp, 4096);
$data = explode(,, str_replace(\, , $line)); //using
str_replace to get rid of quote marks
//following line to
'];
but unfortunately, this isn't working.
No, of course not -- I repeat:
On Thursday, January 10, 2002, at 08:18 AM, Ford, Mike [LSS] wrote:
But, if you insist on the quotes, it needs to be:
case {$_POST['insert']}
to ensure that the array index gets processed properly.
Please note
-Original Message-
From: Yoed [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2002 23:01
I never really found the trick to this one yet, and wanted to
see what you
guys say is the best methods to call a variable that needs a variable.
Say I have variables called $Var_1_Stat,
-Original Message-
From: Neil Freeman [mailto:[EMAIL PROTECTED]]
Sent: 11 January 2002 12:03
Who's awake today then? :) What I'm trying to do is create variable
variable arrays and then fill these arrays with values. The problem I
have though is that the values don't appear to be
-Original Message-
From: Matt Schroebel [mailto:[EMAIL PROTECTED]]
Sent: 29 January 2002 16:33
And I write those as (true == $PHP_MAIL_FORM) so the parser
will catch the missing second equal sign.
This won't parse: (true = $PHP_MAIL_FORM)
Why even bother with the inefficient
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: 28 January 2002 22:02
I keep getting parse error with this code:
($teams[] is a big array that I got by using mysql_fetch_array)
$r = game;
echo select name='game';
echo option
-Original Message-
From: Nicolas Costes [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2002 10:19
And for more security, I use a JavaScript MD5 function to encrypt the
provided password in the user's browser so it goes already
encrypted on the
net ... Then PHP's just got to
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: 07 February 2002 22:17
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Using functions before they're defined
I haven't looked at the php's source code, but maybe it's a
two pass parser
(??) first it gets all the
-Original Message-
From: Joffrey van Wageningen [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2002 09:00
i would try:
for($i=01;$i=50;$i++) {
if(!empty($content) $row[$content] == $states[$i])
$selected = selected;
elseif($dstate == $states[$i])
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2002 19:52
Not only can I hardly find a place with Tetley's on tap, I can hardly
find it in stores!
LOVE Tetley's.
Er -- should I mention here that I live and work within walking distance of the
-Original Message-
From: Ron Dyck [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 13:38
[... snip working example]
but, this doesn't:
function myFunction() {
foreach($_POST as $key=$value) {
if (empty($$key)) {
print empty value $keybr;
}
}
}
-Original Message-
From: Scott Saraniero [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 18:02
To: [EMAIL PROTECTED]
I've got a piece of code below that works great for me. Now I
would like to
modify the rows with alternating colors in the displayed results. Any
suggestions
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 5:58 PM
To: Lars Torben Wilson
Hm? I didn't think that this was the case -- I thought that although
there is a long-term move to making 'register_globals = off' default,
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 23:30
To: Lars Torben Wilson
$foo = This page is $_SERVER[PHP_SELF];
Or, better:
$foo = This page is {$_SERVER['PHP_SELF']};
You do have to concat to do this in single-quoted
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2002 22:44
To: 'JSheble'; [EMAIL PROTECTED]
window.document.frmName.elements[poly[]].value !!!
This should also work (well, it has for me in the past!):
window.document.frmName[poly[]].value
-Original Message-
From: Andres Plaza R. [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2002 20:55
[...]
BUT, the other day I used vi to see the debug.log, and the error
appears like this:
gcc -o conftest -g -O2 -DLINUX=22 -DMOD_SSL=208105
-DUSE_HSREGEX -DEAPI
-Original Message-
From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]]
Sent: 25 February 2002 14:09
I put and the POST method but I have the same problem
I don't know why, any ideas?
Thank you
-Original Message-
From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]]
-Original Message-
From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED]]
Sent: 25 February 2002 14:35
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Problem about Reading input from a Form
I set the register_globals On in the php.ini file but when i
do php.info it
-Original Message-
From: Steven Walker [mailto:[EMAIL PROTECTED]]
Sent: 25 February 2002 18:04
There are global variables that serve this purpose. You must have
register_globals turned on:
Actually, no -- that's the wrong way round. The associative arrays are always there
--
-Original Message-
From: Steven Walker [mailto:[EMAIL PROTECTED]]
Sent: 27 February 2002 17:26
It may be able to store 8MB, but each line can only hold 1024
characters. I ran into this using a string variable to store
the message
body of an HTML email. If I did not put a '\n'
-Original Message-
From: Vidyut Luther [mailto:[EMAIL PROTECTED]]
Sent: 28 February 2002 01:27
but when i do.
array_walk ($fieldname, '$check-is_allletters');
I get the error.
Warning: Unable to call $check-is_allletters() - function does not
exist .
RTFM:
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]]
Sent: 28 February 2002 12:16
So you want:
array_walk ($fieldname, array($check,'is_allletters');
OOPS! Make that:
array_walk ($fieldname, array($check,'is_allletters'));
But you'd have figured that out
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: 01 March 2002 17:30
To: PHP-General
Subject: Re: [PHP] include() and paths
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Nick Winfield declared
I didn't catch the first part of this
-Original Message-
From: Phillip S. Baker [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 05:52
for ($i=1; $i 12; $i++) {
echo state_$i; // This would print out either Yes No or Maybe.
}
Close -- it's actually:
echo ${state_$i};
(For the record, these are
-Original Message-
From: Christopher J. Crane [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 02:26
The problem is that on the windows platform all information
is returned. On
the linux platform the $Details variable is not populated.
The nothing
changes...so what could it be.
-Original Message-
From: Alan McFarlane [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 03:20
I've seen and successfully used the built-in function
'mkdir()' on several
occasions, but I am having trouble understanding the mode parameter.
I've seen 0771, 0775 and 0777 used on
-Original Message-
From: karthikeyan [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2002 17:52
[]
I am very sure that there must be some solution to this but
I don't know
how to do this in PHP. I have one solution using GET method
but not with
POST.
Then you're very
-Original Message-
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 21:23
I have a question. I am working on a submit form that will
ask you for confirmation of info. I.e. I need to move values
submitted via form through 2 different pages. One of the ways
to
-Original Message-
From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 00:51
Hi All,
I have multiple PHP pages and make my connection to the MySQl
db in one of
these pages. When I go to the next one any mysql commands
seem not to work
- it look like the
-Original Message-
From: Patrick Teague [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 10:48
I'm having problems with .htaccess files setting up the php_value
include_dir on both my development test servers. I'm using
php4 under
apache on win2k for development php4 under
-Original Message-
From: Roman Duriancik [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 08:40
I have one small problem. I have array e.g $array but I don't know
how to finding arguments and values of this array.
e.g
$array[aa] = 1;
$array[ab] = some;
...
and script send
-Original Message-
From: Gonzalez, Zara E [mailto:[EMAIL PROTECTED]]
Sent: 11 March 2002 17:54
I was just wondering if anyone knew an easy way to register
all $_REQUEST
variables as session variables.
I haven't seen this solution on the list, but what about:
foreach ($_REQUEST
-Original Message-
From: Richard Ellerbrock [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 14:25
The following code generates a warning when register_globals=off and
error reporting is set to E_ALL. How do I define the constant
in another
way not to generate a warning? This is
-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 16:02
I have a global array $mtxt that is created in my script.
I have a function from which I want to access a value from that array:
$mtxt[1] = Test;
$text = $GLOBALS['mtxt[1]'];
Except
-Original Message-
From: Erick [mailto:[EMAIL PROTECTED]]
Sent: 12 March 2002 01:47
I've been working on this for a little while now, without success. I
want to compare the current date to a certain recurring date (ie:
compare todays date to the date of the second Sunday of
-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 17:12
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I don't understand why you think it is illogical. How else
would you
dereference a
-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: 14 March 2002 11:51
Hi friend,
I need some help on this logic...
1. I have some range (A to B) which is fixed and A,B are very large
numbers.(AB)
2. I have X to Y and I want to check this range
-Original Message-
From: Scott St. John [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 21:32
I am working on a javascript box that will allow the user to
drag values
from one select box to another. I will use this box to set
the values.
This is a standard, multiple select
-Original Message-
From: Jim Lucas [php] [mailto:[EMAIL PROTECTED]]
Sent: 15 March 2002 00:55
Plus, depending on how you are calling the file. Meaning if
the file name
that you are calling is a static file name or dynamic file name
require() and require_once() will include a
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: 18 March 2002 08:20
$your_timestamp+=gmmktime(0,0,0,1,1,1972);
Well, that depends on your definition of year -- the problem here is that it makes
no allowances for leap years, so (for example) 2-mar-2003
-Original Message-
From: Hiroshi Ayukawa [mailto:[EMAIL PROTECTED]]
Sent: 18 March 2002 05:11
I'm trying to use $_SESSION on Windows2000+PHP4.1.2 binary version.
But it seems that $_SESSION doesn't work, even in the
simplest samples
like;
I think this is acknowledged as broken
-Original Message-
From: John Clarke [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2002 00:40
I have used the following script successfully for a year now,
but have just
found a problem with the date 2002-03-31.
Any ideas why this would be happening?
function
-Original Message-
From: Scott 'INtense!' Reismanis [mailto:[EMAIL PROTECTED]]
Sent: 08 June 2002 04:52
Anyhow basically what is happening, is that cookies are been set fine,
however say I try to set two cookies in the one script
i.e.
setcookie(username,
-Original Message-
From: Laurent Drouet
To: [EMAIL PROTECTED]
I use Php 4.0.6 with oci and when I try to use OcibindByname php
function
I receive the following warning :
Warning: Call-time pass-by-reference has been deprecated .
The problem is that this function requires the use of
-Original Message-
From: Remy Dufour [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2002 14:34
If you do this, it should work
function foo()
{
global $_POST;
That's unnecessary -- the $_ arrays are automatically global (superglobal).
reset($_POST);
That's unnecessary --
-Original Message-
From: Steve Buehler [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2002 15:54
I hope that someone will be kind enough to help me on this.
snip
I want to do something like the following, but it does not work:
testinput();
function testinput(){
GLOBAL
-Original Message-
From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2002 17:27
How can I access the value of a variable whose name is stored
in another
variable?
Example:
$field=artist;
How can I access the value of $artist ?
$$field
Cheers!
Mike
-Original Message-
From: Lee Doolan [mailto:[EMAIL PROTECTED]]
Sent: 14 June 2002 01:25
Miguel == Miguel Cruz [EMAIL PROTECTED] writes:
Miguel Why does this:
Miguel $x = 3 + 5 * 7;
Miguel produce different results from this:
Miguel $x = (3 + 5) * 7;
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: 14 June 2002 22:01
So I'm trying to install PHP on win98 with Apache2.
I got these nice instructions from...
http://www.webmasterbase.com/article.php?pid=30aid=525
After I make the following
-Original Message-
From: Zlutarch G. [mailto:[EMAIL PROTECTED]]
Sent: 15 June 2002 00:54
My session variables won't persist, could someone help me
with this problem?
PHP version? (If =4.0.6, $_SESSION doesn't exist.)
Which Web server? Version?
I spent all day trying to
-Original Message-
From: Stuart Dallas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:53 PM
To: Phillip Perry
Cc: Tim Ward; Martin Towell; Tom Rogers; Php
Subject: Re[2]: [PHP] beginner in PHP
On Thursday, June 13, 2002 at 7:44:39 PM, you wrote:
Yes, here is the
-Original Message-
From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
Sent: 17 June 2002 21:24
To: 'Chris Knipe'; [EMAIL PROTECTED]
Subject: RE: [PHP] substr?
Here's another way of writing that code that may be easier to
work with:
$TestValues = array(072, 073, 082, 083, 084);
-Original Message-
From: Chris Knipe [mailto:[EMAIL PROTECTED]]
Sent: 17 June 2002 09:28
Is this right? It seems to me that substr is working in reverse?
$string = 1234567890; // Always numerical, always 10 chars.
if (!substr($string, 0, -7) == 083) {
echo not 083\n;
} else
-Original Message-
From: Leston Drake [mailto:[EMAIL PROTECTED]]
Sent: 18 June 2002 18:48
I am unable to retrieve session variables on my local server.
[snp]
On another server
(http://www.lpsoftware.com/phptest/test5.php) it works as
expected. But I can't figure out why it
-Original Message-
From: Mark Colvin [mailto:[EMAIL PROTECTED]]
Sent: 20 June 2002 16:48
I have the following .php script and .inc file which doesn't work:
= .inc file =
?PHP
class Sessions
{
function Check_Session()
session_start();
if
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 22 June 2002 15:19
when I try and view stat.php I get this error:
Parse error: parse error, expecting `T_STRING' or
`T_VARIABLE' or `T_NUM_STRING' in C:\TecEco(Converting To
PHP)\includes\stat.php on
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: 24 June 2002 18:12
On Monday, June 24, 2002, at 12:15 PM, Johnson, Kirk wrote:
When you echo out an array element, the name needs to be enclosed in
curlies, e.g.,
echo {$_SERVER['PHP_SELF']}
I think
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2002 20:58
Still working on the script. Here what I found out so far.
Why does the
example #1 work and example #2 doesn't?
Example #1
Page 1
$_SESSION[0] = Zero;
$_SESSION[1] = One;
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2002 21:17
[...]
It's a good idea to get in the habit of doing:
header(Location: xxx);
exit;
There's no point in sending any more data after the Location:
header anyway,
I can't let this go
-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2002 21:41
For the current issue I'm trying to unset some variables with
common names
and I would like to step through them with a loop. Here's
where I'm at to
give you an idea but the code doesn't
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: 11 July 2002 10:54
The alternate syntax with the colons is passe -- I think
you'd have to dig
pretty deep to find a script old enough that uses it for
anything other than
demonstration purposes. (Rasmus?)
-Original Message-
From: David Duong [mailto:[EMAIL PROTECTED]]
Sent: 10 July 2002 22:57
Is their 1 function method to remove an element within an
array using its
key instead of its position within the element?
You mean like unset($arr[$n]) ??
Cheers!
Mike
-Original Message-
From: Chris Earle [mailto:[EMAIL PROTECTED]]
Sent: 11 July 2002 18:28
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: if syntax
when it would be just as easy, and more functional, to
write this (even
saves a few characters, too!):
if (x):
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: 11 July 2002 23:38
[]
I apologize profusely to the fans of the alternative syntax
who are still
using it.
I personally find the endxxx; to be more of an eyesore, but that's a
religious argument. :-)
-Original Message-
From: David D [mailto:[EMAIL PROTECTED]]
Sent: 13 July 2002 16:38
I can manage this script to work.
Js warn about listid[], he doesnt like [] in a var name !
Php needs them to collect an array from form checkboxes.
form name=test action=check.php
input
-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]]
Sent: 15 July 2002 03:04
This is what I have so far:
for ($m=0; $m$num_rows2; $m++)
{
$row2 = mysql_fetch_array($result2);
echo $row2[devlanguage];
if ($m $num_rows2)
{
echo , ;
}
else
{
echo .;
}
-Original Message-
From: Justin Blake [mailto:[EMAIL PROTECTED]]
Sent: 16 April 2002 09:43
You can use variable variable names by adding another '$'.
so if $i == 1 and $var1 == one, you can do this:
$var_name = var.$i;
if($$var_name == one) echo Hello!;
That should work,
So
-Original Message-
From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2002 04:54
Why get strlen involved???
$string = substr($string, 0, -1);
Why get quotes involved???
$string = substr($string, 0, -1);
Cheers!
Mike
-Original Message-
From: michael kimsal [mailto:[EMAIL PROTECTED]]
Sent: 21 April 2002 04:17
Second, *HOW MANY* PHP statements can be followed by a { ?
I can think of three
if (foo) {
function foo () {
class foo {
Maybe there's one more that I'm missing [...]
Off the top
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: 24 April 2002 04:46
Would you please direct your attention to this URL
http://testphp.netfirms.com/code1.html
Look at the bottom where the big orange commented syntax is
and explain what
is going on
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent: 25 April 2002 05:06
Yike, now I wish I hadn't found it:
[Wed Apr 24 19:42:18 2002] [error] PHP Warning: Wrong
datatype for second
argument in call to in_array in beta_up.asp on line 61
57 function ext_valid
-Original Message-
From: Pekka Saarinen [mailto:[EMAIL PROTECTED]]
Sent: 25 April 2002 11:05
Is there a way to reliably detect PHP version and have
$PHP_SELF replaced
with $_SERVER['PHP_SELF'] when executed in 4.2 or newer?
What about:
if (isset($_SERVER)) $PHP_SELF =
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: 25 April 2002 18:02
Just looking at the manual here and it explains quite
specifically that
array_search() is meant to be used with associative arrays,
not indexed
arrays.
No it doesn't. How on earth did
-Original Message-
From: andy [mailto:[EMAIL PROTECTED]]
Sent: 25 April 2002 17:30
I am passing an array through the URL with a ',' inbetween:
var=php,mysql,super
Parsing is done with: explode (',',$var). This gives me an
array starting
with 0
Later on I have to search for
-Original Message-
From: Nathan [mailto:[EMAIL PROTECTED]]
Sent: 25 April 2002 21:01
Apparently in 4.1.X this is true... I'd been running 4.0.6
for a long time (until 4.1.2 was
released), and must have coded it in the earlier version. I
stand corrected! :-)
H'mmm, I think you
-Original Message-
From: Padraig Kitterick [mailto:[EMAIL PROTECTED]]
Sent: 26 April 2002 20:16
To: [EMAIL PROTECTED]
Subject: [PHP] Sessions with register_globals = off
Am in need of help or I will loose my sanity!!! Im runnin Php
4.1.2 with
Apache 1.3.22 on Win32 with
-Original Message-
From: Hugh Bothwell [mailto:[EMAIL PROTECTED]]
Sent: 27 April 2002 01:15
Vins [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
if(!ereg(^#(.)*$, $buffer[$i]))
{
echo ok;
}
what does this mean?
[...]
Boiled down,
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 05:34
On Sun, 28 Apr 2002, Richard Emery wrote:
The answer is:
$file_pointer = fopen('/public_html/emails.txt', a) or exit;
The || is a binary operation. You want or, the
logical
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 14:12
To: [EMAIL PROTECTED]
On Monday 29 April 2002 20:52, Ford, Mike [LSS] wrote:
Well the ereg is looking for strings beginning with # but
then the whole if
expression
-Original Message-
From: Lee P Reilly [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 22:06
Just a quick question. I'm developing on a Windows machine right now,
and will later move it onto Linux. Should I expect to run into major
difficulty at all? I anticipate a few problems -
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: 30 April 2002 00:04
instead of
echo(Hi ,$_POST['fname'],nbsp;,$_POST['lname'],Thank You For
Registering !!!);
try
echo Hi .$_POST['fname'].nbsp;.$_POST['lname'].Thank You For
Registering !!!;
You
-Original Message-
From: John Fishworld [mailto:[EMAIL PROTECTED]]
Sent: 30 April 2002 09:32
I'm trying to find files in my array
for example
=lg_imode.gif
and
=/db/imodeklein/edgar-IMODE-1-.gif
I want to differentiate between the files with slash at the
front and ones
-Original Message-
From: Liam Gibbs [mailto:[EMAIL PROTECTED]]
Sent: 30 April 2002 19:11
Does anybody know of any PHP project editors,
something that will group together all the PHP, INC,
HTML, CSS files together into one logical project?
Preferrably freeware/shareware,
-Original Message-
From: Bo Pritchard [mailto:[EMAIL PROTECTED]]
Sent: 01 May 2002 14:29
Warning: Cannot add header information - headers already sent
by (output
started at /home/omnidevi/omnidevices-www/s-cart/form.phtml:5) in
-Original Message-
From: Ferry van Steen [mailto:[EMAIL PROTECTED]]
Sent: 02 May 2002 09:42
why do these work:
$vars = vars;
$ar[0] = arrays;
$hash['vars'] = hashes;
str = I can use $vars in strings;
str = I can use $ar[0] in string;
while this one doesn't:
str = I can NOT
-Original Message-
From: Garth Dahlstrom [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2002 19:48
Anyone notice this... when you do a
?
phpinfo();
?
you get PHP Version 4.1.2, while my apache window
says Apache/1.3.20 (Win32) PHP/4.2.0 running...
Uh -- the response to the bug
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2002 23:09
Hmm. No offense ..., but I don't believe turning
Registered Globals off
will have any effect on security. Turning Registered Globals off just
provides a more strict environment for coding.
-Original Message-
From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2002 06:40
[]
http://www.php.net/manual/en/language.types.string.php#language.types.
string.parsing
Where I see this example (in complex syntax section):
// This is wrong for the same
-Original Message-
From: Martin Thoma [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2002 12:01
Hello! I'm working with an array (about 20 MB), which is shifted to
several other arrays and so on. When I shift a array to
another, I don't
need to source-array anymore. PHP is able to
-Original Message-
From: Chris Knipe [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2002 04:38
Just to clarify myself above...
if ($var1 = $var2) { .
In my crazy head, I see $var1 and $var2 to be in a sort of
read-only state
inside the () of the if statement. For a if statement
-Original Message-
From: Zeev Suraski [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2002 12:36
You meant it the other way around, didn't you? :)
Er, yes! ;)
(I cut-and-pasted one example to create the other, and then changed the wrong on to
off!!)
Cheers!
Mike
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2002 12:54
To: 'Zeev Suraski'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] register_globals in php4
-Original Message-
From: Zeev Suraski [mailto:[EMAIL PROTECTED]]
Sent: 10 May 2002 12:36
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2002 17:32
I've been looking at the php manual section on variable
variables but I
don't think i either a) understand it, or b) it isn't what I need.
Here's the coup:
I have a bunch of post vars,
-Original Message-
From: Liam Gibbs [mailto:[EMAIL PROTECTED]]
Sent: 23 May 2002 18:49
From version 4.1.0, $str = ltrim($str, '0')
This works excellently. Thanks. One problem that I
didn't think of, though: If the number is 0 (only 0),
then the string ends up being empty. Is
-Original Message-
From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2002 20:31
time() returns the number of seconds since the Unix Epoch to
the current
local time
gmtime() should return the number of seconds since the Unix
Epoch to the
current GM-time
Do you
-Original Message-
From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
Sent: 27 May 2002 12:48
-Original Message-
From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
Sent: 24 May 2002 20:31
time() returns the number of seconds since the Unix Epoch to
the current
1 - 100 of 661 matches
Mail list logo