Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5565

Re: php include, function, ...

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Redcat <redcat@catfolks.net>
Newsgroups comp.lang.php
Subject Re: php include, function, ...
Date 18 Apr 2012 20:08:51 GMT
Lines 21
Message-ID <9v8lajFm4uU11@mid.individual.net> (permalink)
References <jmn6ms$ots$1@speranza.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace individual.net 65n6MJ+y8GITsXG4UlfDoAgtSbMOI9vka226HKi4lr4kqqaKKM
Cancel-Lock sha1:HIBB2qqrLf8yuZWs+RJSXBX191k=
User-Agent Pan/0.133 (House of Butterflies)
Xref csiph.com comp.lang.php:5565

Show key headers only | View raw


On Wed, 18 Apr 2012 20:03:40 +0000, hipa wrote:

> Hi there
> 
> I have a litle page with a form, which inserts an article in a postgres
> db with php.
> The php code is in the html page. Can someone tell me what the best way
> is to exclude the php code from this page. And then just calling it true
> a function or something?

I'm not sure what you mean by "exclude the php code from the page". The 
code needs to be in the HTML file if it's going to execute. If you're 
worried about users being able to view your code, you needn't - the code 
won't get displayed to them, even if they do a "view source", if your web 
server is configured properly. The code will get executed on the server 
side when it's loaded, and will display to the user whatever output it's 
supposed to spit out.

What are you hoping to accomplish?

Redcat

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

php include, function, ... hipa <hipa.invalid@telenet.be> - 2012-04-18 20:03 +0000
  Re: php include, function, ... Redcat <redcat@catfolks.net> - 2012-04-18 20:08 +0000
    Re: php include, function, ... hipa <hipa.invalid@telenet.be> - 2012-04-21 06:40 +0000
  Re: php include, function, ... Arno Welzel <usenet@arnowelzel.de> - 2012-04-18 22:12 +0200
  Re: php include, function, ... Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-19 02:55 +0200
    Re: php include, function, ... hipa <hipa.invalid@telenet.be> - 2012-04-21 06:46 +0000
  Re: php include, function, ... IRC <ircadhikari@gmail.com> - 2012-04-19 03:55 -0700
  Re: php include, function, ... IRC <ircadhikari@gmail.com> - 2012-04-19 03:51 -0700

csiph-web