I just can't seem to output my .PHP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

I just can't seem to output my .PHP

Postby jos_moes » 11. January 2013 10:26

heey Mr JohnB or others ;),

This is a Xampp related problem due to the fact that I just can't seem to output my .PHP,
It goes straight to the file path instead of localhost/HTdocs/....
even 127.0.0.1 doensn't work either.
when trying to output php this is what I get== "file:///C:/xampp/htdocs/connect.php"
{
else
}

https://localhost/xampp/htdocs/connect.php

object not found

Error 404

this is the right Index.php rigth ??:
<?php
if (1);
{
echo 'true.';
}
else
{
echo 'False.';
}

?>

Thank you !! in advance(d) (Nintendo style)..

Joshua
jos_moes
 
Posts: 1
Joined: 11. January 2013 10:00
XAMPP Version: 5.6.3
Operating System: Win. Professional\ultimate 64b

Re: I just can't seem to output my .PHP

Postby Altrea » 11. January 2013 16:32

Hi Joshua (like the name of the computer in the movie Wargames, i like that :D ),

first a little bit of information
  • Announcements and stickys are not meant for support requests, they should help others with problems to get quick help for common problems and frequently asked questions. Thats why i splitted your reply from the Announcement.
  • please use the relating BBCodes if they are helpful for the type of text you write, for example code-BBtags for sourcecode:
    Code: Select all
    [code]
    <?php
        echo 'This is PHP Code';
    ?>
    [/code]

jos_moes wrote:when trying to output php

How do you try to output the php? doubleclick, rightclick=>open, drag and drop to the browser window? All of this will not work.
You need to request the file like they were saved on a webserver in the internet.
So what happens if you open a browser windows and request the url http://localhost/ ?

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6692
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 50 guests