[Bug 12936] Nautilus opening PHP file
bugzilla-daemon at bugzilla.ubuntu.com
bugzilla-daemon at bugzilla.ubuntu.com
Tue Jul 26 03:45:27 UTC 2005
Please do not reply to this email. You can add comments at
http://bugzilla.ubuntu.com/show_bug.cgi?id=12936
Ubuntu | nautilus
------- Additional Comments From dave at mudsite.com 2005-07-26 04:45 UTC -------
(In reply to comment #1)
> (In reply to comment #0)
> > Since it does not begin with a <? tag nautilus flips out that it
> > is trying to open a .php file that does not contain php.
>
> Is this on warty, hoary, or breezy? On a hoary system, .php files appear to
> behave identically for me, regardless of whether I have a <? (or <?php) in them
> or not. That is, if they're not executable, they open directly in gedit, if
> they are executable, I'm given the option to run them or open them. In neither
> case does the file's magic seem to matter (which is good, since PHP files can
> begin with any random string, as the <? is only used to escape code, not the
> entire file
Sorry, it is breezy.
The file contents are:
<html>
<head>
<title>simplewiki |
<? if ($submit) { ?> created : <? echo $page; } else { ?> create : <? echo
$page; } ?>
</title>
<link rel="stylesheet" href="simplestyle.css" type="text/css">
</head>
<body>
...
</body>
</html>
--
Configure bugmail: http://bugzilla.ubuntu.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the desktop-bugs
mailing list