Programming :: PHP - Connection To Remote Server To Edit File?

Mar 14, 2010

I have a webGUI in php where users can make certain settings. How can I edit a file on a remote server from my php webserver? Currently I use my FTP client, vsFTPd and a chrooted user in a specific directory where the file resides. I think this is pretty save as long a nobody else uses my FTPclient. How can I make changes to this file on the remote server from within my php-code on my webserver ?? (so that not I need to make the changes but my users can do it from a html-form) I found this but the credentials for the FTP-connection are plain :

<?php
$file = fopen ("ftp://loginasswd@server", "w");
if (!$file) {
echo "<p>Unable to open remote file for writing.
";

[code].....

I use https for the webGUI, but I guess this does not mean the connection to the remote server will be encrypted also ? Can I use my FTP-user (has no shell) from within php to edit the file ?

View 12 Replies


ADVERTISEMENT

Server :: Remote MySQL Server Connection Dies After Wget Large File

Feb 3, 2011

We have 2 servers, 1 is the webserver and the other is the Mysql server.

When transfering a 2GB file from the webserver to the Mysql server.

The webserver's connection to the mysql DB server dies completely.

Need to restart the MYSQL process in order for it to come back online.

During this connection downtime, when using phpmyadmin on the mysql server shows no problem running queries etc.

View 2 Replies View Related

Programming :: Ajax To Open An Ftp Connection - Download A File And Then Turn Around And POST It To A Web Server?

Jun 23, 2011

just curious, this might not be possible, but is there any way with ajax to open an ftp connection, download a file and then turn around and POST it to a web server? the reason i ask is because i'm writing a script on a shared hosting plan that doesn't give me permission to directly talk outbound on the ftp port but i need to synchronize a file from a csv on an ftp server, this means i have to do the process manually, is there any way i can just click the button and let my browser do the work?

View 4 Replies View Related

Ubuntu :: Edit File Inside It, Open It, Edit A File, Then Remake The Bin File?

Mar 3, 2011

I have a linux.img image for ubuntu.I want to edit file inside it, how can open it, edit a file, then remake the bin file?

View 7 Replies View Related

Programming :: Split Open Same File And Edit Only 1 Window?

May 14, 2011

whether it is possible to split open a file and edit only one of the open windows.

View 2 Replies View Related

Server :: Mysql Command To Allow A Remote Connection?

Jun 8, 2010

what is the correct command on a mysql command line to alllow mysql to alllow remote connection on a server

View 1 Replies View Related

Debian :: Server IP - Remote Desktop Connection Failed

Jun 14, 2011

I want to connect to my Linux debian server, via Remote desktop connection, but when I give IP of my server and click connect, it fail, it says can't connect to the remote computer and below 3 reason.

View 3 Replies View Related

Ubuntu :: Remote Desktop Connection In Windows Server

Jul 29, 2011

I deleted my windows and now I am alone with ubuntu I use them before and now I can say that they are really awesome, basicly I want 3 things that I am using and then it will be really awesome.

- Remote Desktop Connection In Windows Server.
- A Virtual Camera Like ManyCam
- Putty Client

View 5 Replies View Related

Server :: MySQL Odbc Connection Remote Client?

Jul 27, 2010

I wish to connect to MySQL using an ODBC connection and I'm using isql to test. On the server connection using isql to local host is sweet however the problem is the client.Okay my set up looks like thisOn the server /etc/odbc.ini is[MySQL-scopus2008]Description = MySQL citation databaseDriver = MySQLServer = localhostDatabase = scopus2008Por

View 4 Replies View Related

Server :: Restrict Remote Telnet Connection + Port 80?

May 5, 2011

Is it possible to restrict telnet connection from remote to my server(linux -centos5)?

=================
Ex : [root@localhost]# telnet 10.0.0.33 80
Trying 10.0.0.33...

[code]...

View 2 Replies View Related

Server :: Can't Seem To Remove Rights For A Remote Root Connection?

Apr 2, 2011

I can't seem to remove rights for a remote root connection. Below you can see that the rights are present before and after the successful revoke command. I am using the correct command.

[Code]...

View 1 Replies View Related

CentOS 5 Server :: Implement Virtualization Using A Remote Connection?

Jun 26, 2009

The word on all lips are "virtualization" so I decided to smell this flavor.
I have a machine running CentOS 5.3 64bit and I have unlimited access to this machine, but I don't want to reach it physically.
Is it possible to install and maintain a virtual medium using ssh or other remote connection?
When I installed the OS I have selected the packets regarding the virtualization, but now from where can I start?
Is somewhere a guide for doing this?

View 3 Replies View Related

Ubuntu Servers :: SSH Server Connection OK For Local But Not For Remote Machine

Aug 14, 2010

I am having trouble to make my SSH server working with remote machine.

Code:
telnet 192.168.1.102 22

PHP Code:

[Code].....

View 9 Replies View Related

General :: Connection Timed Out While Connecting Through Securecrt To Remote Server?

Feb 13, 2011

I am not able to connect to remote server through secureCRT . my local team has said that server is working fine . but I am not able to connect it remotely . what more i can do to connect it to server

View 10 Replies View Related

General :: FTP Error - 421 Service Not Available, Remote Server Has Closed Connection

Mar 23, 2011

We have one FTP server. Users are uploding files to the perticular directory remotely. but today some users got below error message.

421 Service not available, remote server has closed connection.

(vsftpd service is up and running) What are the possible causes for this error and from where I should start troubleshooting?

View 5 Replies View Related

Programming :: Edit Configuration Files More Than One Server By Shell Script

Feb 7, 2011

how to write shell script(awk/sed or any other) to edit value of parameters in configuration files on same server or remote server.

View 3 Replies View Related

Fedora Servers :: Able To Telnet To The Server Via A Remote Connection \ Will Not Accept Mail?

Feb 18, 2009

I am able to telnet to the server via a remote connection, but for some reason, it will not accept mail. ere is the bounce back email I am getting.Quote:This is the mail system at host smtp.mydomain.net.I'm sorry to have to inform you that your message could notbe delivered to one or more recipients. It's attached below.For further assistance, please send mail to postmaster.If you do so, please include this problem report. You candelete your own text from the attached returned message.The mail system

<root@mydomain.net>: temporary failure. Command output: pipe: fatal: pipe_command:
execvp /usr/bin/perlbin/vendor/spamc: No such file or directory
Reporting-MTA: dns; smtp.mydomain.net

[code]....

View 11 Replies View Related

Ubuntu Servers :: 'aborted Connection' After Installing PEAR On Remote Server

Jun 30, 2010

I was trying to install PEAR on a remote Ubuntu server using putty. I ran an apt-get install php-pear command and everything went smoothly, but now i cannot access the website as it says 'can't establish a connection to the server' and in firebug, it shows the status 'aborted'. I even tried adding the pear path in php.ini file and restarting the apache server but no luck.

View 1 Replies View Related

Ubuntu Networking :: Remote Server 11.04 Connection Refused When Monitor Not Connected

Jul 14, 2011

i done desktop config in ubuntu server 11.04 and connected via tightvnc,uvnc and in remote desktop viewer from another ubuntu machine also. I am not able to access(connect) the server in GUI mode(when monitor is removed) but i putty is working fine in cmd line.

View 1 Replies View Related

General :: Parse File From Remote Server To Caculate Count Of String Existence In That File?

Aug 30, 2010

I need to parse the file of same name which exist on different servers and calculate the count of string existed in both files.Say a file abc.log exist on 2 servers.I want to search for string "test" on both files and calculate the total count of search string's existence.For example if file abc.log on server 1 has string "test" 2 times
and file abc.log on server 2 has string "test" 4 times.then the output will beStringName : Countexampletest : 6 timesNote : I have created the password less connectivity using ssh-keygen.

View 2 Replies View Related

Server :: Mail Bouncing - SMTP Error From Remote Mail Server After Initial Connection: 550 Access Denied

Aug 30, 2010

This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:

xx@xx.com
SMTP error from remote mail server after initial connection: host [URL] [ip address]: 550 Access denied...

View 6 Replies View Related

Software :: Edit Configuration File Of Talk Server?

Jan 25, 2010

How we edit the configuration file of talk server.

View 1 Replies View Related

CentOS 5 Server :: Can't Edit /etc/bashrc File / Make It Possible?

Apr 20, 2010

I am having a lil headache with it.
Some time ego i edited my /etc/bashrc file to add some aliases and colours for my ssh console.
Today i had a need to change few thing but for some reason i can't edit or delete this file any more.

I am logged as root.

rm bashrc
cannot remove, operation not permitted

chown and/or chmod fails as well with "not permitted" errors.

ls -Al | grep bashrc
-rw-r--r-- 1 root root 2514 mar 31 13:05 bashrc

Any ideas what's going on?

View 2 Replies View Related

Ubuntu Networking :: Mobile Broadband - VPN - Remote Computer Losing It's Connection To The Server

Feb 21, 2011

I'm setting up a computer with xUbuntu installed and wan't to run it as a PPtP VPN server.

I'm using a mobile broadband for internet connection, with DynDNS wich updates the host with public IP-address.

I've managed to set up the connections and installed the needed packages. The problem appears when I connect to the VPN server through another computer;

When I get connected to the VPN server the remote computer recieves an IP-address from the server (xUbuntu) wich is great! But the server changes prefered network, from the mobile broadband to the wired network wich results in the remote computer losing it's connection to the server.

View 1 Replies View Related

Ubuntu Servers :: Remote Desktop Connection - Cannot Seem To Connect To Any Windows Server Via IP Address

May 5, 2011

I have a problem with my Terminal Server Client, I cannot seem to connect to any windows server via IP address. Can anyone please recommend any tool I could use to connect? I need to work on the server for admin interfaces example Admin Kits for workspace protection

View 9 Replies View Related

Software :: Edit Index.html File Of Apache Web Server

Aug 16, 2010

Do I need to restart the webserver if I make any change in the file index.html? Or should the changes get reflected when I open the page again without restarting the service?

View 3 Replies View Related

Programming :: Copy A File Securely To Remote Host In JAVA?

Feb 2, 2009

I am looking for an API in JAVA which gives me functionality to copy a file to remote host in secure manner like (SCP).

View 1 Replies View Related

Ubuntu Servers :: FTP From Server To Remote File Server?

Jul 6, 2010

I support a small business which runs a headless Ubuntu Server (10.04 32bit) as a file server which is accessed by Windows machines.Although the company has it's own back-up procedure they have decided to back-up some (none sensitive) files online. The have chosen FileFactory (http://www.filefactory.com/) as the host for this. FileFactory allows files to be uploaded to their server by FTP however I do not know how to set this up on the server.

The idea, if it is possible, is to connect to FileFactory through FTP and then synchronise the data using an Rsync command.I normally access the server through Webmin and it has vsFTP installed. I can access the company's server by FTP from inside and outside of the network so I know that vsFTP is working for incomming connections however I cannot work out how to configure it to connect to the FileFactory server.

View 3 Replies View Related

Programming :: Accessing Server From Remote Host?

Mar 2, 2011

i have made a java web server which works on localhost.but now i want to capable it handling many clients at a time.so clients running on different computer need machine name or IP address of server computer.How can i do this in java?

View 1 Replies View Related

Programming :: Redirect Output To Remote Server Via Ssh?

May 18, 2009

I need to output of the script to the remote server via redirect. I created a simple script for your reference.Quote:

#!/bin/bash
W=`/usr/bin/w`
FREE=`/usr/bin/free`

[code]...

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved