Ask a Question related to PHP Development, Design and Development.
-
Tom #1
require
hi i want to require or include a file in my php script.
the file i want to include contains some variables and some normal html.
i want to get the values of the variable without displaying the html stuff.
Any idea how i could this ?
thanks in advance
Tom Guest
-
Use and Require
Dear Perl Gurus, What is the difference between Use and Require. Thanks, Malliks -
#25782 [Opn->Bgs]: require( 'require.php' ) crashing Apache 1.3.28
ID: 25782 Updated by: sniper@php.net Reported By: akinder at technology-x dot com -Status: Open +Status: ... -
#25782 [Fbk->Opn]: require( 'require.php' ) crashing Apache 1.3.28
ID: 25782 User updated by: akinder at technology-x dot com Reported By: akinder at technology-x dot com -Status: ... -
#25782 [Opn->Fbk]: require( 'require.php' ) crashing Apache 1.3.28
ID: 25782 Updated by: sniper@php.net Reported By: akinder at technology-x dot com -Status: Open +Status: ... -
#25782 [NEW]: require( 'require.php' ) crashing Apache 1.3.28
From: akinder at technology-x dot com Operating system: Linux RedHat 9 PHP version: 5.0.0b1 (beta1) PHP Bug Type: Apache... -
Manitoba98 #2
Re: require
Perhaps you could put your variables in a different file, and have both of
your present files require or include it? Other than that, I have no idea...
Manitoba98XP
"Tom" <tom@fakeemailaddresss.com> wrote in message
news:Rgxec.67714$Id.14636@news-binary.blueyonder.co.uk...stuff.> hi i want to require or include a file in my php script.
>
> the file i want to include contains some variables and some normal html.
>
> i want to get the values of the variable without displaying the html>
> Any idea how i could this ?
>
> thanks in advance
>
>
Manitoba98 Guest
-
Pedro Graca #3
Re: require
["Followup-To:" header set to comp.lang.php.]
Tom wrote:1. start output buffering> hi i want to require or include a file in my php script.
>
> the file i want to include contains some variables and some normal html.
>
> i want to get the values of the variable without displaying the html stuff.
>
> Any idea how i could this ?
2. include (or require) the file
3. stop buffering and disregard the data
Links:
[url]http://www.php.net/ob_start[/url]
[url]http://www.php.net/ob_end_clean[/url]
--
USENET would be a better place if everybody read: : mail address :
[url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] : is valid for :
[url]http://www.netmeister.org/news/learn2quote2.html[/url] : "text/plain" :
[url]http://www.expita.com/nomime.html[/url] : to 10K bytes :
Pedro Graca Guest



Reply With Quote

