-Original Message-
From: Bas Jobsen [mailto:[EMAIL PROTECTED]
Sent: 16 June 2003 14:39
I'm not sure that there is a way beyond this to show the
line within the
function but I don't see that this would be necessary - at
least not for
resolving errors.
i'm building a class
-Original Message-
From: Alex Earl [mailto:[EMAIL PROTECTED]
Sent: 12 June 2003 21:13
Jumping in a little late here, but what about is_numeric()?
Haven't tried it, but the php manual for is_int says:
Note: To test if a variable is a number or a numeric
string (such as
form
-Original Message-
From: Amanda McComb [mailto:[EMAIL PROTECTED]
Sent: 12 June 2003 22:21
Is there a way to make a variable not exist? There are several places
where I test (!$variable), and I want to be able to change the
variable to pass that test, even though it exists, under
-Original Message-
From: Johnny Martinez [mailto:[EMAIL PROTECTED]
Sent: 13 June 2003 00:49
Will this work for $_GET as well?
Yup.
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 2:14 PM
if ($_POST) {
-Original Message-
From: Ulrik NIelsen [mailto:[EMAIL PROTECTED]
Sent: 13 June 2003 13:25
Does any og you know why it's not possible to use the syntax:
?php=$something?
when you can use this:
?=$something?
This has been discussed more than once by the PHP developers, and
-Original Message-
From: Douglas Douglas
To: [EMAIL PROTECTED]
To get the superglobal array ($_GET or $_POST), I try
to build these strings '_'.$method. I'm sure this part
works, PHP builds the string _GET or _POST according
to the $method parameter.
I use ${'_'.$method} to get the
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: 11 June 2003 14:09
session_register('user');
$_SESSION['user'] = ebusUser;
Just one other quick point here: if you use the $_SESSION array, you don't
need to -- and, in fact, should not -- use
-Original Message-
From: Ryan M [mailto:[EMAIL PROTECTED]
Sent: 11 June 2003 20:22
Thanks for the advice... The link worked Now it is saying this:
Notice: Undefined index: action in
It only says this if there is no action...it goes away once I
click the link
and the
-Original Message-
From: Brian McGarvie [mailto:[EMAIL PROTECTED]
Sent: 12 June 2003 11:42
Kinda... I get it to return one line...
The code:
?php
define('STDIN',fopen(php://stdin,r));
$str = fgets(STDIN);
mail([EMAIL PROTECTED],Test,Test
Test...\n\nOriginal
-Original Message-
From: Stephen Goddard [mailto:[EMAIL PROTECTED]
Sent: 11 June 2003 12:48
To: [EMAIL PROTECTED]
Subject: [PHP] Switch function problem
Hi Folks,
Anyone know if you can use operators in a switch function? eg.
No. Do this:
switch ($category){
case
-Original Message-
From: adrian GREEMAN
[mailto:[EMAIL PROTECTED]
Sent: 11 June 2003 15:23
I am confused by the shorthand if notation.
For example I just saw this PHP snippet on another forum
?
$bkgndClass = $bkgndClass == darkBkgnd ? liteBkgnd :
darkBkgnd;
}
?
I think
-Original Message-
From: Wim Paulussen [mailto:[EMAIL PROTECTED]
Sent: 11 June 2003 14:28
page 1 : login.php
input user name - Post veriable
input password- post variable
page 2 : verify.php
session_start()
// supposing name is entered
if (!$_POST['password'] == )
-Original Message-
From: Jason k Larson [mailto:[EMAIL PROTECTED]
Sent: 09 June 2003 22:23
Try adding the SessionID to the URL.
openEdit(add=eventamp;cellid=10amp;?PHP echo Session_Name
().'='.Session_ID();?);
or a little better:
$thisSession =
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]
Sent: 09 June 2003 23:54
- Original Message -
From: Emma Jane Hogbin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
What ended up working was passing the session ID to the
pop-up window
manually by including it
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]
Sent: 06 June 2003 15:48
Thanks for your reply. I had actually made a mistake in the
code. It looks
like this now:
How could I still use the id thing on this?
Well, the addition of the stripslashes() call
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 13:36
[snip]
If I did this, would it make a huge amount of difference?
I'm almost certain it WOULD make a difference, but apart from the
execution time, I can't think of anything worse than
-Original Message-
From: Saint Urho [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 20:14
I want to add some directories to the include path entry in the
php.ini file. I have to do this via the .htaccess file
because I do not
have access to the php.ini file on the server.
Will
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 19:15
Here's my javascript link code for each day of the month in
the calendar script:
print a href=\#\
onClick=\window.opener.document..$HTTP_GET_VARS['name']..da
te.value='$y-$m-$d';\$d/a;
-Original Message-
From: MaurĂcio Valente [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 21:56
I couldn't find the option max_body_request somebody knows
where it is?
There's no such option -- you could be looking for post_max_size in php.ini,
or the LimitRequestBody directive in
-Original Message-
From: Ryan A [mailto:[EMAIL PROTECTED]
Sent: 03 June 2003 23:25
I am getting values from a form's checkboxes
(eg
input type=checkbox name='id[]' value=1
input type=checkbox name='id[]' value=2
etc)
When i get these values I want to enter them into the
-Original Message-
From: Ed Gorski [mailto:[EMAIL PROTECTED]
Sent: 04 June 2003 13:37
You need to append the session name and id to the header
location everytime
you redirect that way. So your header redirect should read:
header('Location:
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: 04 June 2003 14:33
I've been getting a warning on one of my scripts since I
upgraded from
4.1.2
to the most recent version of PHP. The warning is:
Warning: setlocale(): Passing locale category name
-Original Message-
From: Esteban Fernandez [mailto:[EMAIL PROTECTED]
Sent: 04 June 2003 16:09
Also works... :)
?php
$array = get_loaded_extensions();
for ($i=0;$i=count($array);$i++) {
if (gd == $array[$i]) $installed = true;
else $installed = false;
}
This will only
-Original Message-
From: esctoday.com | wouter van vliet [mailto:[EMAIL PROTECTED]
Sent: 04 June 2003 16:11
I'm working on quite a large website with a lot of php
pages.. And a lot of
includable functions (modules).. Sometimes one of those modules gets
included twice accidently
-Original Message-
From: Svein Larsen [mailto:[EMAIL PROTECTED]
Sent: 04 June 2003 16:22
$gd_loaded = (extension_loaded('gd'))?1:0;
Well, this also fails the simple-as-possible test: if the value returned by
extension_loaded() can be used to drive the ?: operator, it must be
-Original Message-
From: Dan Joseph [mailto:[EMAIL PROTECTED]
Sent: 30 May 2003 18:03
Just did a bit of checking..
NL == ASCII 010, CR == ASCII 015..
Ahh ok, so nl2br() would work. Cool, I guess you learn
something new
everyday. Is there a one for CR's? I noticed
-Original Message-
From: Monty [mailto:[EMAIL PROTECTED]
Sent: 31 May 2003 21:21
If you want the entire string to be tested for digits, you
need to add the
length of the string to the regex pattern:
$length = strlen($data);
preg_match([0-9]{$length}, $data);
Or anchor
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 18:07
To: Jim Lucas; Rasmus Lerdorf; Ralph
Answering my own answer. I see now how you are extracting
the sub array
information.
My mistake.
Notwithstanding that, I think your question was a good
-Original Message-
From: Dale [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 19:43
I am new to php and I just have some general questions.
1. when you create a new variable such as an integer, is it
automatically
initialized or is it considered empty similar to asp?
In PHP,
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: 03 June 2003 06:34
To: Monty; [EMAIL PROTECTED]
Subject: Re: [PHP] Cookies and Sessions: What's the Best Recipe?
H,
Theory only here:
If there is a GET value of PHPSESSID (or whatever your
sessions
-Original Message-
From: Shaun [mailto:[EMAIL PROTECTED]
Sent: 03 June 2003 10:21
I am creating a timesheet application, how can I make sure
that a user has
entered a number, and that the number is a whole number or a
decimal up to 2
places, and that the number is less than 24?
-Original Message-
From: Wendell Brown [mailto:[EMAIL PROTECTED]
Sent: 29 May 2003 15:18
On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS]
wrote:
Well, how about references, then? (And me, personally, I'd
use isset()
rather than is_array().)
if (isset
-Original Message-
From: Shaun [mailto:[EMAIL PROTECTED]
Sent: 29 May 2003 15:40
of course ;)
but i couldn't find a reference to this particular problem...
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Have you checked the date functions at
-Original Message-
From: Dave O Keeffe [mailto:[EMAIL PROTECTED]
Sent: 29 May 2003 15:28
I read in the ChangeLog for v4.3.2 that GD2 is bundled with
this release. I
downloaded and installed the Windows Installer version but my sample
imagecreate code still doesn't work, it
-Original Message-
From: Roland Tarver [mailto:[EMAIL PROTECTED]
Sent: 28 May 2003 10:07
I've got a question about about naming html components (text fields,
select boxes etc) when submitting a form to a php page.
First I tried identifying an element using the id attribute
and
-Original Message-
From: David Grant [mailto:[EMAIL PROTECTED]
Sent: 28 May 2003 12:47
To: Leif K-Brooks
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Variables don't pass... *sniff*
Leif K-Brooks wrote:
To maintain absolute compatibility, just use
-Original Message-
From: Wendell Brown [mailto:[EMAIL PROTECTED]
Sent: 28 May 2003 15:02
On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote:
I would've thought that $HTTP_*_VARS will be deprecated
sometime in the
future. It might be an idea to write your own accessor
-Original Message-
From: Chris Hewitt [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 09:26
To: Justin French
[snip]
What I have done is to do the addslashes/stripslashes assuming
magic_quotes_runtime is off then force it off within my code
beforehand
with:
if
-Original Message-
From: Paul Kraus [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 15:42
Also why can I not place these variables in line with the echo
statement. If I do it doesn't work.
I thought I could just echo face=$_POST['type_sel'] - but it does
not work.
Please read
-Original Message-
From: Paul Kraus [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 15:44
Also when I first run this at the top I get this error...
Notice: Undefined index: typeset in
c:\inetpub\wwwroot\testing\cookies.php on line 4
Notice: Undefined index: size_sel in
-Original Message-
From: Centras [mailto:[EMAIL PROTECTED]
Sent: 04 April 2003 18:58
Friday, April 4, 2003, 6:47:38 PM, you wrote:
DM On Friday 04 April 2003 08:54 am, Eugene Mah wrote:
At 08:24 04-04-03 -0500, you wrote:
On Friday 04 April 2003 07:43 am, Petre Agenbag wrote:
-Original Message-
From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED]
Sent: 03 April 2003 15:28
On Wed, 2 Apr 2003 21:41:02 -0500, John Coggeshall wrote
about RE: [PHP]
Submit Image Button what the universal translator turned into this:
Well you can ignore it if you don't need
-Original Message-
From: Michael Egan [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 13:05
There are some ready made scripts for dealing with UK post
codes on the relevant page on the PHP site:
http://www.php.net/manual/en/function.ereg.php
And not one of them is 100% correct!!
-Original Message-
From: Charles Kline [mailto:[EMAIL PROTECTED]
Sent: 01 April 2003 21:21
To: Dan Joseph
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] getting values from objects
My objective was to try and NOT use a temporary variable.
for example I can do this:
foreach
-Original Message-
From: ODCS [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 08:10
I have a form where the user inputs information - the code
below is the
error checking for one of the fields. The first IF statement
just checks
that the filed is not empty and works fine.
Then
-Original Message-
From: VanZee, Timothy [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 17:31
Repost because no one replied originally. Are there any other lists
that anyone knows of for php that could be more helpful? I'm quite
disappointed in this one because I thought this was
-Original Message-
From: Stuart Cochrane [mailto:[EMAIL PROTECTED]
Sent: 31 March 2003 15:45
I have a script that runs on over 250 Servers, all are running NT4.
here is the script:
[php]
function last_sunday() {
return gmdate(Y-m-d, strtotime(Last Sunday));
}
echo Last
-Original Message-
From: Daniel Harik [mailto:[EMAIL PROTECTED]
Sent: 28 March 2003 18:55
Jim Lucas wrote:
This is untested, but I seem to recall doing something like
this on a
project last year.
form method='post' action='/process.php'
!-- row #1 --
input type=text
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 15:59
on 22/03/03 2:27 AM, Beauford.2002 ([EMAIL PROTECTED]) wrote:
What about cookies - someone said if you put no time limit
on a cookie it
dies when you leave the site - I'm not sure about
-Original Message-
From: Bill Hudspeth [mailto:[EMAIL PROTECTED]
Sent: 14 March 2003 20:07
I am developing an application that ouputs the results of a
database query
to a PDF file using PHP. The only real problem I have
encountered is in
trying to use the include and/or require
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: 15 March 2003 06:23
doesn't work but also doesn't give any errors, I will try to
explain what I
am trying to do:
I am trying to remove the header and footer to create a
printer friendly
page with just the
-Original Message-
From: Charles Kline [mailto:[EMAIL PROTECTED]
Sent: 15 March 2003 18:52
I have an array that gives me this when I do:
print_r($my_array);
Array
(
[0] = Array
(
[dra_id] = 5
)
[1] = Array
(
-Original Message-
From: joe [mailto:[EMAIL PROTECTED]
Sent: 15 March 2003 23:50
what is the best way to check, if a value is NOT in an array?
the purpose is to take results from a webpage and check
one-by-one if they
are in the txt file already. if they are not, i have to write
-Original Message-
From: Ian A. Gray [mailto:[EMAIL PROTECTED]
Sent: 17 March 2003 15:11
Using the \ or using single quotes instead of double
is great. However I am now finding a problem if
someone inputs either single or double quotes on a
form which uses php.
The user
-Original Message-
From: James E Hicks III [mailto:[EMAIL PROTECTED]
Sent: 14 March 2003 18:22
Help save my sanity! What can I do to the IF statement in the
following code to
make it print the line that says By God they are equal in
value.? I have tried
the following changes;
-Original Message-
From: conbud [mailto:[EMAIL PROTECTED]
Sent: 12 March 2003 19:12
Hi, Ive been trying to get this to work but I keep getting this error
Parse error: parse error, unexpected $ in
/home/conbud/nrlug/test3.php
on line 72
line 72 is just the ending php
-Original Message-
From: chris [mailto:[EMAIL PROTECTED]
Sent: 13 March 2003 00:24
To: [EMAIL PROTECTED]
1. Registered globals are off.
2. Using super globals ($_SESSION instead of $HTTP_SESSION_VARS)
3. Setting via $_SESSION['var'] = $var instead of
session_register('var')
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: 13 March 2003 10:24
My gc_maxlifetime = 3600 (1 hour) and my probability = 100
, just for
testing . When i create a session on my site and i dont log
out , the
session var will still remain on the server
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: 10 March 2003 15:35
To: [EMAIL PROTECTED]
Subject: Re: [PHP] array question
On Monday 10 March 2003 21:13, Diana Castillo wrote:
If I sort an array, and now the keys are not in numerical
order, how can I
-Original Message-
From: Shawn McKenzie [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2003 05:55
While debugging my code, that seems to work fine, I see
hundreds of these
notices, many different ones with different offset numbers
same line number.
Notice: Undefined offset: 2
-Original Message-
From: Steve Buehler [mailto:[EMAIL PROTECTED]]
Sent: 20 February 2003 05:25
Ahhhfinally did it with usort. Thanks to those who gave me that
answer. Now here is a question for that. I would like to
re-use my cmp
function without having to rewrite it
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 18:11
PS: I am using htmlentities() on the output before displaying
it in the
browser, but it doesn't apply to singlequotes.
Ahem! I quote from
-Original Message-
From: Mark Cubitt [mailto:[EMAIL PROTECTED]]
Sent: 19 February 2003 12:43
I need to manipulate, the following data in a number of
diffierent ways
I'm storing the data in a multidemensional array, the
stucture of which
is below, and I need to sort it by
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 15:14
I have a script, registration.php, which calls require_once on the
Registrant.class file mentioned in the above error message. The
Registrant::setPhone() method is called more than once.
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2003 13:02
At 13:46 12-2-03, you wrote:
The code I am trying to get working is shown below however,
as the # is
interpreted as a comment the header function is only redirecting to
-Original Message-
From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]]
Sent: 09 February 2003 14:39
[OP snipped]
I don't know much about CF, but in plain HTML as you show
here you have 3
different form input (select) fields sharing the same name. Thus the
browser will transmit
-Original Message-
From: CF High [mailto:[EMAIL PROTECTED]]
Sent: 09 February 2003 20:52
Here's the deal:
Let's say I have a form that requests the season schedule of
a baseball
team, and the team in question has twenty scheduled games all
on different
days.
Each form row
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]]
Sent: 09 February 2003 21:12
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP and Serach Engines...
At 22:00 9-2-2003, you wrote:
Hello,
How do search engines react to PHP pages? If every
page of a
site
-Original Message-
From: Adam Voigt [mailto:[EMAIL PROTECTED]]
Sent: 10 February 2003 14:13
Precisely where did you get the b in your second parameter to fopen?
I didn't see it on the fopen manual page at:
http://www.php.net/fopen http://www.php.net/fopen
Er -- quoting from that
- Original Message -
From: Erich Beyrent [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]
hi..
how would you test for an empty (unused) variable from a form..
i have a phone number split into 3 different vairiables
and want to test
to
see if they were used in the
-Original Message-
From: Sunfire [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2003 21:27
actually so does empty end up testing true on an empty var...
thats because
empty thinks or string(0) is actually a string just
blank... a trick to
do with empty is use !empty which will
-Original Message-
From: Chad Day [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2003 19:29
I'm struggling with array_multisort, was hoping someone could
give me some
help.
I have a multidim array, such as:
$myarray[0][FIRSTNAME] = JOE
$myarray[1][FIRSTNAME] = TIM
-Original Message-
From: Jan Mikes [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2003 15:23
do anyone know where I can get a full list of
$HTTP_USER_AGENT strings ??
Try http://www.psychedelix.com/agents.html -- it's about as comprehensive as
they come!
Cheers!
Mike
-Original Message-
From: Chris Hewitt [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2003 09:13
[EMAIL PROTECTED] wrote:
I modifiy my php.ini to redirect error message in log of
server web and I change
error_reporting = E_ALL ~E_NOTICE by error_reporting = E_ALL
Now, I get
-Original Message-
From: Andrew Rench [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2003 17:05
the following code:
html
body
form enctype=multipart/form-data action=?= $PHP_SELF ? method
=post
input type=hidden name=MAX_FILE_SIZE value=1000
Send this file: input name=userfile
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: 21 January 2003 10:20
Wasn't it 4.1.2 that had broken sessions? I remember one version that
came out that was just broke and you had to do a bunch of
workarounds to
get things to work normally. Was that it?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 21 January 2003 15:05
Thanks Rick Henry, but I am still unable to add single
quotation marks '.
When I added the \' to the variable as given below (thanks
again Rick) I get
the following error when
-Original Message-
From: Cal Evans [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2003 14:41
use [] in your select box name. When it comes back in the
$_POST array you
will have an array of options. It breaks HTML standard
No, it does not break HTML standards -- that is a PHP
-Original Message-
From: Kenneth Brill [mailto:[EMAIL PROTECTED]]
Sent: 20 January 2003 15:53
I just changed my server to SSL, everything worked before
that. now if I
have a form with an input box (named searchstring for
example) with a
value of TEST, when that form is posted
On Friday 17 January 2003 11:25, Edson Waite wrote:
Hi All,
I am trying to make an automated tour as a section of my
site, using the
following.
?php
$NewID = $colname_earlytour + 1;
?
META HTTP-EQUIV=refresh CONTENT=15
URL=early-tour.php?ID= ?php
echo
$NewID;?
-Original Message-
From: Phil Powell [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2003 04:33
I have view.php, a script that will include display.php and
have to manipulate the variables within display.php for itself.
So in view.php I have:
require('/.../.../display.php');
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2003 14:35
To: [EMAIL PROTECTED]
Copying this back to the list, in case anyone else can contribute (although I think
the attachments will be stripped -- can you make them available on a URL?).
-Original Message-
From: Mako Shark [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2003 15:26
To: [EMAIL PROTECTED]
Subject: [PHP] No constants being set. HUH?
I just JUST installed PHP onto a new server (my
first--kinda scary, new foray) and my pre-defined
constants (HTTP_SERVER,
-Original Message-
From: Philipp Hartmann [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2003 12:50
Here is what I want to do:
I am getting several variables into a Php Script such as:
help1 = yes / no
help2 = yes / no
.
.
.
helpX = yes / no
I need to check whether the
-Original Message-
From: Peter Hutnick [mailto:[EMAIL PROTECTED]]
Sent: 14 January 2003 15:49
I can't get my head around dealing with all the magic that
PHP does to my
data.
You need to read, very carefully, several times, the PHP manual section on
Type Juggling:
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: 11 January 2003 15:48
Jonathan Chum wrote:
I'm following various tutorials online that uses the
PATH_INFO to do this,
As far as I know, this technique doesn't work under windows...
As far as I know it
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2003 21:04
I, once I found out that register_globals isn't always one,
have always done HTTP variables as like $_SESSION for session
and $_POST for form vars through post. Why, if you have
-Original Message-
From: Nova [mailto:[EMAIL PROTECTED]]
Sent: 12 January 2003 20:04
This statement doesnt look right to me.
if(isset($_POST['userid']) isset($_POST['pword'])){
$_SESSION['user'] = $_POST['userid'];
$_SESSION['password'] = $_POST['pword'];
}
Nowt wong wi'
-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: 13 January 2003 17:07
I'm testing the following form on:
MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine.
However...when I publish the
.php file
and the
data.txt file
on the ISP's MS IIS
-Original Message-
From: Dave Gervais [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2003 21:36
Here is the C code. There is a decode function, but I don't
need it in
PHP because I have a C program listening to serial port on
the other end
that will validate the checksum.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2003 01:00
All of a sudden, I get the message:
Warning: Failed opening '/../lib/somefile.conf' for inclusion
(include_path='.:/usr/local/lib/php') in
/usr/local/www/html/index.php on
line 6
-Original Message-
From: Jason Sheets [mailto:[EMAIL PROTECTED]]
Sent: 10 January 2003 02:25
You should always use the exit after a redirect, the browser is not
required to go to the new location.
If you do not exit your script after you redirect and the browser does
not go to
-Original Message-
From: Dave Gervais [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 19:11
Does anybody know how to implement the 8 and 16 bit versions of
Fletcher's checksum using PHP? I hit google and came up dry.
It's easy
enough to find how to do it in C, but PHP if a
-Original Message-
From: Kevin Avila [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2003 04:33
I'm having a weird issue with float precision. I am
decrementing the
value of a float by 0.1. The problem is when the float I am working
with reaches 0.1 and I decrement it again I
-Original Message-
From: Mike Tuller [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 01:23
I am working with sessions, and following an example in a book and am
getting an error that I am not sure of. I have an html doc
that has the
fields for username and password and the
-Original Message-
From: Christopher J. Crane [mailto:[EMAIL PROTECTED]]
Sent: 06 January 2003 17:12
Ok here is what I did but it does not do anything.
I verified that is opening the file ok and everything, but it
shows nothing.
It doesn't even produce an error. I am sure there
-Original Message-
From: David Chamberlin
To: [EMAIL PROTECTED]
Is there an easy way to set something in a select list to be selected?
Right now I'm doing a real brute-force method. e.g.,
echo tdselect name=\disp_address\;
$choices = array( 'pub' = 'On Public Page',
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: 02 January 2003 23:29
The month behaves the same: both '08' and '09' are treated as zero by
mktime().
A leading 0 on a number denotes it as octal. 08 and 09 are not valid octal
numbers. PHP is interpreting as
-Original Message-
From: Daevid Vincent
To: [EMAIL PROTECTED]
echo action = .$_POST[action].BR;
if ($_POST[action] == 1 || $_POST[action] == 0)
echo = UPDATE Company SET Enabled = .!(intval($_POST[action])).
WHERE CompanyID = $id;
I cannot figure out how to simply make the 0 and 1
-Original Message-
From: Adam Wilson
To: [EMAIL PROTECTED]
I have split a page up into three sections, header, content and footer.
Header and footer are included in content via PHP. Header contains
Javascript functions. Content and header both call the javascript
functions.
When i look at
701 - 800 of 1025 matches
Mail list logo