RE: [PHP] Help with a home-grown function

2005-07-21 Thread Mike Johnson
that sometimes the function does not > return 1, even when it should. > > I was hoping some experienced eyes could take a gander at > this and give me some pointers. PHP doesn't eval code in single-quotes, so what you want to do is simply: if (empty($workingArray[$i]))

RE: [PHP] gloabl & reference behavior question?

2005-07-21 Thread Ford, Mike
at you're trying to do, you should make use of the $GLOBALS superglobal: $GLOBALS['var_global'] = &$var_local; But that seems very dodgy -- and, since $var_local disappears when the function returns anyway, why not just: $GLOBALS['var_global'] = array(1,2

[PHP] Combining recordsets

2005-07-20 Thread Mike Smith
bring in that last table to complete my query it (the last table) skews my sums. Really I'm just wondering if others have come across -- Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Strange notation to create object

2005-07-12 Thread Ford, Mike
7;s statement would end up talking about a reference to a handle and a copy of a handle, which may help to make more sense out of what's going on! Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Lea

RE: [PHP] Oracle Interface

2005-07-12 Thread Ford, Mike
less, with later versions, it's less efficient and doesn't support many of the features that OCI does. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Informat

RE: [PHP] error when trying to delete a record

2005-07-11 Thread Mike Johnson
probably best to check if it's empty, something such as: if (!empty($id)) { $query = 'DELETE FROM sheet1 WHERE id = ' . (int)$id; } else { echo 'Argument $id was empty'; } HTH! -- Mike Johnson Smarter Living, Inc. Web Developer

[PHP] GD library

2005-07-09 Thread Mike Bellerby
Where is the best place to get php_gd2.dll Thanks Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] GD library

2005-07-09 Thread Mike Bellerby
Where is the best place to get php_gd2.php Thanks Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Trouble using ncurses_new_panel on PHP 4.3.11

2005-06-24 Thread Mike Bowie
Mike Bowie wrote: Hello all, I'm stumbling along with the ncurses implementation under 4.3.11 on FreeBSD. I've had some success with windows and borders etc based on some Googling(tm) and RTFM... but am having trouble getting ncurses_new_panel to do anything worthy of note. F

[PHP] Trouble using ncurses_new_panel on PHP 4.3.11

2005-06-24 Thread Mike Bowie
e hit the right one, but I've given it a pretty good try! TIA, Mike. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problem with arrays

2005-06-24 Thread Mike Johnson
your help In this specific example, I think this would work: That's not terribly flexible, though. Is this used in a more generalized sense, or is it just this specific instance? -- Mike Johnson Smarter Living, Inc. Web Developerwww.smartertravel.com [EMAIL PROTECTED] (617) 886-5539 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Include and extending classes

2005-06-16 Thread Mike Smith
){ //$this->db cannot be used here } } TIA, Mike "There are no stupid questions." --my professors until I came into class. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Retrievable weather service info?

2005-06-15 Thread Mike Smith
How about: http://www.capescience.com/webservices/globalweather/index.shtml -- Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] form inside an email

2005-06-14 Thread Mike Johnson
flag. If you're mailing to a large group or to certain domains/spam handlers, you may easily get flagged for bulk mail. -- Mike Johnson Smarter Living, Inc. Web Developerwww.smartertravel.com [EMAIL PROTECTED] (617) 886-5539 -- PHP General Mailing List (http://www.ph

Re: [PHP] using require

2005-05-28 Thread Mike Bellerby
If your php is using a permanant connection then it will be the same connection otherwise it will be a new connection as the connection will be droped at the end of the thread. As I understand it anyway!! Hope this helps! Mike Cima wrote: hi all, i have my web site working something

Re: [PHP] Re: Barcodes [Solved]

2005-05-07 Thread Mike Smith
Hi JAson, I'm leaving tomorrow for CA to do some of the testing and workflow. I'll let you know how it turns out. -- Mike On 5/6/05, Jason Barnett <[EMAIL PROTECTED]> wrote: > Mike Smith wrote: > > On 4/18/05, Eric Wood <[EMAIL PROTECTED]> wrote: > > >

RE: [PHP] calling a derived static method from a base class

2005-05-05 Thread Mike Johnson
::g(); } static function g() { print("Base\n"); } } class Derived extends Base { static function g() { print("Derived\n"); } } Derived::f('Derived'); Not sure if this is what you're looking for

[PHP] Downloads stop short

2005-05-04 Thread Mike
I upgraded to PHP 5.0.4 and now all my downloads cut off at 1.9 MB Is this a setting I missed somewhere? ++ Mike Yrabedra [EMAIL PROTECTED] Your Mac Intelligence Resource ++ W: http://www.macagent.com

[PHP] php4 to php5, now classes don't work?

2005-05-02 Thread Mike
I upgraded to php 5 from php 4.3.10 and now several classes are not working. All I get is blank pages and no errors logged. If this has already been discussed, please show me the door to the archives ;-) ++ Mike Yrabedra [EMAIL PROTECTED] Your

RE: [PHP] Starting a big project

2005-05-01 Thread Mike
> I'm about to start writing a big web app (mostly in PHP). But > I'm not sure if I should layout the DB first then write the > app, or should I just start writing the app and add stuff to > the DB as I need it. How do you guys go about it? > > Thanks, > Dan. > Dan, The single-greatest thin

Re: [PHP] Having problems connecting to MS SQL2000 server on PHP5

2005-04-29 Thread Mike Smith
istry (HKLM\Software\Microsoft\MSSqlserver\MSSqlServer\LoginMode) 1 is Windows authentication, 2 is mixed (SQL/Windows). Have a look here for others experiences: http://us4.php.net/function.mssql-connect -- Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Retrieving query from MSSQL Table

2005-04-28 Thread Mike Smith
Thanks Richard, That did the trick. That and one query was in another database, that my users didn't have rights to...Doh! Works well. Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Notice: Undefined index

2005-04-28 Thread Mike Johnson
gt; That's correct behavior. As you're simply running action.php on its own, it sees that $_POST['name'] and $_POST['age'] don't exist and outputs a notice for each. To avoid the notices, ensure that those keys exist before calling something like echo on them:

Re: [PHP] Retrieving query from MSSQL Table

2005-04-28 Thread Mike Smith
On 4/28/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > I'm betting dollars to doughnuts that you've got a newline at the end of > $sql1 which is messing you up. You're right! Give that man a doughnut! When I tested the query in Query Analyzer. I hit [Enter] to format the query and make it readable

[PHP] Retrieving query from MSSQL Table

2005-04-27 Thread Mike Smith
t;){ $this->xq = $sql; $r = $this->db->Execute($sql1);//This doesn't work $r = $this->db->Execute($sql2);//This does work } } $sql1 & $sql2 are one and the same. Any ideas what I'm missing? Thanks, Mike Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] step by step learning

2005-04-26 Thread Mike
> Hi there > > are there any sites online that show one how to learn php in > a step by step fashion? > > I am really lost and would need to start at the very beginning > > I already know and understand html > > -- I'm not sure of any sites, but there's plenty of books. I started with the S

RE: [PHP] image maps in PHP

2005-04-22 Thread Mike
> Actually I am not able to make image maps because of uneven state > boundaries.. > > Can you please suggest some tools... I haven't used any yet... > > Thanks > > - I just googled and came up with a bunch of results: http://www.google.com/search?hl=en&lr=&q=free+imagemap+html+generator&btnG=

RE: [PHP] image maps in PHP

2005-04-22 Thread Mike
> Hi! > I need to create an image map on a country map, where people > can click on any state and get some info related to it.. In > such case the regular polygon/circle/rectengle image map wont > do bcoz of shapes of state.. > > I guess this must be possible someway in PHP.. please tell me >

[PHP] Re: post & redirect

2005-04-21 Thread Mike Hummel
if you redirect the browser to a new page, once that new page loads up, any POST or GET variables from the previous page will be replaced with the new "redirected to" page. Jem777 wrote: If I submit a post and then, serverside, I redirect the request to another page, do the post variables still

[PHP] PHP4 to PHP5 upgrade help

2005-04-21 Thread Mike
I upgrade? ++ Mike Yrabedra [EMAIL PROTECTED] Your Mac Intelligence Resource ++ W: http://www.macagent.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Images - Converting TIFF Format?

2005-04-19 Thread Mike Hummel
http://www.imagemagick.org/script/index.php The Disguised Jedi wrote: Is there a quick way to convert a TIFF format picture to a GIF quickly? I can only find support for GIFs in PHP, but maybe I'm missing something. I have a client running a photography business, and I have designed an image wat

[PHP] Re: mailing lists

2005-04-19 Thread Mike Hummel
Sonic Mail Pro is very usable, and very easy to setup. I have some very non-technical clients using it effectively. http://www.sensationdesigns.com/products/scripts/smpro/index.php Clive Zagno wrote: Hi does anyone use any cool php mailing list software. clive -- PHP General Mailing List (http://w

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Mike Hummel
just do a select limit 11 display up to 11... if less then 11, you might want to display them anyways. you should be able to deal with up to a million + records, so select will stay quick, esp if you make the right fields indexed. you can take care of purging via crons... you might find you want

Re: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-19 Thread Mike Hummel
So this solution does work, however it doesn't answer the question as to why this is occurring in the first place. Rather then finding a work around for it, I'd like to know why PHP / mcrypt is throwing the error. Is it an issue in the library itself? Tom Rogers wrote: Hi, Saturday, April 9, 20

Re: [PHP] Re: Barcodes [Solved]

2005-04-18 Thread Mike Smith
On 4/18/05, Eric Wood <[EMAIL PROTECTED]> wrote: > - Original Message - > From: "Mike Smith" > I'm using a script to generate the barcodes (3 of 9 or Code39): > http://www.sid6581.net/cs/php-scripts/barcode/ > > This script seems to limit t

[PHP] Re: Barcodes [Solved]

2005-04-18 Thread Mike Smith
On 4/15/05, Mike Smith <[EMAIL PROTECTED]> wrote: > I just ordered a CueCat from eBay to play with reading Barcodes. Of > course we'll use a Symbol or some other reader when we implement this > in production, but I thought this would be a start. There are several > cl

RE: [PHP] Setting permissions such that file can be included but not open directly

2005-04-15 Thread Mike
> directly to private/includefile.php can run the script > without authorising themselves... > > Is it possible to set folder permission such that files > inside it cant be open directly but could be included? Can you just give read permissions -only- to the user that PHP runs as and not these

[PHP] Re: Barcodes

2005-04-15 Thread Mike Smith
Thanks Jason, I'll pass along any info I come across. I can generate barcodes easily enough. I guess I'll wait until I get the CueCat and see what troubles I run into. Our suppliers seem willing to cooperate in terms of putting whatever barcode we tell them to. Thanks, Mike -- P

[PHP] Barcodes

2005-04-15 Thread Mike Smith
);" would handle reading the barcode and submitting it. I'm assuming we would need to have all our barcodes in a single format (codabar, code39, etc). Would I then need to store barcode data. The barcodes will be generated from unique part numbers so I'm thinking I can generate them (and comp

RE: [PHP] Insert Chars into a string

2005-04-14 Thread Mike Johnson
From: Mike Johnson [mailto:[EMAIL PROTECTED] > From: PartyPosters [mailto:[EMAIL PROTECTED] > > > Hello, > > I have a variable that contains a filename, I want to be able > > to insert the date and time just before for the ".jpg" > > for example if my

RE: [PHP] Insert Chars into a string

2005-04-14 Thread Mike Johnson
to be human-readable, might I suggest date('U')? It's the number of seconds since the epoch; it's easily convertable to human-readable format. If that doesn't fly, perhaps MySQL's datetime format, which is a 14-digit int, achievable with date('

RE: [PHP] Image and PHP

2005-04-14 Thread Mike
> I have a page where i place an image but i want when i show > the image delete it. How can i do this? > What I would probably do is create a cleanup function/class in the script that gets a list of all the images in the directory in question and deletes anything that more then, say, an hour o

RE: [PHP] Creating intelligent forms

2005-04-13 Thread Mike
> The first idea I had was to make a function to display the > form. When the form is submitted, the page would be called > again (i.e. the form's ACTION=itself), and then the POST or > GET or SESSION variables will be the arguments to the form. > The idea is, when this happens, the form wi

RE: [PHP] scripting workflow

2005-04-12 Thread Mike
> First off, do people prefer to have all their code in one > file? Or multiple separate files? I know functions and > classes are good to keep in separate files, but i am talking > about say for example a news system, etc. For me, this largely depends on project size and the types of functions

Re: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Mike Hummel
I get the following error when I try your suggestion: Unknown error type: [8] Undefined variable: iv Code: $key = md5($this->_cypherkey); $key = substr($key, 0, mcrypt_enc_get_key_size($this->td)); $iv_size = mcrypt_enc_get_iv_size($this->td); #$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $iv =

Re: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Mike Hummel
Do you do this on the encryption or the decryption section or both? Tom Rogers wrote: Hi, Saturday, April 9, 2005, 3:35:21 AM, you wrote: MH> I have an odd php issue with mcrypt. MH> I'm getting a lot of this type of error, but only sometimes: MH> mcrypt_generic_init(): Iv size incorrect; supplied

RE: [PHP] php and javascript

2005-04-12 Thread Ford, Mike
#x27;s completely untrue -- I've done it many times with complete success. The above can even be written more concisely as alert(document['Selection']['distID[]'][0].value); Cheers! Mike To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-08 Thread Mike Hummel
I have an odd php issue with mcrypt. I'm getting a lot of this type of error, but only sometimes: mcrypt_generic_init(): Iv size incorrect; supplied length: 0, needed: 32 (note, the "supplied length: 0" is not always the same. sometimes it is 1, 16, etc). It doesn't seem to affect the decoding o

RE: [PHP] exec command

2005-04-06 Thread Mike
> when running a simple php script, below, with exec, I recieve: > sh: /whoami: No such file or directory > > // outputs the username that owns the running php/httpd > process // (on a system with the "whoami" executable in the > path) echo exec('whoami'); ?> > You may want to try using the f

RE: [PHP] file upload

2005-04-04 Thread Mike
> How to check if a same name file already exists in a upload > directory when uploading new file? > Use the file_exists() function (oddly named, I know). http://us4.php.net/manual/en/function.file-exists.php -M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

RE: [PHP] Best Server OS

2005-03-28 Thread Mike
I personally like OpenBSD - though many of the BSDs are similar at many tasks and only have notable differences in a few areas (and it's those areas you should look to find which works best for you). I wonder who will get bored and stir up the ants nest and say Windows? ;) > -Original Message

RE: [PHP] create multiple jpg thumbnails and use in a page

2005-03-25 Thread Mike
Here's how I'd go about that - 1) create two pages a) the page that is displaying the images b) the script that generates the thumbnails 2) 'a' is simple - it just reads the directory and creates the HTML to image_thumbnail.php?image=image.jpg 3) 'b' is passed 'image.jpg', reads the file,

RE: [PHP] GIF instead of JPG..

2005-03-22 Thread Mike
> Hi, > I found this beautiful piece of code on the php site which > make a proportional thumbnail, problem is its only working > with JPEG files...and not with GIFs, can someone please help > me convert it to GIF too? > If your version of GD supports GIFs (which not all do), then it's almost

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Résultats sur plusieurs pages

2005-03-22 Thread Mike Johnson
LIMIT 100,10; Le premiere retourne resultant zero a dix, le seconde retourne onze a vingt, et le deniere retourne resultant cent a cent-dix. J'espere que ceci aide, et ma Francaise et intelligible! Bonne chance! -- Mike Johnson Smarter Living, Inc. Web Developerw

RE: [PHP] cache class

2005-03-22 Thread Mike Johnson
k the obvious question, but are you editing the right file and/or saving it to the right place? I only ask because I've done that so many times it's not funny. :) -- Mike Johnson Smarter Living, Inc. Web Developerwww.smartertravel.com [EMAIL PROTECTED

RE: [PHP] passing return value from fucntion

2005-03-18 Thread Ford, Mike
program right? The return statement sets the value of the function call in the main program, so you need to do something with the value of the function call to use the return value. For example: $is_ok = your_function($argument); or echo your_function($argument); Cheers! Mik

[PHP] Creating Reports with PHP

2005-03-09 Thread Mike Smith
to be able to use MSSQL,Postgres or MySQL (ADODB or PEAR). TIA, Mike Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] combining values

2005-03-02 Thread Ford, Mike
It would -- which to use is a matter of personal preference. Cheers! Mike To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache and PHP

2005-02-28 Thread Mike Smith
For Apache2.x: http://www.php.net/manual/en/install.windows.apache2.php For Apache1.x: http://www.php.net/manual/en/install.windows.apache1.php Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php5 and globals?

2005-02-20 Thread Mike
I have read that php5 does something different with global_vars. I know that many of my clients rely on them working. Will thinks start breaking after I upgrade from 4.3.10 to 5.3? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Storing formulas

2005-02-17 Thread Mike Smith
as that require such modifications? TIA, Mike Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] User Passwords: checking for unique chars

2005-02-14 Thread Mike Johnson
t; regular expressions this morning so I'm no expert on them... The quick & dirty way, I think, would be the following: I'm curious to see if there's an easier way to do it, though. I'm not sure regexps are the answer. -- Mike Johnson Smarter Living, In

RE: [PHP] Ensure a number is three digits long

2005-02-13 Thread Mike
You should be able to do this quite well with the str_pad() function. http://us3.php.net/manual/en/function.str-pad.php -M > -Original Message- > From: Shaun [mailto:[EMAIL PROTECTED] > Sent: Sunday, February 13, 2005 12:09 PM > To: php-general@lists.php.net > Subject: [PHP] Ensure a n

RE: [PHP] How do you read one of these parameters?

2005-02-11 Thread Mike Johnson
ocs/misc/FAQ.html#rewrite-more-config This is Apache-specific, but I'd imagine there are similar methods for other webservers. -- Mike Johnson Smarter Living, Inc. Web Developerwww.smartertravel.com [EMAIL PROTECTED] (617) 886-5539 -- PHP General Mail

RE: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Mike Johnson
ad this list daily and, while I may skip some messages, I've never seen anything about any group like what you posted earlier. Do tell, I'm curious. -- Mike Johnson Smarter Living, Inc. Web Developerwww.smartertravel.com [EMAIL PROTECTED] (617) 886-5539 -- PH

RE: [PHP] wait function

2005-02-05 Thread Mike
> I would write down an efficient WAIT function. > The one I did was as follows: > > function microdelay($delay) { > $UNUSED_PORT=31238; > @fsockopen("tcp://localhost",$UNUSED_PORT,$errno,$errstr,$delay); > } > Are you looking for something like sleep()? http://us2.php.net/manual/en/function.s

Re: [PHP] Udp.pl scare

2005-02-04 Thread Mike
on 2/4/05 8:07 AM, Jochem Maas at [EMAIL PROTECTED] wrote: >> I have been hit twice now with the udp.pl exploit found in phpbb >> >> I thought that upgrading to php 4.3.10 would stop this? Was I wrong? > > yes you are wrong - I have no idea why you would think that other than blind > assumption.

RE: [PHP] String -> Number Automatic Conversion

2005-02-04 Thread Ford, Mike
to actually contain the fix. > > > > Are there patches available that I can apply to my existing > PHP (4.3.9) or is my only alternate is to put a work around > in place until 4.3.11 is released? You could always download the latest development snapshot from http://snaps.php.ne

[PHP] Udp.pl scare

2005-02-03 Thread Mike
Hello all, I have been hit twice now with the udp.pl exploit found in phpbb I thought that upgrading to php 4.3.10 would stop this? Was I wrong? Here is what it does... " The attacker installed a UDP flood tool that ran for 2 hours before buzz was blocked by Network Services. Remote shell pro

RE: [PHP] String -> Number Automatic Conversion

2005-02-03 Thread Ford, Mike
[1] => 0 > Is this a bug or am I missing something. It's a bug -- see http://bugs.php.net/bug.php?id=30726 Reported fixed on 18-Jan-2005, so I guess you're looking at 4.3.11/5.0.4 to actually contain the fix. Cheers! Mike ----

Re: [PHP] Multiline data Insert Into table from a generated form?

2005-02-03 Thread Mike Smith
ar']){ add_to_database( $tourid, $dayno, $fromto, $bld, $descrip, &$dberror) //ideally you'd forward to another page to let the user know the form was received OK... } else { //Show form } Please post any specific error message you may get, not just "a parse error", it wi

Re: [PHP] Multiline data Insert Into table from a generated form?

2005-02-02 Thread Mike Smith
> Code: > print ' align="center">'; > print ''; > $i = 1; > while ($i <= $tour_days) { > print ''; > print ''; > $days = ("Day 0".$i); > print $days; > print ''; > print ''; > print ''; > print ''; > print ''; > print ' wrap="virtual">'; > $i++; > } > print ''; > print

Re: [PHP] Creating a webpage from an HTML form via PHP

2005-01-28 Thread Mike Milligan
Richard - I tried something like that in the past. Just for S&giggles I tried it again. Still doesn't work. It does go through the fwrite() process, but it doesn't write the $joined contents, or $joined is being reset to NULL after the first submit button is clicked. Any sugg

[PHP] Creating a webpage from an HTML form via PHP

2005-01-28 Thread Mike Milligan
things the easy way. The code below outputs the proper data, but it does it without user concent. I'd like to have the user review what they typed prior to posting it to dates.htm. Any help would be appreciated. Thanks. Mike code as follows: Add New Event

RE: [PHP] Check Url Exists

2005-01-28 Thread Mike
Or you can use fopen() - http://us3.php.net/manual/en/function.fopen.php - check the file handle to see if it worked and then close the handle. Just remember you need allow_url_fopen allowed in your php.ini file. -M > -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > S

RE: [PHP] [NEWBIE] Trying to create a function from an existing script

2005-01-27 Thread Mike Johnson
TP_POST_FILES; See here for more info: http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.f iles Hope this helps! -- Mike Johnson Smarter Living, Inc. Web Developerwww.smartertravel.com [EMAIL PROTECTED] (617) 886-5539 -- PHP General Mail

RE: [PHP] escaping quotes

2005-01-27 Thread Ford, Mike
ot;messageSubject"] . "'"); > > to have double quotes around the subject field instead. i.e.: > > print("value="" . $attributes["messageSubject"] . """); print('value="' . $attributes["messageSubject&quo

RE: [PHP] Re: Avoiding NOTICEs on Array References

2005-01-27 Thread Ford, Mike
r is very slow. My answers to these are: (i) if the operator exists and does exactly what you want, why the heck not use it?, and (ii) According to my benchmarks, on average it's no slower than other solutions. Anyway, I like the elegance of a single character operator over any of the other more

RE: [PHP] Magic quotes question (still driving me mad)

2005-01-26 Thread Ford, Mike
s I am not sure at how to reliably look at the > data at various stages. If I do echo $value and it has \' in > it is '\ displayed or or is ' displayed. If you echo a value that really does contain \', you will get \' displayed. Cheers! Mike

RE: [PHP] [Fwd: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numbers with X ???)]

2005-01-25 Thread Mike Johnson
nnoying, no? > > Best regards, > > Richard Davey My personal favorite is when someone requests a read receipt on listmail. I wonder what their inbox looks like when 500 people send one back all in the space of five minutes. -- Mike Johnson Smarter Living, Inc. Web Developer

RE: Re: [PHP] String to Date and Date to String Functions?

2005-01-25 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 25 January 2005 00:25, Ben Edwards wrote: > On Mon, 24 Jan 2005 20:15:15 -, Ford, Mike > <[EMAIL PROTECTED]> wrote: > > To view the terms under w

RE: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ford, Mike
zes. Seems to me a format string is pretty irrelevant in all of this. Speaking for myself personally, I would never accept a wholly textual date from a form -- I would have drop-downs for the day and month, and maybe also for the year depending on the valid range, and then it's a

RE: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ford, Mike
//www.php.net/date ? > > > Yes. It douse the dateToString bit but how do I do the reverse. I > can use it to convert a timestamp to a string but how do I convert a > string to a timestamp. Right at the top of the description of date(), the second Note reads:

RE: [PHP] Issue with virtual() calls...

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 16:42, Potter, Jeff wrote: > Hi Mike, > > I would seem so, but the patch (in snapshot php4-200501201930) only > seems to work when the output_buff

Re: [PHP] Re: Procedural to OOP

2005-01-24 Thread Mike Smith
Thanks Matthew, I appreciate your feedback. I'll be working on it this morning, and I might take a look at Smarty too. Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Issue with virtual() calls...

2005-01-24 Thread Ford, Mike
aintain the same > ordering for virtual() call output as the older versions? Sounds like a known bug, which should already be fixed for future versions; see http://bugs.php.net/bug.php?id=30446 for more details. Cheers! Mike ----- Mik

RE: [PHP] sorting associative array

2005-01-24 Thread Ford, Mike
gt; > } > > > > $data = array(...); > > > > usort($data, "cmp"); > > > > > This won't work for me as I have 500+ records to sort based on the > score key.. Sure it will, given the correction above. Cheers! Mike --

[PHP] Procedural to OOP

2005-01-21 Thread Mike Smith
7;poman/class.php'); $po = new PO; $parts = $po->PartList(); echo "\n"; foreach($parts AS $part){ echo "$part\n"; } echo "\n"; //index.php Any suggestions or I do I have the general idea? TIA Mike Smith -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Seemingly weird regex problem

2005-01-21 Thread Ford, Mike
ules, so a string which does not start with a number is converted to 0). if both expressions are string, and both look like a number, both are converted to numbers and a numeric comparison is performed (so "3"=="3.0", for instance). In addition, the tables at http://

[PHP] PHP5: DOM->removeChild Problem

2005-01-21 Thread Mike Blank
/images/43/team_sandra-varela_kl.jpg Sandra Varela 0 --- I hope somebody can help me somehow! I'm really desperate! Cheers mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] my for loop's gone bananas.. has yours?

2005-01-19 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Tim Burgan [mailto:[EMAIL PROTECTED] > Sent: 19 January 2005 06:19 > > I have a for loop to create a HTML combo box that displays > the 10 yea

Re: [PHP] PHP in MS-DOS

2005-01-17 Thread Mike Smith
On Mon, 17 Jan 2005 09:23:19 -0600, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > I have not been successful with running PHP under DOS (no windows). Is > this possible? > > TIA, > Shawn Have you downloaded the PHP zip file and added c:\php (or wherever you extract it

RE: [PHP] Preventing execution without inclusion

2005-01-14 Thread Ford, Mike
separate directory which is outside the Web server's document root. This makes them completely inaccessible from the client browser, but they are still available to scripts running on the server. Cheers! Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] regex help

2005-01-14 Thread Ford, Mike
, in theory... I need to match (count) all of the bold > tags > > in a string, including ones with embedded styles (or whatever else can > go in there). and . My attempts keep > matching as well. Just off the top of my head (and untested!), I'd try something like /]*)?&

RE: [PHP] delete part of array

2005-01-13 Thread Ford, Mike
lements never being checked. It should, however, be perfectly possible to use foreach in the same way: foreach ($array as $i=>$value) { if (empty($value]) { unset($array[$i]); } } Cheers! Mike - M

RE: [PHP] weird upload problem

2005-01-12 Thread Ford, Mike
gt; > > > > if (isset($_FILES['image'])) > { > $number = 0; > for ($i = 0; $i < count($_FILES['image']); $i++) foreach ($FILES['image'] as $i=>$imagefile) Solves both problems. Cheers! Mike ---

RE: [PHP] Comparison Operator

2005-01-11 Thread Ford, Mike
t kind of comparison you want (and maybe how safe your data are!), either of: if ((int)$value === (int)$curval) if (string)$value === (string)$curval) Cheers! Mike - Mike Ford, Electronic Information Services Adviser,

RE: [PHP] On large application organization [long and possibly bo ring]

2005-01-07 Thread Ford, Mike
make sense; for code which contains substantive logic or output, it may not, especially if inside a loop. Cheers! Mike ----- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Informati

RE: [PHP] Re: On large application organization [long and possibl y boring]

2005-01-07 Thread Ford, Mike
ewhere way back in the days of PHP 4.0.x (where x<5) -- but nowadays the only difference is whether an error is thrown or not if the file doesn't exist. Cheers! Mike - Mike Ford, Electronic Information Services Adv

RE: [PHP] On large application organization [long and possibly bo ring]

2005-01-07 Thread Ford, Mike
igh the savings in not parsing unused code. However, if the speed question is not an issue for your site, the maintainability is certainly a big plus. Cheers! Mike ----- Mike Ford, Electronic Information Services Adviser, L

<    4   5   6   7   8   9   10   11   12   13   >