:856)
Does anyone have any idea how to get around this?
Thanks for your time,
--
Dan Hardiker
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Any functions to remove'from a longstring?
et voila! Simple huh ;)
For more info, check out: http://www.php.net/str_replace
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software & Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubs
pplication retrieving the data. There is nothing to stop the
client from adding malformed, incorrect or spoof data into this field -
and thus possibly faking entry to the data you are protecting.
You cannot rely on this field to be accurate, correct or even populated.
--
Dan Hardiker [EMAIL PRO
t; outside? Maybe some invisible check on the form or something?
>
> Thanks.
>
> Pag
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.ph
nk();?
If your using XML throughout - have you looked at XSLT transformations?
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software & Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and replace the command with the response.
I can provide sample code for either options ... but would rather not mock
up a test bed if its not gonna get used ;)
PS: Im guessing your building dynamic templates ... have you had a look
into "smarty"? http://smarty.php.net/
--
Dan Hardike
s/wibble.php
and you can see the output of it running every minute:
tail -f /tmp/wibble.output
Works fine for me ... try it
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software & Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if you're having variable resolution issues, then just
break out of the string. Apply the following change to have happy dreams:
From:
> $str3 = "Hello, $arr2['name']";
To:
> $str3 = "Hello, ".$arr2['name'];
--
Dan Hardiker [EMAIL PROTECTED]
ows
2000+) but you will have to investigate those yourself.
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software & Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
v_PHP5.pdf
I think this is more in the realm of what your looking for:
http://www.php.net/ZEND_CHANGES.txt
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software & Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ary?
Is this modified behavoir limited to me, or expected?
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software & Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
after sending mail from a PHP webmail
> client. I'm puzzled, too...
This could because exec statements are executed in the foreground. Your
best bet would be to background the process with &.
exec("perl myscript.pl &");
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Softw
rmation on which lists to use for what
(bugs, qa, dev questions) can be found on the php website.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed (eg: .cfm as cold fusion), but at a blank completely, eg:
http://your-server.com/some.script
With .script being parsed by php, but the outside world not knowing what
technology you are using behind the scenes. Very simple, yet very
effective way of blindfolding the end user.
--
Dan Hardiker [[EMAIL
t what it is right off the bat.
>
> That will not work.. try the following:
>
> telnet yourserve 80
>
> and than type GET / HTTP1.0 and press Enter twice
>
> You'll see the server response which will tell anybody that the server
> is Apache and even the operation
sort of task, but its possible)
- Using ssl certificate pairs and installing them in a custom manner on
the apache installation
- Alternative methods
PS: if your not using apache, I cant help you at all. Others may.
---
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creat
ss on here, but could off list.
NOTE: please CC my email address in on any reply.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative
--
PHP General Mailing List (
v("/your/program/here", argv);
> }
>
>
> then cc -o yourfile yourfile.c
>
> chown root.root yourfile
> chmod 4755 yourfile
>
> this will make it rwsr-xr-x
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP Ge
(using APXS) [also v4.3.0-dev will be tested]
Apache 1.3
MySQL 3.23
FreeBSD 4.6-STABLE
Ive thought of writting a load testing script, but Im not after
reinventing the wheel.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mai
- but there isnt! heh
> - Original Message -
> From: "Dan Hardiker" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 27, 2002 2:52 PM
> Subject: [PHP] Compiling PHP with Sablot support
>
>
>> Hi All,
>>
>> I
.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
www.squirrelmail.org
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> My system is a linux RH7.2 box. How can I make blowfish encryption
> available to PHP's crypt?
Use mcrypt. See the manual.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To uns
List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
such as:
>> >
>> > Warning: failed to load external entity "employees.xml" in
>> > C:\Inetpub\wwweloanshop\test\xml.php on line 36
>> >
>> > Any hints?
>> >
>> > [ Brian M McGarvie | www.mcgarvie.net - www.the-local-guide.com -
>&g
gt; Any ideas on this?
>
> Thanks.
> Naintara
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to get you,
> individually, they intentionally put security holes into the software,
> so they can go back later and make you patch your "dozens of systems"
> and make your life a living hell. And it's not just me who doesn't mind
> upgrading, it's just you who can'
I have no idea if this of any use to you guys ... but www.jobserv.co.uk
has a load of IT jobs - but AFAIK they are all for mainland UK. Will be
helpful for brits in any case. You might find a link to their continental
/ american / australian counterparts.
--
Dan Hardiker [[EMAIL PROTECTED
e /inc/ directory (or further up
> towards your docroot with the following:
>
>
> Order Allow,Deny
> Deny from all
>
Change the first line to in order to fit this more
secure procedure.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
Fi
he answer is still no, you cannot gain the source from a
functional PHP script unless it has been setup to. There is no exploit to
do this with any browser.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.n
de but only the resulting code
>> the script generated.
>> So IMHO this is a "hoax".
>
> Unless your server has phps (source view) enabled. If it has then you
> can see the source of any file by using the extension .phps.
>
> --
> Stuart
>
>
> --
&g
uot; ". You could rewrite "http://"; as
"%68%74%74%70%3a%2f%2f".
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oking up against a
dictionary file although there are speed impacts.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ke file.pdf instead I use:
header("Content-Disposition: filename=file.pdf");
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
anyone know how?
Have a look into XSLT... its all in the manual.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I want to make all fatal errors trigger an error file to be include,
> the file to exit, and the error never t be displayed. Is there any
> way to do this without access to php.ini?
Implement your own error handler. There is a load of documentation in the
manual.
--
Dan Hardike
ot;$key. $item2\n";
}
echo "Before ...:\n";
array_walk ($fruits, 'test_print');
reset ($fruits);
array_walk ($fruits, 'test_alter', 'fruit');
echo "... and after:\n";
reset ($fruits);
array_walk ($fruits, 'test_print');
The
[rtfm for more
details] rather than pulling the rows. From here it looks like your
fastest option, but your not providing enough information.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
&m=102079018906224&w=2
But you still have to rely on your visitors as they could simply use
another web browser should they wish to DoS your site. Security measures
such as logging in before allowing a file upload can come in useful here.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Softwa
ot; and READ the user comments. The
manual + user comments usually holds the answers you seek. ;)
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s). Placing in the URL may make it look a bit messier (the URL that
is) but its much more compatable.
Just my 2 cents.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
in the web
browser much better than I can.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mple:
>
> /bin/mycommand < $variable > $parsed_variable
> or
> $variable | /bin/mycommand | $parsed_variable
>
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the two lines of code?
>
> I'm using Win 98, Apache 1.3.19, PHP 4.2.0 and MySQL but I'm not sure
> which version! (fairly recent though)
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Dan H
> $startDate['Jungfrau'] = mktime (0, 0, 0, 08, 24, 2000);
> $startDate['Waage']= mktime (0, 0, 0, 09, 24, 2000);
Replace 08 and 09 with 8 and 9 respectivly and you will have the effect
you desire.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Syste
Unless your using IIS to serve your FTP ;) That would go belly up if youve
got another http processes running. More information about your setup is
required for us to help further.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailing List (http://www.php
> Turn magic_quotes off. Check the manual for full details.
or use stripslashes() ... rtm ;)
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
details to
the world?! I gonna have to write an article on how to communicate
securely over the internet. (not just with PHP, but with the data you
communicate in the messages as well!!)
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;)
- Dan
> http://nocc.sourceforge.net/
> -Jared
>
> -Original Message-
> From: Craig [mailto:[EMAIL PROTECTED]]
>
> I am in the process of developing a website with a webmail system
> similar in functions to hotmail
> Does anyone have any suggestions for where t
execute it (unless you
locked it down which is silly when you could just run it locally
yourself). Also the data is going over HTTP which would easily be
intercepted with ethereal / tcpdump etc. I still *strongly* recommend
compiling a binary if only for purely security based precautionary
reasons.
r own.
PHP has never claimed to be fully OOP compliant infact it has quite
blatently stated that its not. I hope that the time will come when PHP
has much more OOP support like other languages (such as C++, delphi etc).
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engine
lint)
-m Show compiled in modules
-i PHP information
-h This help
[14:03:52][dhardiker@amnesiac]:~$
everything there is pretty self explanitory... as is the reason for using
option q ;)
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems
ds what your after doing...
experimentation is the key, and imho you should stick to the binary for
shell stuff and the module for web stuff.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nary... and you could
have 3 binarys, one with sockets & pcntl enabled, one with dom & xml
enabled, and one with everything enabled... etc.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This will warn you that it is about to create a
binary and not a module.
After a make install it will usually end up in /usr/local/bin/php for you
to use as your shell interpretor. (Follow up email regarding security to
follow from a linx post).
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Sof
gets hammered if malitious users
were to launch 5000 requests at it in the space of 10 mins, it would just
do the big DB operation the once.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
;] += 1
I think the problem here is your understanding on how array key's work.
The following method would be far more appropriate:
follow or have I lost ya?
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
security is far better than none! Just making sure that everyone is aware
of the consequences and implications.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x minutes (or hours / days) then serve up the
generated information from the table.
This would mean that your db no longer gets hammered if malitious users
were to launch 5000 requests at it in the space of 10 mins, it would just
do the big DB operation the once.
--
Dan Hardiker [[EMAIL PROTE
from the previous page via text field.
>>>
>>> Whe I test this and do something like " ping 192.168.0.2", the page
>>> keeps on growing and growing, way past 30seconds. My php.ini file is
>>> definately set to 30s timeout. Is there something wrong or d
> keeps on growing and growing, way past 30seconds. My php.ini file is
> definately set to 30s timeout. Is there something wrong or do I have a
> misunderstanding of the timeout workings?
>
> Thanks
> '
>
>
> --
> PHP General Mailing List (http://www.php.net/)
&
bility.
= $groups) $cnt = 0;
}
// Return
return $return;
}
// Replace these with the items you want, and specifiy 4 groups
$items = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14);
$result = randGroup($items, 4);
echo ""; print_r($result); echo "";
?>
--
Dan Ha
) {
if ($aLines[$key]->host == "") $aLines[$key]->host = "Teststring";
print $aLines[$key]->host."\n"; // prints "Teststring"
}
That way your altering the master array and not the copy
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> This is a minor bug fix release.
Wasnt aware that php-general had incorporated a channel for product
plugging and advertisment?!
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
very easily create a user account on your system and then just walk
straight in??
Given your current attitude (and awareness) of security, I doubt that it
would take long for your machine to be anhilated.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative
that ;) heh
Jason: what dya recon on people being licensed to be able to run a unix
style operating system? heh Hell lets license people to use computers.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mp
c:\temp
c:/temp
One of those should work... I dont know if you need to escape php.ini
values (hence the \\ and \ options).
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
side of PHP
(eg: how would you go about the problem using shell scripts / command line
typing)
This will give the people who try to help a better impression of the
situation and give you more targeted advice.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
e_path" from "/tmp"
to "c:/temp" (or where-ever you wish it to go)
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> I am trying to register an array in a session, but am having no luck.
[..]
> where fieldtext is the name of a field on the form, and $page is the
> page number, which increases by one each time the form is submitted.
That should get you started.
--
Dan Hardiker [[EMAIL PROTECT
t;http://whatever.com/file.html";; // whatever you wanna pull
>> from
>>
>> if ($fp = fopen($url, "r")) {
>> while ($tmp = fgets($fp, 4096)) $output .= $tmp;
>> fclose($fp);
>> }
>>
>> echo "The URL's content
le pointer ($fp) in 4096
byte blocks (or chunks), and the while will keep pulling the chunks until
there is nothing left to pull.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
special way to unset the new Session variables?
Seen as you used session_register to set the session variable, it would
make sense for you to use session_unregister to do the inverse.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General
t;.$user->name." is age ".$user->age.". ".(($user-
>birthday==$today)?"Happy Birthday!")."";
but thats getting out of the scope of the question heh
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(you can find
simple instructions on the http://www.php.net/mail page in the user
comments).
If METHOD="post" then use $_POST, and if an old version of PHP is being
used then use $HTTP_POST_VARS / $HTTP_GET_VARS.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
t;exit;" with "fclose( $fp );". Please note that headers must be
sent before any other output.
What you are trying to achieve can be done with refresh headers (either
html-meta or http).
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;>Thanx,
>>
>>Kiko
>>
>>--
>>It's not a bug, it's a feature.
>>christoph starkmann
>>mailto:[EMAIL PROTECTED]
>>http://www.gruppe-69.com/
>>ICQ: 100601600
>>--
>>
>>--
>>PHP General Mailing List (http://www.php.n
in normal execution (or you dont have access to
it) ... then your gonna have to do it the long winded way (greping out
unique attributes from a ps auxww / sockstat etc).
Good luck
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
> I would like to mo
ocumentation at cvshome.org (man that was a labourous task) and I still
dont think I grasp it fully... guess its time to jump in at the deep end.
Thanks
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
> At 10:08 AM +0100 2/5/02, Dan Hardiker wrote:
>
multitude of ways and use the resulting matrix to determine.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
> Hello everybody,
>
> I would like to know an easy way to check is a daemon is running.
>
> What do you think is the best? Try
listed btw) you require.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
> Just a general question of the best way to do it !
> I've got a job search site with mysql at the back of it !
> You choose on the first page - type of job, where and
stead of using number_format for truncation use
substr. i.e: echo substr($var, 0, 5); to get 3 dp.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n strings";
will output "I can NOT use Array[var2] in strings". For this you have to
jump out of the string and use contcatination... eg:
$str = "I can use ".$hash[var][var2]." in strings";
will output "I can use Elephant in strings".
Hope that help
Why not just use a regular expression match to see if there is anything
other than numeric characters? That will tell you if it is an integer before
you do the type casting.
(sorry if that sounds a little obvious but no-one seems to have suggested
it)
- Dan
"Unknown Sender" <[EMAIL PROTECTED]>
85 matches
Mail list logo