On Sun, Oct 19, 2008 at 11:12 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Sun, 2008-10-19 at 23:02 -0400, Andrew Ballard wrote:
>> On Sat, Oct 18, 2008 at 2:34 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>> >
>> > On Sat, 2008-10-18 at 08:44 -0700, Yeti wrote:
>> > > I would understand i
On Sun, 2008-10-19 at 23:02 -0400, Andrew Ballard wrote:
> On Sat, Oct 18, 2008 at 2:34 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> > 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[
On Sat, Oct 18, 2008 at 2:34 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> 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
On Sun, 2008-10-19 at 19:12 -0500, Micah Gersten wrote:
> Don't use cookies, use sessions.
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
>
>
>
> Ben Stones wrote:
> > I've read a few videos on cookie security and it makes sense that people can
>
Don't use cookies, use sessions.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ben Stones wrote:
> I've read a few videos on cookie security and it makes sense that people can
> modify cookie values which is a problem I'm trying to figure out to *try*
> and
If you're using file_get_contents, why aren't you using file_put_contents?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Nitsan Bin-Nun wrote:
> Hi,
> I have this function:
>
>
> function saveImageFromUrl($image_url, $image_save)
> {
> $cont
On Sun, Oct 19, 2008 at 6:46 PM, Nitsan Bin-Nun <[EMAIL PROTECTED]> wrote:
>
> As you can see it fetches the images contents and write them to new image on
> my local directory.
> Is this is the best way to do this? (I don't have curl)
Do you have GET or wget on your server, with exec() privil
On Oct 20, 2008, at 12:46 AM, Nitsan Bin-Nun wrote:
Hi,
I have this function:
function saveImageFromUrl($image_url, $image_save)
{
$contents = file_get_contents($image_url);
$fp = fopen($image_save, 'w');
fwrite($fp, $contents);
fclose($fp);
}
As you can
Hi,
I have this function:
function saveImageFromUrl($image_url, $image_save)
{
$contents = file_get_contents($image_url);
$fp = fopen($image_save, 'w');
fwrite($fp, $contents);
fclose($fp);
}
As you can see it fetches the images contents and write the
On Sat, Oct 18, 2008 at 11:28 AM, Jay Moore <[EMAIL PROTECTED]> wrote:
> 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
Chris wrote:
That works, but shuffle() is cleaner and then you can echo things
out with a foreach() expression.
http://www.php.net/manual/en/function.shuffle.php
If you're doing a shuffle inside a loop, it's going to be even slower.
Might not be an issue for the OP but after your array gets
Reese wrote:
Andrew Barnett wrote:
I ended up using an example from the PHP website.
Just extended the array to the number of lines I needed.
That works, but shuffle() is cleaner and then you can echo things
out with a foreach() expression.
http://www.php.net/manual/en/function.shuffle.php
On Sun, 2008-10-19 at 11:26 -0400, Robert Cummings wrote:
> On Sun, 2008-10-19 at 10:03 +0100, Ashley Sheridan wrote:
> > On Sun, 2008-10-19 at 01:10 -0400, Robert Cummings wrote:
> > > On Sat, 2008-10-18 at 22:56 -0600, Govinda wrote:
> > > > Hi all
> > > >
> > > > This is not exactly PHP, but a
On Sun, 2008-10-19 at 16:34 +0200, Martin Zvarík wrote:
> Ryan S napsal(a):
> > Hey,
> >
> > this the first time I am actually working with "tags" but it seems quite
> > popular and am adding it on a clients requests.
> >
> > By tags I mean something like wordpress' implementation of it, for exa
On Sun, 2008-10-19 at 09:31 -0500, Shawn McKenzie wrote:
> Rick Pasotto wrote:
> > 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.
Andrew Barnett wrote:
I ended up using an example from the PHP website.
Just extended the array to the number of lines I needed.
That works, but shuffle() is cleaner and then you can echo things
out with a foreach() expression.
http://www.php.net/manual/en/function.shuffle.php
Reese
--
P
Andrew Barnett wrote:
I ended up using an example from the PHP website.
You're randomizing the whole array which when it gets large, will be
noticeable.
If you're using zero based arrays (like above - 'Neo' is item '0',
'Morpheus' is item '1'), I'd suggest something like this:
$input = a
On Sun, 2008-10-19 at 10:03 +0100, Ashley Sheridan wrote:
> On Sun, 2008-10-19 at 01:10 -0400, Robert Cummings wrote:
> > 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) -
>
On Oct 18, 2008, at 11:10 PM, Robert Cummings wrote:
On Sat, 2008-10-18 at 22:56 -0600, Govinda wrote:
To cut down on fraudulent orders, our cc processor (whatever we call
them), to enable "Address Verification System (AVS)", ...
The
docs make this clear that they want: "The numeric port
Ryan S napsal(a):
Hey,
this the first time I am actually working with "tags" but it seems quite
popular and am adding it on a clients requests.
By tags I mean something like wordpress' implementation of it, for example when
an author writes an article on babies the tags might be
baby,babies,
Rick Pasotto wrote:
> 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)) {
>
>
>>
>> the name value quantity needs the value of x appended to it. quantity_1,
>> quantity_2 etc.
>>
> I recommend using array notation instead of appending $x to the element
> name. If you are using POST, when the form is submitted the values are
> available in the $_POST['quantity'] array. You
> ...
The subversion manual is the best place to learn about it. Section 2
tells you about setting up a repository.
http://svnbook.red-bean.com/
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org
--
PHP General Mailing List (http://www.php.net/)
To unsubs
I use ffmpeg (unix commandline) to do the video converting..
ffmpeg needs to be properly re-compiled with mp3 support (for audio in
the flv files); theres tutorials on google on how to do that.
Are you on shared hosting? Most wont allow any kind of video conversion
on shared hosting.
I had t
Apologies for posting a monthly/yearly recurring theme here..
If someone can add links to previous discussions relating to the same,
that could help too.
I'd like to use subversion on a home unix server of mine to keep track
of my projects.
I dont even know what i need for a good intergration
> I'm still a little wet behind the ears, nih?!
"Not Invented Here"
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 2008-10-19 at 10:23 +0100, Richard Heyes wrote:
> > I've not used a library to achieve paging
>
> NIH syndrome? ;-)
>
I'm still a little wet behind the ears, nih?!
Ash
www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
> I've not used a library to achieve paging
NIH syndrome? ;-)
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 2008-10-19 at 01:10 -0400, Robert Cummings wrote:
> 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
On Sun, 2008-10-19 at 14:10 +0530, Sudheer 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_' siz
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 "";
$x++;
}
the name va
31 matches
Mail list logo