Re: [PHP] Which PHP-Editor to use?

2007-10-17 Thread Zoltán Németh
2007. 10. 18, csütörtök keltezéssel 12.56-kor Matt Arnilo S. Baluyos (Mailing Lists) ezt írta: > Does Eclipse already have word-wrap? > > To my disappointment, it was still lacking that basic functionality > the last time I tried it. > I use easyeclipse for php, and I think I've seen some option

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Zoltán Németh
2007. 10. 17, szerda keltezéssel 15.10-kor Holografix ezt írta: > Many thanks Zoltn. > > It's clear now > One more thing: session.cookie_lifetime defaults to 0 (until browser is > closed). > if setting session.cookie_lifetime to 60 can I look for > $_SESSION[session_name()] in every request ? w

Re: [PHP] Which PHP-Editor to use?

2007-10-17 Thread Matt Arnilo S. Baluyos (Mailing Lists)
On 10/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 2007/10/18, Matt Arnilo S. Baluyos (Mailing Lists) > <[EMAIL PROTECTED]>: > > Does Eclipse already have word-wrap? > > > > To my disappointment, it was still lacking that basic functionality > > the last time I tried it. > > PHP Eclipse's

Re: [PHP] Which PHP-Editor to use?

2007-10-17 Thread Matt Arnilo S. Baluyos (Mailing Lists)
Does Eclipse already have word-wrap? To my disappointment, it was still lacking that basic functionality the last time I tried it. On 8/3/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > eclipse with php eclipse, but i may be switching to eclipse pdt once it > becomes stable if there is no support

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Casey
You could set $_SESSION['lasttime'] to time() and check it on every page. On Oct 17, 2007, at 3:58 AM, "Holografix" <[EMAIL PROTECTED]> wrote: I have some questions about sessions timeout and sessions ini settings. In php.ini I have session.gc_maxlifetime = 30 (for testing purpose only

Re: [PHP] php gallery for pictures and videos

2007-10-17 Thread Jim Lucas
zakaria ghandour wrote: Hi, i must create gallery (pictures and videos) in php The user must login to see only his personal files. There is any tool doing this. thanks the answer you seek is in the words of your question google: php gallery -- Jim Lucas "Some men are born to greatness, s

Re: [PHP] Security Question

2007-10-17 Thread Jim Lucas
Andrew Peterson wrote: Does anyone know a good way to protect a directory that a php script NEEDS to write too? What I'm doing now: 1. create a directory manually "myDir" 2. chmod 777 myDir 3. password protect the directory with htaccess Is this the best way, or is there something better? Als

Re: [PHP] How to replace define in a require file with mysql?

2007-10-17 Thread Jim Lucas
Ronald Wiplinger wrote: I have a file linked with require into my program with statements like: define("_ADDRESS","Address"); define("_CITY","City"); I would like to replace this with a mysql table with these two fields (out of many other fields). How can I do that? bye Ronald Well, if y

Re: [PHP] Why $_REQUEST do the same thing as mysql_escape_string()

2007-10-17 Thread Eric Butera
On 10/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I put some thing in an form input filed like this: > ' " \ > then submit to a php script. > When use $_GET / $_POST / $_REQUEST to get the value, > I always get: > \' \" \\ > In php expression it should be: > $_REQUEST['field'] = "\\' \\\"

[PHP] Why $_REQUEST do the same thing as mysql_escape_string()

2007-10-17 Thread truncatei
I put some thing in an form input filed like this: ' " \ then submit to a php script. When use $_GET / $_POST / $_REQUEST to get the value, I always get: \' \" \\ In php expression it should be: $_REQUEST['field'] = "\\' \\\" "; Any one who can tell me why?

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Holografix
Many thanks Zoltán. It's clear now One more thing: session.cookie_lifetime defaults to 0 (until browser is closed). if setting session.cookie_lifetime to 60 can I look for $_SESSION[session_name()] in every request ? best regards holo ""Zoltán Németh"" <[EMAIL PROTECTED]> wrote in message ne

Re: [PHP] Security Question

2007-10-17 Thread Richard Heyes
Does anyone know a good way to protect a directory that a php script NEEDS to write too? What I'm doing now: 1. create a directory manually "myDir" 2. chmod 777 myDir 3. password protect the directory with htaccess Is this the best way, or is there something better? You could chmod the file/d

[PHP] Security Question

2007-10-17 Thread Andrew Peterson
Does anyone know a good way to protect a directory that a php script NEEDS to write too? What I'm doing now: 1. create a directory manually "myDir" 2. chmod 777 myDir 3. password protect the directory with htaccess Is this the best way, or is there something better? Also, is there a way to mkdi

RE: [PHP] Array problem

2007-10-17 Thread Ford, Mike
On 17 October 2007 12:09, Merlin wrote: > Hi there, > > I am pulling picture ids out of a db and comment ids. The comments > belong to the pic ids and are stored in two seperate tables. > I am having trouble with the arrays to display them after > pulling out of > the db. > > The data is filled

Re: [PHP] Which PHP-Editor to use?

2007-10-17 Thread Jason Pruim
On Oct 16, 2007, at 5:26 PM, Matt Livingston wrote: That is why I believe in a "disposable system" I have 2 main computers, one running XP and the other running Ubuntu Linux. I make regular backups to secure server online via FTP and regularly burn backups to CD. At any time if I got a vi

Re: [PHP] How to replace define in a require file with mysql?

2007-10-17 Thread Richard Heyes
I have a file linked with require into my program with statements like: define("_ADDRESS","Address"); define("_CITY","City"); I would like to replace this with a mysql table with these two fields (out of many other fields). How can I do that? I'm not aware of any method of "undefining" an alr

Re: [PHP] Array problem

2007-10-17 Thread Zoltán Németh
2007. 10. 17, szerda keltezéssel 13.08-kor Merlin ezt írta: > Hi there, > > I am pulling picture ids out of a db and comment ids. The comments > belong to the pic ids and are stored in two seperate tables. > I am having trouble with the arrays to display them after pulling out of > the db. > >

Re: [PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Zoltán Németh
2007. 10. 17, szerda keltezéssel 11.58-kor Holografix ezt írta: > I have some questions about sessions timeout and sessions ini settings. > > In php.ini I have session.gc_maxlifetime = 30 (for testing purpose only) , > session.gc_probability = 1 and session.gc_divisor = 100 (didn't touch this > v

[PHP] Array problem

2007-10-17 Thread Merlin
Hi there, I am pulling picture ids out of a db and comment ids. The comments belong to the pic ids and are stored in two seperate tables. I am having trouble with the arrays to display them after pulling out of the db. The data is filled like this: while (rows etc.){ $comment_id[$row

[PHP] Sessions - Ini settings and timeout

2007-10-17 Thread Holografix
I have some questions about sessions timeout and sessions ini settings. In php.ini I have session.gc_maxlifetime = 30 (for testing purpose only) , session.gc_probability = 1 and session.gc_divisor = 100 (didn't touch this values) I have two simple pages page1.php - session_start(); $_S

[PHP] How to replace define in a require file with mysql?

2007-10-17 Thread Ronald Wiplinger
I have a file linked with require into my program with statements like: define("_ADDRESS","Address"); define("_CITY","City"); I would like to replace this with a mysql table with these two fields (out of many other fields). How can I do that? bye Ronald -- PHP General Mailing List (http://ww

[PHP] How to replace define in a require file with mysql?

2007-10-17 Thread Ronald Wiplinger
I have a file linked with require into my program with statements like: define("_ADDRESS","Address"); define("_CITY","City"); I would like to replace this with a mysql table with these two fields (out of many other fields). How can I do that? bye Ronald -- PHP General Mailing List (http://

[PHP] Re: php gallery for pictures and videos

2007-10-17 Thread Colin Guthrie
zakaria ghandour wrote: > i must create gallery (pictures and videos) in php > The user must login to see only his personal files. > There is any tool doing this. Yes. Google: "php photo gallery" the very first link: http://gallery.menalto.com/ It's very good and has lots of features and as an

[PHP] php gallery for pictures and videos

2007-10-17 Thread zakaria ghandour
Hi, i must create gallery (pictures and videos) in php The user must login to see only his personal files. There is any tool doing this. thanks -- View this message in context: http://www.nabble.com/php-gallery-for-pictures-and-videos-tf4638844.html#a13249060 Sent from the PHP - General mailin