)
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?
?php
$myLongString = ..'..'.'.;
$myLongString = str_replace(', , $myLongString);
?
et voila! Simple huh ;)
For more info, check out: http://www.php.net/str_replace
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software Systems
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 PROTECTED]
ADAM Software
List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
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
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 Hardiker [EMAIL PROTECTED]
ADAM Software Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
();?
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
.
--
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
. Apply the following change to have happy dreams:
From:
$str3 = brHello, $arr2['name'];
To:
$str3 = brHello, .$arr2['name'];
--
Dan Hardiker [EMAIL PROTECTED]
ADAM Software Systems Engineer
First Creative
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
... 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
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
cgi-binary?
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
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 Software Systems Engineer
First Creative
--
PHP General Mailing List (http
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
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 system it runs at.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software Systems Engineer
First Creative
://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 PROTECTED]]
ADAM Software Systems Engineer
First Creative
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 Creative
--
PHP General Mailing List (http
, 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 (http://www.php.net
);
}
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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
(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 Mailing
.
--
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
-
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 have PHP-4.3.0(dev) [php cvs version] and have the following
configure:
../configure --with-mysql=/usr/local/ --with-gd=/usr
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 unsubscribe, visit: http
/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
tp://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
[EMAIL PROTECTED]
--
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
($arralpha, 3);
I get the same characters each and every time.
The way I am handling it right now is generating random values using
mt_rand(0,25)
and using those random values as the index of the array to retrieve the
value of.
Any ideas on this?
Thanks.
Naintara
--
Dan Hardiker [[EMAIL
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
your docroot with the following:
Files ~ \.inc$
Order Allow,Deny
Deny from all
/Files
Change the first line to Files ~ \.inc.php$ in order to fit this more
secure procedure.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software Systems Engineer
First Creative Ltd
--
PHP General
the extension .phps.
--
Stuart
--
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
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.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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 Hardiker [[EMAIL
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
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 Software Systems Engineer
First Creative Ltd
--
PHP
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
, 'test_print');
The printout of the program above will be:
Before ...:
d. lemon
a. orange
b. banana
c. apple
and after:
d. fruit: lemon
a. fruit: orange
b. fruit: banana
c. fruit: apple
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software Systems Engineer
First Creative Ltd
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
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: http://www.php.net
, 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
)
--
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$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 Systems Engineer
--
PHP General Mailing
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.net/)
To unsubscribe, visit: http
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 Software Systems Engineer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
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
.
--
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
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 Engineer
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 Engineer
--
PHP General Mailing List (http
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.
--
Dan Hardiker [[EMAIL
that ;)
- 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 to start?
--
Dan Hardiker [[EMAIL
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
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
) 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 PROTECTED]]
ADAM Software Systems
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
: for the current time */
$timespread[date(H)]++;
?
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
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: http://www.php.net
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/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software
'
--
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
;
}
// 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 pre; print_r($result); echo /pre;
?
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software
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
from
if ($fp = fopen($url, r)) {
while ($tmp = fgets($fp, 4096)) $output .= $tmp;
fclose($fp);
}
echo The URL's content is: .$output;
?
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net
session_register(fieldtext);
$_SESSION[fieldtext][.$page.]++;
// Show all pages
print_r($_SESSION[fieldtext]);
?
That should get you started.
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software Systems Engineer
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
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
(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
--
PHP
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
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
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 Ltd
--
PHP General Mailing List (http://www.php.net
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, visit
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 Mailing List (http://www.php.net/)
To unsubscribe, visit: http
] 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 helps :)
--
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software Systems Engineer
First Creative Ltd
Hey
--
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
. However if you don't want to round and instead just want to
truncate the number, the number_format() function would be what you
need.
Sincerely,
Craig Vincent
If speed is an issue, instead of using number_format for truncation use
substr. i.e: echo substr($var, 0, 5); to get 3 dp.
--
Dan
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 other bits,
go to the next page
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 to read a .pid file from the right
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:
As these files need
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 monitor 3 different daemon
/)
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
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
, 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
First Creative Ltd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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