PHP Not Parsing

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

PHP Not Parsing

Postby LadyYepperz » 21. October 2010 23:30

Hello Apache Community!

This is not my first time using Xampp, but I havent used it in over a year. Ive just installed 1.7.3 on my PC, running XP, Ive followed all instructions and read the "Read Me" txt. During the CMD part of the installation, I was informed that IPv6 was the default but as you can see it isnt activated. I have also tested the simple PHP script included in the htdocs file, "index.php" and of course it didnt work.


Code: Select all
XAMPP Status

 MySQL database  ACTIVATED     
 PHP  ACTIVATED     
 Perl with mod_perl  ACTIVATED     
 Apache::ASP  ACTIVATED     
 HTTPS (SSL)  ACTIVATED     
 Common Gateway Interface (CGI)  ACTIVATED     
 Server Side Includes (SSI)  ACTIVATED     
 IPv4  ACTIVATED     
 IPv6  DEACTIVATED     
 SMTP Service  DEACTIVATED     
 FTP Service  ACTIVATED   


:?: #1:
How do I activate IPv6? (Yes, of course, I already reinstalled.)

:?: #2:
Why isnt PHP parsing (showing) in my browser? (Ive tried in both Firefox & IE.)

:?: #3: Bonus Question
Does anyone know why IE insist on automatically downloading my PHP files and opening them up in my editor instead of
simply opening them in the browser?

Thanks, Lady Y
<?
function Greeting($var){
if($var <= brainless || $var < 25 || $var == !sexy )
echo "Goodbye, $var, do not waste your time.";
else
echo "Hello, $var, want to learn how to play strip scripting?";
}
Greeting($YOU);
?>
User avatar
LadyYepperz
 
Posts: 11
Joined: 21. October 2010 22:47

Re: PHP Not Parsing

Postby JonB » 22. October 2010 00:06

Did you un-install your old version 1st?

Do you have any other Apache installs on the same machine?

Where did you install Xampp?

as for the Bonus Question - as something is wrong with the installation - there is no MIMETYPE association for the file type .php, thus there is no handler - IE doesn't know what to do with it, so it wants to know if you want to save the file. This happens with any server when there is not an assigned MIME type.

Your problems, they are all related

:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: PHP Not Parsing

Postby LadyYepperz » 22. October 2010 04:34

:?: Did you un-install your old version 1st?
:arrow: Yes, I uninstalled the old version before installing the new one.

:?: Do you have any other Apache installs on the same machine?
:arrow: No, only the one copy.

:?: Where did you install Xampp?
:arrow: Path: "C:\xampp"


:idea: What you said about the MIMETYPE makes a lot of sense, but Firefox isnt downloading the files just opening them without parsing - blank pages.



:?: Now, how do i fix the problem(s)?
I dont see how the problem could be in the installation... lol... i downloaded the exe.

Lady Y
<?
function Greeting($var){
if($var <= brainless || $var < 25 || $var == !sexy )
echo "Goodbye, $var, do not waste your time.";
else
echo "Hello, $var, want to learn how to play strip scripting?";
}
Greeting($YOU);
?>
User avatar
LadyYepperz
 
Posts: 11
Joined: 21. October 2010 22:47

Re: PHP Not Parsing

Postby JonB » 22. October 2010 14:05

A - PHP answer -I thought so - "Open Short Tags"
viewtopic.php?f=16&t=40235&p=159414&hilit=open+short+tags#p159414

B. - Bonus Question redemption - IE and Firefox just handle the outcome of the MIMETYPE failure differently. The cause is the same. I have both Apache and IIS servers that occasionallly need to be 'taught' what a new file type is. The mechanism is basically the same - you add to a list of values the new file extension and whether it is an application, or a new content type - and then how to treat the new content - i.e treat ir as text or some other browser rendable object or specify that it needs a 'helper application' - i.e. its binary data to feed the helper. apache uses two tools/methods - the mime.types table file in apache/conf and mime-magic (a content type 'guesser'). OK, wheres my Guiness????

Good Luck
:D
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: PHP Not Parsing

Postby Altrea » 22. October 2010 14:29

Can you please describe how you try to open php files in the browser?
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: PHP Not Parsing

Postby LadyYepperz » 22. October 2010 16:33

A - PHP answer -I thought so - "Open Short Tags"
:oops: Buzzz!! All wrong! Sorry, no cookie for you. Thanks for playing Stump The Geek! lol
I have never used short tags in ANY of my scripts. Not the way I was taught. And the example provided in the install doesnt have short tags either. That was just for the sake of shortening my sig.

Bonus Question
:arrow: Thanks for this info. I will take a look at that file this evening and you've more than earned that Guiness! But unfortunately, no drinking on the job untill the main concern has been addressed.


:?: Can you please describe how you try to open php files in the browser?
:arrow: Two ways.
#1. "File - Open" in my browser.
#2. I have a button in my editor which allows me to send a script to either or both of my browsers at once or view it in an internal browser. Now that I think of it. The scripts didnt parse in the internal browser either. hmmmmm.
<?
function Greeting($var){
if($var <= brainless || $var < 25 || $var == !sexy )
echo "Goodbye, $var, do not waste your time.";
else
echo "Hello, $var, want to learn how to play strip scripting?";
}
Greeting($YOU);
?>
User avatar
LadyYepperz
 
Posts: 11
Joined: 21. October 2010 22:47

Re: PHP Not Parsing

Postby Altrea » 22. October 2010 16:49

LadyYepperz wrote:#1. "File - Open" in my browser.

That can't work. PHP is a serverside programming language and need to be parsed by a php parser. Your Browser doesn't know anything about a running webserver and php parser on your computer.

LadyYepperz wrote:#2. I have a button in my editor which allows me to send a script to either or both of my browsers at once or view it in an internal browser. Now that I think of it. The scripts didnt parse in the internal browser either. hmmmmm.

I don't know anything about your Editor. Some editors open a file with an URL instead of the file directly in the browser. If the file is not requested with an URL this can't work too.
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: PHP Not Parsing

Postby LadyYepperz » 22. October 2010 17:06

@ Altrea
Sorry to waste your time on that, but thank you for doing so. I do recall only using my browser to test HTML and other browser side scripts. Ive been out of the scripting biz for a while. I feel like a such a newb for forgetting such a basic fact. :oops:
<?
function Greeting($var){
if($var <= brainless || $var < 25 || $var == !sexy )
echo "Goodbye, $var, do not waste your time.";
else
echo "Hello, $var, want to learn how to play strip scripting?";
}
Greeting($YOU);
?>
User avatar
LadyYepperz
 
Posts: 11
Joined: 21. October 2010 22:47

Re: PHP Not Parsing

Postby Altrea » 22. October 2010 17:18

No problem :D

I'm glad your problem could be solved.
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: PHP Not Parsing

Postby LadyYepperz » 22. October 2010 17:24

Ohhhhh No! You dont get off that easily. You forgot my first and orginal question. :D

:?: #1:
How do I activate IPv6?
<?
function Greeting($var){
if($var <= brainless || $var < 25 || $var == !sexy )
echo "Goodbye, $var, do not waste your time.";
else
echo "Hello, $var, want to learn how to play strip scripting?";
}
Greeting($YOU);
?>
User avatar
LadyYepperz
 
Posts: 11
Joined: 21. October 2010 22:47

Re: PHP Not Parsing

Postby Altrea » 22. October 2010 17:32

Start setup_xampp.bat in your xampp folder.
You should see a menu with 7 options. option 5 defines the IP protocol (IPv4 only, IPv4/IPv6, IPv6 only).

Your OS must support IPv6 to use it.
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: PHP Not Parsing

Postby LadyYepperz » 22. October 2010 17:41

:?: Are you saying XP Pro doesnt support IPv6?

Last night i used the same exe download to install Xampp on my Vista Laptop and IPv6 was activated immediately! If this is the case, why isnt this info written some where?!

:x !*\$^%#@! :x
<?
function Greeting($var){
if($var <= brainless || $var < 25 || $var == !sexy )
echo "Goodbye, $var, do not waste your time.";
else
echo "Hello, $var, want to learn how to play strip scripting?";
}
Greeting($YOU);
?>
User avatar
LadyYepperz
 
Posts: 11
Joined: 21. October 2010 22:47

Re: PHP Not Parsing

Postby Altrea » 22. October 2010 17:43

Sure, Windows XP supports IPv6 since SP1
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: PHP Not Parsing

Postby LadyYepperz » 22. October 2010 17:48

Whew! I was about to be heated... lmao
So then the problem cant be my OS. I have two machines but I prefer to work on my desktop. So again, how do i fix this problem?
<?
function Greeting($var){
if($var <= brainless || $var < 25 || $var == !sexy )
echo "Goodbye, $var, do not waste your time.";
else
echo "Hello, $var, want to learn how to play strip scripting?";
}
Greeting($YOU);
?>
User avatar
LadyYepperz
 
Posts: 11
Joined: 21. October 2010 22:47

Re: PHP Not Parsing

Postby Altrea » 22. October 2010 17:49

LadyYepperz wrote:So then the problem cant be my OS.

Sure it could. IPv6 must be installed on Windows XP first.
Here is a little Howto http://forums.techarena.in/networking-s ... 098260.htm

btw: Why do you need IPv6?
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: 8293
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 73 guests