0

I've installed wamp64 for windows 10

Apache 2.4.27 PHP 5.6.31 MySQL 5.7.19

I have save my php script like trial.php, but the when I run, localhost/trial.php It came out the whole script.

1

This typically means the script isn't being processed correctly. This could mean there is something wrong with WAMP or its configuration, or there is something wrong with script or file itself.

As a small FYI, you want to use long PHP tags e.g. <?php and ?>. An easy way to see if PHP is even available is to place <?php phpinfo() ?> in a new PHP file and try to run that rather than a more complex script. Also, if you haven't already done so, you should turn off hiding extensionsfor known file types in Windows. It's possible your script may actually be e.g. trial.php.txt or similar but Windows is hiding the .txt portion.

  • I have try the easy way check txt.portion, but it also display the script – jannahas Mar 1 '18 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.