Hello all
Just a query I want to ask what is meant by include files being in a folder
'outside' the web root.
For example, I use an ISP (linux box) to upload all my stuff to the site I
see /html as the folder to store all web files. So if I go up one to /,
is this outside the web root, or is this
Let me introduce myself :
I write to this list from Corsica (the nearest of the farest french
overseas territories), and I am a newbie in Php, for those who
have'nt realized yet :)
and my error is :
I try to do an import text file into a mysql table with the php
script provided with
Try LOAD DATA LOCAL INFILE 'C:\\WINDOWS\\TEMP\\phpC255.TMP'
Rg wrote:
Let me introduce myself :
I write to this list from Corsica (the nearest of the farest french
overseas territories), and I am a newbie in Php, for those who
have'nt realized yet :)
and my error is :
I try to do an
Ah, missed this when I first looked at your problem.
If you can't change register_globals in the php.ini file, try using
$_GET[mod]
instead of $mod
chris kranz
fatcuban.com
-Original Message-
From: wisi [mailto:[EMAIL PROTECTED]]
Sent: 10 February 2003 03:57
To: [EMAIL PROTECTED]
I thought PHP worked like this : to instantiate a class, you need to name a
constructor function with the same name as your class. Also var myVar
should be var $myVar -- I think setting myVar will create a constant not a
variable. Try turning error_reporting(E_ALL) on in your code to catch this
Ya i actually got it working yesterday thanks to Matt who sent me some
sample class code to execute. I put it in a seperate file and it worked
fine. So thin i put the class i was trying to call in a seperate class as
well and that did it. ie., the problem(besides all the ones you mentioned)
Hi everyone. Why does my code work when I enter just 1 for the quantity, but only
returns $1.10 when I enter a quantity of 2 or more?
$totalqty = 0.00;
$totalamount = 0.00;
define(HALLTABLE, 800);
$totalqty = $_POST[hallqty]; //quantity
$totalamount = $_POST[hallqty] *
php-windows Digest 13 Feb 2003 19:26:32 - Issue 1586
Topics (messages 18511 through 18525):
Re: Need Help with Classes
18511 by: Matt Hillebrand
Re: PHP or Apache isn't playing nice
18512 by: wisi
18515 by: Rico Derks
18516 by: Rico Derks
18522 by:
You're not using the $totalqty variable in any of the statements that
modify the $totalamount.
Matt
|-Original Message-
|From: paradiddles [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, February 13, 2003 1:00 PM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] basic variable question
|
|
|
| Hi
Oh wait. Yes you are. Heck if I know. :)
|-Original Message-
|From: paradiddles [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, February 13, 2003 1:00 PM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] basic variable question
|
|
|
| Hi everyone. Why does my code work when I enter just 1 for
If you remove the first call to number_format(), it works.
Matt
|-Original Message-
|From: paradiddles [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, February 13, 2003 1:00 PM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] basic variable question
|
|
|
| Hi everyone. Why does my code work
Dear Matt,
I noticed on php-windows that you seemed to have some trouble getting
the php_mhash.dll to work for you. Personally I can confirm that this
module works just fine on my dev machine (running win98, PHP 4.3.0,
Apache_1.3.27/mod_ssl Apache_2.0.44/mod_ssl). So you probably need to
do some
Try LOAD DATA LOCAL INFILE 'C:\\WINDOWS\\TEMP\\phpC255.TMP'
It was the good option, thanks.
RG
[EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello!
Does anyone have or can help me find a good PHP questionaire (quiz). If you
have any ideea about one for MySQL this would be highly appreciated.
Thankx,
Arthur
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ok cold fusion has the ability to do a cfparam name='' default=''
this lets you specify a variable name to be defaulted to a value if it is
called without being defined. I usually use this for variables specified by
forms either by GET or POST. now I can't find it's equivalent in PHP.. can
You could do
if(!isset($var)) $var = 'asdf';
Or if you're using a function, you can specify default values in the
parameter list:
function my_func($var1 = 'default1', $var2 = 'default2') {
// do stuff
// do stuff
}
Matt
|-Original Message-
|From:
that is exactly what I was looking for!!! =) Thank you very much!
-Original Message-
From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 4:21 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] php defining variable defaults?
You could do
17 matches
Mail list logo