Is there any statement analogous to perl's caller which will tell you what
called the current function?
I would like to enforce the privacy of some of the class methods I am writing.
Thanks,
Morgan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
This is something I had been meaning to ask for a
while.
Can message dates be normalized at the list server?
It seems like a lot of people out there don't know how to set their
clocks or want lots of attention by setting their clocks months + years
ahead so their messages are always pinned to the
In what timezone is it September?
At 02:49 AM 6/21/2001, Chris \"TunkeyMicket\" Watford
wrote:
Timezones
:)
- Original Message -----
From: Morgan Curley
To:
[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 10:16 PM
Subject: RE: [PHP] Forum script
Is it just me or does anyone
Is it just me or does anyone else get a lot of messages on
this list with dates in the future ( note the date below ) that then end
up pinned to the bottom ( or top ) of the email listing. Is there some
way to set the listserv to normalize the dates or is the just a Eudora4+
problem?
At 03:41 PM
I don't use ereg(i)? much myself but for a perl compat regex I would:
/^(([0-9a-z](\2*))\.([0-9a-z](\2*)))/i
the \# refer to parenthized matches starting at 1 and counting left parens.
The match array index you will want is $myArray[1].
if you don't mind matching
1a2.1a2 you can use
/^(([0-9a-z]+
replace " with " before using it as an initial form value.
works in IE I am not sure if netscape interprets these codes in form fields
though
morgan
At 09:57 AM 4/20/2001, Joseph Koenig wrote:
>I have a client who insists on being able to put quotes into one of the
>fields of the database. Tha
This is a neat bit of code to fill in image height and width info but it
does not affect the actual file size like resizing the image would
morgan
At 02:43 PM 4/19/2001, FredrikAT wrote:
>Hi!
>
>This is what I do:
>
> if (!empty($picture)) {
> $size = GetImageSize ("pics/$picture");
>
use -identify, it was
>not in the docs
>
>Thanks so much!
>
>- Noah
>
>- Original Message -
>From: "Morgan Curley" <[EMAIL PROTECTED]>
>Newsgroups: php.general
>Sent: Wednesday, April 18, 2001 5:55 PM
>Subject: Re: [PHP] how to scale down imag
according to the docs use
-geometry 175x175> picture.jpeg
man mogrify:
-geometry x{+-}{+-}{%}{!}{<}{>}
preferred width and height of the image. See X(1) for
details about the geometry specification.
By default, the width and height are maximum values. That
is,
try
$part = ereg("([0-9]{1})-([0-9]*)-", $f, $regs);
your original exp was looking for 1 digit followed by a dash follwed by 1
digit followed by a dash
the * should match 0 or more occurences of the previous match ( in this
case 0 or more numbers )
you shouldn't need the {1} in there either.
If I'm not mistaken set_error_handler() takes a string that is the name of
a function, I am sure in that function you can instantiate whatever class
you want.
morgan
At 03:57 PM 4/16/2001, Boget, Chris wrote:
>Can you use the above function to set the error
>handler to a custom class? If so,
try
$query="Select pass from members where uname='$username'";
$result = mysql_query($query) or die("You are not authorized to be here.");
the mysql_query command is executing the statement
morgan
At 10:40 AM 4/16/2001, Greg K wrote:
>I am trying to run a query and in my log I am getting a me
ip in its original
>class.
>
>Dean.
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
===
Morgan
the % is the modulus operator meaning it returns the remainder of a
division operation. If the number is divisible by 50 the remainder is 0 (
aka false for the if statement ) other wise it is not 0 ( aka true )
http://www.php.net/manual/nl/language.operators.php
morgan
At 04:42 PM 4/12/200
You need to use a frameset to do what you want.
the problem is the browser will only launch the Acrobat control if it
receives the content type app/pdf, an html page uses the content type
text/html.
your links should point to another page that outputs something like the
following based on inpu
Just out of curiosity, can anyone explain the mechanics behind accessing a
database query result set.
ie
$result_id = pg_execute( 'select * from my_table' );
when I call loop through pg_fetch_row( $result_id, $rom_num ) or
pg_fetch_object( $result_id, $rom_num )
has php read the entire result s
try
";
print_r( $the_array_I_want );
echo "";
?>
Be aware that adding an element to $the_array_I_want will give it the next
sequential number which would look like an ID but have nothing to do with
the contents of your database.
Unless it is absolutely necessary I would reco
I generally include the following function:
function dump( $label, $input ){
echo( "" );
echo( "$label\n" );
print_r( $input );
echo( "" );
return 1;
}
or if you like javascript this pops up an
Use the string concat operator
print "blah blah blah ".$this->arrayname['value']." blah";
Morgan
At 10:27 AM 4/9/2001, you wrote:
>I've been trying to figure this out for a day or so now. Someone needs to
>do a concise tutorial with arrays, references, etc. with PHP. I've got a
>class that
try:
$matches[1]";
?>
Morgan
At 01:26 PM 4/4/2001, you wrote:
>How would i go about building a page which could use the name of the page
>less .php as a variable.
>For example:
>
>Say I have a file called screenshot_1.php and another called
>screenshot_2.php . Inside each of those files I wan
Have you tried writing a wrapper function for mssql_query(), something like:
my_mssql_query( $query, $link_id){
global $php_errormsg;
ob_start();
$result = mssql_query( $query, $link_id );
if( !$result ){
$php_errormsg = ob_get_contents();
does php have an equivalent to perl's 'use strict' to help catch variable
misspellings??
Thanks,
Morgan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [
Make sure you reset $selected at the end of the while loop.
if HTML readability is a concern you can also do something like the
following( for static lists I find it easier this way ):
>Low
>Medium
>High
morgan
At 05:30 PM 3/29/2001 -0800, Jason Lotito wrote:
yep that works,
Initially I was getting an error when I did that but my function had been
setup for a pass-by-ref.
thanks
morgan
At 10:09 AM 3/9/2001 -0600, Boget, Chris wrote:
> > To make it a little cleaner I would prefer to do something like:
> > my_func( {
> >'fname' => 'joe'
> >
Does PHP4 have anything similar to perl's anonymous hash or array( $var = {
'some' => 'hash elements' } or $var = [ 'array', 'elements' ] )
The reason I ask is I am trying to find a way of passing a variable length
list of named parameters to a function without having to use a specific order.
i
25 matches
Mail list logo