Re: [PHP] Permissions set on php script question

2008-05-13 Thread Bojan Tesanovic
If your web-server is setup to read files with .php extension through PHP engine (it is I guess) than no body from outside (using HTTP) can't read content of original PHP file only the output of that particular script. The only concern you may have is that somebody else on that server

[PHP] Permissions set on php script question

2008-05-12 Thread David Jourard
Hi, I'm very new to php. One thing I noticed in order to run the php program (on a linux server) I need to set the read permission for Other. In this program I'll have the MySQL credentials defined. Are there are any security concerns when the read permission is set like this. Wouldn't it be

Re: [PHP] Permissions set on php script question

2008-05-12 Thread Bojan Tesanovic
Heh you are really new to Linux permissions on linux are set per user/group/other bases so for most secure set permissions to read only for web-server user so chown 'webserveruser' file.php chmod 400 file.php make sure you have root access at server so you can change that file or make a group

Re: [PHP] Permissions set on php script question

2008-05-12 Thread David Jourard
Bojan Tesanovic wrote: Heh you are really new to Linux permissions on linux are set per user/group/other bases so for most secure set permissions to read only for web-server user so chown 'webserveruser' file.php chmod 400 file.php make sure you have root access at server so you can

[PHP] Script Question

2002-11-21 Thread PHP List
Hi, This is more of a Javascript question so please forgive. I generate a dynamic form with php. I need to be able to test in javascript if a certain field exists: . . if (document.myform.mytextfield) { . . This line will give me the javascript error document.myform.mytextfield is undefined

Re: [PHP] Script Question

2002-11-21 Thread Ray Hunter
Try using the string functions. document.myform.mytextfield.value or something... On Thu, 2002-11-21 at 13:25, PHP List wrote: Hi, This is more of a Javascript question so please forgive. I generate a dynamic form with php. I need to be able to test in javascript if a certain field

Re: [PHP] Script Question

2002-11-21 Thread PHP List
Same problem, I still get an undefined error. Try using the string functions. document.myform.mytextfield.value or something... On Thu, 2002-11-21 at 13:25, PHP List wrote: Hi, This is more of a Javascript question so please forgive. I generate a dynamic form with php. I need to

Re: [PHP] Script Question

2002-11-21 Thread Ray Hunter
this should be researched in the javascript archives: google - groups - javascript this is probably what you want var mytest = document.myform.myfield.value; if( mytest.toString() == ) alert( No text in + document.myform.myfield.name ); but i would suggest getting on that