Hello,
When I modify a remote PHP file on my server, it is modified directly on the server.
If the file is a TXT, JSP file, no, it is dowloaded on my computer, under a tmp folder, and I have to upload it to the server.
Why ?
I saw "files associations" in the TDE menu, but not finded a solution.
Thanks, cheers.
André
On Sun, Mar 20, 2022 at 10:53:47PM +0100, ajh-valmer wrote:
Hello,
When I modify a remote PHP file on my server, it is modified directly on the server.
How do you connect to the server? How do you modify the file?
If the file is a TXT, JSP file, no, it is dowloaded on my computer, under a tmp folder, and I have to upload it to the server.
And how do you modify those files?
On Sunday 20 March 2022 23:35:27 Steven D'Aprano wrote:
On Sun, Mar 20, 2022 at 10:53:47PM +0100, ajh-valmer wrote:
When I modify a remote PHP file on my server, it is modified directly on the server. If the file is a TXT, JSP file, no, it is dowloaded on my computer, under a tmp folder, and I have to upload it to the server. Why ?
On Sunday 20 March 2022 23:50:27 deloptes wrote:
AFAIK it is always downloaded as there is no way to modify it directly on the server and a PHP file is downloaded the same way. But explain what you are doing step by step. How do you connect to the server? How do you modify the file? And how do you modify those files?
Hello,
I use sftp://<server-address> with Konqueror. I open the files : .TXT .JSP .PHP... with kedit. Thoses files are text, even if the extension is not txt.
Only the .php files are directly amended under : sftp://<server-address>/folder
The others (.jsp , .txt) are first dowloaded on : /var/tmp/tde-cache-andre... I make corrections, and I have to upload them so that it is registered on the server. It takes more time than the .php files.
Thanks, cheers, Andre
On Mon, 21 Mar 2022, ajh-valmer wrote:
On Sunday 20 March 2022 23:35:27 Steven D'Aprano wrote:
On Sun, Mar 20, 2022 at 10:53:47PM +0100, ajh-valmer wrote:
When I modify a remote PHP file on my server, it is modified directly on the server. If the file is a TXT, JSP file, no, it is dowloaded on my computer, under a tmp folder, and I have to upload it to the server. Why ?
On Sunday 20 March 2022 23:50:27 deloptes wrote:
AFAIK it is always downloaded as there is no way to modify it directly on the server and a PHP file is downloaded the same way. But explain what you are doing step by step. How do you connect to the server? How do you modify the file? And how do you modify those files?
Hello,
I use sftp://<server-address> with Konqueror. I open the files : .TXT .JSP .PHP... with kedit. Thoses files are text, even if the extension is not txt.
Only the .php files are directly amended under : sftp://<server-address>/folder
The others (.jsp , .txt) are first dowloaded on : /var/tmp/tde-cache-andre... I make corrections, and I have to upload them so that it is registered on the server. It takes more time than the .php files.
Thanks, cheers, Andre
Strange. That is _exactly_ the way I edit/delete/move/rename my remote files. I use konqueror with two split windows (window => split left/right) with (usually) my local directory in the left pane and my remote directory in the right pane.
I just checked -- editing a no-extension bash script with kwrite and I do not see what you are reporting. I did a trivial change in a comment in a bash script and saved it. The result was the 'new' bash_script and the bash_script~ backup that kwrite always leaves behind.
While the remote file is open in konqueror, I have _no_ /var/tmp/tde-cache-jonesy
I dunno what to suggest....
Jonesy
On Monday 21 March 2022 13:23:05 Marvin Jones via tde-users wrote:
On Sunday 20 March 2022 23:35:27 Steven D'Aprano wrote:
On Sun, Mar 20, 2022 at 10:53:47PM +0100, ajh-valmer wrote:
When I modify a remote PHP file on my server, it is modified directly on the server. If the file is a TXT, JSP file, no, it is dowloaded on my computer, under a tmp folder, and I have to upload it to the server. Why ?
I use sftp://<server-address> with Konqueror. I open the files : .TXT .JSP .PHP... with kedit. Thoses files are text, even if the extension is not txt. Only the .php files are directly amended under : sftp://<server-address>/folder The others (.jsp , .txt) are first dowloaded on : /var/tmp/tde-cache-andre... I make corrections, and I have to upload them so that it is registered on the server. It takes more time than the .php files.
Strange. That is _exactly_ the way I edit/delete/move/rename my remote files. I use konqueror with two split windows (window => split left/right) with (usually) my local directory in the left pane and my remote directory in the right pane. I just checked -- editing a no-extension bash script with kwrite and I do not see what you are reporting. I did a trivial change in a comment in a bash script and saved it. The result was the 'new' bash_script and the bash_script~ backup that kwrite always leaves behind. While the remote file is open in konqueror, I have _no_ /var/tmp/tde-cache-jonesy
The files are present in this folder : "/var/tmp/tdecache-andre/krun/<files .txt or files .jsp>" When modified, they are uploaded on the remote server, registered, in the folder /var/www/ I'm think that this strange attitude could be resolved with TDE menu, TDE components => files associations, but how ?
Cheers , André
On Mon, Mar 21, 2022 at 12:31:46PM +0100, ajh-valmer wrote:
I use sftp://<server-address> with Konqueror. I open the files : .TXT .JSP .PHP... with kedit. Thoses files are text, even if the extension is not txt.
Are you 100% sure that all the files are opened with kedit?
If some open with kwrite and some with kedit, that could explain the difference in behaviour.
On Tuesday 22 March 2022 00:16:28 Steven D'Aprano wrote:
On Mon, Mar 21, 2022 at 12:31:46PM +0100, ajh-valmer wrote:
I use sftp://<server-address> with Konqueror. I open the files : .TXT .JSP .PHP... with kedit. Thoses files are text, even if the extension is not txt.
Are you 100% sure that all the files are opened with kedit? If some open with kwrite and some with kedit, that could explain the difference in behaviour.
kedit, yes sure 100%, anyway, kwrite or kedit, same behaviour.
ajh-valmer wrote:
Hello,
When I modify a remote PHP file on my server, it is modified directly on the server.
If the file is a TXT, JSP file, no, it is dowloaded on my computer, under a tmp folder, and I have to upload it to the server.
Why ?
AFAIK it is always downloaded as there is no way to modify it directly on the server and a PHP file is downloaded the same way. But explain what you are doing step by step.
On Sun March 20 2022 14:53:47 ajh-valmer wrote:
When I modify a remote PHP file on my server, it is modified directly on the server.
If the file is a TXT, JSP file, no, it is dowloaded on my computer, under a tmp folder, and I have to upload it to the server.
Why ?
Hi André,
Could this be a permissions issue, either on the PHP file itself or on a directory?
Also IIRC you can't write to an EXE that's currently being executed and I'm wondering if there's any similar logic protecting scripts. Are the PHP files open on the server when this is happening? Does it make a difference if the web server application - Apache or whatever - is shut down?
--Mike
On Tuesday 22 March 2022 16:27:15 Mike Bird wrote:
On Sun March 20 2022 14:53:47 ajh-valmer wrote:
When I modify a remote PHP file on my server, it is modified directly on the server. If the file is a TXT, JSP file, no, it is dowloaded on my computer, under a tmp folder, and I have to upload it to the server. Why ?
Hi André,
Could this be a permissions issue, either on the PHP file itself or on a directory?
Hi Mike, Thanks for your answer.
All the folders have the same rights : rwxrwxr-- 1 www-data www-data /var/www/<files>
Also IIRC you can't write to an EXE that's currently being executed and I'm wondering if there's any similar logic protecting scripts. Are the PHP files open on the server when this is happening? Does it make a difference if the web server application - Apache or whatever - is shut down? Mike
For me, a .exe file is for Windows :-) And how to create this binary file ? I don't think that the problem comes from the Web server Apache, closed or opened. Why the .php files can be modified directly in their folder /var/www/ and the .txt .jsp files, not. This problem will find an issue in the TDE Menu -> TDE components -> Files Associations, but how ?
Cheers, André
On Tuesday 22 March 2022 16:27:15 Mike Bird wrote:
On Sun March 20 2022 14:53:47 ajh-valmer wrote:
When I modify a remote PHP file on my server, it is modified directly on the server. If the file is a TXT, JSP file, no, it is dowloaded on my computer, under a tmp folder, and I have to upload it to the server. Why ?
Hello,
I founded a solution to modify a remote.txt file directly on the remote computer. In the TCC menu -> TDE components -> files association, I add in the php files, the .txt files with X-php. I know that is not a really right solution, but miracle, it works.
Cheers,
André