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]))
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
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
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
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
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
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
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
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
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
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
){
//$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
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
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
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
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:
> >
>
::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
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
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
> 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
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
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
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:
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
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
> 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
> 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=
> 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
>
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
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
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
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
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
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
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
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
> 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
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
);" 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
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
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('
> 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
> 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
> 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
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 =
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
#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
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
> 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
> 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:/
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
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,
> 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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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.
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
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
[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
----
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
> 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
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
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
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
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
ot;messageSubject"] . "'");
>
> to have double quotes around the subject field instead. i.e.:
>
> print("value="" . $attributes["messageSubject"] . """);
print('value="' . $attributes["messageSubject&quo
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
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
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
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
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
//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:
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
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
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
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
--
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
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://
/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
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
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
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
, 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
/]*)?&
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
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
---
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,
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
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
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
801 - 900 of 3080 matches
Mail list logo