I'm looking through some existing code for a project I'm working on, but
I keep running into this syntax that I really don't understand. Here's
an example:
$a=strpos($a,'-')?explode('-',$a,2):array($a);
What do the ? and the : do here? I'm seeing this sort of thing all over
and just have no idea
0:09 GMT
Server: Apache/1.3.26 (Darwin) PHP/4.2.2
Connection: close
Content-Type: text/html
Really what I'm trying to find is the server message (404, 200, etc.) on
a remote server from this line...
HTTP/1.1 200 OK
Is there anyway to access this through php?
thanks,
jimmy
--
PHP Genera
Hi James,
> I've been getting the following error:
> Warning: Supplied argument is not a valid PostgreSQL
> result resource in dbasefunctions.php on line 87
that's because your SQL query return nothing, but you
try to fetch a row.
--
Jimmy
Hi Andras,
> $aresult=mysql_query("select * from orders WHERE (a3 >= CURDATE()-$datec)"
> ,$db);
what's the value of $datec? integer 7 or 14?
if so then try to change it to this: "interval 7 days"
--
Jimmy
Love deeply and passion
t; what will happen if another one will open and write the same file?
php doesnt handle file locking automatically, so i think it would
depend on the OS. if you want to handle file locking, read about flock().
--
Jimmy
God is greater than your greatest problem
--
PHP Gen
Hi All,
I just realize there's no reply-to header in this mailing list.
No wonder I never receive my own email when I reply to any mail here.
Does it purposely set this way? Or is this a glitch?
--
Jimmy
Mistakes show us what we need to learn.
--
PHP Ge
Hi Martin,
> I thought that if there's no "reply-to", then email clients will use the
> "from" as the reply to ??
yes, correct, but the "from" is the address of the original sender,
so when someone hit reply, the email will goes to the original sender
Hi WB,
> Hi i need to strip out the up to the tag.
> preg_replace( "/" , " " , $body );
try this:
preg_replace( "/[^]*]*>/" , " " , $body );
--
Jimmy
Your mind is like parachute. It works best when it is open.
to use this function.
--
Jimmy
Leave loved ones with loving words, it may be the last time you see them
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the l
Hi Alawi,
> I want to take string between tags in put it
> in variable
preg_match ("|([^]*)|i", $str, $match);
$match[1] will contain the string between
--
Jimmy
Fate shuffles the cards and we play with them
--
PHP General Mailing List (ht
Hi James,
> Ideally, I would like to run the job in the background anyway. Can
> that be done?
read this: http://www.php.net/manual/en/function.exec.php
and search for 'background' keyword.
--
Jimmy
Brigands will demand your money or your life,
Hi Dan,
> $parent_sql = "SELECT * FROM categories ORDER BY sort_order ASC";
> $parent_result = mysql_query($parent_sql);
change the line to this one and run it again to see the error:
$parent_result = mysql_query($parent_sql) or die(mysql_error());
--
Jimmy
~~
reason and left with no option
other than store the file in DB.
--
Jimmy
Brigands will demand your money or your life, but a woman will demand both.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
at works. My idea was to create two querys, but the results in
from your table definition i didn't see any relation between those two
tables, so most probably it doesnt make sense to make a "join"
operation.
just do it in 2 query, one for each table.
--
Jimmy
~~
ooks like you try to open a file outside the allowed direcory tree.
check your "open_basedir" setting in php.ini config file.
--
Jimmy
Politics SUCKS !!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
e does not exist, open default image
}
--
Jimmy
Bigamy is having one spouse too many. Monogamy is the same.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact t
Hi Ken,
> As we all know, this copies an object in PHP:
> $obj2 = $obj1
> Preferable a way to fix PHP not to copy the object, but the reference.
this will do want you want:
$obj2 = &$obj1;
--
Jimmy
Always keep a cool head and a warm heart
--
Hi Kunal,
> ereg("(.*)", $lineofhtml, $output);
ereg("([^]*)", $lineofhtml, $output);
--
Jimmy
It's not what you have in your life that counts, but who you have in your life
--
PHP General Mailing List (http://www.php.net/)
To
id char in the pattern, and dont forget
to escape the char which has special meaning in regex.
--
Jimmy
Money is what you make it - a servant or a master
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
"\\1",
$myLink);
--
Jimmy
People are like clouds, all unique.
--
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]
February
//
// NOTE: This will only create the tag, without the tag
//
while ( list($key,$value) = each($key_value) ) {
if ($key==$set) {$var.="$value";}
else {$var.="$value";}
}
return $var;
}
?>
--
Jimmy
h position from behind,
using substr_replace() function.
anyway if you insist on using regex:
preg_replace("/(\d{3})(\d{3})(\d{4})/", "(\\1) \\2-\\3", $arr);
--
Jimmy
Everything loses its value when overly used, including love.
--
PHP Gene
you login
to ftp as nobody ;))
> I can't change the file owner too.
only root can chown
You need root access to fix your problem...or re-upload your file using
ftp, not php.
--
Jimmy
A diplomat is man who always remembers a woman's birthday but never her ag
$ApplicationName
if it show the correct value, then you're lucky.
otherwise, you have to parse the HTTP request.
parse_str($QUERY_STRING);
// after this you will have the $NotificationProtocolVersion variable
--
Jimmy
A woman is like your shadow; follow her, she fl
request, all the variable will be in the body/content part,
so it is correct.
--
Jimmy
To Jazz or not to jazz. That's the question. -William Saxpeare-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi louie,
> Im trying this little example of mine, Im trying to include
> a file from a remote webserver but could not possibly get
> it to work..
could be because the url fopen wrapper is disabled.
check the value of this setting in your php.ini file:
allow_url_fopen
Hi Alexander,
> Does PHP support lazy evaluation? Meaning that if:
Yes, it does.
--
Jimmy
Got a dictionary? I want to know the meaning of life.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
ewhere else other than browser, for
example email or printing.
--
Jimmy
All work and no pay makes a housewife.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
n support date range from '1000-01-01' to '-12-31'.
and for calculation, you can use MySQL function:
ADDDATE() or SUBDATE()
--
Jimmy
Bigamy is having one spouse too many. Monogamy is the same.
--
PHP General Mailing List (http://www.php
why you dont want lazy
evaluation in "AND"?
> if i have a statement like
> if (($a == 'a') && ($b == 'b')) blahblahblah();
> and, $a != 'a'.
> why should php even look at the value for $b while evaluating this line?
i believe PHP implement l
revious 'session', not current 'session'.
to prevent this, you should call last_insert_id() only when
your INSERT query executed succesfully.
--
Jimmy
Right thinking leads to right living
--
PHP General Mailing List (http://www.php.net/)
To unsubs
btw, it's interesting that you can use WDDX to help you update your
website easily. would you mind sharing with us how?
Thanks
--
Jimmy
The past is present in the future
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
ight be stands for "number of
recipients", and it is showing 0.
So maybe you should pass the email address in proper string
(enclose it inside quote), like this:
mail("[EMAIL PROTECTED]", "Subject", "Line 1\nLine 2\nLine 3");
--
Jimmy
he previous/last
INSERT query, so that if the INSERT fails then mysql_insert_id()
will intelegently return the correct value.
just my 1 cent
--
Jimmy
The average woman would rather have beauty than brains, because the average man can
see better than he can think.
--
P
his case and never looked for the last_insert_id,
Exactly.
That's why in the first posting (read the first paragraph above),
I told him to exec last_insert_id() or mysql_insert_id() ONLY when
the insert query is SUCCESSFUL.
--
Jimmy
When you lose, don't
m lousy at reading someone's
code...:)
nice discussion, Neil :)
--
Jimmy
Buy Land. They've stopped making it.
--
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]
being parsed/executed.
you always have to pass this __FILE__ and __LINE__ because PHP dont
have the ability to "backtrack" from which file/line a function is
called :(
and dont forget to add "@" sign in front of the PHP's function,
to sur
he
"register_global" setting is off.
otherwise, it's wiser to use getenv('REMOTE_ADDR') instead of
$REMOTE_ADDR directly.
--
Jimmy
Failure doesn't mean you'll never make it. It just means it may take longer.
--
PHP General Mailing Lis
different id)
the question is, why pconnect() print different resource id,
whereas connect() print the same one?
--
Jimmy
You can't quicken the growing of a plant by pulling the leaves
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [
onnection = same host and same username), regardless of
using connect() or pconnect().
but then someone make a small testing, by doing 2 same pconnect()
and printing the returned link_identifier, which surprisingly return 2
different id.
--
Jimmy
There is no greater waste
I'm running PHP 4.1.1 on a Win2K box. If I understand the manual correctly,
the printer functions have been integrated into PHP as of v4.0.4. However,
when I try to call any of the printer functions, nothing works.
Any ideas or suggestions?
TIA
-josh
--
PHP General Mailing List (http://ww
Anyone have any experience resetting the result cursor when using ODBC to
access MSSQL (2000)?
TIA
-josh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm running a PHP/mySQL site which has been hacked twice this week :-(((
I'm not so bad at security but I don't know any active resource to be aware
of hole in PHP and/or MySQL, which forum/newsgroup/list wouldbe advice?
Nice day to all, by the way..
Jimmy
Carpe diem...t
I'm running phpBB not phpNuke and I'm subcribed to Buftraq, hope the otehrs
are more helpful for me...
Jimmy
--
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 adminis
2.0 so I think the release is not serious.
I spent all the day to recover the defaced topics and texts, now I gonna
backup and think to another solution...
Thanks for the reply anyway,
Jimmy
-Message d'origine-
De : Mark Roedel [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 9 nov
Hi all. Is PHP a suitable language for building an online shop? Where would
I go to find out more info on this? Thanks in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wow, thanks for the help guys. Appreciate it.
Here's 2 other Q that popped into my head while researching...
1. I looked at Yahoo! and bCentral, they both charge monthly fees for using
their E-Commerce Tools. Why? I thought it should be a one time thing? Or are
they not providing code, just letti
Hi,
I have 2 arrays:
Array (
[0] => Array (
[0] => 28
[1] => Music
)
[1] => Array (
[0] => 5
[1] => Books
ank'
> WHERE pid=$val");
> }
>
> If anyone has any suggestions for fixing this problem, please let me know :)
> THanks
>
>
> __
> Jason Dulberg
> Extreme MTB
> http://extreme.nas.net
--
Jimmy Brake <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
squirrel mail but I am not to happy with what I am seeing
-- looks very mature but I would prefer something that is OO.
Thanks in advance,
Jimmy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to my knowledge there is nothing in php that does that
good luck
On Thu, 2002-12-26 at 11:17, Sridhar Moparthy wrote:
> Hi Every one,
>
> Do you know how to prepare and display process flow diagrams dynamically
> based on some data from database. I have information about some processes in
> the
just make em use ftp or scp? The problem with
using one of those protocols is that it makes it difficult for the users
to link the files to the proper account/relation/incident and anything
that is a problem for users is usually a problem for me.
Thanks!
Jimmy
--
PHP General Mailing List (http
can you give us some examples of the data ...
the example I would like to see is: based on this information this is
what should be displayed
On Fri, 2002-12-27 at 11:48, Sridhar Moparthy wrote:
> Hi Every one,
>
> I have information about some processes in the database that tells different
> p
IE has some bugs when you have big forms when using []
test with mozilla or netscape
if thats the case -- then errr well umm use what works
On Fri, 2002-12-27 at 12:50, Jeff D. Hamann wrote:
> I have a monster form (really a funky grid - hey the client is always right)
> that does not display
On Mon, 2002-12-30 at 06:59, Sridhar Moparthy wrote:
> Hi Jimmy,
>
> Thank You for the your reply. Here is the example.
>
> If
> 1. Jobs 'B' and 'C' starts immediately after Completion of job'A'
> 2. Job 'D' starts after completion o
Hi,
I have a file upload page that accepts file uploads from pretty much
every browser and os EXCEPT any browser on mac os 9. I have no idea
why, any of you ever have problems with file uploads on mac os 9? How
did you solve the issue.
--
Jimmy Brake <[EMAIL PROTECTED]>
--
PHP G
Hi.
My problem is the characters in spanish:
example:
Construcción (Data of MsSQL Server)
Result in web with PHP:
Construcci¢n
Thanks you.
Prompyme a su servicio
-
Prompyme a su servicio.
"El Estado su mejor cliente, visite la página de
Hi!
I was wondering if anyone has vni -> unicode conversion script.
Thanks Jimmy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
idea :) )
but running a php script versus a bash or perl or whatever
script/program is no more a concern than those ( always have security in
mind )
On Tue, 2003-03-04 at 13:07, John Taylor-Johnston wrote:
> Cal, Liam, Jimmy,
> Thanks. If this is a serious security hazard, could you show m
hi mark!
i import data all the dang time and this is what i use (more or less)
Insert($query); // i use a class for my mysql connections
}
function csv_parse($data, $separator)
{
$quote = '"';
$values = array();
$toggle = 0;
$len = strlen($data);
$count =
where are you storing the information that you are cleaning once it is
cleaned?
are you appending it to a variable in the script?
On Wed, 2003-03-12 at 00:26, pgcd wrote:
> Hi,
> I'm trying to write a script to do some basic XML validation - nothing
> fancy, basically I just close open tags and c
yes -- i connect to oracle and mysql simultaneously ..
On Wed, 2003-03-19 at 15:21, Iwan van Kanten wrote:
> Is it possible to connect to 2 different databases??
> 2 different dtabase typs I mean
> postgresql and Mysql
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
other browsers on linux are fine.
This is what I use to set the cookie.
$rand = md5(uniqid(rand()));
setcookie("sessid", $rand, time()+43200, "/");
Any ideas?
Thanks!
Jimmy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thanks ... lots of my customers use entourage ...
On Mon, 2003-03-31 at 20:53, Lowell Allen wrote:
> > From: Jimmy Brake <[EMAIL PROTECTED]>
> >
> > The cookies i set for people using Internet Explorer on mac (OS X or mac
> > os 8-9) are not staying alive as long
-04-04 at 12:26, Dennis Gearon wrote:
> How many people are using native vs. phplib sessions, vs. their own/homegrown
> sessions?
>
> The archives show a LOT of problems with native sessions.
--
Jimmy Brake <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.ne
was worth the trouble/overhead).
>
> Can anyone offer an opinion on this? Is persistence with jsp that much
> easier compared to PHP? And if true persistence is possible is it all
> it's cracked up to be?
>
> I've often dreamed of being able to have true persistenc
;--enable-sigchild'
'--enable-track-vars' '--enable-wddx' '--with-mysql'
'--with-jpeg-dir=../jpeg-6b/' '--with-t1lib=../t1lib-1.3.1'
'--enable-wddx' '--with-apache=../apache_1.3.27'
'--with-mysql=/usr/local/mysql/
for file maker pro (windows/mac) -- word (windows/mac)
function make_safe($text)
{
$text = preg_replace("/(\cM)/", " ", $text);
$text = preg_replace("/(\c])/", " ", $text);
$text = str_replace("\r\n", " ", $text);
$text = str_replace("\x0B", " ", $text);
$t
how much does the service cost?
or am misunderstanding the class?
why do you have to enter a password?
On Wed, 2002-10-30 at 11:31, Manuel Lemos wrote:
> Hello,
>
> On 10/30/2002 04:03 PM, Michael Zornek wrote:
> > I've written a nice php/mysql site that let's you search for hospitals and
> >
I've been looking for a way to work with stdin/stdout for a mod_rewrite's
rewritemap.
There's a working example in Perl, (just returning the input)
#!/usr/bin/perl
$| = 1;
while () {
print $_;
}
I've been trying to achieve this with fopen() read and write the
php://stdin & php://stdout
to let me reference. ?? I am doing my project. I need this
information in urgent. Please friendly give me advice here . thanks
Jimmy
I have insert some text with space to mysql DB with varchar()
When I use mysql_fetch_array function to retrieve the data from DB . I found only the
first session text can be shown . It means if any space there . It will split like
session by session. for example. my DB have a text "Hello World"
a form its ok, but when I export that data to a csv
it gets ugly.
http://www.robelle.com/smugbook/ascii.html
Thanks in advance!
Jimmy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
running 4.x any ideas?
Jimmy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yep thats it ...
On Wed, 2002-07-17 at 18:02, John Holmes wrote:
> Works fine for me on 4.2.1
>
> You have to have at least 4.2.0, do you?
>
> ---John Holmes...
>
> > -Original Message-
> > From: Jimmy Brake [mailto:[EMAIL PROTECTED]]
> > Sent: Wed
ies within the month or two months.
Cheers
Jimmy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
m2){
if(get_class($param2) =='stdClass') $param2 = NULL; // get_class
might return stdclass not sure
}
?>
/ Jimmy
--
Best regards,
Richardmailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
etch_array($result) ... it worked just fine.
So what is the difference?
/Jimmy
Yo!
I'm playing a little bit with sessions for the moment and I get a really scary
errormessage:
Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m (2) in
h:\program\apache\htdocs/boa/sessionTest.php on line 5
Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O
path' in your php.ini.
> be careful with the slashes you use. as you can see from
> the error msg by default it's '/' but windows uses '\'.
>
> good luck
> Johannes
>
>
> "Jimmy Bäckström" <[EMAIL PROTECTED]> schrieb im Newsbeitr
Yo!
I'm sending this call for help once again, since I didn't get an answer to my problem
last time.
I'm working a little with sessions, but I get a message like this:
Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
(2) in h:\program\apache\htdocs/boa/sessionTest.p
Shu!
When I try to use the function ImageGif() I get the following error:
Warning: ImageGif: No GIF support in this PHP build...
I'm using win2k with php4 width the gd module enabled in php.ini
What can I do to make this problem go away?
Thanks in advance
/Broder
Shu!
I am currently working on a site where I want to randomly show pictures. I am using
sessions to save the id's of the pictures that a user has seen during his/hers visit.
My first question is: Can I use an array as a session variable? like this:
$arr = array(1, 2, 3, 4, 5);
session_start();
Shu!
I need some help here.
I have a script where I want to compare two arrays with eachother, and return one
value from that does not exists in both arrays. I have an array of pictures id number
created from a database query. I use sessions to save id numbers of pictures into an
array. I want
Yo!
I'm thinking of writing a bulletin board and I wonder about threads. I want the board
to be built on threads but I don't know how to do it. I want it to look something like
this:
subject 1
|
|__ reply1 to 'subject 1'
| |
| |__ reply1 to 'reply1 to subject 1'
|
Hi,
I was wondewring if someone know the reason to the error below,
I'm no Unix guru and my sysadm says he cant get ldap to work due to this,
is there anyone who tell me what to tell him to get it to work?
greetings
Jimmy
Lund Sweden
//ERROR ENCLOSED BELOW.
gcc -DSOLARIS2=260 -I/usr/loca
Hey guys!
I'm writing a guestbook with mysql. My probblem is that when user enter at long word
like blablablablablablablablablablablabla my html-tables gets screwed up. If someone
is just fooling around the whole page design can be destroyed. I want to know how I
can make sure that no word is l
15 on solaris)
Please help me out on this one.
Best wishes
Jimmy Lantz
Sweden
Yes, thank you you're right this is exactly what it was, I used
Dreamweaver on a mac to edit the files, but now if I encounter parse
error I convert them with BBEdit.
Thank you.
Jimmy Lantz
>I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get
>parse errors on li
Hi, I wonder if there's a way to get the same result as with
call_user_func_array()on 4.0.1pl2 .
I need to do the following :
foreach($formArray as
$arrays){
foreach($arrays as $key =>
$value){
call_user_func_array
ing, I cant
update since it's not my own server.
Thanx
Jimmy from Sweden
--
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]
Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske du kan
använda en dold
variabel via html-formuläret istället och använda den i case satsen?
Men det svarar ju inte på din fråga men lycka till.
/ iImmy
Martin Skjöldebrand wrote:
> Going grey haired again. In this code onl
Hi,
I'm looking into the new version of PHP it says in the changelog
"Highly improved performance with file uploads "
Has there been any benchmarking done on this?
/ Jimmy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$HTTP_PUT_FILE['path_translated']
The full path of the proposed upload like
/usr/home/foo/bar/public_html/mytest/filename.htm
$HTTP_PUT_FILE['size']
The size, in bytes, of the uploaded file.
$HTTP_PUT_FILE['tmp_name']
Temp name something like /tmp/hfdhjfufd8733
My on
"johnny1b1g" <[EMAIL PROTECTED]> wrote:
?
Well I guess I could try to help you if you elaborate your question a bit
further.
/ Jimmy
Start with RTFM :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Ma
Hi,
I'm planning on using userinput as a part of path to read (horrific I know :)
So to make this userinput a bit more secure I'm thinking to use
$path = escapeshellarg($path);
$path = str_replace("../","",$path);
I'm thinking to use a basedir in a constant something like
/usr/home/userdir (thi
Hi,
started playing with Mcrypt and just wanted to ask which encryption method
makes the stronger encryption?
(I can supply the necesary keylength).
Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :)
So what do I need it for? I'm going to use it encrypting files, sizes
vari
Thanx for the suggestions!
Someone mentioned that I could use MD5 and then encrypt the hash,
how would I ever decrypt that? Is'nt MD5 a 1-way thing only?
Another question?
Should I go for bigger keylength or bigger blocksize or both? What makes
for the best encryption?
/ Jim
(and before someon
>I believe that twofish has been successfully broken, so use blowfish
>instead. Typically, for encrypting files you will use an algorithm like
>blowfish in cbc mode (as opposed to ebc mode) but I don't know if Mcrypt
>supports this. Also, when creating the hash of the file, it is probably best
>
Hi,
(Unlink(file) == rm file) ? (ignore this mail):(explain diffs);
Does PHP unlink function handle deletion of files equally as the "rm"
command on the system in my case FreeBSD.
Or does it involve caching/handling files in any different way?
/ Jim
--
PHP General Mailing List (http://www.ph
1 - 100 of 132 matches
Mail list logo