Wampserver
Posted by: eliane (---.bio.fundp.ac.be)
Date: February 07, 2013 12:20PM

Gd morning, i've installed wampserver on my windows 7 and it runs (the localhost page opened ) but i have a problem in reading PHP. my wampserver opened a PHP file as a text of words, number and signs
So can u help me plz?
Thank u

Options: ReplyQuote
Re: Wampserver
Posted by: RiggsFolly (---.as13285.net)
Date: February 07, 2013 12:59PM

You are probably running a script that uses short_tags

i.e. <?=$t?>

rather than <?php echo $t ?>

edit your php.ini and look for the parameter

short_open_tag = Off

and change it to On

use the wampmanager menus to edit your php.ini file to ensure you get the correct one!

wampmanager -> PHP -> php.ini

Options: ReplyQuote
Re: Wampserver
Posted by: eliane (---.bio.fundp.ac.be)
Date: February 07, 2013 01:21PM

i haven't access to wampmanager, i dono where i can find this option?
thank you

Options: ReplyQuote
Re: Wampserver
Posted by: RiggsFolly (---.as13285.net)
Date: February 07, 2013 01:31PM

wampmanager is the icon that sits in your system tray. The Green W icon.

left click on it and you will see all sorts of useful stuff.

Options: ReplyQuote
Re: Wampserver
Posted by: eliane (---.bio.fundp.ac.be)
Date: February 07, 2013 01:47PM

I did it but it doesn't work, should i restart my PC? or maybe i have another problem with this?
I still can't open the PHP doc in wampserver
thank you

Options: ReplyQuote
Re: Wampserver
Posted by: RiggsFolly (---.as13285.net)
Date: February 07, 2013 01:58PM

wampmanager -> Apache -> Service -> Restart Service

OR

wampmanager -> Restart All Services

Options: ReplyQuote
Re: Wampserver
Posted by: eliane (---.bio.fundp.ac.be)
Date: February 07, 2013 02:05PM

i did it but still not reading PHP doc!!!! i'm sorry for bothering u but i really need it
Thank you

Options: ReplyQuote
Re: Wampserver
Posted by: RiggsFolly (---.as13285.net)
Date: February 07, 2013 02:49PM

Ok give me an example of what is being output.

By the way you are running this from the vrowser aren't you? Not clicking on a file in explorer??

Options: ReplyQuote
Re: Wampserver
Posted by: eliane (---.bio.fundp.ac.be)
Date: February 07, 2013 02:58PM

Iam running this from Firefox and the output is like this :

// Arno Esterhuizen // et Romain Bourdon // et Hervé Leclerc // // Mise a jour par Herve Leclerc herve.leclerc@alterway.fr // Ici par Mark James //chemin jusqu'au fichier de conf de WampServer $wampConfFile = '../wampmanager.conf'; //chemin jusqu'aux fichiers alias $aliasDir = '../alias/'; //chemin jusqu'aux fichiers vhosts $vhostsDir = '../vhosts/'; // on charge le fichier de conf locale if (!is_file($wampConfFile)) die ('Unable to open WampServer\'s config file, please change path in index.php file'); //require $wampConfFile; $fp = fopen($wampConfFile,'r'); $wampConfFileContents = fread ($fp, filesize ($wampConfFile)); fclose ($fp); //on rs les versions des applis preg_match('|phpVersion = (.*)\n|',$wampConfFileContents,$result); $phpVersion = str_replace('"','',$result[1]); preg_match('|apacheVersion = (.*)\n|',$wampConfFileContents,$result); $apacheVersion = str_replace('"','',$result[1]); preg_match('|mysqlVersion = (.*)\n|',$wampConfFileContents,$result); $mysqlVersion = str_replace('"','',$result[1]); preg_match('|wampserverVersion = (.*)\n|',$wampConfFileContents,$result); $wampserverVersion = str_replace('"','',$result[1]); // repertoires gnorer dans les projets $projectsListIgnore = array ('.','..'); // textes $langues = array( 'en' => array( 'langue' => 'English', 'autreLangue' => 'Version Française', 'autreLangueLien' => 'fr', 'titreHtml' => 'WAMPSERVER Homepage', 'titreConf' => 'Server Configuration', 'versa' => 'Apache Version :', 'versp' => 'PHP Version :', 'versm' => 'MySQL Version :', 'phpExt' => 'Loaded Extensions : ', 'titrePage' => 'Tools', 'txtProjet' => 'Your Projects', 'txtNoProjet' => 'No projects yet.
To create a new one, just create a directory in \'www\'.', 'txtAlias' => 'Your Aliases', 'txtNoAlias' => 'No Alias yet.
To create a new one, use the WAMPSERVER menu.', 'txtVhosts' => 'Your Virtual Hosts', 'txtNoVhosts' => 'No Virtual Hosts yet.
To create a new one, use the WAMPSERVER menu.', 'faq' => 'http://www.en.wampserver.com/faq.php' ), 'fr' => array( 'langue' => 'Fran?s', 'autreLangue' => 'English Version', 'autreLangueLien' => 'en', 'titreHtml' => 'Accueil WAMPSERVER', 'titreConf' => 'Configuration Serveur', 'versa' => 'Version de Apache:', 'versp' => 'Version de PHP:', 'versm' => 'Version de MySQL:', 'phpExt' => 'Extensions Chargées: ', 'titrePage' => 'Outils', 'txtProjet' => 'Vos Projets', 'txtNoProjet' => 'Aucun projet.
Pour en ajouter un nouveau, créez simplement un répertoire dans \'www\'.', 'txtAlias' => 'Vos Alias', 'txtNoAlias' => 'Aucun alias.
Pour en ajouter un nouveau, utilisez le menu de WAMPSERVER.', 'txtVhosts' => 'Vos Virtual Hosts', 'txtNoVhosts' => 'Aucun Virtual Hosts encore.
Pour en ajouter un nouveau, utilisez le menu de WAMPSERVER.', 'faq' => 'http://www.wampserver.com/faq.php' ) ); // images $pngFolder = <<< EOFILE iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAA3NCSVQICAjb4U/gAAABhlBMVEX//v7//v3///7//fr//fj+/v3//fb+/fT+/Pf//PX+/Pb+/PP+/PL+/PH+/PD+++/+++7++u/9+vL9+vH79+r79+n79uj89tj89Nf889D88sj78sz78sr58N3u7u7u7ev777j67bL67Kv46sHt6uP26cns6d356aP56aD56Jv45pT45pP45ZD45I324av344r344T14J734oT34YD13pD24Hv03af13pP233X025303JL23nX23nHz2pX23Gvn2a7122fz2I3122T12mLz14Xv1JPy1YD12Vz02Fvy1H7v04T011Py03j011b01k7v0n/x0nHz1Ejv0Hnuz3Xx0Gvz00buzofz00Pxz2juz3Hy0TrmznzmzoHy0Djqy2vtymnxzS3xzi/kyG3jyG7wyyXkwJjpwHLiw2Liw2HhwmDdvlXevVPduVThsX7btDrbsj/gq3DbsDzbrT7brDvaqzjapjrbpTraojnboTrbmzrbmjrbl0Tbljrakz3ajzzZjTfZijLZiTJdVmhqAAAAgnRSTlP///////////////////////////////////////8A////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9XzUpQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAB90RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgOLVo0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RTg2NjQyMzQzQyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IFdpbmRvd3Mi PiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1ODg0QkM3NUZB MDhFMDExODkyQ0U2NkE5ODVBM0Q2OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1ODg0QkM3 NUZBMDhFMDExODkyQ0U2NkE5ODVBM0Q2OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRG PiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pgv54A4AAA33SURBVHja7F0JmBTVEa7Z XXZhuc9FiCIICVf8PIKA3EQIAkbJh5AImARERDFAVKIoikc+TEwCSVDBRBRkvygGScIRjoAhCiyC EORQlCMBIiIIy7mw7O6kavp/zNvHTHfPTM+1UN9X3053v+5+XVWvrlfvrc

Options: ReplyQuote
Re: Wampserver
Posted by: RiggsFolly (---.as13285.net)
Date: February 07, 2013 03:31PM

What are you putting in the address bar of firefox, it should be

http://localhost

Options: ReplyQuote
Re: Wampserver
Posted by: eliane (---.bio.fundp.ac.be)
Date: February 07, 2013 03:34PM

Localhost works and it opened but it is not my problem, my problem is with :file:///C:/wamp/www/index.php
I should have a php document but wamp can't read it so i had instead the outpout

Do u have an idea about this?
Thank u

Options: ReplyQuote
Re: Wampserver
Posted by: guarienti (---.175.44.152.static.gvt.net.br)
Date: February 07, 2013 04:16PM

eliane Wrote:
-------------------------------------------------------
> Localhost works and it opened but it is not my
> problem, my problem is with
> :file:///C:/wamp/www/index.php

If this is the PATH u are using, seems to me you are not accessing the file through your server.
I guess it should be something like this: http:// localhost/ index.php
It is spaced out so the forum wont change it to a link, so remove the blanks when using it.

> I should have a php document but wamp can't read
> it so i had instead the outpout
>
> Do u have an idea about this?
> Thank u

Hope it helps!



Edited 1 time(s). Last edit at 02/07/2013 04:17PM by guarienti.

Options: ReplyQuote
Re: Wampserver
Posted by: stevenmartin99 (Moderator)
Date: February 07, 2013 05:19PM

Yes it's clear your not opening the file correctly

You cannot open. Php file by clicking on in.

You must access in the broswer.

When you time. Localhost you are accessin the file in. C:/wamp/www/index.php


If you want to access a different file in www use

Localhost/filename.php

If its a file it a older like www/site/page.php

Use

Localhost/site/page.php

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.