ys($this->ma_arguments)) ) {
return true;
} else {
return false;
}
}
Robin 'Sparky' Kopetzky
Black Mesa Computers/Internet Service
Grants, NM
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greetings!!
If you define a constant within a function, is it local or global?
Example:
function foo()
{
define('BAR', 0);
}
Robin Kopetzky
Black Mesa Computers/Internet Services, LLC
--
PHP General Mailing List (http://w
Thank you for responding. I found just what the doctor ordered - ECHO php.
Sparky
- Original Message -
From: "Ralph Guzman" <[EMAIL PROTECTED]>
To: "'Sparky Kopetzky'" <[EMAIL PROTECTED]>; "'PHP General'"
<[EMAIL PROTECTED
Does anyone know of a PHP routine to validate Credit/Debit cards? I've seen some
convoluted Javascript scripts but want a PHP version so validation can be done done
server-side.
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
Hi!
I'm passing this url to the script:
http://www.fttta.com/auction.php
and intercepting it with:
if ($_SERVER['QUERY_STRING'] = "") { disp_cat(); }
However, nothing is happening. phpinfo show $_SERVER['QUERY_STRING'] as 'no value', so
this should work.
Anyone know why this doesn't work
Hi, again!!
I'm looking for opinions as to which is better/faster, print or heredoc.
print makes the code layout look nice and eazy to debug, where heredoc IS faster but
makes the code look like a nightmare with everything jammed against the left side of
the code. I'm pretty picky about what lo
Hi, again!!
I'm looking for opinions as to which is better, print or heredoc.
print makes the code layout look nice and eazy to debug, where heredoc IS faster but
makes the code look like a nightmare and I'm pretty picky about what looks good.
Robin E. Kopetzky
Black Mesa Computers/Internet Ser
Problem was a fat-finger - meant 'bid' not 'bids'... Doh!!!
Sparky - Thanks again.
- Original Message -
From: "Shena Delian O'Brien" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 01, 2003 16:01
Subject: [PHP] Re: Nested my
Hi!
I've got two nested queries where one looks up data based on values returned from the
first.
$lot_query = "SELECT * FROM LOT WHERE lot_category_id=" . $lot_category .
" AND lot_close_time>" . time();
$lot_result = mysql_query($lot_query, $CONNECT_ID);
if ($lot_result)
I'm getting this error while sending email with mail():
Warning: mail(): SMTP server response: 550 5.7.1 <[EMAIL PROTECTED]>... Relaying
denied in (path to my program)
How do I turn relaying on??
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 29, 2003 14:56
Subject: Re: [PHP] ARGHHH!!! POST variable problem
> On Monday 30 June 2003 04:38, Sparky Kopetzky wrote:
> > I can click links and they work but when I enter data in a form and try
29, 2003 14:56
Subject: Re: [PHP] ARGHHH!!! POST variable problem
> On Monday 30 June 2003 04:38, Sparky Kopetzky wrote:
> > I can click links and they work but when I enter data in a form and try
to
> > send it to the next php script to process the data, nothing happens. Is
> >
I can click links and they work but when I enter data in a form and try to send it to
the next php script to process the data, nothing happens. Is there a simple way I can
see what is returning from the browser to see if what I expect is actually getting
there?? I think $_SERVER['QUERY_STRING']
Yes, I need the key to remain associated with the value as the key links the
value to a directory. Can't have files going into the wrong places. So if
asort does the job, I'll try that and see if the code breaks or not.
Sparky
- Original Message -
From: "Daryl Meese" <[EMAIL PROTECTED]>
To
I need to sort an array and have the key 'follow' the value. I know I could
splice a string, sort it, then split it again but what a pain. Is there a
simpler way?
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
--
PHP General Mailing List (http://www.php.net/)
To
Hi, it's me again...
I've got my script kinda running but am unable to retrieve any values with $_POST. I
turned on register_globals in the php.ini and am using this url:
http://www.fttta.com/auction.php?action=reg. (Sorry, it's local for now...)
I'm using this kind of line to check for values:
Opps! I meant strftime() as I have to pass timestamp from a file.
Sparky
- Original Message -
From: "Adam Voigt" <[EMAIL PROTECTED]>
To: "Sparky Kopetzky" <[EMAIL PROTECTED]>
Cc: "PHP General" <[EMAIL PROTECTED]>
Sent: Friday, June 27,
Well, I got the time displaying sort of right but have a length problem. See, using %T
doesn't work in date() but %Z does but it returns a very long string 'Mountain
Daylight Time' when all I want is 'MDT'. Is there a way around this problem other than
having to edit the string date() returns??
I am in New Mexico and my php system is telling via date() that my timezone is BST
(British standard time) and not MST (Mountain Standard Time). Any clue as to why it's
doing this??
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
Is $_SERVER['HTTP_HOST'] the same as CGI $_ENV['REMOTE_HOST'] ??
Please, I need to know...
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
Is $_SERVER['HTTP_HOST'] the same as $_ENV['REMOTE_HOST'] ??
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
I'm translating (hacking) code from Perl to PHP and have two reg exp expressions I
can't figure out what they do.
1st: $goodbadnum =~ tr/0-9//cd; I think this one removes any chars that are not
numbers.
2nd: $goodbadnum =~ tr/0-9/x/; I think this one replaces and numbers with an 'x'.
Right, wr
If there an ability like Perl to determine if a file is a text file (-T) or any other
type??
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
I looked at the documentation on rtrim. It trims ALL whitespace characters
from the end, not just the '\n'. I need only the '\n' trimmed.
Sparky
- Original Message -
From: "Lars Torben Wilson" <[EMAIL PROTECTED]>
To: "Sparky Kopetzky"
Does anyone have a piece of code that emulates a Perl 'Chomp' function? I need one.
Thanks in advance!!
Robin E. Kopetzky
Black Mesa Computers/Internet Services
www.blackmesa-isp.net
Yes, this question is about PHP cookies.
Two questions:
1. How do you setup a cookie that will not expire??
2. How do you put 2 items that you want to save in the cookie and retrieve?? Examples
in the PHP manual only show how to work with a single value.
Thanks!
Robin E. Kopetzky
Black Mesa C
OK. I'm suffering from brain gas...
I'm trying this, it doesn't work and I can't figure out why:
include_once $SYSTEM_URL . "/classes/category.php"; where $SYSTEM_URL =
"http://www.example.com"; is the url to the web site. and I get this error:
Fatal error: Cannot instantiate non-existent c
Ok - let the war begin...
Question: Why doesn't the PHP community support using an Hungarian style of
programming if it prevents errors?? I've gotten too darn many times now by a type
mismatch using what the 'Bible' of PHP programming style recommends - PHP Coding
Standard by Fredrik Kristianse
That's fine for that but I have several places that use if's and else's...
Sparky
- Original Message -
From: "Jennifer Goodie" <[EMAIL PROTECTED]>
To: "Sparky Kopetzky" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>
Can one use within the heredoc syntax or is there another way?? I'm trying to
dynamically generate email from generic text but with obvious additions, like this:
$message = <
Lot get_id(); ?> has been approved. Here is the link to the lot:
my_message;
Robin E. Kopetzky
Black Mes
s/Internet Services
www.blackmesa-isp.net
- Original Message -
From: "Jennifer Goodie" <[EMAIL PROTECTED]>
To: "Sparky Kopetzky" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 16:47
Subject: RE: [PHP] Heredoc q
Does anyone know of a prefix convention used for PHP? What I'm talking about is using
a type of Hungarian notation for PHP variables. I know they use 'g', 'm', and 'r' for
global, method and reference variables but for other variable types. I get confused
once and a while, while I am coding and
32 matches
Mail list logo