Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Transferring php files using ftp
Old 02-25-2008, 08:26 PM Transferring php files using ftp
Average Talker

Posts: 26
Name: Carl
Trades: 0
I'm switching hosting providers.

I am transferring my php files from old server to new server using command line ftp (I know, this is ancient, but it works for me)

When I get all of the files on the new server, all of the apostrophes (') are changed to some weird looking control chars.

I tried transfer in binary and ascii modes.

What can I try next?

Thanks
__________________

Please login or register to view this content. Registration is FREE
carlg is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-25-2008, 08:39 PM Re: Transferring php files using ftp
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Convert all the files to utf-8 first. Then stop using Dreamweaver/Microsoft whatever to code a page and use notepad.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-25-2008, 09:43 PM Re: Transferring php files using ftp
Average Talker

Posts: 26
Name: Carl
Trades: 0
Quote:
Then stop using Dreamweaver/Microsoft whatever to code a page and use notepad.
I use vi
__________________

Please login or register to view this content. Registration is FREE
carlg is offline
Reply With Quote
View Public Profile
 
Old 02-25-2008, 10:04 PM Re: Transferring php files using ftp
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Those characters are 16 bit, they are the curved ones, not the straight. (I had this happen before)
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 02-26-2008, 01:58 AM Re: Transferring php files using ftp
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Use scp if you have shell access to your servers.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 02-26-2008, 02:27 PM Re: Transferring php files using ftp
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
I'd say use scp AND tar.

Scp is threadless, and copy 1 file after the other, redoing a negotiation for each files.
If you tgz your files, you will transfer them much faster, as the negotiation will be done only once.

That, and scp cannot copy files recursively, or I messad the option in "man scp".
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 02-27-2008, 01:53 AM Re: Transferring php files using ftp
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
You will be surprised.
Code:
-r      Recursively copy entire directories.
Also you can say -C to scp to enable compression. It uses the same compression algo that is used by gzip, so in this case you will not have to compress your tar on source and decompress it on target.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to Transferring php files using ftp
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34662 seconds with 12 queries