|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hi
I am writing a script which creates a text file on the server dependant upon user input , if i run the script from the command line it works fine , however when i run the script via a web browser , the file is not created , why is this ? is it something to do with permissions ? waseem |
|
#2
|
||||
|
||||
|
hi walshs,
i think u need to provide some more details. yeah there may be permission problem coz when u run the script on the command line it runs as the user u r logged in as. but when its called by browser it is executed as the user the webserver is running as and it may not that enough permission. but i think if u can highlight ur code it would be more easy to spot the problem and find the solution. btw u said u want some text file to be created depending upon user input ..so how u r passing that userinput using command line ?? overall, give some more details plz. jd
__________________
_____________________________ d.k.jariwala (JD) ~ simple thought, simple act ~ I blog @ http://jdk.phpkid.org |
|
#3
|
|||
|
|||
|
Yeah if you want to write a file from a CGI scirpt you need to set the directory it writes to as world-readable (777)
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > File Creation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|