Previous Thread
Next Thread
Print Thread
Rate Thread
#229745 12/25/2002 3:29 PM
Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
Question...
just noticed that my FTP is defaulting the .php files to Binary transfer. I was under the impression these should be ASCII.

Please remind me

THANKS!

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Yes .php should be transfered as ASCII just as .htm or .txt or other text like files.

If your using WSFTP pro there should be an option somewhere to add .php to the list of extentions that are transfered as ASCII.

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
Thanks!

So far no issues with the transfer, but I thought so. I'm using a new program Secure FX since I don't allow any non-secure FTP into the box. I like the program, and it is very flexible. I found the definitions to reclass type of transfer.

VanDyke.com is the maker if you are interested.

I think I may have 'taught' it to do the transfer as binary... but I'm not sure.

Anyways... thanks for the quick response!

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Is your server Windows or Linux? The UBB.threads files are distributed in Unix text format, so if your server is Linux, you can transfer them in binary. (Unless you've done something to explicitly convert them to Windows text format.)

Joined: Oct 2002
Posts: 165
Member
Member
Offline
Joined: Oct 2002
Posts: 165
Yes,

I'm Linux. Maybe that ius why the Binary transfer worked

I did change for future transfers to be on the safe side.


Sponsored Links
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
My server requires SSH, and my SSH client used to only support binary transfer, so I got into the habit of transferring everything in binary.

Joined: Oct 2000
Posts: 2,223
Veteran
Veteran
Offline
Joined: Oct 2000
Posts: 2,223
PHP files can be transfered in binary just fine, as can almost any other text file.

The reason perl files need ascii is because the line feed after the shebang needs to be in teh format perl expects it. If you were running PHP as a cgi binary instead of an apache module you would find the same thing to be true.

If you upload a perl script in binary and from the command line type perl filename.pl you'll probably find that it works because you tols it to use perl to execute the file. As long as perl is in your path it should work.


Picture perfect penmanship here.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)