[PHP] Re: confirm subscribe to php-general@lists.php.net

2010-03-18 Thread Blake Morgan
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

Re: [PHP] include_path

2009-03-06 Thread Eric Lease Morgan
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

[PHP] include_path

2009-03-06 Thread Eric Lease Morgan
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

[PHP] crc32() and hash('crc32') Differ

2007-03-18 Thread Morgan Doocy
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

[PHP] SVN PHP

2006-03-09 Thread Jon Morgan
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

[PHP] SVN PHP

2006-03-09 Thread Jon Morgan
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

[PHP] Referencing Containing (Non-Parent) Object?

2005-10-28 Thread Morgan Doocy
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

[PHP] Need Help - extract unstructured data for parse reformat and import into DB

2004-02-02 Thread Sophia Morgan
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

Re: [PHP] PHP includes without access to the default directory

2002-12-05 Thread Morgan Hughes
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

Re: [PHP] Q: Use getImageSize() on image data from email?

2002-12-05 Thread Morgan Hughes
#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

Re: [PHP] PHP and the PDFlib

2002-12-02 Thread Morgan Hughes
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

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Morgan Hughes
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

Re: [PHP] Browser going to page twice?

2002-12-02 Thread Morgan Hughes
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]

Re: [PHP] Re: invalid range

2002-12-02 Thread Morgan Hughes
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

Re: [PHP] last updated ?

2002-11-30 Thread 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

Re: [PHP] test for ascii or binary string

2002-11-29 Thread Morgan Hughes
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

Re: [PHP] Streaming audio

2002-11-27 Thread Morgan Hughes
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

Re: [PHP] Streaming audio

2002-11-27 Thread Morgan Hughes
, 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

Re: [PHP] Re: testing for empty array

2002-11-26 Thread 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:/

Re: [PHP] imagecopyresized

2002-11-25 Thread Morgan Hughes
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:

Re: [PHP] imagecopyresized

2002-11-25 Thread Morgan Hughes
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

RE: [PHP] getting mysql dump using php

2002-11-23 Thread Morgan Hughes
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

Re: [PHP] writing to a file

2002-11-22 Thread Morgan Hughes
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

Re: [PHP] phpUpLoad

2002-11-22 Thread Morgan Hughes
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

Re: [PHP] GD : Black background with imagecreatetruecolor

2002-11-21 Thread Morgan Hughes
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

Re: [PHP] Seconds to minutes

2002-11-19 Thread Morgan Hughes
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 ? ''

RE: [PHP] Unusual HTTP header control

2002-11-16 Thread Morgan Hughes
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

[PHP] Unusual HTTP header control

2002-11-16 Thread Morgan Hughes
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

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-30 Thread Morgan Grubb
;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

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Morgan Grubb
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

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Morgan Grubb
= $row['vehicle_id']; $vehicles[$i][$row['company_id']] = $row['page_views']; } $i++; } Morgan Grubb. "Martin Towell" <[EMAIL PROTECTED]> wrote in message 6416776FCC55D511BC4E0090274EFEF508A54E@EXCHANGE">n

Re: [PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Morgan Grubb
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

[PHP] Fast code to partially flatten an array based on several keys?

2002-06-27 Thread Morgan Grubb
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) ?

Re: [PHP] Image aliasing

2002-06-25 Thread Morgan Grubb
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

Re: [PHP] Image aliasing

2002-06-24 Thread Morgan Grubb
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

[PHP] Image aliasing

2002-06-24 Thread Morgan Grubb
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

[PHP] PHP Is Inserting (the same) Database Record Multiple Times In My HTML Output

2002-03-14 Thread Morgan
(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: "); /

[PHP] function to determine caller

2001-06-26 Thread Morgan Curley
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

[PHP] Re: Lists are back up

2001-06-22 Thread Morgan Curley
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

Re: [PHP] Forum script

2001-06-21 Thread Morgan Curley
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

RE: [PHP] Forum script

2001-06-20 Thread Morgan Curley
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

Re: [PHP] Regular Expressions?

2001-04-20 Thread Morgan Curley
^(([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

Re: [PHP] This should be simple...

2001-04-20 Thread Morgan Curley
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

Re: [PHP] how to scale down image using ImageMagick?

2001-04-19 Thread Morgan Curley
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

Re: [PHP] how to scale down image using ImageMagick?

2001-04-19 Thread Morgan Curley
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

Re: [PHP] how to scale down image using ImageMagick?

2001-04-18 Thread Morgan Curley
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

Re: [PHP] Returning part of a string, ereg..

2001-04-17 Thread Morgan Curley
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

Re: [PHP] set_error_handler()

2001-04-16 Thread Morgan Curley
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

Re: [PHP] resource id #2

2001-04-16 Thread Morgan Curley
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

Re: [PHP] casting arrays as objects

2001-04-13 Thread Morgan Curley
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

Re: [PHP] form validation

2001-04-12 Thread Morgan Curley
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

Re: [PHP] passthru Problems

2001-04-12 Thread Morgan Curley
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

[PHP] Database result set question

2001-04-11 Thread Morgan Curley
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]

Re: [PHP] Creating Arrays

2001-04-11 Thread Morgan Curley
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

Re: [PHP] Finer points of debugging: vardump vs. print_r

2001-04-09 Thread Morgan Curley
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(

Re: [PHP] Real Problem: Accessing Array In A Class

2001-04-09 Thread Morgan Curley
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

Re: [PHP] filename into variable.

2001-04-04 Thread Morgan Curley
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

Re: [PHP] MS SQL error handling...

2001-03-30 Thread Morgan Curley
(); } 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'

[PHP] perl: use strict

2001-03-30 Thread Morgan Curley
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

RE: [PHP] Better way (if...elseif...else)

2001-03-29 Thread Morgan Curley
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

RE: [PHP] Anonymous Arrays

2001-03-09 Thread Morgan Curley
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( { > >

[PHP] Anonymous Arrays

2001-03-09 Thread Morgan Curley
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