index.php
Posted by: Dimuka (85.138.60.---)
Date: September 03, 2007 06:00AM

After installed, all ok, but c:\wamp\www\index.php has a strange display.
It shows in upper page space some text seemed with code intructions. Isit correct?

// et Romain Bourdon // pour WAMP5 //afficher phpinfo if (isset($_GET['phpinfo'])) { phpinfo(); exit(); } // Définition de la langue et des textes if (isset ($_GET['lang'])) { $langue = $_GET['lang']; } elseif (preg_match("/^fr/", $_SERVER['HTTP_ACCEPT_LANGUAGE'])) { $langue = 'fr'; } else { $langue = 'en'; } $langues = array( 'en' => array( 'langue' => 'English', 'autre_langue' => 'version française', 'autre_langue_lien' => 'fr', 'titre_html' => 'WAMP5 Homepage', 'titre_conf' => 'Server Configuration', 'versa' => 'Apache version :', 'versp' => 'PHP version :', 'versm' => 'MySQL version :', 'php_ext' => 'Loaded extensions : ', 'titre_page' => 'Tools', 'mysqlerror1' => 'MySQL not launched or bad phpmyadmin config', 'mysqlerror2' => 'phpmyadmin connection not available', 'txt_projet' => 'Your projects', 'txt_no_projet' => 'No project yet.
To create a new one, just create a directory in \'www\'.', 'txt_alias' => 'Your aliases', 'txt_no_alias' => 'No Alias yet.
To create a new one, use the WAMP5 menu.', 'faq' => 'http://www.en.wampserver.com/faq.php', ), 'fr' => array( 'langue' => 'Français', 'autre_langue' => 'english version', 'autre_langue_lien' => 'en', 'titre_html' => 'Accueil WAMP5', 'titre_conf' => 'Configuration Serveur', 'versa' => 'Version de Apache:', 'versp' => 'Version de PHP:', 'versm' => 'Version de MySQL:', 'php_ext' => 'Extensions chargées: ', 'titre_page' => 'Outils', 'mysqlerror1' => 'MySQL n\'est pas lancé ou votre configuration phpmyadmin n\'est pas bonne.', 'mysqlerror2' => 'connexion de phpmyadmin non disponible', 'txt_projet' => 'Vos projets', 'txt_no_projet' => 'Aucun projet.
Pour en ajouter un nouveau, créez simplement un répertoire dans \'www\'.', 'txt_alias' => 'Vos alias', 'txt_no_alias' => 'Aucun alias.
Pour en ajouter un nouveau, utilisez le menu de WAMP5.', 'faq' => 'http://www.wampserver.com/faq.php' ), 'all' => array( 'version' => '1.7.2', 'phpmyadmin' => 'PHPmyadmin 2.10.1', 'sqlitemanager' => 'SQLitemanager 1.2.0' ) ); // Version d'apache. $apache_version = explode('PHP', apache_get_version()); // Version de MySQL. $pma_conf_file = 'c:/wamp/phpmyadmin/'.'config.inc.php'; if (file_exists($pma_conf_file)) { include ($pma_conf_file); if (extension_loaded('mysql')) { if ($link = @mysql_connect('localhost',$cfg['Servers']['1']['user'] ,$cfg['Servers']['1']['password'])) $mysql_version = mysql_get_server_info(); else $mysql_version = $langues[$langue]['mysqlerror1']; } if (extension_loaded('mysqli')) { if ($link = @mysqli_connect('localhost',$cfg['Servers']['1']['user'] ,$cfg['Servers']['1']['password'])) $mysql_version = mysqli_get_server_info($link); else $mysql_version = $langues[$langue]['mysqlerror1']; } } else $mysql_version = $langues[$langue]['mysqlerror2']; echo ''; ?> Version '.$langues[$langue]['autre_langue'].''; ?> '; $loaded_extensions = get_loaded_extensions(); $separateur = ''; foreach ($loaded_extensions as $extension) { echo $separateur.$extension; $separateur = ', '; } ?>
phpinfo( ) '.$file.''; } } closedir($handle); echo $msg; ?>

'.ereg_replace('.conf','',$file).''; } } closedir($handle); echo $msg; ?>


--------------------------------------------------------------------------------
faq - Powered by Anaska - created by Romain Bourdon



vicvalle
www.dimuka.net

Options: ReplyQuote
Re: index.php
Posted by: CyberSpatium (---.hsd1.or.comcast.net)
Date: September 09, 2007 08:42AM

open the file using [localhost]


CyberSpatium
----------------------
WAMP English Forum Admin

I have WAMP5 working with (for development use only):
Windows Vista Ultimate x64 (64 bit)
Kaspersky Internet Security Suite 7.0.x
Spyware Terminater 2.x
CounterSpy 2.5.x


Need help? Check out my WAMP User Manual/Guide here!


Cellular Phone Deals - The Best on the Net! - FREE PHONES! Take your pick from our featured cellular phone deals by Cingular, Verizon, T-Mobile, Sprint PCS, Nextel, and more! Most of our cellular phone offers include a FREE cellular phone with FREE shipping!


Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.


Clarify Loans
Mortgage and Home Loan Advice


LaxGo Web Directory
Powerful human edited web directory of quality, spam-free sites organized via a comprehensive category structure.

Options: ReplyQuote


Sorry, only registered users may post in this forum.