Page 3 of 3

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

PostPosted: 31. January 2010 20:55
by echo9
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

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

PostPosted: 31. January 2010 20:56
by echo9
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:

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

PostPosted: 02. February 2010 10:57
by Altrea
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

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

PostPosted: 03. February 2010 14:13
by echo9
my xampp v.1.7.3 on windows 7 ultimate doesn't displays the right output for the code with a print statement! :(

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

PostPosted: 12. April 2010 18:14
by Joachim S.
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