ik ben bezig men een blog systeem gericht op webmasters en bedrijven maar de installatie waar ik nu aan bezig ben vormt het obstakel voor het moment.
Om de db (mysql) zo min mogelijk te belasten moet de install in1 klap dit allemaal naar config.php schrijven:
In volgende code geeft hij al een fout iets met T_SPACING in php5.
Zo als je ziet hebt ik al geopteerd voor POSt in php. Het lijkt me beter dan GET.Code:<?php /*---------------------------------------------*\ | BEcome | | File: config.php | | Version: 0.0.2 beta 1 | | | | @Software: BEcome | | @authors: | | Webscriptz & Pmaene & Krikke | | @copyright: Cameleon Software | | @license: GNU Public Licence | | @since: 2006 | \*---------------------------------------------*/ // the dirs tghe paths to your folders $filesdir = "files/"; //path to files folder $cpdir = "cpanel/"; //path to cp folder $incdir = "includes/"; //path ti include folder $error = "errors/"; // the way to the error folder $setup = "setup/"; // setup dir //all the variables that have your website running so stay the fuck of these beauties //connection variables $host = " . $_POST['host'] . "; // the host most likely 'localhost' $db = " . $_POST['db'] . "; // database name $dbuser = " . $_POST['dbuser'] . "; // your username of you hosting $dbpass = " . $_POST['dbpass'] . "; // your password for access to the db $dbprefix = " . $_POST['dbprefix'] . "; // the prefix of your database //site variables //main site variables $siteurl = " . $_POST['siteurl'] . "; // the website url $sitename = " . $_POST['sitename'] . "; //the website name $tag = " . $_POST['tag'] . "; // slogan of your blog $mail = " . $_POST['mail'] . "; // mail for the system $date_format = " . $_POST['date_format'] . "; //post date format $lang = " . $_POST['lang']. . "; // you language settings $seo = " . $_POST['seo'] . "; // mod_rewrite //meta tags $meta_title = " . $_POST['meta_title'] . "; // you site title $meta_keywords = " . $_POST['meta_keywords'] . "; //you keywords $meta_description = " . $_POST['meta_description'] . "; // Discribe you site $meta_rating = " . $_POST['meta_rating']"; // for which public is the content fine $meta_language = " . $_POST['meta_language'] . "; // The language used on your site $meta_author = " . $_POST['meta_author']'."; // who has written the text on the site $meta_publisher = " . $_POST['meta_publisher'] . "; // who has publisher the text (sitename) $meta_revisit = " . $_POST['meta_revisit'] . "; // when must the bots revisit your site $meta_copyright = " . $_POST['meta_copyright'] . "; // Who ownes the text/design/logos on your site $meta_bots = "ALL"; // what have th bots to do when they come on the site $meta_gen = "BEcome 1.0.0"; // the program name + X.Y.Z //editor // one has to be '1' because that one will be activated and tho other WYSIWYG editors nog $wysiwyg = "1";//default is 1 //version we use x.y.z name version type for our system $version = "0.0.2 beta"; //BEcome stuff $become = "<href='http://become.be'>BEcome</a>"; $downver = "<href='http://version.become.be'>BEcome Updater</a>"; $mainsite = "<href='http://become.be'>BEcome web</a>"; $forumsite = "<href='http://forum.become.be'>BEcome Community</a>"; $helpsite = "<href='http://f1.become.be'>BEcome F1</a>"; $bugssite = "<href='http://bugshoot.become.be'>BEcome Bugshoot</a>"; $develop = "<href='http://labs.become.be'>BEcome Bugshoot</a>"; //Activation of the statistics system //statistics software you could use except for the software we included $googleid = " . $_POST['googleid'] . "; $nedstatid = " . $_POST['nedstatid'] . "; $blogstat = " . $_POST['blogstat'] . "; //search engines url 2 search insert $google = ""; $msn = ""; $yahoo = ""; $jeeves = ""; $wiki = ""; $dmoz = ""; //social bookmakering accounts 4 others 2 view your bookmakers $delicious = " . $_POST['delicious'] . "; // http://del.icio.us $digg = " . $_POST['digg'] . "; // http://www.digg.com $technorati = " . $_POST['technorati'] . "; // http://www.technorati.com $furl = " . $_POST['furl'] . "; // http://www.furl.com $magnolia = " . $_POST['magnolia'] . "; // http://mag.nolia.com $spurl = " . $_POST['spurl'] . "; // http://www.spurl.com $lookmarks = " . $_POST['lookmarks'] . "; // http://www.lookmarks.com $feedmarker = " . $_POST['feedmarker'] . "; // http://www.feedmarker.com $connotea = " . $_POST['connotea'] . "; // http://www.connotea.org $simpy = " . $_POST['simply'] . "; // http://www.simpy.com $newsvine = " . $_POST['newsvine'] . "; // http://www.newsvine.com $fark = " . $_POST['fark'] . "; // http://www.fark.com $reddit = " . $_POST['reddit'] . "; // http://www.reddit.com $shadows = " . $_POST['shadows'] . "; // http://www.schadows.com //end of the config file ?>
Maar ik moet de writing nu gaan doen maar ik weet niet echt de jusite manier ervoor.
Kan iemand me helpen
- configuration writing
-
04-08-2006, 19:02 #1
- Berichten
- 143
- Lid sinds
- 19 Jaar
configuration writing
-
In de schijnwerper
-
05-08-2006, 02:46 #2
- Berichten
- 103
- Lid sinds
- 19 Jaar
Post wordt alleeen gebruikt bij formulieren, ik neem aan dat je dat weet.
Even iets anders:
Waarom heb je overal het volgende staan:
= " . $_POST['varnaam'] . ";
Doe gewoon:
= $_POST['varnaam'];
Voor de rest zou het makkelijk zijn als je even de complete error hier post (de error is niet belangrijk, line number wel)
mvg
Marc
-
05-08-2006, 08:26 #3
- Berichten
- 143
- Lid sinds
- 19 Jaar
waarom? wel het zijn variables dus moet "" dit toch
-
05-08-2006, 10:01 #4
- Berichten
- 1.470
- Lid sinds
- 19 Jaar
Nee in dit geval niet nodig ;)
-
05-08-2006, 10:15 #5
- Berichten
- 103
- Lid sinds
- 19 Jaar
Je moet er alleen "" omheen zetten als het een string is, als je het uit een variable haalt hoeft dat niet.
-
16-08-2006, 18:24 #6
- Berichten
- 36
- Lid sinds
- 18 Jaar
Inderdaad, door het gebruik van de " veroorzaak je waarschijnlijk de error;)
-
20-08-2006, 18:57 #7
- Berichten
- 10
- Lid sinds
- 18 Jaar
Dus gewoon:
PHP Code:$delicious = $_POST['delicious']; // http://del.icio.us
-
21-08-2006, 10:26 #8
- Berichten
- 173
- Lid sinds
- 19 Jaar
Nee bovenstaande klopt ook niet, aangezien de config file straks nog uitgelezen moet worden....
Er moeten dus wel degelijk quotes weggeschreven worden vb.:
PHP Code:$googleid = '"' .$_POST['googleid']. '"';
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic