updating filzilla server.xml

Have the feeling that everybody is staring at you in the other forums? Then look here, in this forum nobody does care what you say ;-)

Moderator: Project members

Message
Author
thatsme
500 Syntax error
Posts: 13
Joined: 2009-01-17 05:30
First name: thatsme
Last name: thatsme

updating filzilla server.xml

#1 Post by thatsme » 2009-02-11 18:23

passthru("C://Program Files/FileZilla Server/FileZilla Server.exe"/reload-config);

getting the error - Division by zero in C:\wamp\www\ftppassword.php

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: updating filzilla server.xml

#2 Post by botg » 2009-02-11 19:16

ROFL brilliant :P

thatsme
500 Syntax error
Posts: 13
Joined: 2009-01-17 05:30
First name: thatsme
Last name: thatsme

Re: updating filzilla server.xml

#3 Post by thatsme » 2009-02-12 02:00

:o

Please have a look at it, http://forum.filezilla-project.org/view ... t=passthru

In one of your replies you had asked not to put the quote to the arguments.

You request the members to search for the forum before posting the question for similar questions. If the solutions does not work then there's no option but, to post the question.

We put the question and wait for hours hoping we get a solution and the kind of reply you provided for my query doesn't help anyone.

Cypress
226 Transfer OK
Posts: 121
Joined: 2008-09-13 19:39
First name: J

Re: updating filzilla server.xml

#4 Post by Cypress » 2009-02-12 05:09

thatsme wrote:passthru("C://Program Files/FileZilla Server/FileZilla Server.exe"/reload-config);

getting the error - Division by zero in C:\wamp\www\ftppassword.php
cooperspc wrote:IN YOUR PHP SCRIPT USE

Code: Select all

passthru("LOCATION of FILEZILLA/filezillaserver.exe /reload-config");
FOR PASSTHRU TO WORK, must have php safemode off or setup safemode exe dir to the LOCATION of FILEZILLA
Notice the position of the quotes?

cszeto
226 Transfer OK
Posts: 242
Joined: 2006-04-27 08:48
Location: Arizona, USA

Re: updating filzilla server.xml

#5 Post by cszeto » 2009-02-12 08:11

What does PHP scripting have anything to do with FileZilla server?
Microsoft MVP (2004 through 2008)

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: updating filzilla server.xml

#6 Post by botg » 2009-02-12 09:15

This has nothing to do with safe mode. Top poster is complaining about an integer division.

I find it a hilarious example of why people think PHP is a bad language to write secure apps when in fact it's the PHP users that are clueless and thus do not know how to write proper code.

cszeto
226 Transfer OK
Posts: 242
Joined: 2006-04-27 08:48
Location: Arizona, USA

Re: updating filzilla server.xml

#7 Post by cszeto » 2009-02-13 04:10

My point is that there this has absolutely nothing to do with FileZilla. This is another environment trying to launch a FileZilla interface at best. This is an issue with the "launching environment" and nothing to do with FileZilla. If they are truly looking for support, then they need to figure out the right place to find support instead of just blindly throwing stuff against the wall and then getting their feelings hurt when they do not get the response that they incorrectly assumed that they would get.
Last edited by cszeto on 2009-02-13 15:49, edited 1 time in total.
Microsoft MVP (2004 through 2008)

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: updating filzilla server.xml

#8 Post by botg » 2009-02-13 08:38

The launching environment is just fine. The above code snippet does exactly what it's supposed to do (divide a string by an undefined constant).

cszeto
226 Transfer OK
Posts: 242
Joined: 2006-04-27 08:48
Location: Arizona, USA

Re: updating filzilla server.xml

#9 Post by cszeto » 2009-02-13 15:49

The setup of the "launching enviroment" is hosed... Nothing to do with FileZilla...
Microsoft MVP (2004 through 2008)

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: updating filzilla server.xml

#10 Post by botg » 2009-02-13 19:11

The launching environment is fine, that script is fine, but the script author failed to put his intentions into code. That's all.

cszeto
226 Transfer OK
Posts: 242
Joined: 2006-04-27 08:48
Location: Arizona, USA

Re: updating filzilla server.xml

#11 Post by cszeto » 2009-02-13 23:19

"Potato" - "Potatoes"

It has nothing to do with FileZilla...
Microsoft MVP (2004 through 2008)

Cypress
226 Transfer OK
Posts: 121
Joined: 2008-09-13 19:39
First name: J

Re: updating filzilla server.xml

#12 Post by Cypress » 2009-02-13 23:44

cszeto the following is probably why it appeared here and not elsewhere..
thatsme wrote:In one of your replies you had asked not to put the quote to the arguments.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: updating filzilla server.xml

#13 Post by botg » 2009-02-13 23:54

Which quotes? The arguments weren't quoted. They were just part of a string literal.

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: updating filzilla server.xml

#14 Post by boco » 2009-02-14 22:09

From what I know, strings have to be quoted or they will be taken as constants/variables. And I guess reload and config are not defined.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: updating filzilla server.xml

#15 Post by botg » 2009-02-15 00:17

And in that strange dynamically types language assumed to be zero. So divide by zero.

I enjoy this thread. Let's see how soon somebody comes up with a solution. It's such a basic thing ;)

Post Reply