Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Updating Website From Another -- Website, Is it possible, and how?
Rating 5 V
matak
post Nov 4 2006, 01:04 AM
Post #1


Super Member
*********

Group: Members
Posts: 413
Joined: 4-October 06
From: Psychedelic Realms
Member No.: 31,079



i was just thinking about this project that i'm doing, and i thought that it would be a good thing that i could update my website let's say on trap17 from my localhost computer with a click of a mouse, without all of that ftp mambo-yumbo

the thing is that i wanted an "UPDATE" button on my site which woud connect to my localhost and update all the things needed.

let's say i added few profiles localy, and i want to update them on site.. how could it be done.

if i was crude in explanation please write what info u still need and i'll post it back...

This post has been edited by matak: Nov 4 2006, 01:05 AM
Go to the top of the page
 
+Quote Post
hts
post Nov 4 2006, 08:30 AM
Post #2


Advanced Member
*******

Group: Members
Posts: 138
Joined: 30-September 06
From: Iasi, Romania
Member No.: 30,851



http://www.ftpsynchronizer.com/

install the program, set it up with your hostname, password etc...then you can synchronize between your computer and your webhost wink.gif

ps: this is not free...however, if this software does not satisfy your, just search google for ftp synchronization (that`s what I did smile.gif )...maybe you`ll find something better wink.gif
Go to the top of the page
 
+Quote Post
matak
post Nov 4 2006, 01:08 PM
Post #3


Super Member
*********

Group: Members
Posts: 413
Joined: 4-October 06
From: Psychedelic Realms
Member No.: 31,079



well, yes i didn't wanted program but just piece of code. that's why i posted in php programing. but i guess this is a hard one to answer and maybe requires some expert knowlege of programing.

later il try googleing your way, and if anybody else has any ideas on how to google this one PM me or something..(i really have problems trying to figure out how is something translated from croatian to english in these technical terms)

pozdrav
wink.gif
Go to the top of the page
 
+Quote Post
Sirius
post Nov 5 2006, 12:40 PM
Post #4


Member [Level 3]
******

Group: Members
Posts: 90
Joined: 17-October 05
Member No.: 13,032



I would suggest using Macromedia Dreamweaver. It's not 'free' but it's great for php coding such that it colorizes the code and when you save the file, there is a option so that it can automatically connect, and upload the saved file to your web server.

Go to the top of the page
 
+Quote Post
garbage
post Nov 5 2006, 01:28 PM
Post #5


Privileged Member
*********

Group: [HOSTED]
Posts: 659
Joined: 16-April 06
From: Texas
Member No.: 21,945



that would be it, i have also read about this on adifferent forum if i can find the link ill post it here beacause those people had posted several sites..
Go to the top of the page
 
+Quote Post
galexcd
post Nov 7 2006, 03:05 AM
Post #6


Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software.
***********

Group: [HOSTED]
Posts: 1,022
Joined: 25-September 05
From: L.A.
Member No.: 12,251



He isn't talking about ftp or editing sophtware guys... He means a peice of code that can change code on a diferent page dynamicly. And I do think I know the solution for this. The php fopen, and fwrite functions do just this.

Syntax:
fopen(string filename,string mode[,bool use_include_path[,resource zcontext]])
fwrite(resource handle,string string[,int length])

basically, you could just write
CODE

$content="Text you would like to set your file to";
$open=fopen("http://www.yoursite.com/file.php","w");
fwrite($open,$content);
fclose($open)


I didn't try this code yet, so Im not sure if you can write directly to the file through http, but you can definatly do it through ftp by making the url ftp://user:password@yoursite.com/file.php instead of http://www.yoursite.com/file.php.

Remember, the file that you are tring to write to, if you do not use FTP, needs to be writable by the world, so set the proporties of the file to give everybody permison to read and write the file.
Go to the top of the page
 
+Quote Post
matak
post Nov 7 2006, 03:19 AM
Post #7


Super Member
*********

Group: Members
Posts: 413
Joined: 4-October 06
From: Psychedelic Realms
Member No.: 31,079



yes qwertyiscool that is the piece of code i've wondered about.
but i'm real noob at all of this, beacouse right now i have great problems with joomla and file permisions. something is messing everything up. i don't know, maybe the problem is in my .htacces file, i'm editing it right now but file manager is not working right. beacouse of permisions i can't edit it in ftp client. i think i need to go to sleep, and then i'll try this piece of code of yours tommorow smile.gif
installing filezila as my last option..
Go to the top of the page
 
+Quote Post
galexcd
post Nov 7 2006, 03:35 AM
Post #8


Define:EVIL PROGRAMMER (ē'vəl prō'grăm'ər)- n. An organism that converts caffeine into evil software.
***********

Group: [HOSTED]
Posts: 1,022
Joined: 25-September 05
From: L.A.
Member No.: 12,251



It should work, but PM me if you have any more problems
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Very Good Php Website(10)
  2. Website Made With Php(31)
  3. Links To Lots Of Usefull Website(1)
  4. Php Dynamic News Updating Using Mysql(3)
  5. Need Help With My Website(4)
  6. Php Website Assistance?(1)
  7. Website Help(10)
  8. Free Website Portal(2)
  9. Music Website(3)
  10. Can My Forum And Website Use The Same Profiles?(3)
  11. Sending Messeges Over A Website.(3)
  12. How I Can Display Forum Topic On Main Website ?(4)
  13. Question: Securing A Website For Beginners(1)
  14. Help With Some Website Coding(4)
  15. Creating A Login Box That Links To My Phpbb Forum(4)
  1. Real Time Updating With Ajax(5)
  2. Updating Php File Through A Web Form(5)