RE: [PHP] Securing your Sites

2007-12-17 Thread Dan Parry
-Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: 17 December 2007 16:00 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Securing your Sites Funny, they should all be PHPS, source only and my last check only did them on the source viewing. None

RE: [PHP] Securing your Sites

2007-12-17 Thread Dan Parry
-Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: 17 December 2007 16:00 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] Securing your Sites Funny, they should all be PHPS, source only and my last check only did them on the source viewing. None

RE: [PHP] counting with leading zeros

2007-09-28 Thread Dan Parry
Can I please interject and say that I vastly respect Tedd(ddd) and Rob(bb?) and their opinions Dsn -- Dan Parry Senior Developer Virtua Webtech Ltd   Company Number: 5078356 Vat Number: 827044536   [EMAIL PROTECTED] www.virtuawebtech.co.uk 01745 354924 -Original Message- From

RE: [PHP] Access name of variable in $_POST array

2007-09-22 Thread Dan Parry
-Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: 21 September 2007 23:27 To: Stut Cc: Eric Lommatsch; php-general@lists.php.net Subject: Re: [PHP] Access name of variable in $_POST array On 9/21/07, Stut [EMAIL PROTECTED] wrote: Please include the list when

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Dan Parry
-Original Message- From: Jeff Cohan [mailto:[EMAIL PROTECTED] Sent: 23 September 2007 00:02 To: php-general@lists.php.net Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads Chris wrote: [error] = 2 And also gives you an error code. Yes, I know and knew that.

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Dan Parry
-Original Message- From: Jeff Cohan [mailto:[EMAIL PROTECTED] Sent: 23 September 2007 02:45 To: php-general@lists.php.net Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads Dan Parry wrote: I might be wrong but this would be classed as 'exploitable

RE: [PHP] MAX_FILE_SIZE not working with file uploads

2007-09-22 Thread Dan Parry
-Original Message- From: Ray [mailto:[EMAIL PROTECTED] Sent: 23 September 2007 02:25 To: php-general@lists.php.net Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads On Saturday 22 September 2007 7:44:55 pm Jeff Cohan wrote: Dan Parry wrote: I might be wrong

RE: [PHP] A way to stop spam on this list

2006-06-19 Thread Dan Parry
snip just wait till we have spambots with AI and emotion subroutines ;-) /snip It'll be worse if we get spammers with actual intelligence... -- Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -- No virus found in this outgoing message. Checked by AVG Free Edition

RE: [PHP] regex problem

2006-06-01 Thread Dan Parry
for text that does not start with _a infront of the number? Thank you for any help, Merlin [/snip] How about this: (\w)+(_a){1}(\w)+\.htm$ Worked for me :) HTH Dan -- Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -- No virus found in this outgoing message

RE: [PHP] Why does this preg_replace function not work?

2006-05-26 Thread Dan Parry
out :) HTH Dan -- Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Dave M G [mailto:[EMAIL PROTECTED] Sent: 26 May 2006 10:26 To: php-general@lists.php.net Subject: [PHP] Why does this preg_replace function not work? PHP List

RE: [PHP] redirect using php

2006-04-05 Thread Dan Parry
'; } else { // no headers sent... much nicer header redirect header('location: ' . $url); die(); } } ? HTH Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk

RE: [PHP] php, sessions and ie

2006-04-04 Thread Dan Parry
a DB to store sessions... Much nicer HTH Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Dallas Cahker [mailto:[EMAIL PROTECTED] Sent: 04 April 2006 16:19 To: php-general

RE: [PHP] private $foo

2006-03-29 Thread Dan Parry
I can see a pattern emerging here... Chaos? You had chaos? All we had was this sodding great explosion... :-) Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Duncan Hill

RE: [PHP] Reading data from SELECT in PHP

2006-03-22 Thread Dan Parry
Maybe use Jacascript to create and populate hidden inputs? They will show up in the $_POST array then HTH Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Lorca [mailto:[EMAIL

RE: [PHP] Inserting data at runtime (php,mysql)

2006-03-21 Thread Dan Parry
[snip] $conn=mysql_connect( );/*with the required parameters*/ if(!conn) { [/snip] You are testing conn in your if condition... should that not be $conn? Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk

RE: [PHP] Inserting data at runtime (php,mysql)

2006-03-21 Thread Dan Parry
- Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: sathyashrayan [mailto:[EMAIL PROTECTED] Sent: 21 March 2006 12:45 To: Dan Parry; php-general@lists.php.net Subject: Re: [PHP] Inserting data at runtime (php

RE: [PHP] Re: setcookie security concerns [medium]

2006-03-17 Thread Dan Parry
The value doesn't show up in the URL as you are redirecting the user back to the referring URL... so only the referrer will be shown (unless the redirecting script breaks :) ) Dan - Dan Parry Senior Developer Virtua Webtech Ltd http

RE: [PHP] $_POST to function?

2006-02-24 Thread Dan Parry
Why are you passing the POST array? As it's superglobal why not just work directly on it within the function? Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Jason Gerfen

RE: [PHP] Session problems [SOLVED]

2006-02-22 Thread Dan Parry
() evaluated to false but the number of records is 1 return true /solution And there we have it... nearly drove me nuts but I got there in the end Cheers Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original

RE: [PHP] Re: need a php multiple/mysql choice quiz

2006-02-20 Thread Dan Parry
what kind of mushrooms? rainbow colored ones =) Think they're illegal in the UK... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session problems

2006-02-16 Thread Dan Parry
on line 0 I've contacted my hosting company regarding this but currently they don't seem to know the cause I've Googled but I can't find anything I can use Thanks in advance :-) Dan - Dan Parry Senior Developer Virtua Webtech

RE: [PHP] Session problems

2006-02-16 Thread Dan Parry
: [PHP] Session problems What is the code that generates this? -Original Message- From: Dan Parry[EMAIL PROTECTED] Sent: 16/02/06 4:50:51 PM To: php-general@lists.php.netphp-general@lists.php.net Subject: [PHP] Session problems Hi all I've been

RE: [PHP] Clear POST variables

2006-02-16 Thread Dan Parry
Submit the data to a page that just inserts it into the DB (validating it first, natch) then do a header(location) to the thank you (or whatever) page This also fixes 'page expired' warnings HTH Dan -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: 16 February 2006

RE: [PHP] Converting piped data to values from html to phpcgi

2006-02-13 Thread Dan Parry
This works for me: ? $temp = 'sender_name=zedleon[EMAIL PROTECTED] sender_msg=This+is+a+testSubmit=Submit'; $arr = array(); foreach (explode('', $temp) as $v) { $split = explode('=', $v); // urldecode content for readability $arr[$split[0]] = urldecode($split[1]); //

RE: [PHP] Re: Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Dan Parry
Also when specifying the field list (and table name) it may be a better idea to wrap the values in backticks (`) rather than quotes (') Always works for me Dan -Original Message- From: Barry [mailto:[EMAIL PROTECTED] Sent: 10 February 2006 10:31 To: php-general@lists.php.net Subject:

RE: [PHP] suggest a cart...

2006-02-08 Thread Dan Parry
Zen Cart http://www.zen-cart.co.uk/ Open source and very well supported... lots of user contributions too Dan -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 08 February 2006 13:08 To: php-general@lists.php.net Subject: [PHP] suggest a cart... Hi, I am looking for a

RE: [PHP] suggest a cart...

2006-02-08 Thread Dan Parry
(I hope this message works... mail server has been playing up) Zen Cart http://www.zen-cart.com Open source, great support and user contribs HTH Dan -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 08 February 2006 13:08 To: php-general@lists.php.net Subject: [PHP]

RE: [PHP] Adventures in Cookies

2006-01-23 Thread Dan Parry
I would have thought this was standard behaviour... Different browsers [can] store their cookies in different locations on the drive don't they? It's my experience that cookies are always handled autonomously and asynchronously by browsers (ie set a cookie in one browser and another won't see it)

RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Dan Parry
Or my sense of sailing to deadlines :) -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: 18 January 2006 16:11 To: php-general@lists.php.net Subject: Re: [PHP] help me pllzz Jay Blanchard wrote: [snip] i am having 2 combo box one for city another one for

RE: [PHP] Image size?

2006-01-11 Thread Dan Parry
I would say this is what you need http://uk2.php.net/manual/en/function.getimagesize.php Dan -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: 11 January 2006 12:22 To: php-general@lists.php.net Subject: [PHP] Image size? Hello, Can I get pixel sizes from a

RE: [PHP] include() problem

2006-01-09 Thread Dan Parry
Check this out http://uk2.php.net/reserved.variables DOCUMENT_ROOT will give you the root of your site -Original Message- From: Nuno Trancoso [mailto:[EMAIL PROTECTED] Sent: 09 January 2006 14:56 To: php-general@lists.php.net Subject: [PHP] include() problem This may sound dumb, but i

[PHP] Sessions...

2005-12-22 Thread Dan Parry
Hi I'm having some trouble with sessions and was wondering if anyone could give me some insight Background: We have experienced some difficulties previously with sessions which were fixed(ish) by using ini_set(session.save_handler, files); and manually dropping a cookie with the

RE: [PHP] can someone explain this query to me

2005-12-20 Thread Dan Parry
WHERE id IN (1,2,3) Is the same as saying WHERE id = 1 OR id = 2 OR id = 3 Few more details in this link http://www.w3schools.com/sql/sql_in.asp HTH Dan -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 20 December 2005 12:07 To: php-general@lists.php.net Subject: [PHP]

RE: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Dan Parry
[snip] In short, it cannot really be trusted. notice the last 7 words [/snip] Any external data introduced into a script can't be trusted... including $_GET and $_POST That doesn't mean they shouldn't be used... just used carefully Also if you want to use the IP address maybe

RE: [PHP] PHP/MySql noob falls at first hurdle

2005-12-09 Thread Dan Parry
Hi [snip] ? while($ouput_row = mysql_fetch_array($result)) { ? [/snip] Try: while($ouput_row = mysql_fetch_array($result, MYSQL_ASSOC)) [snip] ?=$output_row[projTitle]?br / [/snip] You have missed the ; (semicolon) after [projTitle] also Dan -Original Message- From: Paul

RE: [PHP] Re: PHP/MySql noob falls at first hurdle

2005-12-09 Thread Dan Parry
[snip] Hi Paul, Why you are closing your connection before finishing your work on the database? Zareef Ahmed [/snip] I think Zareef has spotted the most important problem here Try removing the mysql_close() and trying it Dan -Original Message- From: Paul Jinks [mailto:[EMAIL

RE: [PHP] Browser Control Help

2005-12-05 Thread Dan Parry
, Chirantan Ghosh [EMAIL PROTECTED] wrote: Hi Jason, You sound offended...Happy Christmas to you too! If you really wanted to know what I was addressing please read what Dan (Parry) wrote. Keep smiling after all its Dec, C - Original Message - *From:* Jason Petersen [EMAIL PROTECTED