grivs Posted January 26, 2010 Report Share Posted January 26, 2010 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"); Quote Link to comment Share on other sites More sharing options...
briedis Posted January 26, 2010 Report Share Posted January 26, 2010 Skaties, moš kaut kur trūkst kāds semikols... Quote Link to comment Share on other sites More sharing options...
2easy Posted January 26, 2010 Report Share Posted January 26, 2010 nju šī rindiņa ir ok droši vien kļūda ir pirms vai pēc Quote Link to comment Share on other sites More sharing options...
grivs Posted January 26, 2010 Author Report Share Posted January 26, 2010 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); Quote Link to comment Share on other sites More sharing options...
briedis Posted January 26, 2010 Report Share Posted January 26, 2010 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... Quote Link to comment Share on other sites More sharing options...
2easy Posted January 26, 2010 Report Share Posted January 26, 2010 tajā koda fragmentā nav parse/syntax error kļūda ir kkur citur Quote Link to comment Share on other sites More sharing options...
grivs Posted January 26, 2010 Author Report Share Posted January 26, 2010 Man vien jautājums Kā uz apache serverisa var failiem uzlikt chmod 777, Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted January 27, 2010 Report Share Posted January 27, 2010 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 Quote Link to comment Share on other sites More sharing options...
grivs Posted January 28, 2010 Author Report Share Posted January 28, 2010 tad sanāk ka uz win nemaz nevar uzlikt? Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 28, 2010 Report Share Posted January 28, 2010 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) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.