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]
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
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
replace " with quot; 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.
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
-
From: "Morgan Curley" [EMAIL PROTECTED]
Newsgroups: php.general
Sent: Wednesday, April 18, 2001 5:55 PM
Subject: Re: [PHP] how to scale down image using ImageMagick?
according to the docs use
-geometry 175x175 picture.jpeg
man mogrify:
-geometry widthxheight{+-}x offset{+
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");
if
according to the docs use
-geometry 175x175 picture.jpeg
man mogrify:
-geometry widthxheight{+-}x offset{+-}y offset{%}{!}{}{}
preferred width and height of the image. See X(1) for
details about the geometry specification.
By default, the width and height are
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.
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
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,
he list administrators, e-mail: [EMAIL PROTECTED]
===
Morgan Curley
Partner, e4media
212 674 7698
[EMAIL PROTECTED]
http://www.e4media.com
__
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
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
?php
if( $my_form_var % 50 ){
echo "$my_form_var is not a multiple of 50!";
}
?
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 )
try
?php
while( $my_data = msql_fetch_row ( $your_query_identifier ){
$the_array_I_want[ $my_data[ 0 ] ] = $my_data[ 1 ] ;
}
echo "PRE";
print_r( $the_array_I_want );
echo "/PRE";
?
Be aware that adding an element to
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 has
I generally include the following function:
function dump( $label, $input ){
echo( "PRE" );
echo( "H2$label/H2\n" );
print_r( $input );
echo( "/PRE" );
return 1;
}
or if you like javascript
try:
?php
preg_match( "/([^\/]+)\.php/", $HTTP_SERVER_VARS['PHP_SELF'],
$matches );
echo "H2$matches[1]/H2";
?
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
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:
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 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.
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'
,
22 matches
Mail list logo