Jump to content
php.lv forumi

syntax error


grivs

Recommended Posts

echo "<br>Database tables created... A new file vars.php has been created, plz don't delete that file and you can delete the installation files";

 

$f=fopen("include/vars.php","w");

fwrite($f,"<?php \n");

fwrite($f,"//***************** Do not Edit / Change anything in this file ********************// \n");

fwrite($f,"$"."sitename='".$domainname."';\n");

fwrite($f,"$"."dbhost='".$dhost."';\n");

fwrite($f,"$"."dbname='".$dname."';\n");

fwrite($f,"$"."dbuser='".$duser."';\n");

fwrite($f,"$"."dbpass='".$dpass."';\n");

fwrite($f,"$"."adminmail='".$adminemail."';\n");

fwrite($f,"?> \n");

fclose($f);

Link to comment
Share on other sites

Kā uz apache serverisa var failiem uzlikt chmod 777,

Tapat kaa jabkuram citam WEB serverim...

ir vai nu vai 3 risinajumi vai atrisinajuma NAV atkaribaa kaada OS

JA ir *.NIX tad ir 3 varjanti

1. Ja ir lokala pieeja tad ar jebkuru failMenegeri nomainam faila atribuutus uz vajdzigo

2. Ja nav loklas piejejas tad ( piem. Hostinga serveris ) , tad caur FTP nomainam faila atributus uz velajamiem

3. ja nav nekads piekljuves, vai caur FTP shada iespeja liegta tad var izmantot PHP f-ju chmod(), lai nomainiitu fail tributus

 

Ja tomer ir WIN, tad gan nekadi nevares paliidzet :(

Jo WIN neizmanto CHMOD ... ( kautkas liidzigs ir bet nu savdak )

 

P.S. ar faila atributi, domaju CHMOD

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...