Re: [PHP] logic for grabbing what we need from user-input addresses for AVS?

2008-10-18 Thread Robert Cummings
On Sat, 2008-10-18 at 22:56 -0600, Govinda wrote: > Hi all > > This is not exactly PHP, but an issue that we have to work out in code > (whatever we use) - > I am working on a shopping cart site which will have orders from any > country. > > To cut down on fraudulent orders, our cc processor

Re: [PHP] logic for grabbing what we need from user-input addresses for AVS?

2008-10-18 Thread Waynn Lue
AVS generally only exists for us and canada and parts of the uk, if I remember correctly. Usually they're just looking for the beginning part of the street address, not the concatenation or anything else like that. No need for apartment numbers, for example if you're just looking at avs. If you're

[PHP] logic for grabbing what we need from user-input addresses for AVS?

2008-10-18 Thread Govinda
Hi all This is not exactly PHP, but an issue that we have to work out in code (whatever we use) - I am working on a shopping cart site which will have orders from any country. To cut down on fraudulent orders, our cc processor (whatever we call them), to enable "Address Verification Syste

Re: [PHP] Re: Form Loop

2008-10-18 Thread Rick Pasotto
On Sat, Oct 18, 2008 at 08:07:26PM -0500, Shawn McKenzie wrote: > Terry J Daichendt wrote: > > I'm trying to create a form with a loop. I need to append a value to a > > field name each time through the loop. For Instance: > > > > while ($row = mysql_fetch_assoc($result)) { > > $x=1; > > e

[PHP] Re: Form Loop

2008-10-18 Thread Shawn McKenzie
Terry J Daichendt wrote: > I'm trying to create a form with a loop. I need to append a value to a > field name each time through the loop. For Instance: > > while ($row = mysql_fetch_assoc($result)) { > $x=1; > echo "";echo " name='quantity_' size='2' value='$row[qty]' />"; > echo

[PHP] Form Loop

2008-10-18 Thread Terry J Daichendt
I'm trying to create a form with a loop. I need to append a value to a field name each time through the loop. For Instance: while ($row = mysql_fetch_assoc($result)) { $x=1; echo ""; echo "value='$row[qty]' />"; echo ""; $x++; } the name value quantity needs the value

Re: [PHP] Convert video to FLV like youtube

2008-10-18 Thread Ashley Sheridan
On Sat, 2008-10-18 at 23:23 +0200, Nitsan Bin-Nun wrote: > Straightforward and useful, I have added it to the "videos conversion" > snippets directory ;) > > Sokot Sameh, > Nitsan Bin-Nun > > On Sat, Oct 18, 2008 at 10:45 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > > > 2008/10/18 Ryan S <[EMAIL

Re: [PHP] paging at which level

2008-10-18 Thread Ashley Sheridan
On Sat, 2008-10-18 at 12:54 +0200, Alain Roger wrote: > Hi, > > i would like to know what is the best approach for paging ? > usually i use PEAR and page thanks their table library, but to avoid high > transfer of data from DB to PHP page it is better to do the paging at > database level. > I woul

Re: [PHP] Convert video to FLV like youtube

2008-10-18 Thread Nitsan Bin-Nun
Straightforward and useful, I have added it to the "videos conversion" snippets directory ;) Sokot Sameh, Nitsan Bin-Nun On Sat, Oct 18, 2008 at 10:45 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > 2008/10/18 Ryan S <[EMAIL PROTECTED]>: > > Hey! > > > > Been googleing for a way to convert video to

Re: [PHP] Convert video to FLV like youtube

2008-10-18 Thread Dotan Cohen
2008/10/18 Ryan S <[EMAIL PROTECTED]>: > Hey! > > Been googleing for a way to convert video to flv just like youtube and came > accross the flv SDK kit, unfortunately it seems to only support C++, Delphi > and C# > > > Have any of you guys come accross a php script that does this? any links, > p

Re: [PHP] Re: what's the difference in the following code?

2008-10-18 Thread Yeti
> Wrong. They are equivalent. The second is probably just easier to follow > with a clearly defined default value outside the conditional block. Well, leaving out the default value at the 2nd if statement makes a difference and that's what I did. Here is the code I changed again .. Set to $_GET['

Re: [PHP] Convert video to FLV like youtube

2008-10-18 Thread Robert Cummings
On Sat, 2008-10-18 at 09:54 -0700, Ryan S wrote: > Hey! > > Been googleing for a way to convert video to flv just like youtube and came > accross the flv SDK kit, unfortunately it seems to only support C++, Delphi > and C# > > > Have any of you guys come accross a php script that does this? a

Re: [PHP] paging at which level

2008-10-18 Thread Robert Cummings
On Sat, 2008-10-18 at 12:54 +0200, Alain Roger wrote: > Hi, > > i would like to know what is the best approach for paging ? > usually i use PEAR and page thanks their table library, but to avoid high > transfer of data from DB to PHP page it is better to do the paging at > database level. If you

Re: [PHP] Re: what's the difference in the following code?

2008-10-18 Thread Robert Cummings
On Sat, 2008-10-18 at 08:44 -0700, Yeti wrote: > I would understand it if it was like this .. > > $search = isset($_GET['search']) ? $_GET['search'] : ''; > # versus > if (isset($_GET['search'])) { $search = $_GET['search']; } > ?> > > In the first statement $search would either be set to $_GET[

Re: [PHP] Convert video to FLV like youtube

2008-10-18 Thread Daniel Brown
On Sat, Oct 18, 2008 at 1:02 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > >FFMPEG is the standard now. err not just "now." Not sure why I typed that. -- Founder, CEO - Parasane, LLC http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Convert video to FLV like youtube

2008-10-18 Thread Daniel Brown
On Sat, Oct 18, 2008 at 12:54 PM, Ryan S <[EMAIL PROTECTED]> wrote: > > Been googleing for a way to convert video to flv just like youtube and came > accross the flv SDK kit, unfortunately it seems to only support C++, Delphi > and C# FFMPEG is the standard now. -- Founder, CEO - Parasane

[PHP] Convert video to FLV like youtube

2008-10-18 Thread Ryan S
Hey! Been googleing for a way to convert video to flv just like youtube and came accross the flv SDK kit, unfortunately it seems to only support C++, Delphi and C# Have any of you guys come accross a php script that does this? any links, pointers and code would be appreciated. TIA, R -

Re: [PHP] what's the difference in the following code?

2008-10-18 Thread Dotan Cohen
2008/10/17 Lamp Lists <[EMAIL PROTECTED]>: > I'm reading "Essential PHP Security" by Chris Shiflett. > > on the very beginning, page 5 & 6, if I got it correct, he said this is not > good: > > $search = isset($_GET['search']) ? $_GET['search'] : ''; > > and this is good: > > $search = ''; > if (is

Re: [PHP] Re: what's the difference in the following code?

2008-10-18 Thread Yeti
I would understand it if it was like this .. In the first statement $search would either be set to $_GET['search'] or an empty string, whereas in the second statement $search would only be set, if there is a $_GET['search'] //A yeti -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Securing AJAX requests with PHP?

2008-10-18 Thread Jay Moore
Yeti wrote: Ok, but how safe are tokens? Thinking of man in the middle attacks they do not make much sense, do they? That's what I was thinking too. If I'm deleting an entry from a database with AJAX, I don't want someone looking at my Javascript and saying, "Hmm, all I need to do is pass t

Re: [PHP] Securing AJAX requests with PHP?

2008-10-18 Thread Yeti
Ok, but how safe are tokens? Thinking of man in the middle attacks they do not make much sense, do they? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: what's the difference in the following code?

2008-10-18 Thread Carlos Medina
Hi, why say Chris Shiflett that this is not good: because security problems or because you cannot see very good what the code do?. Regards Carlos Lamp Lists schrieb: I'm reading "Essential PHP Security" by Chris Shiflett. on the very beginning, page 5 & 6, if I got it correct, he said this

Re: [PHP] Securing AJAX requests with PHP?

2008-10-18 Thread Bastien Koert
On Fri, Oct 17, 2008 at 7:14 PM, Yeti <[EMAIL PROTECTED]> wrote: > >but whose counting :-)) > > Someone is for sure. Maybe the scheduler? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Security is a mindset and if your data is not

Re: [PHP] paging at which level

2008-10-18 Thread Richard Heyes
> usually i use PEAR and page thanks their table library Table library? Y'know there's a dedicated paging library in PEAR, imaginitively called "Pager". > , but to avoid high > transfer of data from DB to PHP page it is better to do the paging at > database level. > I would like to know what is y

[PHP] paging at which level

2008-10-18 Thread Alain Roger
Hi, i would like to know what is the best approach for paging ? usually i use PEAR and page thanks their table library, but to avoid high transfer of data from DB to PHP page it is better to do the paging at database level. I would like to know what is your point of view on this topic and what do

Re: [PHP] web shot script

2008-10-18 Thread paragasu
i found a few website provide this service but i don't remember the name. Maybe html2png is what u looking for http://marginalhacks.com/Hacks/html2jpg/ On 10/18/08, Nitsan Bin-Nun <[EMAIL PROTECTED]> wrote: > In general thats what I would do: > Install firefox on the server, > Open FF, take a sc

Re: [PHP] web shot script

2008-10-18 Thread Nitsan Bin-Nun
In general thats what I would do: Install firefox on the server, Open FF, take a screen shot, paste it to whatever graphic editor you have, Save the current image to a directory (This idea can be done in PHP, more than that, I have already wrote it, if I were able to find it I would have been attac

[PHP] web shot script

2008-10-18 Thread Joey
Hello All, Does anyone know of a script to capture web pages and store the image? Trying to see all of my sites screenshots and have it updated on occasion. Thanks! Joey