[FilterScript] [Filterscript] HTML Bug Reporter + Auto FTP Uploader
#21

Quote:
Originally Posted by ►☺◄©ookie►☺◄
I would love you(non gay way) if you do that i can acess from my httpdocs to the bugreport.htm
Ok. Tomorow I will create a small C# or Java thing that allows you to upload the file automaticly to any FTP server as soon as it is updated by the filterscript.
Stay tuned

Now, I'm going to sleep.
Reply
#22

I found a way on Linux :P but have the Problem that now i have no acess to the File :P

Error 403
Reply
#23

Cookie, do you have PHP?
Код:
<?php
echo file_get_contents('/path/to/samp/server/scriptfiles/bugreport.htm');
?>
Reply
#24

Quote:
Originally Posted by n_i_k_i
Cookie, do you have PHP?
Код:
<?php
echo file_get_contents('/path/to/samp/server/scriptfiles/bugreport.htm');
?>
Yes, that works aswell. I hope you don't mind if your suggestion goes to the top page
Reply
#25

Quote:
Originally Posted by n_i_k_i
Cookie, do you have PHP?
Код:
<?php
echo file_get_contents('/path/to/samp/server/scriptfiles/bugreport.htm');
?>
Код:
Warning: file_get_contents() [function.file-get-contents]: open_basedir restriction in effect. File(/var/www/vhosts/east-south.com/private/Gta/grl/scriptfiles/bugreports.htm) is not within the allowed path(s): (/var/www/vhosts/east-south.com/httpdocs:/tmp) in /var/www/vhosts/east-south.com/httpdocs/bugs.php on line 2

Warning: file_get_contents(/var/www/vhosts/east-south.com/private/Gta/grl/scriptfiles/bugreports.htm) [function.file-get-contents]: failed to open stream: Operation not permitted in /var/www/vhosts/east-south.com/httpdocs/bugs.php on line 2
Path to Homepage: /var/www/vhosts/east-south.com/httpdocs
Path to Scriptfiles: /var/www/vhosts/east-south.com/private/Gta/grl/scriptfiles

Edit: wait a moment.. i try to modify my open_basedir

Edit2: when i change to:
Код:
		php_admin_value open_basedir "/var/www/vhosts/east-south.com/private/Gta/grl/scriptfiles:/tmp"
i cant acess to my Homepage anymore :P
Reply
#26

Cookie, I tested it and it works for me.
I did something different then you tho.

Try using the full paths. (c:/some/path/till/Gta/grl/scriptfiles/bugreports.htm)

Also, don't forget to include «'» in the begining and at the end of the pad.

Since your pad
Код:
/var/www/vhosts/east-south.com/httpdocs
makes you go back one folder and then go to private/Gta/grl/scriptfiles

your file_get_contents function should be called like this:
Код:
file_get_contents('../private/Gta/scriptfiles/bugreports.htm');
If it still doesn't work, use the full path instead.
Reply
#27

Again:
Код:
Warning: file_get_contents() [function.file-get-contents]: open_basedir restriction in effect. File(../private/Gta/grl/scriptfiles/bugreports.htm) is not within the allowed path(s): (/var/www/vhosts/east-south.com/httpdocs:/tmp) in /var/www/vhosts/east-south.com/httpdocs/bugs.php on line 2

Warning: file_get_contents(../private/Gta/grl/scriptfiles/bugreports.htm) [function.file-get-contents]: failed to open stream: Operation not permitted in /var/www/vhosts/east-south.com/httpdocs/bugs.php on line 2
LOOK HERE

and here my Softlinking Problem:

LOOK HERE
Reply
#28

I can not see the second link, as I don't have permission to do so.

I've been searching around and it looks like your «open_basedir» file doesn't allow access to that path.
Check and reconfigure «open_basedir» please.
Reply
#29

Quote:
Originally Posted by -praNkster+
Check and reconfigure «open_basedir» please.
Edit: now i modified my open_basedir again.. now it looks like this:
Код:
php_admin_value open_basedir "/var/www/vhosts/east-south.com/httpdocs:/tmp:/var/www/vhosts/east-south.com/private/Gta/grl/scriptfiles"
but now the next FAIL :P

http://www.east-south.com/bugs.php
Reply
#30

check your chmod's
Reply
#31

I've made this «bug» happen in my own server, and I fixed it.

To fix this, follow these steps. I hope it helps:
1. Stop Apache Server
2. Go to php.ini and search for:
Код:
open_basedir = ...
If this line contains «;» at the begining, remove it.

3. Set the value of «open_basedir» to «/var/www/vhosts/east-south.com/»
Код:
open_basedir = /var/www/vhosts/east-south.com/
4. Start Apache server again

Check if its working now.

--------------------------------------------------------------------

That should fix all those problems because:
Код:
open_basedir = /var/www/vhosts/east-south.com/
Says that the «base directory» or «minimum path» starts there.
By doing this, you say that you don't want PHP to access other folders (for example) inside vhost/ folder. It can only access the folders contained inside /east-south.com/.

I don't think I can help you any further.
Reply
#32

in my php.ini is open_basedir.. but no path defined
Reply
#33

Quote:
Originally Posted by ►☺◄©ookie►☺◄
in my php.ini is open_basedir.. but no path defined
Have you tried setting the path I gave you in the other file you found open_basedir variable?
Reply
#34

Hi there

How can i add thing like that, When player types /bug and this will go to .htm file WITH IP??
Reply
#35

Quote:
Originally Posted by karla
Hi there

How can i add thing like that, When player types /bug and this will go to .htm file WITH IP??
You mean uploading the file to an FTP server?
If you want to host that at your own computer, you can get Apache and PHP and install them both.

Then you can access to your localhost trough: http://localhost
Other people can access to your HTTP server trough http://«your global ip here»

Anyway, if you want to show them the bugreports.htm file, you need to call it from your root.
Create a file at your www root, and populate it with:
pawn Код:
<?php
echo file_get_contents(&#39;/path/to/samp/server/scriptfiles/bugreports.htm');
?>
If you want a good package, that is easy to install on Windows, please visit:
http://www.appservnetwork.com/

Download version 2.5.10 as it is more stable then 2.6.0


--- I'm also releasing an uploader. It should already been released, but I'm kinda busy with other stuff right now.
Reply
#36

Quote:
Originally Posted by -praNkster+
Quote:
Originally Posted by karla
Hi there

How can i add thing like that, When player types /bug and this will go to .htm file WITH IP??
You mean uploading the file to an FTP server?
If you want to host that at your own computer, you can get Apache and PHP and install them both.

Then you can access to your localhost trough: http://localhost
Other people can access to your HTTP server trough http://«your global ip here»

Anyway, if you want to show them the bugreports.htm file, you need to call it from your root.
Create a file at your www root, and populate it with:
pawn Код:
<?php
echo file_get_contents(&#39;/path/to/samp/server/scriptfiles/bugreports.htm');
?>
If you want a good package, that is easy to install on Windows, please visit:
http://www.appservnetwork.com/

Download version 2.5.10 as it is more stable then 2.6.0


--- I'm also releasing an uploader. It should already been released, but I'm kinda busy with other stuff right now.
NO, i didn't want that.
I just want to add bugreporter IP into .htm file, when he/she is /bug'ing
Reply
#37

I just posted a simple auto-uploader.
Useful for those who don't host the sa-mp server in the same computer that hosts their website.

It doesn't have any graphical interface. You open it in DOS (or double click the .bat file).

About the IP thing. If you know basic HTML, you can add that in OnPlayerCommandText function. Search for it. You will find.
Reply
#38

yep.... my paths are defined now at the httpdocs and the private/Gta/grl/scriptfiles path
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)