[solved] cant run script from the browser tree
Posted by: LivingThis (---.cm-6-1d.dynamic.ziggo.nl)
Date: September 16, 2017 11:31AM

Hello

I had to reinstall my hard disks and all partitions, so WAMP too. I followed the tuts at this forum for that purpose.

I have WAMP running and it all seems okay.
I copypasted the old files back to the www first.

Then I made the virtual hosts again.
After that I made a test index.php script with the following code:

<?php

echo "<br><br> php is configured correct " ;


?>

but very unexpected the screen output was:


php is configured correct " ; ?>
so it added " ; ?>

removing the <br> even gives a blank screen as output.

But when using the virtual host address I made, it gives the correct output in the browser.

Where should I find the solution for this problem?

Are there any settings in php or apache that should be adjusted?

I hope someone here can help with finding answers.



Edited 1 time(s). Last edit at 09/18/2017 02:40PM by Otomatic.

Options: ReplyQuote
Re: cant run script from the browser tree
Posted by: Otomatic (Moderator)
Date: September 16, 2017 02:42PM


Options: ReplyQuote
Re: cant run script from the browser tree
Posted by: LivingThis (---.cm-6-1d.dynamic.ziggo.nl)
Date: September 16, 2017 05:04PM

1 - windows 10 64 bit
2 - Version WampServer 3.1.0 64 bit
3 - Apache Version 2.4.27
4 - PHP Version 7.1.9
5 - MySQL Version 5.7.19
6 - What color is the WampServer icon : green


If the WampServer icon is green:

8 - Do you have access to localhost (Homepage WampServer)? Yes
8a - If so, is there an error message at the bottom of the page? no

9 - Do you have access to phpMyAdmin? Yes (but the loading wheel icon keeps on spinning)

10 - If you refer to an error message, please include the EXACT wording of the error in your post (there is no actual error message)
11 - If you use an Antivirus and / or Firewall, please include the names of these ( Kaspersky Anti Virus Total Security)
12 - What is the full path to the installation of WampServer: C:\wamp64\
13 - If you have one or more Virtual Hosts defined, please show their definition(s)
127.0.0.1 testvirthost.dev
::1 testvirthost.dev

Options: ReplyQuote
Re: cant run script from the browser tree
Posted by: Otomatic (Moderator)
Date: September 16, 2017 05:16PM

Hi,

Quote

After that I made a test index.php script with the following code:

<?php

echo "<br><br> php is configured correct " ;


?>

What text editor did you use to made this file?

Where is this file? (Complete path)

How do you "launch" this file?

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: cant run script from the browser tree
Posted by: LivingThis (---.cm-6-1d.dynamic.ziggo.nl)
Date: September 18, 2017 01:12PM

Hi there

I used Notepad++

I tried scripts i already had and these worked, without any flaw, so it seems the problem is gone ....
but what is also strange to me, is that I had another lay-out for the wamp file tree.
????

The old one looked better. Until yesterday I only used Edge browser.

Yesterday I installed Firefox and now the other tree is gone but I can run the scripts as is intended.

So the above problems are 'solved' .

Options: ReplyQuote


Sorry, only registered users may post in this forum.