Register for your free account! | Forgot your password?

You last visited: Today at 03:40

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PHP Problem

Discussion on PHP Problem within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 128
Received Thanks: 3
PHP Problem

Hey Com,


Ich habe ein kleines Problem mit der Install.php von Roterfalke und Disc11 die nicht so möchte wie ich es will.

PHP Code:
Warningfopen(/usr/local/www/apache22/data/hp2/install/install.php////admin/save/.htaccess) [function.fopen]: failed to open stream: No such file or directory in /usr/local/www/apache22/data/hp2/install/install.php on line 18

Warningfputs() expects parameter 1 to be resourceboolean given in /usr/local/www/apache22/data/hp2/install/install.php on line 23

Warning
fopen(/usr/local/www/apache22/data/hp2/install/install.php////admin/save//.htusers) [function.fopen]: failed to open stream: No such file or directory in /usr/local/www/apache22/data/hp2/install/install.php on line 24

Warningfputs() expects parameter 1 to be resourceboolean given in /usr/local/www/apache22/data/hp2/install/install.php on line 25

Warning
unlink(../server/dbsettings.php) [function.unlink]: Permission denied in /usr/local/www/apache22/data/hp2/install/install.php on line 32

Warning
fopen(../server/dbsettings.php) [function.fopen]: failed to open streamPermission denied in /usr/local/www/apache22/data/hp2/install/install.php on line 33

Warning
fputs() expects parameter 1 to be resourceboolean given in /usr/local/www/apache22/data/hp2/install/install.php on line 39 
Hier der abschnitt von Zeile 18 - 40 der install.php:


PHP Code:
$passwd = fopen("$path.htaccess", "w+");
fputs($passwd,"AuthType Basic
AuthName Passwort
AuthUserFile $path/.htusers
require valid-user
");
$pwddata = fopen("$path/.htusers", "w+");
fputs($pwddata, "$adminname:$adminpw");
$namedata1 = "../server/dbsettings.php";
$newdata1 = $_POST['ip'];
$newdata2 = $_POST['host'];
$newdata3 = $_POST['user'];
$newdata4 = $_POST['dbpw'];

unlink($namedata1);
$fop = fopen("$namedata1", "w+");
fputs($fop,"<?php
\$serverip '$newdata1';
\
$dbhost '$newdata2';
\
$dbuser '$newdata3';
\
$dbpw '$newdata4';
?>");
include '../server/dbsettings.php';
Es handelt sich um die HP von Roterfalke und Disc11

vllt. könnt ihr mir ja helfen drei fehler hab ich schon behoben chmod rechte gefehlt xD
ThaDeviLinRed is offline  
Old 06/05/2011, 17:12   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 8
Received Thanks: 17
Die Variable $path stimmt nicht würde ich sagen, einfach mal den Pfad anpassen
SphaeroX is offline  
Reply


Similar Threads Similar Threads
[Hilfe]Ungelöstes Server Erstell Problem, ausführliche Problem Schilderung
09/15/2011 - Flyff Private Server - 8 Replies
Hey Com! Ich hoffe, dass dieser Thread nicht als Spamthread angesehen wird, da ich ja gestern schon einen zu diesem Thema eröffnet habe. Sorry wenn ich euch mit dem Thema nerve, aber ich sitze nun schon 4 Tage über dem Problem, und finde einfach keine Lösung. Nun werde ich hier allerdings eine ausführlichere Beschreibung des Problems geben. Mein Problem ist, dass ich den Windows Mssql Server 2008/2005 aus Sedrika's TuT nicht installieren kann, da sobald ich ihn immer installiere...
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +1. The time now is 03:40.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.