not cache
the picture in the web browser? I don't know how the cache works but my
friend says it asks the server for the data the file was generated and
the size, so I suppose with this is dosent?
Help!
Thanks,
Steve
--
PHP General Mailing List (http://www.php.net
em to get right. This is what I have at the moment:
if (!preg_match("/[\d]+([\.]{1}[\d]{2})?/", $form_data[amount])) //
wrong amount
but it still allows invalid input. Can anyone help or is there a better
way to do it?
Thanks
Steve
Thanks, thats hit the nail on the head, and my headache is a whole lot better!
Steve
Cc Zona wrote:
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Steve Fitzgerald) wrote:
>
> > I have been struggling for a couple of hours now trying to write a
> > preg_mat
value =''
This works fine except if the input type is a drop down box, in which
case the default is shown. Is there any way around this? How
can I show the user their previous choice in these boxes?
Any insights would be appreciated.
Steve
--
PHP General Mailing List (http://www.ph
Thanks Justin, your solution is spot-on!
Regards
Steve
Justin French wrote:
>
> ?>>
> >
> ?>>
> } ?>>
> ?>>
> >
>
>
> Obviously this is labourios to code... you can do this a lot smarter/quicker
> w
; substr()
or maybe regexps) to do that.
For more info, see:
http://www.php.net/manual/en/function.fopen.php
http://www.php.net/manual/en/function.fread.php
http://www.php.net/manual/en/function.bin2hex.php
-steve
At 9:08 AM -0700 7/9/02, JSheble wrote:
>I'm using a Zebra label
Are you compiling php with the --with-gd=shared option?
Personally (Solaris 8, gcc 2.95.3 , php 4.1.1 and later) I've never
been able to get the gd shared object to work (gd.so load errors), so
I've always ended up compiling it into PHP.
-steve
At 1:23 PM -0400 7/9/02,
agreed.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 3:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] RE:
lets all spam Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
way of a pointer to where I can go to read up on how I
can accomplish this. Is there a particular tutorial I can read that's
relevent? Perhaps a sample script available that I can peruse to see how
someone did something similar?
Any help would be appreciated.
~Steve-o
--
PHP Gener
fine.
Can anyone please help?
Thanks in advance,
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t;... contents of myFile.xml ...\n");
fputs($fp, "--AaB03x--\n");
And again, I've only been doing PHP a week, so if I'm following a totally
wrong track here, feel free to smack me around.
As always, any help is greatly appreciated.
~Steve-o
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cking a button. Check this link.
http://www.devguru.com/Technologies/ecmascript/quickref/evhan_onsubmit.html
Hope this helps,
-Steve.
-Original Message-
From: MindHunter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 2:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Submit code
e method that does
all the work so
$db1->setTransactionSwitch("false"); //you don't have to recode it.
If it fails roolback.
if($db1->getTransactionSwitch()=="false");{
$db1->rollback();
}else{
$db1->commit();
}
Classes al
l Message-
From: Chris Crane [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 11:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Classes vs. Functions
Wow...this is pretty cool.
Do you HAVE to declareall your varibles ahead of time?
"Steve Bradwell" <[EMAIL PROTEC
k if the $key is just a number or just a string
>
>C) $key += 1
Lastly, you _could_ just step through the array using each() in a
loop, and use only every OTHER array entry...but this is really funky
and you shouldn't
Can you post this to php.announce as well?
Marko Karppinen wrote:
>
>PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1
>
>
> Issued on: July 22, 2002
> Software: PHP versions 4.2.0 and 4.2.1
> Platforms: All
>
>
>The PHP Group has learned of a serious security vu
Is it possible to define a variable, such as:
$foo = "bar";
and then do as follows to create a totally different variable:
$$foo = "text here";
this seems to mean $bar = "text here";.
Is this a bug or can we legally use it.
Steve
Hi,
I'm having trouble evaluating a dynamic variable. I want to check if the
variable $_POST["resolutions$i"] is an empty string, as you'll see from the
code. However, every way I've tried to check the variable so far (including
empty() and eval()) always returns a null value, even when the variabl
Hey all,
I'm curious if anyone else has ever come across this problem:
I have a multiple select box named 'chosen'. When it is submitted, only the
last option selected appears under $_POST['chosen'], when I print_r($_POST).
Any ideas?
Thanks in advance,
Steve
--
PHP G
I have a new RedHat Linux v.9 server that gets its php through
'up2date'. I want the ability to use mcrypt with php. I thought that I
read somewhere a way to do this without having to recompile PHP. Can
anybody point me to the right place or explain to me how to do this?
Thanks
St
to which the file is served to (a temp) or what? No matter
what I've tried I get no error message and the browser (IE6) just hangs
so it appears that PHP is trying to serve the file but failing for some
reason.
What is that directory I am supposed to define?
What am I doing wrong?
Steve Ja
Steve Jackson
Web Development and Marketing Manager
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
-Original Message-
From: Steve Jackson [mailto:[EMAIL PROTECTED]
Sent: 16. syyskuuta 2003 12:15
To: '[EMAIL PROTECTED]'
Subject
// force download dialog if no extension defined.
header("Content-type: application/octet-stream\n");
header("Content-disposition: attachment; filename=\"$file\"\n");
break;
}
Steve Jackson
Web Development and Marketing Manager
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t;r");
fpassthru($fp);
*/
?>
Echoing the vars produces this. The exploded file ($extension) is what I
need to pass to the switch but if I send the headers as is again I get a
blank and corrupted explorer window.
Test and pdf
Test and EventNotification_01.pdf
Test and Array
Test and $file
Any ideas how to proceed?
Cheers,
Steve.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27;get.php?file=','','$file');
$p = explode('.', $pfile);
$extension = $p[sizeof($p)-1];
$pfile when echoed is $file
$file when echoed is the correct name of the file which is even more
confusing.
I figured that $file would include the URL which might be why it ha
esource is #1
Has anyone got any clue what the problem is?
Steve Jackson
Web Development and Marketing Manager
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e but not the name of the file itself.
Finally a step in the right direction but how do I go about solving
this?
Kind regards
Steve.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y can help
someone else!
Steve Jackson
Web Development and Marketing Manager
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
> -Original Message-
> From: Steve Jackson [mailto:[EMAIL PROTECTED]
> Sent: 18. syyskuuta 2003 12:19
>
t look at all
like this:
$array=("/etc/bind/options.conf.wp","/etc/bind/rndc.conf.wp","/etc/bind/keys.conf.wp");
if($k2b==$array){
do this1
}else{
do this2
}
I think that might make enough since to see if someone can help me on
this. This would be real nice f
To Brad, Marek and Curt (and anybody who responds after this)
Thank you so much for your help. This is going to help me out so
much in a lot of my scripts. It will sure make them a little.Noa
LOT more portable now.
Thanks
Steve
At 11:26 AM 9/30/2003, you wrote:
Steve Buehler
At 06:34 PM 10/5/2003, Roy W wrote:
Is there a way to attach a file with the mail() function?
Thanks!
Yes. Take a look at http://www.php.net/mail
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
David Enderson also developed an upload meter and contacted PHP about
including it.
http://www.mail-archive.com/[EMAIL PROTECTED]/msg02155.html
Long and short, PHP never included it. This functionality is requested and
can be included easily. I'm in the process of developing documentation and
rpm p
e
the change to the other databases. Does anybody know if there is all ready
a program out there that would do this? Can anybody point me in the right
direction? Or if it is only a few lines of script that somebody all ready
has to do this, can you share it?
Thank You
Steve
--
PHP Genera
s NOT give a new line in the output unless you use an html tag that
would give the new line.
Steve
At 06:39 AM 10/13/2003, you wrote:
> They do work but you will not see that in the rendered html page (in a
> browser). Have a look at the source of the produced page and you will see
>
Do what I do, use both the \n and the tags. I am not worried about
anybody else thinking the source is nice looking, I do it for debugging so
that I can see how the source comes out in a readable format.
Steve
At 06:48 AM 10/13/2003, you wrote:
Ok, Now I see what happen (maybe).
So, the &qu
To give tabs in html, you might want to try using
instead of \t
Steve
At 06:57 AM 10/13/2003, you wrote:
Wang Feng wrote:
The page source shows:
The problem might be right here --+
(closing html tag
st to the web server to utilize the same PHP session). However,
if I use the same session ID things seem to lock and the fread's from
the socket just don't return any data. Why would there be a lock in
doing a request within a request to the same PHP session?
Thanks,
Steve
--
PHP Gener
Thanks guys. Makes sense. This is a conversion from ColdFusion and was
not an issue in ColdFusion, thou in CF you could do read or write
locking to allow for such situations. I'll rework things.
Steve
John W. Holmes wrote:
Steve Wardell wrote:
I have a page on my PHP site that nee
h PHP.
THANKS!
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Do admin functions
}
Else
{
//Do login form
}
How do I adapt the check_admin_user() function and the pages to work in
4.33?
Thanks,
Steve Jackson
Web Development and Marketing
Viola Systems Ltd.
http://www.violasystems.com
[EMAIL PROTECTED]
Mobile +358 50 343 5159
--
PHP General Mail
any good mp3 modules etc for PHP.
Any help would be appreciated!
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the ideas I have which I haven't even
listed!!! So is there ANY way from PHP to read a CD, rip the tracks and
place them in BLOB fields in MySQL? Or do I have to write something in C++
or Java? Just would be nice if there was something in PHP.
Thanks,
Steve
--
PHP General Mailing List
it as well.
So basically, I can't find anything about how to change colours using a
command line script.
Just getting very boored of white text on a black background- very booring!
THANKS!
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
variables outside an object. It acts like the variable is undefined. Thanks
for the help.
Steve Turner
//--
class Cart
{
var $items; // Items in shopping cart
// Add $quantity articles of $product_id to the cart
function add_item
---
Can anybody shed some light on how to fix this? I presume the first is a
permission problem that is from the new way that MySQL handles things. The
second is just a mystery to me.
Thanks
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
no idea what a scalar value even is. I did verify that my form was
passing the values by using
echo $_GET['product_id'] . $_GET['quantity'];
Your help is much appreciated, as I am still a beginner.
Steve Turner
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(PHP 4.3.0, Windows XP Pro, Office 2000 Pro)
Hello,
Just playing around with COM, and I got the error below.
Searching on google it mentions something about a DLL error.
Iv'e enabled dcom in php.ini.
What have I missed!
Line 2 says $excel = new COM("Excel.Application") or die("Excel could not
nal US cities with low
costs of living. :)
--
Steve Magruder
www.webcommons.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ected.
Has anyone seen or heard of this? The notes in the docs didn't tell me
anything special about this.
-- steve lane
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
atever Web
Server you are running after making this change.
Steve
At 12:10 AM 11/9/2003, you wrote:
Hello all:
We recently ported an application from Linux to Windows and had a few
sessions-handling issues (we were going from PHP 4.1.2 Linxu to PHP 4.3.3
Windows).
We traced this to PHP
ng things into
the database? I am hoping on being able to fix this when going in and when
coming out of the database so that I don't have to go back and redo all the
ones that are already in the database.
Thanks
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing
-steve
At 04:32 PM 11/10/03, Jason Williard wrote:
I would like to have a script that randomly generates alpha-numeric
characters. Does anyone know of any scripts that can do this or perhaps
the basic code to generate
Hi,
I am looking for a simple easy to edit php calendar program. Does anyone
know where I can find one?
Thanks for your help.
--
Steve Marquez
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is this what your looking for?
http://www.pfohlsolutions.com/projects/mailer/
-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 1:08 PM
To: Chris Boget
Cc: David Buchmueller; PHP General
Subject: Re: [PHP] Looking for Spam free php form
> > I
I could just create a link for each
letter, but I would like to learn to do this so that I can make code
shorter. Putting each letter into an array and steping through the array
will work, but can it be done by telling a loop to start at A and end at Z?
Thanks
Steve
--
PHP General Mailing List
e like this now:
$letter='A';
for($i=0;$i<=25;$i++){
echo $letter++." ";
}
Thank You So Much
Steve
At 08:24 AM 11/19/2003, you wrote:
[snip]
for ($letter = 'A'; $letter++; $letter <= 'Z')
echo "$letter\n";
[/sni
7;, $i = 0; $i <= 25; $letter++, $i++ ){
echo "$letter ";
}
Thank You So Much
Steve
At 08:27 AM 11/19/2003, you wrote:
Sophie Mattoug wrote:
Maybe you can try this
for ($letter = 'A'; $letter++; $letter <= 'Z')
echo "$letter\n&q
}
Amazing what I learned today. :) I love this list and its people.
Thanks for your help
Steve
At 08:15 AM 11/19/2003, you wrote:
Create a $letters array and the loop through it like this:
$letters=array('A','B','C','D','E','F','G
Hi,
Having some problems with multi-dimentional arrays.
I am creatng an array using some database data, and adding stuff like an image
tag, and hyperlink.
Then passing this to another function that creates an Html table from an array.
Here is the function to create the table from an a
site) variable, you should use a session
variable.
Regards,
Steve
"Mike D" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hello,
>
> I have recently noticed something that I wasn't aware of until now. I have
> index.php which contains include1.txt a
Hello,
I have search google, and PHP but I cannot find properly how to set the
maximum post upload size as 200Kb?
Do I use 200K or 200KB for post_max_size?
THANKS
Steve
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am having a slight problem with a picture upload script. I seems to work
just fine except when the picture name has an apostrphe in the name. How do
all of you deal with this problem. Do you just rename the file to something
else when you upload it. Here is the script that I am using. It is calle
Greetings!
Is there a way to have PHP write an HTML file? What I would like to do is
have a user fill out a form, then have the information write an HTML file
and then save the file either for the first time, or overwrite the existing
one.
I hope this makes sense. Can anyone help?
--
Steve
Take a look
if you are confused. The link to the site is
http://www.designoriginalsbykim.com. Thanks for any help you may be able to
give.
Steve Turner
Fort Collins, CO
http://www.SteveOnWeb.com
The session part of phpinfo() is
session
Session Support enabled
Registered save h
recompile PHP but its a very convenient tool that many of my clients
ask for, enjoy.
Steve
-Original Message-
From: Ed Curtis [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 12:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Working pop-up progress window
I've read throug
David,
A window will popup with the progress meter. Obviously don't block popups and try
using a larger file if you have a high speed line, it takes a second for the meter to
start and if the upload is done it won't popup properly.
Steve
-Original Message-
From: David T
Well its actually a pure PHP upload meter it just uses JS to open the window. You
could make PHP open the window as well with a little tweaking.
-Original Message-
From: David T-G [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 3:16 PM
To: [EMAIL PROTECTED]
Cc: Steve Murphy
site which gives an example php.ini file.
I've tested the meter with a 160MB file on 128MB RAM 500Mhz K6 system. The download
also includes sample HTML code. I'm working on adding CSS to customize the look a
little more.
Hope this will answer some questions.
Steve
-Original Me
;t reference a file up one level. If I'm three levels deep I
can't reference files back on level two, bummer!
I appreciate any suggestions.
Thanks,
Steve
;t reference a file up one level. If I'm three levels deep I
can't reference files back on level two, bummer!
I appreciate any suggestions.
Thanks,
Steve
27;ve been unable to find it and would ask for anyone who may be able to
help to please give suggestions on what directive(s) are causing this.
I'd really appreciate a point in the right direction on a resolution.
Thanks for your help,
.. Steve
..although there might be socket_blocking or
page flush() issues to experiment with -
steve
At 8:28 AM -0600 1/9/04, Carlton L. Whitmore wrote:
I didn't make my last request very clear. I used lastlog as an example,
but what I really want to do is open a syslog file (text file), that is
coming
subdirectory
level.
Of course, if you need to include() in the middle of a page, or
conditionally include files, these won't work -
steve
At 5:16 AM -0800 1/14/04, Freedomware wrote:
Wow, that is a lot simpler than I imagined. Thanks for the tip!
Jay Blanchard wrote:
[snip]
I thought this would b
>do something
>break;
>
'require' ALWAYS includes the file; 'include' is what you want here.
The tradeoff is that include is slightly slower. For more info, see
http://www.php.net/manual/function.include.php
and
http://www.php.net/manual/function.
g new today :)
My production systems are still PHP3; PHP4.0.4 is still on my test system.
- steve
>-Original Message-
>From: Maxim Maletsky
>Sent: Thursday, January 11, 2001 2:26 PM
>To: 'Steve Edberg'; Jon Rosenberg; PHP List .
>Subject: RE: [PHP] case ?
>
>
ge.php,
including the HTTP headers.
For more info on HTTP 1.1 (which most web servers should support by
now), you can check out
ftp://ftp.isi.edu/in-notes/rfc2616.txt
(it's a ~412KB text doc). For a list of references to all HTTP
protocols, extensions, proposals, etc. see
tml pages
through php (as opposed to just statically serving the html pages).
This person had set his server to php-parse the .html extension.
- steve
>--
>Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
>
+--- "They've got a cherry pie there, that'll kill y
http://www.php.net/str_replace
http://www.php.net/preg_replace
-steve
(The usual off-the-top-of-my-head-untested-code-snippet caveats apply)
+----+
| Steve Edberg University of California,
You have to call setcookie() before anything is outputtedthat was it sounds like.
SL.
Yo,
Anyone know of a cfg option that would make files written by php be a different
user/group than the apache server user/group?
With my current setup, the only way to give php write access also allows any surfer
write access to that same folder...which is "not a good thing".
Thanks,
$Number = (float)$SanitizedNumber;
although in most cases PHP handles type conversion correctly on-the-fly.
- steve
+--- "They've got a cherry pie there, that'll kill ya" --+
| Steve Edberg University of California, Davis |
|
oIt($Answer) {
echo "Noodles are happy? $Answer";
}
}
It's been awhile, but I believe that should work. If not, give us more info:
What version of PHP?
What, exactly, DID you try?
- steve
--
+--- "They've got a cherry pie there, that'll kill y
PHP handles persistent connections by leaving them open
for some other identical connection request. The next request
will check for a free connection.
see
http://www.php.net/manual/en/features.persistent-connections.php
In other words, you don't need to worry about when they are closed
php wil
ou convert the letters in the passphrase and the credit card number into 0 1 binary
and then XOR that? What commands are there iN PHP that converts from alphanumeric to
binary? If someone could post an example, that would be great.
- Steve
ebsite that explained how to compile PHP to run as a NSAPI
module; unfortunately, that URL disappeared. I could dig up that info
for you anyway, if you're interested.
Lastly, I believe that PHP4 comes with experimental NSAPI support;
check www.php.net or www.php4win.de
- steve
&
Sometime ago I read that it is possible to configure UltraEdit to interprete
PHP Code.
Is this correct? Which configuration settings do I have to make in
UltraEdit?
Steve Haemelinck
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
time to time on this list; also, I think there are a few references
mentioned in the online docs for the ereg_ and preg_ functions. You
can also get the O'Reilly book 'Mastering regular expressions.'
That being said, though, explode() is probably a better function to
use here. If
but I want to move it to my server at work. Does
>anyone know of a script of some sort that will go to my site, copy all the
>files to a specified folder, and follow my internal links? Thanks for the
>info.
>
--
+--- "They've got a cherry pie there, that'll ki
the value of a textarea tag is not put in a 'value' attribute
within the tag as with the INPUT tag; it is put in the textarea
'container' - that is, between the and tags.
- steve
--
+--- "They've got a cherry pie there, that'll kill ya&q
h any existing data
(from HTTP_POST_VARS, etc.) filled in and error messages, if any,
displayed. Basically, the FORM tag action attribute refers to the
same program as displayed the form - that is, $PHP_SELF.
Hope this is clear...I getting tired, and I don't even think an
intr
bit out of date - for instance, BBEdit 6.0
(Macintosh) now has PHP syntax highlighting - but it's a got starting
point.
- steve
>
>- Original Message -
>From: kaab kaoutar <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, January 24, 2001 4:2
was of
type void and did never return anything."
So, if you're using PHP4, just ensure that there is a return
in$php_code that returns the desired value:
$thing = eval($php_code);
It's helpful to read the notes at the above URL - escaping things
correctly for eval() can be
th _POST_ or _COOKIE_, respectively.
The reset(), by the way, resets the array pointer to the beginning of
the array. It's not always needed, but I tend to do it anyway. It IS
necessary, however, ig you use the above snippet within an enclosing
loop.
- steve
--
+--- "Th
:
$Stuff = PrefChange($language, $currency, $state);
if (is_array($Stuff))
{
# ...do stuff with $Stuff !
} else {
# ...show error message
}
- steve
>Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EM
6400)) % 3600;
$NMinutes = round(($R - ($NHours * 3600))/60);
Why you would _want_ to do this, I don't know. I suppose if you're an
ex-FORTRAN programmer frustrated by the lack of assigned and computed
GOTOs and want to take it out on others, maybe. OK, now I'm ra
est1 = array('a'=>'apple', 'b'=>'banana', 'c'=>'carrot');
$foo = array($test, $test1);
way of declaring the $foo array, you could also say
$foo = array(
array('bean', 'noodle', &
allowed?
>
>$test = new Simple();
>echo $test->a;
>
>
Yep.
You can also _set_ $a this way:
$test = new simple;
$test->a = 77;
echo $test->first();
will display 77.
See
http://www.php.net/manual/en/language.oop.php
for more info.
e of the
digit to 2. If so, you could do
for ($i=1; $i<$SomeNumber; $i++)
{
$VarName = 'run'.max($i, 2);
$SomeValue = some_function($$VarName);
}
-Steve
>
>Brandon Orthe
Should I place the error_log dir between quotes?
"/var/log/php4/error.log"
Or not?
--
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]
type-casting issues here, depending on: whether $AgeChild is
numeric or string; the fact that the STRING "false" isn't equivalent
to the CONSTANT false, the use of == vs. ===.
Time to check out the docs - specifically the types and variables
sections (also the functions->
501 - 600 of 1688 matches
Mail list logo