15.04.2009, 23:23
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
|
Stay tuned
Now, I'm going to sleep.
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
|
<?php echo file_get_contents('/path/to/samp/server/scriptfiles/bugreport.htm'); ?>
Originally Posted by n_i_k_i
Cookie, do you have PHP?
Код:
<?php echo file_get_contents('/path/to/samp/server/scriptfiles/bugreport.htm'); ?> |
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
php_admin_value open_basedir "/var/www/vhosts/east-south.com/private/Gta/grl/scriptfiles:/tmp"
/var/www/vhosts/east-south.com/httpdocs
file_get_contents('../private/Gta/scriptfiles/bugreports.htm');
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
Originally Posted by -praNkster+
Check and reconfigure «open_basedir» please.
|
php_admin_value open_basedir "/var/www/vhosts/east-south.com/httpdocs:/tmp:/var/www/vhosts/east-south.com/private/Gta/grl/scriptfiles"
open_basedir = ...
open_basedir = /var/www/vhosts/east-south.com/
open_basedir = /var/www/vhosts/east-south.com/
Originally Posted by ►☺◄©ookie►☺◄
in my php.ini is open_basedir.. but no path defined
|
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?? |
<?php
echo file_get_contents('/path/to/samp/server/scriptfiles/bugreports.htm');
?>
Originally Posted by -praNkster+
Quote:
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 Код:
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. |