Re: backslashes added to quotes when reading from form
From: paul (paul_at_not.net)
Date: 12/03/04
- Next message: Nikolai Chuvakhin: "Re: getting started with understanding php"
- Previous message: Oli Filth: "Re: Quick Questions"
- In reply to: Harrie Verveer: "Re: backslashes added to quotes when reading from form"
- Next in thread: Oli Filth: "Re: backslashes added to quotes when reading from form"
- Reply: Oli Filth: "Re: backslashes added to quotes when reading from form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 03 Dec 2004 13:46:22 -0800
Oh no they support php, it's just when I post the contents of a text
file containing some php code, it is not interpreted. This is the code I
extract it with:
# extract comments from text file to screen
if (file_exists ("$basename.txt")){
$comment = file_get_contents("$basename.txt");
print $comment;
}
If the content is:
<?php print "hello"; ?>
it comes up blank, though I thought before it printed out that code
verbatim.
html code like test does get interpreted as html though.
Harrie Verveer wrote:
> if you used <? as open tag, try using <?php
>
> if that doesn't work, I'm afraid your hosting provider doesn't support
> PHP :(
>
> paul wrote:
>
>> Interestingly, I tried putting some php code in my form and it didn't
>> execute. The html code gets properly formatted but the php just comes
>> out as raw text.
- Next message: Nikolai Chuvakhin: "Re: getting started with understanding php"
- Previous message: Oli Filth: "Re: Quick Questions"
- In reply to: Harrie Verveer: "Re: backslashes added to quotes when reading from form"
- Next in thread: Oli Filth: "Re: backslashes added to quotes when reading from form"
- Reply: Oli Filth: "Re: backslashes added to quotes when reading from form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|