[PHP] bibtex

2009-06-03 Thread Michael A. Peters
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

[PHP] memcached as session handler 3x more reads then writes

2009-06-03 Thread Stan
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

Re: [PHP] MySQL after oracle, still Wise?, was Web application design .......

2009-06-03 Thread Sancar Saran
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

RE: [PHP] MySQL after oracle, still Wise?, was Web application design .......

2009-06-03 Thread Bob McConnell
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 SQL

Re: [PHP] MySQL after oracle, still Wise?, was Web application design .......

2009-06-03 Thread Eddie Drapkin
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:

Re: [PHP] Re: PHP Security

2009-06-03 Thread Andrew Ballard
On Tue, Jun 2, 2009 at 7:39 PM, Shawn McKenzie nos...@mckenzies.net 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

[PHP] Query Regarding a Player

2009-06-03 Thread Hemant Patel
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

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Matty Sarro
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 hemant.develo...@gmail.comwrote: Hello Everyone,

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Bruno Fajardo
Hi there! Try out AES. http://en.wikipedia.org/wiki/Advanced_Encryption_Standard Bruno. 2009/6/3 Hemant Patel hemant.develo...@gmail.com Hello Everyone,                      Hope you all are doing great.                      Now we are creating a application which has high level of

[PHP] Re: Project Euler [Oh, this isn't spam mail...]

2009-06-03 Thread Eduardo Varela
Andrew Hucks andrewphpm...@gmail.com 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

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread haliphax
On Wed, Jun 3, 2009 at 8:28 AM, Bruno Fajardo bsfaja...@gmail.com wrote: Hi there! Try out AES. http://en.wikipedia.org/wiki/Advanced_Encryption_Standard Bruno. 2009/6/3 Hemant Patel hemant.develo...@gmail.com Hello Everyone,                      Hope you all are doing great.          

Re: [PHP] Query Regarding a Player

2009-06-03 Thread haliphax
On Wed, Jun 3, 2009 at 8:14 AM, Hemant Patel hemant.develo...@gmail.com 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

[PHP] forms problem

2009-06-03 Thread PJ
The code: ...snip div id=loginbox form name=login method=post action=? echo $_SERVER['PHP_SELF'] ? h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br / mot de passe br /input type=text name=title value=? echo $passwd; ? size=10 /br

Re: [PHP] forms problem

2009-06-03 Thread Bastien Koert
On Wed, Jun 3, 2009 at 11:55 AM, PJ af.gour...@videotron.ca wrote: The code: ...snip div id=loginbox        form name=login method=post action=? echo $_SERVER['PHP_SELF'] ?            h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br /            mot de

[PHP] forms problem

2009-06-03 Thread PJ
PROBLEM 1 solved: errant divs 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

[PHP] Web friendly file names

2009-06-03 Thread Skip Evans
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,

Re: [PHP] forms problem

2009-06-03 Thread Tom Chubb
2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox        form name=login method=post action=? echo $_SERVER['PHP_SELF'] ?            h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br /            mot de passe br /input type=text

[PHP] Amazon s3 and PHP

2009-06-03 Thread R B
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

Re: [PHP] Web friendly file names

2009-06-03 Thread Richard Heyes
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, after

Re: [PHP] Web friendly file names

2009-06-03 Thread Eddie Drapkin
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 rich...@php.net wrote: Hi, I have a file uploader module that allows users to upload documents and of course people are using all

Re: [PHP] Web friendly file names

2009-06-03 Thread Skip Evans
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

Re: [PHP] Web friendly file names

2009-06-03 Thread Eddie Drapkin
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

Re: [PHP] Web friendly file names

2009-06-03 Thread Skip Evans
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

Re: [PHP] Amazon s3 and PHP

2009-06-03 Thread Bastien Koert
On Wed, Jun 3, 2009 at 12:27 PM, R B rbp...@gmail.com 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.

[PHP] PHP/Javascript Job in Madrid

2009-06-03 Thread barbara
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,

Re: [PHP] Web friendly file names

2009-06-03 Thread Eddie Drapkin
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

Re: [PHP] Web friendly file names

2009-06-03 Thread Bastien Koert
On Wed, Jun 3, 2009 at 1:18 PM, Eddie Drapkin oorza...@gmail.com 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

Re: [PHP] Amazon s3 and PHP

2009-06-03 Thread R B
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 phps...@gmail.com wrote: On Wed, Jun 3, 2009 at 12:27 PM, R B rbp...@gmail.com wrote: Hi, Do you know if amazon s3 hosting

Re: [PHP] Amazon s3 and PHP

2009-06-03 Thread Bastien Koert
On Wed, Jun 3, 2009 at 1:43 PM, R B rbp...@gmail.com 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 phps...@gmail.com wrote: On Wed, Jun 3, 2009 at 12:27 PM, R B

[PHP] Re: forms problem

2009-06-03 Thread Shawn McKenzie
PJ wrote: PROBLEM 1 solved: errant divs 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 stylesheets

Re: [PHP] Zebra Striped Table Example

2009-06-03 Thread Ashley Sheridan
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

Re: [PHP] Web friendly file names

2009-06-03 Thread Paul M Foster
(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. I

[PHP] Using File_exists?

2009-06-03 Thread Miller, Terion
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

Re: [PHP] Redirect not working on server

2009-06-03 Thread Ashley Sheridan
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

Re: [PHP] Web friendly file names

2009-06-03 Thread Eric Butera
On Wed, Jun 3, 2009 at 2:29 PM, Paul M Foster pa...@quillandmouse.com 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

RE: [PHP] Best Encryption Algorithm

2009-06-03 Thread Daevid Vincent
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

Re: [PHP] Using File_exists?

2009-06-03 Thread Eddie Drapkin
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

Re: [PHP] Query Regarding a Player

2009-06-03 Thread Ashley Sheridan
On Wed, 2009-06-03 at 09:18 -0500, haliphax wrote: On Wed, Jun 3, 2009 at 8:14 AM, Hemant Patel hemant.develo...@gmail.com 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

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Eddie Drapkin
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 bsfaja...@gmail.com wrote: Hi there! Try

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Ashley Sheridan
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:28

Re: [PHP] Using File_exists?

2009-06-03 Thread Miller, Terion
On 6/3/09 1:41 PM, Eddie Drapkin oorza...@gmail.com 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

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Michael Shadle
+1 for AES 256-bit On Wed, Jun 3, 2009 at 11:43 AM, Eddie Drapkin oorza...@gmail.com 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

Re: [PHP] Using File_exists?

2009-06-03 Thread Jo�o C�ndido de Souza Neto
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

Re: [PHP] Book site question

2009-06-03 Thread AngeloZanetti
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 can't

Re: [PHP] Using File_exists?

2009-06-03 Thread Miller, Terion
Tried that too with no luck... On 6/3/09 2:01 PM, João Cândido de Souza Neto j...@consultorweb.cnt.br 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

Re: [PHP] Why doesn't mySQL stop a query when the browser tab is closedL

2009-06-03 Thread AngeloZanetti
Bastien Koert-3 wrote: On Jun 2, 2009, at 21:13, Daevid Vincent dae...@daevid.com 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 had

Re: [PHP] Web application design considerations - a good reference ?

2009-06-03 Thread AngeloZanetti
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 applications -

Re: [PHP] Using File_exists?

2009-06-03 Thread Jo�o C�ndido de Souza Neto
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 tmil...@springfi.gannett.com escreveu na mensagem

Re: [PHP] Using File_exists? (RESOLVED)

2009-06-03 Thread Shawn McKenzie
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 that

Re: [PHP] Using File_exists? (RESOLVED)

2009-06-03 Thread Jo�o C�ndido de Souza Neto
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 nos...@mckenzies.net 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

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Paul M Foster
On Wed, Jun 03, 2009 at 07:57:32PM +0100, Ashley Sheridan wrote: snip 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:

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Andrew Ballard
On Wed, Jun 3, 2009 at 4:17 PM, Paul M Foster pa...@quillandmouse.com wrote: On Wed, Jun 03, 2009 at 07:57:32PM +0100, Ashley Sheridan wrote: snip 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.

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Luke
2009/6/3 Andrew Ballard aball...@gmail.com On Wed, Jun 3, 2009 at 4:17 PM, Paul M Foster pa...@quillandmouse.com wrote: On Wed, Jun 03, 2009 at 07:57:32PM +0100, Ashley Sheridan wrote: snip A single-phase Caesar cypher is by far the best. It worked for Julias Caesar, and damn it, it

[PHP] how to manage permissions for file uploader

2009-06-03 Thread Lamp Lists
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

Re: [PHP] Query Regarding a Player

2009-06-03 Thread Eddie Drapkin
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 a...@ashleysheridan.co.ukwrote: On Wed, 2009-06-03 at 09:18 -0500, haliphax wrote: On Wed, Jun 3, 2009 at 8:14 AM, Hemant Patel hemant.develo...@gmail.com wrote:

Re: [PHP] Query Regarding a Player

2009-06-03 Thread Ashley Sheridan
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 a...@ashleysheridan.co.ukwrote: On Wed, 2009-06-03 at 09:18 -0500, haliphax wrote: On Wed, Jun 3,

Re: [PHP] forms problem

2009-06-03 Thread PJ
Tom Chubb wrote: 2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox form name=login method=post action=? echo $_SERVER['PHP_SELF'] ? h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br / mot de passe br

Re: [PHP] forms problem

2009-06-03 Thread PJ
AngeloZanetti wrote: Shawn McKenzie wrote: PJ wrote: PROBLEM 1 solved: errant divs 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

[PHP] Re: how to manage permissions for file uploader

2009-06-03 Thread Al
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

Re: [PHP] how to manage permissions for file uploader

2009-06-03 Thread Phpster
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

Re: [PHP] forms problem

2009-06-03 Thread Shawn McKenzie
PJ wrote: AngeloZanetti wrote: Shawn McKenzie wrote: PJ wrote: PROBLEM 1 solved: errant divs 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

Re: [PHP] forms problem

2009-06-03 Thread Andrew Ballard
On Wed, Jun 3, 2009 at 7:13 PM, PJ af.gour...@videotron.ca wrote: Tom Chubb wrote: 2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox        form name=login method=post action=? echo $_SERVER['PHP_SELF'] ?            h2accegrave;s client br /input type=text name=title

Re: [PHP] Zebra Striped Table Example

2009-06-03 Thread Raymond Irving
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 apply

[PHP] PHP HELP

2009-06-03 Thread tRace DOliveira
Can anyone help me to install APC in Xampp on windows ?