On 3/18/2010 9:36 PM, php-general-h...@lists.php.net wrote:
Hi! This is the ezmlm program. I'm managing the
php-general@lists.php.net mailing list.
I'm working for my owner, who can be reached
at php-general-ow...@lists.php.net.
To confirm that you would like
bmorga...@gmail.com
added to
ou for the prompt reply, and it seems very feasible, but how do I
allow apache access to the /usr/lib/php locatdion?
--
Eric Lease Morgan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
under /usr/lib/php. So is
PEAR.php.
Why can't my PHP script find Smarty/Smarty.class.php when it is located in
my path, especially if it finds PEAR.php? How do I diagnose this problem?
--
Eric Lease Morgan
University of Notre Dame
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
g to validate could in fact be invalid, but regardless there's
still the discrepancy between crc32() and hash('crc32'). Is this
expected behavior?
Thanks,
Morgan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi.
I'm trying to access SVN from PHP and as there seems to be no direct binding
for it yet i've had a look at WebSVN source to try and list directories in a
repository with the following code but it just doesn't return anything. It
doesn't return anything whether re-directing or not (i..e. us
Hi.
I'm trying to access SVN from PHP and as there seems to be no direct binding
for it yet i've had a look at WebSVN source to try and list directories in a
repository with the following code but it just doesn't return anything. It
doesn't return anything whether re-directing or not (i..e. using
type of State -- but States are part of Countries,
and Cities are part of States. Plus, if City was just an extended State (which
in turn is an extended Country), it would contain both a $states and a $cities
variable. Which doesn't make sense.
What, if anything, do I replace /* parent node reference */ with in
City::name_with_state()?
Thanks,
Morgan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I need to get some guidance on a project. I have to extract unstructured data from a
.CSV file and reformat the data to import into MSSQL.
The unstructured data is basically in some kind of sub summary report. Note: the files
will include a range from 1 to 12 months of information (month to date
ib/ directory, they can't include each other without
taking into account the path from the calling script... Thus why I try
to define INC_DIR as early as possible if it's relative.
Hope this helps...
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECT
#x27;d consider using ImageMagick's identify command rather
than getImageSize(), since it handles many more image types. Depending
on what you need you may find the -verbose option helpful, as it gives
tons of information, but is slow...
--
Morgan Hughes
C programmer and highly
manipulate, then convert back to PDF. The utilities I'm
thinking of are ps2pdf and pdf2ps, which seem to be part of the
Ghostscript package and ship with most Linux distros...
Hoep this helps!
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECTED]
IC
ion, but I sure admire the
problem! ^_^
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECTED]
ICQ: 79293356
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sers seem to automatically add a slash if you just put in
www.domain.com
as part of converting it to
http://www.domain.com/
but for subdirectories there is often a redirect.
hope this helps!
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECTED]
es, a dash has to come last, otherwise the regex
engine interprets it as a range. Escaping it may work too, but I've
never had trouble moving dashes to the last char in the range, so your
regex would look like this:
eregi("^([a-zedv_\. -]+)$",$value);
--
Morgan Hughes
TML page? Etc...
> If you want "website last updated" then from a database sounds OK but
> where I'm working its commonly a "page last updated" wanted. In this
> case its just a manually entered date in html in the page.
Or use stat() to get the page's mtim
roach is useful...
$text = addcslashes(substr($string, 0, 1024), "\\\"'\0..\37\177..\377");
$size = strlen(preg_replace('/[^]/', '', $text));
if ($size < 200)
print "mostly text, use addslashes";
else
print "mostly bina
l $dprint_file;
if (!$dprint_file)
$dprint_file = fopen("/tmp/mp3.log", "a");
fprintf ($dprint_file, "%s", $msg);
}
Good luck, and if anyone makes something useful out of this, I'd like to
hear about it!
--
Morgan Hughes
C programmer and highly ca
, however it appears winamp ignores this data unless the response
from the server is "ICY/1.0 200 OK" rather than the "HTTP 200 OK"... As
far as I can tell after checking the SAPI source and asking here, it's
not possible to override that.
--
Morgan Hughes
pparently is an alias to count(), and it works
fine, so count() should do the trick.
if ( !sizeof($keywords) )
print "keywords is empty";
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECTED]
ICQ: 79293356
--
PHP General Mailing List (http:/
pecific patches, so GD 2 support probably won't be widespread
with ISPs until it's sorted out and stable... So you'll have to wait,
or look into something like ImageMagick.
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECTED]
ICQ:
f it's to do with the gd library installed.
Try it with ImageCreateTruecolor(), since ImageCreate() produces 8-bit
indexed-color images... If that function doesn't exist, you're using a
pre-2.x GD, and those can't do 24-bit images at all...
Good luck!
--
Morgan Hug
ntry like:
# 0 3 * * * sh ~/db_backup
#
# Version : 1.00
# Author : Morgan Hughes ([EMAIL PROTECTED])
# License : Copyright (C) 2002, Morgan Hughes. Use freely.
# Account/password/email info
db_list="your_database"
db_user="your_username"
db_pass="your_password"
email
while writing, use
fflush()...
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECTED]
ICQ: 79293356
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it wrap a back-end script that actually does the work. I've used this
effectively, and so long as the back-end script is properly written I
believe it's a very secure method.
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECTED]
ICQ: 79293356
ly
become that color.
When you use imagecreatetruecolor(), it sets all the pixels to black,
and you have to explicitly draw them in to get them white.
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECTED]
ICQ: 79293356
--
PHP General Mailing List (htt
secs %= 3600;
$mins = $secs / 60;
$mins %= 60;
$out = sprintf ("%d hour%s, %d minute%s, %d second%s",
$hours, ($hours == 1 ? '' : 's'),
$mins, ($mins == 1 ? '' : 's'),
$secs, ($secs == 1 ? ''
e heavy
lifting for me... ^_^
--
Morgan Hughes
C programmer and highly caffeinated mammal.
[EMAIL PROTECTED]
ICQ: 79293356
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
header sent by PHP/Apache and instead send "ICY 200
OK", to fool the player into thinking it's listening to a ShoutCast
server...
Does anyone know how to do this? The docs on header() don't mention it,
nor do the user notes... Any ideas? Thanks!
--
Morgan Hughes
;ve written a mostly working quicksort routine, which
seems to have cut the time down significantly on searches, so I'll keep
plugging away at this.
Of course, now that it *appears* to be working, I'm getting a lot more work
dumped on me, so finishing it off is going to take a bit longer
me
clinically insane.
I'll let you know how I get on. =)
Cheers,
Morgan Grubb.
"Martin Towell" <[EMAIL PROTECTED]> wrote in message
6416776FCC55D511BC4E0090274EFEF508A550@EXCHANGE">news:6416776FCC55D511BC4E0090274EFEF508A550@EXCHANGE...
> This is what I came up w
= $row['vehicle_id'];
$vehicles[$i][$row['company_id']] = $row['page_views'];
}
$i++;
}
Morgan Grubb.
"Martin Towell" <[EMAIL PROTECTED]> wrote in message
6416776FCC55D511BC4E0090274EFEF508A54E@EXCHANGE">n
Martin,
I'm happy to do it either way, but I can't think of a really fast way to do
it, which is why I thought I'd ask. =)
Morgan Grubb.
"Martin Towell" <[EMAIL PROTECTED]> wrote in message
6416776FCC55D511BC4E0090274EFEF508A54E@EXCHANGE">news:6416776F
gt; Array
(
[dealer_id] => 645
[vehicle_id] => 35073
[1] => 10
[0] => 6
)
)
Can anyone think of a fast way to do this either during creation of the
array or after the array has been created? (A sort of fast_flatten($array)
function) ?
rly large company with an
absolutely shocking website).
I've written a couple of fairly graphics intensive presentations just to
highlight the difference, to no avail.
At any rate, it appears as though I'm completely out of luck on this issue.
--
Cheers,
Morgan Grubb.
"An
clients use Netscape, so that doesn't help me in any way.
--
Cheers,
Morgan Grubb.
"Kevin Stone" <[EMAIL PROTECTED]> wrote in message
004001c21bcf$2354dea0$6401a8c0@kevin">news:004001c21bcf$2354dea0$6401a8c0@kevin...
> I seriously doubt it. Windows is going
the large image be recompressed in such a way that it
doesn't noticeably damage the large version, but improves how it looks when
arbitrarily shrunk in IE?
--
Cheers,
Morgan Grubb.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(sorry if this shows up twice!)
hi, i'm new to php and am having a problem with a script i'm working on.
i posted this to alt.php a few days ago and got part of my problem
fixed, but i still have one problem which i can't figure out and haven't
gotten an answer to there.
here is the code:
");
/
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 PROT
what is involved in trying to
fix this at the server, but for a list that is so helpful this is really
annoying.
Thanks,
Morgan
At 03:15 PM 6/18/2001, Rasmus Lerdorf wrote:
We have re-enabled the PHP mailing
lists. They are now running from a
temporary machine sitting on the floor of my sp
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
^(([0-9a-z]+)\.\1+)/i
or
123.456
/^([0-9a-z]+\.[0-9a-z]+)/i
morgan
>""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message
>9boi65$ipb$[EMAIL PROTECTED]">news:9boi65$ipb$[EMAIL PROTECTED]...
> > I'm looking to compare if my array values mat
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
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 = GetImageSi
Yeah, it is unfortunate that ImageMagick uses those chars since they have
other meanings on the cmd line.
just escape it ( \> ) and that should work ( works on a linux box )
morgan
At 07:53 PM 4/18/2001, you wrote:
>morgan,
> this is starting to work! the 175x175 does resize it t
use identify to get the
geometry first.
morgan
At 04:27 PM 4/18/2001, Noah Spitzer-Williams wrote:
>I have a bunch of pictures all in ranging filesizes and dimensions. I want
>to resize the ones that over 175 pixels wide to a 175 pixel wide picture
>however i want the height to scale dow
in there either.
morgan
At 09:36 AM 4/17/2001 -0400, Chad Day wrote:
>$part = ereg("([0-9]{1})-([0-9]{1,10})-", $f, $regs);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
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 cl
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 qu
why mot just
fetchRow(DB_FETCHMODE_ASSOC) );
?>
If you have to leave this part of the project for any length of time,
coming back to the above would be much less confusing. ( i think so anyway :)
morgan
At 03:12 PM 4/13/2001 -0500, you wrote:
>Can you cast an array to an object o
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
TP_POST_VARS[ 'your_title']
$HTTP_POST_VARS[ 'your_pdf_file_path ']
depending on your form method
morgan
At 03:20 PM 4/12/2001, you wrote:
>Greets,
>
>Just to elaborate: I want my user to be able to click on a hyperlink that
>points to my PDF file, and have a new window pop up
process is.
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: [EMAIL PROTECTED]
t sets are not kept entirely in memory.
Morgan
At 12:10 PM 4/11/2001, you wrote:
> I need to convert an MySQL result into an Array...somehow. The
>query returns the following:
>
> ++---+
> | ID | Project |
> ++---+
> | 1
dump( "My Label", $my_var );
With the javascript you can do some cool things like having divs generated
per $label.
morgan
At 02:26 PM 4/9/2001, you wrote:
>Just a question that has been besetting me for a while:
>
>which is better for debugging -- vardump( ) or print(
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, refere
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 . In
();
}
ob_end_clean();
return $result;
}
morgan
At 09:48 AM 3/30/2001, Christian Dechery wrote:
>isn't there a better way to handle MS SQL error messages? I can't even
>fetch them...
>look at these warnings... they only show in development side, I don'
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 adminis
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 Lot
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( {
> >
27;, 'lname'=>'coder', 'zip'=>'12345');
my_func( $my_array );
$my_array = array( 'city' => 'Brooklyn', 'state'=>'NY');
my_func( $my_array );
?>
To make it a little cleaner I would prefer to do something like
62 matches
Mail list logo