Jump to content
php.lv forumi

Recommended Posts

Posted

Tad nu tā man parādījās šāds errors, kāds nevar paskaidrot kur ir kluda

Parse error: syntax error, unexpected '"' in D:\xampp\instalacija.php on line 1577

rindina

 

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

Posted

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);

Posted

Domāju, ka dubultpēdiņās vienkārši $ nevar rakstīt, jo tiek gaidīts mainīgais. Tā kā izvēlies parasto pēdiņu ('), vai arī pirms katra $ stringā met klāt beckslešu...

Posted

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

Posted

Uz win by default visiem failiem ir chmod 777 :P (atkariba no direktorijas, gan, iespejams, ne vienmer visu var izdarit, piemeram, Program Files mapee diezvai varetu visu eerti mainit)

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...