On Wed, 2009-06-03 at 21:58 -0700, Raymond Irving wrote:
> Hi Ashley,
>
> Thanks for the feedback. See my comments below:
>
> > Doesn't work in the majority of browsers out there at the
> > moment.
>
> I've tested it in IE7, FF3, Safari3 and Opera9. Which Browsers have you
> tested it in?
>
Off the top of my head, would strtotime work?
ie
strftime("%j",strtotime($row['UpdateDate']))
-Original Message-
From: John Comerford [mailto:jo...@optionsystems.com.au]
Sent: 04 June 2009 07:10
To: php-general@lists.php.net
Subject: [PHP] Timestamps and strftime
Hi,
I am having a pro
Hi,
I am having a problem trying to use a date that I take from a MySQL
database. The field is defined as a timestamp in the database. I
extract it using PDO and I am trying to use the value with strftime as
follows:
foreach ($stmt->fetchall(PDO::FETCH_ASSOC) as $row) {
echo strftime("%j"
Can anyone help me to install APC in Xampp on windows ?
Hi Ashley,
Thanks for the feedback. See my comments below:
> Doesn't work in the majority of browsers out there at the
> moment.
I've tested it in IE7, FF3, Safari3 and Opera9. Which Browsers have you tested
it in?
> For striped tables, you're still better off
> using server-side code to ap
On Wed, Jun 3, 2009 at 7:13 PM, PJ wrote:
> Tom Chubb wrote:
>> 2009/6/3 PJ :
>>
>>> The code:
>>> ...snip
>>>
>>>
>>> accès client >> name="title" value="" size="10" />
>>> mot de passe
>>> >> value=" entrez " />
>>> Inscription
>>>
PJ wrote:
> AngeloZanetti wrote:
>> Shawn McKenzie wrote:
>>
>>> PJ wrote:
>>>
PROBLEM 1 solved: errant s removed; strange that they were
inhibiting entry of data into form field?
PROBLEM 2 not resolved: but the form was off the page and
clipped in upper right hand corn
This is fairly simple to do as an http upload. With the folder above
the web root, it less if an issue since general users can't gain
access, a script can do all the interaction needed. Plus you can chown
the permissions with php
Bastien
Sent from my iPod
On Jun 3, 2009, at 17:24, Lamp Li
Lamp Lists wrote:
to upload an image for a photo gallery (my own code) I have to have permission
for the directory images 0777.
but having permission for a directory 0777 is REALLY bad idea, isn't it?
I'm "owner" of the directory (lamp:lamp images).
what to do to set my code has permission to
AngeloZanetti wrote:
>
> Shawn McKenzie wrote:
>
>> PJ wrote:
>>
>>> PROBLEM 1 solved: errant s removed; strange that they were
>>> inhibiting entry of data into form field?
>>>
>>> PROBLEM 2 not resolved: but the form was off the page and clipped in
>>> upper right hand corner. What can be
Tom Chubb wrote:
> 2009/6/3 PJ :
>
>> The code:
>> ...snip
>>
>>
>>accès client > name="title" value="" size="10" />
>>mot de passe
>>> value=" entrez " />
>> Inscription
>>
>>> snip...
>>
>> PROBLEM 1: On Firefox3,
On Wed, 2009-06-03 at 17:54 -0400, Eddie Drapkin wrote:
> But it's client side software and you can't rely on it existing for general
> use.
>
> On Wed, Jun 3, 2009 at 2:52 PM, Ashley Sheridan
> wrote:
>
> > On Wed, 2009-06-03 at 09:18 -0500, haliphax wrote:
> > > On Wed, Jun 3, 2009 at 8:14 AM,
But it's client side software and you can't rely on it existing for general
use.
On Wed, Jun 3, 2009 at 2:52 PM, Ashley Sheridan
wrote:
> On Wed, 2009-06-03 at 09:18 -0500, haliphax wrote:
> > On Wed, Jun 3, 2009 at 8:14 AM, Hemant Patel
> wrote:
> > > Hi All,
> > >I hope you all ar
to upload an image for a photo gallery (my own code) I have to have permission
for the directory images 0777.
but having permission for a directory 0777 is REALLY bad idea, isn't it?
I'm "owner" of the directory (lamp:lamp images).
what to do to set my code has permission to upload an image into
2009/6/3 Andrew Ballard
> On Wed, Jun 3, 2009 at 4:17 PM, Paul M Foster
> wrote:
> > On Wed, Jun 03, 2009 at 07:57:32PM +0100, Ashley Sheridan wrote:
> >
> >
> >
> >> A single-phase Caesar cypher is by far the best. It worked for Julias
> >> Caesar, and damn it, it will work for us!
> >
> > ROT
On Wed, Jun 3, 2009 at 4:17 PM, Paul M Foster wrote:
> On Wed, Jun 03, 2009 at 07:57:32PM +0100, Ashley Sheridan wrote:
>
>
>
>> A single-phase Caesar cypher is by far the best. It worked for Julias
>> Caesar, and damn it, it will work for us!
>
> ROT13 FTW!
>
> Paul
>
> --
> Paul M. Foster
>
RO
On Wed, Jun 03, 2009 at 07:57:32PM +0100, Ashley Sheridan wrote:
> A single-phase Caesar cypher is by far the best. It worked for Julias
> Caesar, and damn it, it will work for us!
ROT13 FTW!
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
Exactly.
--
João Cândido de Souza Neto
SIENS SOLUÃÃES EM GESTÃO DE NEGÃCIOS
Fone: (0XX41) 3033-3636 - JS
www.siens.com.br
"Shawn McKenzie" escreveu na mensagem
news:95.f5.19828.e94d6...@pb1.pair.com...
> João Cândido de Souza Neto wrote:
>> The var $_SERVER["DOCUMENT_ROOT"] in your cas
João Cândido de Souza Neto wrote:
> The var $_SERVER["DOCUMENT_ROOT"] in your case contais
> "/Applications/MAMP/htdocs/" so using it whenever you change your server,
> it´ll work without any change.
>
Yes, moral of the story is: file_exists() is for use on a file system or
using a wrapper t
The var $_SERVER["DOCUMENT_ROOT"] in your case contais
"/Applications/MAMP/htdocs/" so using it whenever you change your server,
it´ll work without any change.
--
João Cândido de Souza Neto
SIENS SOLUÃÃES EM GESTÃO DE NEGÃCIOS
Fone: (0XX41) 3033-3636 - JS
www.siens.com.br
""Miller, Teri
I was looking in the wrong path...OI
Needed to check it against my machine...a iMac thing I guess I am just
switching from pc to mac
$SysPath =
"/Applications/MAMP/htdocs/HarrisAutomate/output/WebImagesHiRes/$ImageName";
Used that and it works like a charm
On 6/3/09 2:07 PM, "Miller,
Sorry,
I forgot only a single detail.
It´s DOCUMENT_ROOT instead of document_root.
Have you tried it?
--
João Cândido de Souza Neto
SIENS SOLUÃÃES EM GESTÃO DE NEGÃCIOS
Fone: (0XX41) 3033-3636 - JS
www.siens.com.br
""Miller, Terion"" escreveu na mensagem
news:c64c3427.2b88%kmille...@
Tony Marston wrote:
>
> If you are building a business application with PHP rather than an
> ordinary
> website then I suggest that you use a framework instead of trying to
> reinvent the wheel (and making a hash of it). The Radicore framework was
> specifically designed for CRUD application
Bastien Koert-3 wrote:
>
>
>
> On Jun 2, 2009, at 21:13, "Daevid Vincent" wrote:
>
>> I just noticed a horrible thing.
>>
>> I have a query (report) that can take 15 minutes or more to generate
>> with
>> mySQL. We have > 500 Million rows. This used to be done in real time
>> when we
>>
Tried that too with no luck...
On 6/3/09 2:01 PM, "João Cândido de Souza Neto"
wrote:
$_SERVER["document_root"]."/HarrisAutomate/output/WebImagesHiRes/$ImageName";
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bruce-60 wrote:
>
> Hi List...
>
> A little while ago... (in a land far away!!).. Someone posted some
> questions
> about a site he/she was creating having to do with textbooks... I'm trying
> to find that person to talk to them about what they were doing... I've
> searched my past emails but
Shawn McKenzie wrote:
>
> PJ wrote:
>> PROBLEM 1 solved: errant s removed; strange that they were
>> inhibiting entry of data into form field?
>>
>> PROBLEM 2 not resolved: but the form was off the page and clipped in
>> upper right hand corner. What can be done to get it to show correctly?
>>
Try to define $FilePath as follows:
$FilePath =
$_SERVER["document_root"]."/HarrisAutomate/output/WebImagesHiRes/$ImageName";
In this way it should work.
--
João Cândido de Souza Neto
SIENS SOLUÃÃES EM GESTÃO DE NEGÃCIOS
Fone: (0XX41) 3033-3636 - JS
www.siens.com.br
""Miller, Terion""
+1 for AES 256-bit
On Wed, Jun 3, 2009 at 11:43 AM, Eddie Drapkin wrote:
> Another camper on the AES / Rijndael bandwagon. I don't think there's even
> been a theoretical attack point for anything >128 bit, but I could be wrong.
>
> And re: sha1, sha1 isn't an encryption algorithm...
--
PHP Gen
On 6/3/09 1:41 PM, "Eddie Drapkin" wrote:
just initially, and this might be a typo but
$FilePath =
"http://localhost:/HarrisAutomate/output/WebImagesHiRes/$ImageName";;
//$BackupPath =
"http://localhost:/HarrisAutomate/WebImagesHiRes/output/backup/";;
$FilePath has an /output/ that
On Wed, 2009-06-03 at 14:43 -0400, Eddie Drapkin wrote:
> Another camper on the AES / Rijndael bandwagon. I don't think there's even
> been a theoretical attack point for anything >128 bit, but I could be wrong.
>
> And re: sha1, sha1 isn't an encryption algorithm...
>
> On Wed, Jun 3, 2009 at 9
Another camper on the AES / Rijndael bandwagon. I don't think there's even
been a theoretical attack point for anything >128 bit, but I could be wrong.
And re: sha1, sha1 isn't an encryption algorithm...
On Wed, Jun 3, 2009 at 9:28 AM, Bruno Fajardo wrote:
> Hi there!
>
> Try out AES.
> http:/
On Wed, 2009-06-03 at 09:18 -0500, haliphax wrote:
> On Wed, Jun 3, 2009 at 8:14 AM, Hemant Patel
> wrote:
> > Hi All,
> >I hope you all are doing great.We are developing a application
> > on our end and we got a problem with a Audio/Vedio player.As flash player is
> > working well w
just initially, and this might be a typo but
$FilePath =
"http://localhost:/HarrisAutomate/output/WebImagesHiRes/$ImageName";;
//$BackupPath =
"http://localhost:/HarrisAutomate/WebImagesHiRes/output/backup/";;
$FilePath has an /output/ that $BackupPath doesn't.
Also, make sure you don't
http://www.schneier.com/blog/archives/2007/01/sha1_cracked.html
> -Original Message-
> From: Matty Sarro [mailto:msa...@gmail.com]
> Sent: Wednesday, June 03, 2009 6:27 AM
> To: Hemant Patel
> Cc: PHP General
> Subject: Re: [PHP] Best Encryption Algorithm
>
> I believe none of the AES a
On Wed, Jun 3, 2009 at 2:29 PM, Paul M Foster wrote:
> (Sorry, I hit the wrong button and sent the reply only to Skip.)
>
> On Wed, Jun 03, 2009 at 11:18:57AM -0500, Skip Evans wrote:
>
>> Hey all,
>>
>> I have a file uploader module that allows users to upload
>> documents and of course people ar
On Tue, 2009-06-02 at 20:43 -0700, revDAVE wrote:
> Thank you Jay - Shawn & Paul for helping this newbie!
>
>
> --
> Thanks - RevDave
> Cool @ hosting4days . com
> [db-lists 09]
>
>
>
>
Also, according to the spec, the URL should be in absolute form, not
relative like you have there.
Ash
ww
I wrote this little script (part of a much much larger one I am working at)
anyways, I am trying to get it to compare a file name from a db to an actual
file in a folder and then tell me if it does or doesn't exist, the problem I
have is that the files do exist, I echo them out, but it says file do
(Sorry, I hit the wrong button and sent the reply only to Skip.)
On Wed, Jun 03, 2009 at 11:18:57AM -0500, Skip Evans wrote:
> Hey all,
>
> I have a file uploader module that allows users to upload
> documents and of course people are using all kinds of file
> names that are not web friendly.
>
>
On Mon, 2009-06-01 at 08:10 -0700, Raymond Irving wrote:
> Hello,
>
> There are many different ways and techniques that we can use to add alternate
> colors to table rows. Here's another solution that's very simple and straight
> forward. For example:
>
> $page['table tr:even']->css('backgr
PJ wrote:
> PROBLEM 1 solved: errant s removed; strange that they were
> inhibiting entry of data into form field?
>
> PROBLEM 2 not resolved: but the form was off the page and clipped in
> upper right hand corner. What can be done to get it to show correctly?
>
Remove the link to any stylesheet
On Wed, Jun 3, 2009 at 1:43 PM, R B wrote:
> To configure a AMI have some extra fee?
>
> Do you have a link to read how to run php files in amazon s3?
>
> Thanks.
>
>
> On Wed, Jun 3, 2009 at 11:13 AM, Bastien Koert wrote:
>>
>> On Wed, Jun 3, 2009 at 12:27 PM, R B wrote:
>> > Hi,
>> >
>> > Do y
To configure a AMI have some extra fee?
Do you have a link to read how to run php files in amazon s3?
Thanks.
On Wed, Jun 3, 2009 at 11:13 AM, Bastien Koert wrote:
> On Wed, Jun 3, 2009 at 12:27 PM, R B wrote:
> > Hi,
> >
> > Do you know if amazon s3 hosting support php files?
> >
> > Thanks
On Wed, Jun 3, 2009 at 1:18 PM, Eddie Drapkin wrote:
> As far as I know it will only bug out when the host filesystem would bug
> out, ie UTF-16 characters tend to explode on my linux setup that I develop
> on, and PHP's file handlign doesn't like them, but then again neither does
> the filesystem
As far as I know it will only bug out when the host filesystem would bug
out, ie UTF-16 characters tend to explode on my linux setup that I develop
on, and PHP's file handlign doesn't like them, but then again neither does
the filesystem. Stuff like "Some silly name! YAY#" work fine, on the
ot
Hi all,
I am Bárbara Vilela and I work at Tuenti in the Human Resources
department in Madrid. Tuenti is a social application and our mission is
to improve the communication and transmission of information between
people who know each other. Already the #6 most-trafficked website in
Spain, Tuen
On Wed, Jun 3, 2009 at 12:27 PM, R B wrote:
> Hi,
>
> Do you know if amazon s3 hosting support php files?
>
> Thanks.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
yep, depending on the AMI you use to set up the server. There are
Oh, of course that makes sense, and I suppose the PHP
move_uploaded_file() function has no problem with weird and
crappy file names?
Skip
Eddie Drapkin wrote:
Well, erm, no.
I'd store the filename, etc. as-is in the database, and then link it
with urlencode() and you should be able to serve
Well, erm, no.
I'd store the filename, etc. as-is in the database, and then link it with
urlencode() and you should be able to serve a file called "A non friendly
name!" site.com/A%20non%20friendly and a modern webserver should be fine
with that, and even most browsers will allow you to type s
You mean like this? This would work as a good file name to be
on the server and link to?
$filename = urlencode($_FILES['myfile']['name']);
move_uploaded_file($_FILES['myfile']['tmp_name'], $filename);
Think that would do the trick?
Skip
Eddie Drapkin wrote:
Why not just urlencode() the filena
Why not just urlencode() the filename? (and suggest people use a URL
shortening service and/or provide one)
On Wed, Jun 3, 2009 at 12:31 PM, Richard Heyes wrote:
> Hi,
>
> > I have a file uploader module that allows users to upload documents and
> of
> > course people are using all kinds of file
Hi,
> I have a file uploader module that allows users to upload documents and of
> course people are using all kinds of file names that are not web friendly.
>
> I guess the best solution is to replace any non alphanumeric with maybe '_'
> the underscore? How does that sound?
>
> Unfortunately, af
Hi,
Do you know if amazon s3 hosting support php files?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/6/3 PJ :
> The code:
> ...snip
>
>
> accès client name="title" value="" size="10" />
> mot de passe
> value=" entrez " />
> Inscription
>
> snip...
>
> PROBLEM 1: On Firefox3, the first input (accès client) does not
Hey all,
I have a file uploader module that allows users to upload
documents and of course people are using all kinds of file
names that are not web friendly.
I guess the best solution is to replace any non alphanumeric
with maybe '_' the underscore? How does that sound?
Unfortunately, aft
PROBLEM 1 solved: errant s removed; strange that they were
inhibiting entry of data into form field?
PROBLEM 2 not resolved: but the form was off the page and clipped in
upper right hand corner. What can be done to get it to show correctly?
--
Hervé Kempf: "Pour sauver la planète, sortez du capi
On Wed, Jun 3, 2009 at 11:55 AM, PJ wrote:
> The code:
> ...snip
>
>
> accès client name="title" value="" size="10" />
> mot de passe
> value=" entrez " />
> Inscription
>
> snip...
>
> PROBLEM 1: On Firefox3, the first
The code:
...snip
accès client
mot de passe
Inscription
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
On Wed, Jun 3, 2009 at 8:14 AM, Hemant Patel wrote:
> Hi All,
> I hope you all are doing great.We are developing a application
> on our end and we got a problem with a Audio/Vedio player.As flash player is
> working well with client side but it has limitation of file formats like it
>
On Wed, Jun 3, 2009 at 8:28 AM, Bruno Fajardo wrote:
> Hi there!
>
> Try out AES.
> http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
>
> Bruno.
>
> 2009/6/3 Hemant Patel
>>
>> Hello Everyone,
>> Hope you all are doing great.
>> Now we are creatin
"Andrew Hucks" wrote in message
news:fa5046930904281330q218de147n5b295eeb9702a...@mail.gmail.com...
> This isn't a question. :-D.
>
> Anyways, there's a website that I came across which has kept me up
> past bedtime the past few nights.
>
> "Project Euler is a series of challenging mathematical/c
Hi there!
Try out AES.
http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
Bruno.
2009/6/3 Hemant Patel
>
> Hello Everyone,
> Hope you all are doing great.
> Now we are creating a application which has high level
> of security so its obvious that
I believe none of the AES algorithms have been compromised so far. DES is
known to be broken, 3DES was just severely compromised. I don't know where
blowfish stands at the moment.
On Wed, Jun 3, 2009 at 9:20 AM, Hemant Patel wrote:
> Hello Everyone,
> Hope you all are doing g
Hello Everyone,
Hope you all are doing great.
Now we are creating a application which has high level
of security so its obvious that we will require a algorithm for
encryption/decrytpion.So Can anybody suggest me the best algorithm for
encryption(irrespec
Hi All,
I hope you all are doing great.We are developing a application
on our end and we got a problem with a Audio/Vedio player.As flash player is
working well with client side but it has limitation of file formats like it
can run .flv file format only.If we go for media player then i
On Tue, Jun 2, 2009 at 7:39 PM, Shawn McKenzie wrote:
> Grant Peel wrote:
>> Hi all,
>>
>> I am currently setting up the next generation web server for our company and
>> am in need of general consulting/advice on php set up security issues.
>>
>> Any one with knowledge and expierience please fee
Sadly, Mr. Saran wasted a lot of time writing a pluggable backend db layer,
as one is built into PHP now, PDO: http://us2.php.net/pdo
Sybase / MsSQL: http://www.php.net/manual/en/ref.pdo-dblib.php
Postgres: http://us2.php.net/manual/en/ref.pdo-pgsql.php
Oracle: http://us2.php.net/manual/en/ref.pdo
From: Sancar Saran
> And if you so much thinking about future DB change. Just wrote
compatible sql
> and use multi drive layer (phpADO db).
>
> And you are problem free
I have some questions about this suggestion. We currently have
production systems using Postgres, Sybase ASA, Oracle and MS SQ
On Tuesday 02 June 2009 11:36:28 pm optoma...@rogers.com wrote:
> Everybody has given Angus really great advice in this previous thread
> and I have learned a lot too. I hope no one mines the fork but I am in
> the exact same situation as Angus. If anyone could spare a bit of time
> regarding appli
Hi,
Does anyone have an experience with using memcached session handler or
possibly enough knowledge of internal php session processing who could
explain why we do get 3x more session set commands then get commands?
in data it is actually 1:1, same amount of data is being written as read
which
Is there already a php class that can parse a bibtex file and produce
html formated works cited / bibliography output?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
71 matches
Mail list logo