Your best friend for file transfer.

Fetch and BBEdit question - downloading php files (12 posts)
- Started 17 years ago by cariveau
- Latest reply 17 years ago from Scott McGuire
-
cariveau Member
-
Scott McGuire Administrator
Hi,
Could you please tell us version of Fetch are you using? The solution depends on which version it is.
Thanks,
Scott McGuire
Fetch Softworks[This message has been edited by ScottMcGuire (edited 12-09-2005).]
-
guest Registered Member
I am having similar problems. When I try to open a php file, that I download from Fetch, it keeps opening as a blank file. I know it's not blank because a database is using it...
I'm using Fetch 5.0.4 and running OSX, opening the files using Text Edit.Thanks.
-
Scott McGuire Administrator
Hi "this blue",
If you select one of your php files in Fetch, and click the View button in the toolbar, does a Fetch window showing you the contents of the file show up?
Could you please post a transcript to help us figure out what's going on? After you download a php file, choose Fetch Transcript from the Window menu, and copy the contents of the transcript window, and paste it here.
Thanks,
Scott McGuire
Fetch Softworks -
thisblue Member
Hi,
Yes, I can see the file in "View," but it remains blank when I download it (this doesn't happen for other files).
Here is the transcript:
Fetch 5.0.4 (5A785) running on Mac OS X 10.4.3 (8F46) English
StuffIt Engine 0x0 (StuffIt Features Not Available)
Partial serial FETCH5X001-HAB7-RL79 T
Connecting to www.thisblueangel.com port 21 (12/21/05 3:27:21 PM)
Connected to 209.197.228.19 port 21 (12/21/05 3:27:23 PM)
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 18:27. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
USER thisblue
331 User thisblue OK. Password required
PASS
230-User thisblue has group access to: thisblue
230 OK. Current restricted directory is /
SYST
215 UNIX Type: L8
PWD
257 "/" is your current location
MACB ENABLE
500 Unknown command
PWD
257 "/" is your current location
TYPE A
200 TYPE is now ASCII
PASV
227 Entering Passive Mode (209,197,228,19,63,167)
LIST -al
150 Accepted data connection
drwx--x--x 13 32028 thisblue 4096 Dec 21 18:27 .
drwx--x--x 13 32028 thisblue 4096 Dec 21 18:27 ..
drwx------ 2 32028 thisblue 4096 Sep 22 2004 .autorespond
-rw------- 1 32028 thisblue 1531 Sep 22 2004 .autorespond-loopprotect
-rw------- 1 32028 thisblue 26 Aug 5 14:13 .contactemail
drwx------ 2 32028 thisblue 4096 Nov 23 02:25 .cpanel-datastore
-rw------- 1 32028 thisblue 14 Dec 16 14:02 .lastlogin
-rw-r--r-- 1 32028 thisblue 36 Jul 22 2004 .mailboxlist
drwx------ 3 32028 thisblue 4096 Dec 20 2001 .neomail
drwx------ 2 32028 thisblue 4096 Oct 11 2003 .neomail-michelle
-rw------- 1 32028 thisblue 24 Dec 13 02:29 .spamkey
drwx------ 2 32028 thisblue 4096 Mar 20 2005 .sqmaildata
drwx------ 2 32028 thisblue 4096 Dec 19 2001 .trash
drwxr-x--- 3 32028 12 4096 Oct 12 2003 etc
drwxrwx--- 5 32028 12 4096 Jul 19 18:55 mail
drwxr-xr-x 3 32028 thisblue 4096 Dec 16 2001 public_ftp
drwxr-xr-x 8 32028 thisblue 4096 Dec 15 18:46 public_html
drwx------ 8 32028 thisblue 4096 Aug 21 00:18 tmp
lrwxrwxrwx 1 32028 thisblue 11 Dec 16 2001 www -> public_html
226-Options: -a -l
226 19 matches total
CWD www
250 OK. Current directory is /www
PWD
257 "/www" is your current location
PASV
227 Entering Passive Mode (209,197,228,19,87,35)
LIST -al
150 Accepted data connection
drwxr-xr-x 8 32028 thisblue 4096 Dec 15 18:46 .
drwx--x--x 13 32028 thisblue 4096 Dec 21 18:27 ..
-rw-r--r-- 1 32028 thisblue 0 Dec 15 18:00 .htaccess
drwxr-xr-x 2 32028 thisblue 4096 Dec 15 18:00 cgi-bin
-rw-r--r-- 1 32028 thisblue 95 Dec 15 17:56 index.php
-rw-r--r-- 1 32028 thisblue 15127 Dec 15 17:56 license.txt
drwxr-xr-x 17 32028 thisblue 4096 Dec 15 17:55 oldblog
-rw-r--r-- 1 32028 thisblue 8781 Dec 15 17:56 readme.html
-rw-r--r-- 1 32028 thisblue 8168 Dec 15 18:32 searchdocs.php
drwxr-xr-x 2 32028 thisblue 4096 Dec 15 17:57 wp-admin
-rw-r--r-- 1 32028 thisblue 1972 Dec 15 17:57 wp-atom.php
-rw-r--r-- 1 32028 thisblue 8641 Dec 15 17:57 wp-blog-header.php
-rw-r--r-- 1 32028 thisblue 2365 Dec 15 17:57 wp-comments-post.php
-rw-r--r-- 1 32028 thisblue 3369 Dec 15 17:57 wp-commentsrss2.php
-rw-r--r-- 1 32028 thisblue 828 Dec 15 18:01 wp-config.php
drwxr-xr-x 4 32028 thisblue 4096 Dec 15 18:46 wp-content
-rw-r--r-- 1 32028 thisblue 762 Dec 15 17:57 wp-feed.php
drwxr-xr-x 3 32028 thisblue 4096 Dec 15 17:57 wp-images
drwxr-xr-x 2 32028 thisblue 4096 Dec 15 17:58 wp-includes
-rw-r--r-- 1 32028 thisblue 2319 Dec 15 17:58 wp-links-opml.php
-rw-r--r-- 1 32028 thisblue 9864 Dec 15 17:58 wp-login.php
-rw-r--r-- 1 32028 thisblue 5591 Dec 15 17:58 wp-mail.php
-rw-r--r-- 1 32028 thisblue 299 Dec 15 17:58 wp-pass.php
-rw-r--r-- 1 32028 thisblue 2346 Dec 15 17:58 wp-rdf.php
-rw-r--r-- 1 32028 thisblue 6525 Dec 15 17:58 wp-register.php
-rw-r--r-- 1 32028 thisblue 1345 Dec 15 17:58 wp-rss.php
-rw-r--r-- 1 32028 thisblue 2100 Dec 15 17:58 wp-rss2.php
-rw-r--r-- 1 32028 thisblue 5840 Dec 15 17:58 wp-settings.php
-rw-r--r-- 1 32028 thisblue 3069 Dec 15 17:58 wp-trackback.php
-rw-r--r-- 1 32028 thisblue 1922 Dec 15 17:58 wp.php
-rw-r--r-- 1 32028 thisblue 38304 Dec 15 17:58 xmlrpc.php
226-Options: -a -l
226 31 matches total
CWD wp-content
250 OK. Current directory is /www/wp-content
PWD
257 "/www/wp-content" is your current location
PASV
227 Entering Passive Mode (209,197,228,19,133,59)
LIST -al
150 Accepted data connection
drwxr-xr-x 4 32028 thisblue 4096 Dec 15 18:46 .
drwxrwxrwx 1 32028 thisblue 11 Dec 16 2001 ..
drwxr-xr-x 2 32028 thisblue 4096 Dec 15 17:57 plugins
drwxr-xr-x 7 32028 thisblue 4096 Dec 15 20:50 themes
226-Options: -a -l
226 4 matches total
CWD themes
250 OK. Current directory is /www/wp-content/themes
PWD
257 "/www/wp-content/themes" is your current location
PASV
227 Entering Passive Mode (209,197,228,19,50,83)
LIST -al
150 Accepted data connection
drwxr-xr-x 7 32028 thisblue 4096 Dec 15 20:50 .
drwxr-xr-x 4 32028 thisblue 4096 Dec 15 18:46 ..
drwxr-xr-x 3 32028 thisblue 4096 Dec 15 20:50 blix
drwxr-xr-x 2 32028 thisblue 4096 Dec 15 17:57 classic
drwxr-xr-x 3 32028 thisblue 4096 Dec 15 20:46 default
drwxr-xr-x 2 32028 thisblue 4096 Dec 15 19:03 theme-2
drwxr-xr-x 2 32028 thisblue 4096 Dec 15 19:05 theme-3
226-Options: -a -l
226 7 matches total
CWD default
250 OK. Current directory is /www/wp-content/themes/default
PWD
257 "/www/wp-content/themes/default" is your current location
PASV
227 Entering Passive Mode (209,197,228,19,93,184)
LIST -al
150 Accepted data connection
drwxr-xr-x 3 32028 thisblue 4096 Dec 15 20:46 .
drwxr-xr-x 7 32028 thisblue 4096 Dec 15 20:50 ..
-rw-r--r-- 1 32028 thisblue 171 Dec 15 17:57 404.php
-rw-r--r-- 1 32028 thisblue 2379 Dec 15 17:57 archive.php
-rw-r--r-- 1 32028 thisblue 355 Dec 15 17:57 archives.php
-rw-r--r-- 1 32028 thisblue 4931 Dec 15 17:57 comments-popup.php
-rw-r--r-- 1 32028 thisblue 3802 Dec 15 17:57 comments.php
-rw-r--r-- 1 32028 thisblue 572 Dec 15 17:57 footer.php
-rw-r--r-- 1 32028 thisblue 3190 Dec 15 17:57 header.php
drwxr-xr-x 2 32028 thisblue 4096 Dec 15 20:44 images
-rw-r--r-- 1 32028 thisblue 1280 Dec 15 17:57 index.php
-rw-r--r-- 1 32028 thisblue 187 Dec 15 17:57 links.php
-rw-r--r-- 1 32028 thisblue 572 Dec 15 17:57 page.php
-rw-r--r-- 1 32028 thisblue 1383 Dec 15 17:57 search.php
-rw-r--r-- 1 32028 thisblue 241 Dec 15 17:57 searchform.php
-rw-r--r-- 1 32028 thisblue 3005 Dec 15 17:57 sidebar.php
-rw-r--r-- 1 32028 thisblue 2652 Dec 15 17:57 single.php
-rw-r--r-- 1 32028 thisblue 8845 Dec 15 20:46 style.css
226-Options: -a -l
226 18 matches total
SIZE header.php
213 3190
MDTM header.php
213 20051215225723
PASV
227 Entering Passive Mode (209,197,228,19,36,215)
RETR header.php
150 Accepted data connection
226-File successfully transferred
226 0.003 seconds (measured here), 1.20 Mbytes per second
Transfer of header.php (3,251 bytes, 0 bytes/sec, 0:00 elapsed) completed at 12/21/05 3:28:15 PM
SIZE header.php
213 3190
MDTM header.php
213 20051215225723
PASV
227 Entering Passive Mode (209,197,228,19,31,38)
RETR header.php
150 Accepted data connection
226-File successfully transferred
226 0.002 seconds (measured here), 1.25 Mbytes per second
Transfer of header.php (3,251 bytes, 0 bytes/sec, 0:00 elapsed) completed at 12/21/05 3:28:47 PM
Update check skipped at 12/21/2005 03:29 PM (next check after 12/22/2005 05:05 AM)
PWD
257 "/www/wp-content/themes/default" is your current location
PWD
257 "/www/wp-content/themes/default" is your current location
PWD
257 "/www/wp-content/themes/default" is your current location
PWD
257 "/www/wp-content/themes/default" is your current location
PWD
257 "/www/wp-content/themes/default" is your current location
QUIT
221-Goodbye. You uploaded 0 and downloaded 7 kbytes.
221 Logout.Thank you for helping me.
-
Jim Matthews Administrator
this blue:
I wonder if the file you're opening isn't the same file that Fetch is downloading (since the Fetch transcipt shows a 3KB file being transferred).
One way you could test this theory is to select header.php and click Get Info in Fetch. Under "Transfer Options", set the After transferring a file like this option to "Save and open the file". And make sure the "Open files like this with:" menu is set to TextEdit. Then go back to the transfer window and click Get -- the file should be downloaded and opened in TextEdit for you. Is it blank when you do that?
Thanks,
Jim Matthews
Fetch Softworks -
guest Registered Member
Hi again,
Yes, I've done that. For a while, it wouldn't show TextEdit, only TexEdit, in my options for editing the file. I followed the instructions and rebuilt my launch database (twice), and now it shows only TextEdit in the menu. However, when I download and open the file, it's still blank.
I suppose I can copy the information from the View option and just use and upload that...
-
Jim Matthews Administrator
It sounds like you tried something other than what I suggested; I was not suggesting using the Edit command or "Edit the file" transfer option. I was suggesting setting the "After transfering a file like this:" option to "Save and open the file." You would set the "Open files like this with:" menu to TextEdit (the "Edit files like this:" menu won't list TextEdit, for reasons explained in Fetch Help).
Please let me know what happens when you make these settings and then select the .php file and click Get. Does Fetch automatically open the file in TextEdit? It would also be helpful to see the contents of the Fetch Transcript window.
Thanks,
Jim Matthews
Fetch Softworks -
guest Registered Member
Sorry, I'm not being clear.
I selected header.php. I chose Get Info. In Transfer Options, I chose "Save and Open the file with" and chose Text Edit. (What I meant before was that for a while, TextEdit was not showing up in that pulldown menu. Now it is.) When I choose to Get header.php, the file opens in Text Edit, but opens as a blank file.
Here is the transcript:
Fetch 5.0.4 (5A785) running on Mac OS X 10.4.3 (8F46) English
StuffIt Engine 0x812, StuffIt SDK Version 10.0
Partial serial FETCH5X001-HAB7-RL79 T
Connecting to www.thisblueangel.com port 21 (12/23/05 4:24:44 PM)
Connected to 209.197.228.19 port 21 (12/23/05 4:24:44 PM)
220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 19:24. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
USER thisblue
331 User thisblue OK. Password required
PASS
230-User thisblue has group access to: thisblue
230 OK. Current restricted directory is /
SYST
215 UNIX Type: L8
PWD
257 "/" is your current location
MACB ENABLE
500 Unknown command
PWD
257 "/" is your current location
CWD www
250 OK. Current directory is /www
PWD
257 "/www" is your current location
CWD wp-content
250 OK. Current directory is /www/wp-content
PWD
257 "/www/wp-content" is your current location
CWD themes
250 OK. Current directory is /www/wp-content/themes
PWD
257 "/www/wp-content/themes" is your current location
CWD default
250 OK. Current directory is /www/wp-content/themes/default
PWD
257 "/www/wp-content/themes/default" is your current location
TYPE A
200 TYPE is now ASCII
PASV
227 Entering Passive Mode (209,197,228,19,94,101)
LIST -al
150 Accepted data connection
drwxr-xr-x 3 32028 thisblue 4096 Dec 15 20:46 .
drwxr-xr-x 7 32028 thisblue 4096 Dec 15 20:50 ..
-rw-r--r-- 1 32028 thisblue 171 Dec 15 17:57 404.php
-rw-r--r-- 1 32028 thisblue 2379 Dec 15 17:57 archive.php
-rw-r--r-- 1 32028 thisblue 355 Dec 15 17:57 archives.php
-rw-r--r-- 1 32028 thisblue 4931 Dec 15 17:57 comments-popup.php
-rw-r--r-- 1 32028 thisblue 3802 Dec 15 17:57 comments.php
-rw-r--r-- 1 32028 thisblue 572 Dec 15 17:57 footer.php
-rw-r--r-- 1 32028 thisblue 3190 Dec 15 17:57 header.php
drwxr-xr-x 2 32028 thisblue 4096 Dec 23 15:13 images
-rw-r--r-- 1 32028 thisblue 1280 Dec 15 17:57 index.php
-rw-r--r-- 1 32028 thisblue 187 Dec 15 17:57 links.php
-rw-r--r-- 1 32028 thisblue 572 Dec 15 17:57 page.php
-rw-r--r-- 1 32028 thisblue 1383 Dec 15 17:57 search.php
-rw-r--r-- 1 32028 thisblue 241 Dec 15 17:57 searchform.php
-rw-r--r-- 1 32028 thisblue 3005 Dec 15 17:57 sidebar.php
-rw-r--r-- 1 32028 thisblue 2652 Dec 15 17:57 single.php
-rw-r--r-- 1 32028 thisblue 8845 Dec 15 20:46 style.css
226-Options: -a -l
226 18 matches total
SIZE header.php
213 3190
MDTM header.php
213 20051215225723
PASV
227 Entering Passive Mode (209,197,228,19,176,95)
RETR header.php
150 Accepted data connection
226-File successfully transferred
226 0.003 seconds (measured here), 1.18 Mbytes per second
Transfer of header.php (3,251 bytes, 0 bytes/sec, 0:00 elapsed) completed at 12/23/05 4:25:06 PM
PWD
257 "/www/wp-content/themes/default" is your current location
Update check skipped at 12/23/2005 04:26 PM (next check after 12/31/2005 05:48 AM)
PWD
257 "/www/wp-content/themes/default" is your current location
PWD
257 "/www/wp-content/themes/default" is your current location
PWD
257 "/www/wp-content/themes/default" is your current location -
Jim Matthews Administrator
Thanks for the clarification. I think you're running into a "feature" of TextEdit. It tries to interpret the PHP file as HTML, and shows you the result (which is apparently blank) rather than the source code. I would try checking the "Ignore rich text commands in HTML files" box in the "Open and Save" section of TextEdit's Preferences window.
Does that fix the problem?
Thanks,
Jim Matthews
Fetch Softworks -
guest Registered Member
Yes! That worked.
I feel silly now. I had changed other things in Text Edit, but not that.
Thanks...
-
Scott McGuire Administrator
We're glad to hear that worked. Thanks for the followup.
Scott McGuire
Fetch Softworks
- Page 1
Using BBEDIT 8.2.4 and Fetch on a Macintosh running OSX.
When I Get .php extension files, a dialog box comes up from StuffitExpander saying the following:
The file "whatever.php" does not appear to be compressed or encoded. The application "BBEdit.app" might to be able to open this file. Would you like to try opening the file using "BBEdit.app"?
If I click on Don't Try - the file opens fine with BBEdit.
But I have to see this dialog and click on Don't Try for EVERY file!
When I download .jpg or .html files, no dialog box, no problems.
I've looked around and can't seem to find a setting to make it stop doing this.
Thanks for any help you can offer!
Posted 17 years ago #