Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 02:24
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  Loading variables from txt tutorial
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Loading variables from txt tutorial  (Read 2692 times)
evil_gangsta
Server what's that
*
Posts: 2



View Profile Email
« on: 01/30/02, 11:11 »

hi im having a problem with this tutorial
I keep getting the following error
Connection Failed Please Check the path to the text File

I have the following code which definatly points to the right location please help


open (LOG, ">/usr/home/trifelon/public_html/test/Ex2TextFile.txt") || &ErrorMessage;
print LOG "@New";
close (LOG);
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 01/30/02, 15:30 »

Ok this means that you either have the path to the text file incorrect - It looks like that part is correct though.  Or that the permissions on the text file are not set correctly.  

If possible check what permissions you currently have the text file set at.  For now try changing the permsissions to 777.  You can do this with most FTP programs.  With your ftp program find an option called CHMOD - you can find this in some cases by right clicking on the file name - or in some their will be a button.  Once you've found the CHMOD option check all the boxes that appear under the (Owner, Group, and Others) categories.

Just to make sure - are you using a Windows or Unix based server? This will cause a couple of difference's.  
Logged

-Jeff.
evil_gangsta
Server what's that
*
Posts: 2



View Profile Email
« Reply #2 on: 01/31/02, 04:37 »

Ok i tried chmoding it to 777
still no joy any other ideas im hosting on unix!
Logged
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #3 on: 01/31/02, 13:47 »

Hi,

what happens when you open http://yourserver/~trifelon/test/Ex2TextFile.txt in browser?
BTW: 666 is more apropriate for writable text files than 777, but 777 should not prevent the operation of the script

Musicman
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #4 on: 01/31/02, 20:27 »

You may want to copy and paste the code here - I can't think of two many other things that would be causing that error though except permissions and the path to the text file.
Logged

-Jeff.
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!