What Went Wrong with 1.7.2 PHP does not get parased

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

Re: What Went Wrong with 1.7.2 PHP does not get parased

Postby echo9 » 31. January 2010 20:55

mkm854 wrote:kindly follow this path:C:\xampp\apache\conf\extra in local drive:

next open:httpd-xampp.conf

search FilesMatch Tag and replace by
<FilesMatch "\.(html|htm|php|rhtml|shtml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>

Thanks

try this I will definetly working on win XP


Sorry, but it didn't work out for me :(
any other alternative??

And Wiedmann can you please try this code (you said you want an example to proof that ">" is being recognized as this "?>" :

Code: Select all
<?php
print("<b>Can gophers really code PHP?</b>");
print("<hr><b>line 2 test</b><hr>");
?>


Thanks,
echo9
echo9
 
Posts: 11
Joined: 21. January 2010 17:08

Re: What Went Wrong with 1.7.2 PHP does not get parased

Postby echo9 » 31. January 2010 20:56

please observe the extra text/char coming up~

UPDATE:

As a matter of fact am able to parse this one below:
Code: Select all
<?php
    echo '<b>Can gophers really code PHP?</b>';
?>

<?php echo '<hr><b>line 2 test</b><hr>' ?>


But why? whats wrong with the first code sample? is the sysntax changed for a "print" statement?? :shock:
echo9
 
Posts: 11
Joined: 21. January 2010 17:08

Re: What Went Wrong with 1.7.2 PHP does not get parased

Postby Altrea » 02. February 2010 10:57

There is no difference between
Code: Select all
<?php
print("<b>Can gophers really code PHP?</b>");
print("<hr><b>line 2 test</b><hr>");
?>

and
Code: Select all
<?php
    echo '<b>Can gophers really code PHP?</b>';
?>

<?php echo '<hr><b>line 2 test</b><hr>' ?>


exept one extra linebreak in the browser-sourceview
Code: Select all
<b>Can gophers really code PHP?</b><hr><b>line 2 test</b><hr>
<b>Can gophers really code PHP?</b>
<hr><b>line 2 test</b><hr>


Tested with XAMPP 1.7.1 and XAMPP 1.7.3
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: 8298
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: What Went Wrong with 1.7.2 PHP does not get parased

Postby echo9 » 03. February 2010 14:13

my xampp v.1.7.3 on windows 7 ultimate doesn't displays the right output for the code with a print statement! :(
echo9
 
Posts: 11
Joined: 21. January 2010 17:08

Re: What Went Wrong with 1.7.2 PHP does not get parased

Postby Joachim S. » 12. April 2010 18:14

Hi all,

All I have to say is that most of the migration problems that I encountered had to do with the short tags. Replaced them with <?php ...?> and almost everything worked. Thanx to Wiedman for this valuable hint - I had found it somewhere up this thread. Can't imagine people have difficulties with things simple as this...

Greetings

Jo
Joachim S.
 
Posts: 1
Joined: 11. April 2010 19:18

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 35 guests