View Full Version : CSV problem
aussiekelvin
31-Mar-2006, 02:48 AM
I have read the instructions but do not understand the part
1. rw-rw-rw
The server is a HP server running asp. So i had to upload the php program on a web space in the U.S and the form runs off the HP server.
I get no errors so i do not know how to correct.
aussiekelvin
31-Mar-2006, 04:52 AM
A step futher...
This is the error that i am having...
Failed to open CSV file "/aussie/aussiehifi/csvfile/ebays.csv": failed to open stream: Operation not permitted
Is this because i did not setteh permissions right?
aussiekelvin
06-Apr-2006, 11:43 PM
Can anyone help me? I am still unable to solve this problem
crabtree
06-Apr-2006, 11:54 PM
you need to create the CSV file manually.
PHP scripts can't generally to it.
use FTP or Telnet access to the server to create the CSV file and then set the mode with the chmod command (in FTP or telnet): chmod 666 filename or chmod ugo=rw filename
aussiekelvin
07-Apr-2006, 12:28 AM
Yes, i have created the csvfile.
I do not understand what is chmod666 or how to set it.
What is did was to set the permission on the file to read and write.
Can you explain to me?
crabtree
07-Apr-2006, 12:40 AM
do you know how to use FTP?
are you using a web interface to manage your files?
the file needs to be read-write by everyone, not just the owner of the file.
aussiekelvin
07-Apr-2006, 12:45 AM
Thanks Crabtree for your speedy reply.
I use a remote desktop connection to connect to the server.
The problem is that the server is on a .asp platform. So i have to upload the php formmail on a webspace located in the US. However the html form is on the server located in Australia.
The csv file is allowed to read and write by anyone. But keeps giving me errors. Is it posible to allow the csv file to be on the webspace in US and i can download it every week?
crabtree
07-Apr-2006, 01:07 AM
the CSV file needs to be on the same server as formmail.php
the HTML form can be anywhere in the world and submit to a formmail.php anywhere in the world (of course with security it doesnt mean it will work with just any formmail.php)
so, if your csv file on the same server and you've made it writable by anyone, then there are two possibilities:
you haven't set the right path name in the config section of formmail - formmail can't find you csv file
your server's PHP configuration doesn't allow opening files you can look through the output of the phpinfo.php script (which you can find somewhere on the forums) and you can also ask the hosting server provider.
apart from that, you might need to ask for more technical help from russle (paid subscrption)
aussiekelvin
07-Apr-2006, 03:52 AM
I have it to return an error,
Failed to open CSV file "/aussiehi/www.pictures.aussiehifi.com/ebays.csv": failed to open stream: Operation not permitted
I have change the chmod to 666, it was on 777 before.
the CSV file needs to be on the same server as formmail.php
the HTML form can be anywhere in the world and submit to a formmail.php anywhere in the world (of course with security it doesnt mean it will work with just any formmail.php)
so, if your csv file on the same server and you've made it writable by anyone, then there are two possibilities:
you haven't set the right path name in the config section of formmail - formmail can't find you csv file
your server's PHP configuration doesn't allow opening filesyou can look through the output of the phpinfo.php script (which you can find somewhere on the forums) and you can also ask the hosting server provider.
apart from that, you might need to ask for more technical help from russle (paid subscrption)
aussiekelvin
07-Apr-2006, 04:29 AM
All cool... I finally have got it to work...
Big thanks to Crab Tree.
dbenn
17-Aug-2006, 05:13 AM
Hello,
Great scripts! Am trying now to send results form the script i have created to a csv file.. am getting the following error:
Failed to open CSV file "/home/mpaq.com.au/docs/web/csvdir/formdata.csv": failed to open stream: No such file or directory [M67]
Have followed all instructions from the site. I have done a phpinfo search and have found the following:
DOCUMENT_ROOT /var/hostedwww/mpaq/www.mpaq.com.au/docs/web
Any help would be great!
crabtree
17-Aug-2006, 05:37 AM
based on your DOCUMENT_ROOT value, you want CVSDIR to be:
/var/hostedwww/mpaq/www.mpaq.com.au/docs/web/csvdir
*not* what youve currently got.
dbenn
17-Aug-2006, 05:44 AM
Thanks for your prompt reply Crabtree.
Have tried your suggestion and the following occurs:
Failed to open CSV file "/var/hostedwww/mpaq/www.mpaq.com.au/docs/web/csvdir/formdata.csv": failed to open stream: No such file or directory [M67]
Any other suggestions???
Thanks.
crabtree
17-Aug-2006, 06:54 AM
does the directory provide execute permission to everyone?
dbenn
17-Aug-2006, 07:09 AM
I have sorted the problem. It was denying permission. I have fixed the problem with our service provider.
Thanks for your help.
Powered by vBulletin® Version 4.1.4 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.