php-general Digest 16 Mar 2003 09:53:48 -0000 Issue 1941
Topics (messages 139811 through 139833):
Re: How to convert an array to variables?
139811 by: Charles Kline
139820 by: Tom Rogers
Re: SMTP Authenticate
139812 by: The Head Sage
Re: Do query strings get spidered by Google?
139813 by: The Head Sage
Encoding /'s
139814 by: Doug Coning
139816 by: John W. Holmes
Re: List tables
139815 by: Miles Thompson
checking array
139817 by: joe
PHP newbie ... function with several returns ?
139818 by: Robert Dyke
139819 by: Jome
139821 by: Robert Dyke
139822 by: Tom Rogers
Confused a little with = to and grater than ...
139823 by: Philip J. Newman
139829 by: Dennis Cole
File upload Stuff ... well kinda.
139824 by: Philip J. Newman
139827 by: Charles Kline
Re: Performance and Function Calls
139825 by: Don Read
139826 by: Jason Sheets
group by get last record
139828 by: Daniel Harik
create keywords meta tag dynamically
139830 by: Veniamin Goldin
Re: Header order
139831 by: John Taylor-Johnston
139832 by: John Taylor-Johnston
Include() in included file
139833 by: Hubert Kowalski
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Tom,
This seems like what I need exactly, but I am having a bit of trouble
getting it to work.
Here is how I have worked around this, but I know there is a 'real' way
to do this. Any thoughts? I had to set the variables, or should I just
use the variables as ${dra_0} etc.?
// get the values for the default dra from array
while(list($key,$val) = each($r_p_dras)){
$n = "dra_$key";
echo $n;
$$n = $val['dra_id'];
}
$dra_a = "${dra_0}";
$dra_b = "${dra_1}";
$dra_c = "${dra_2}";
$dra_d = "${dra_3}";
$dra_e = "${dra_4}";
On Saturday, March 15, 2003, at 02:08 PM, Tom Rogers wrote:
Hi,
Sunday, March 16, 2003, 4:52:10 AM, you wrote:
CK> Hi all,
CK> I have an array that gives me this when I do:
CK> print_r($my_array);
CK> Array
CK> (
CK> [0] => Array
CK> (
CK> [dra_id] => 5
CK> )
CK> [1] => Array
CK> (
CK> [dra_id] => 8
CK> )
CK> [2] => Array
CK> (
CK> [dra_id] => 9
CK> )
CK> )
CK> using a foreach() I want to create a variable with a unique
incremental
CK> name for each of the values.
CK> for example:
CK> $dra_1 = 5;
CK> $dra_2 = 8;
CK> $dra_3 = 9;
CK> How would I do this? A variable that has a variable name based on a
CK> counter in the loop? Not sure the syntax for that.
CK> Thanks
CK> Charles
something like this...
while(list($key,$val) = each($my_array)){
$n = 'dra_'.$key+1;
$$n = $val['dra_id'];
}
--
regards,
Tom
--- End Message ---
--- Begin Message ---
Hi,
Sunday, March 16, 2003, 8:20:49 AM, you wrote:
CK> Tom,
CK> This seems like what I need exactly, but I am having a bit of trouble
CK> getting it to work.
CK> Here is how I have worked around this, but I know there is a 'real' way
CK> to do this. Any thoughts? I had to set the variables, or should I just
CK> use the variables as ${dra_0} etc.?
CK> // get the values for the default dra from array
CK> while(list($key,$val) = each($r_p_dras)){
CK> $n = "dra_$key";
CK> echo $n;
CK> $$n = $val['dra_id'];
CK> }
CK> $dra_a = "${dra_0}";
CK> $dra_b = "${dra_1}";
CK> $dra_c = "${dra_2}";
CK> $dra_d = "${dra_3}";
CK> $dra_e = "${dra_4}";
You could use a seperate counter like this:
$x = 1;
while(list($key,$val) = each($r_p_dras)){
$n = "dra_$x";
echo $n;
$$n = $val['dra_id'];
$x ++;
}
--
regards,
Tom
--- End Message ---
--- Begin Message ---
If the SMTP server is running on your machine, or you have access to it's
configuration. Create an e-mail address specificaly for PHP to mail from, as
i had trouble authenticating. But if i created the mailer address as a
local user on my SMTP server, it'd be allowed through. I believe it's a
method to reduce relayed SPAM...
----- Original Message -----
From: "Aitor Cabrera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2003 3:43 AM
Subject: [PHP] SMTP Authenticate
Hi, I'm trying to use the mail() funtion but I can only use this funtion the
email myself (the same email that I put in the php.ini file). I f I try to
email someone else I get an error
530 delivery not allowed to non-local recipient, try authenticating -7
How can I authenticate myselft? Which is the SMTP comand to do it and how do
I use it? Thanks!!
--- End Message ---
--- Begin Message ---
Last time i checked, Google does infact query strings. As some of my
searches have lead to forums where the url is
www.someurl.com/viewtopic.php?f=3&t=345 ect.
I also belive there is a tutorial somewhere on the internet which converts
the variables into folders, so it looks like the article is in some sort of
directory structure.
----- Original Message -----
From: "Mike Hillyer" <[EMAIL PROTECTED]>
To: "PHP GENERAL LIST" <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2003 4:26 AM
Subject: [PHP] Do query strings get spidered by Google?
> Hi All;
>
> I am trying to decide how to lay out a site with a lot of articles, and I
am
> wondering if query strings get spidered by Google. I was thinking it would
> make for an easy search engine if I could put the articles in fulltext
> searchable MySQL columns, but I do not want to lose the ability of search
> engines to spider them. Otherwise, I believe there is a way to convert the
> quert string to a trailing / so it looks like directory structure, does
> anyone have info on that?
>
> Thanks,
> Mike Hillyer
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
Hi All,
When my PHP page sends text that is being passed in, it places an "/" in
front of the apostrophe. How do I encode or decode this when I am outputing
the variable?
Thanks,
Doug Coning
--- End Message ---
--- Begin Message ---
> When my PHP page sends text that is being passed in, it places an "/"
in
> front of the apostrophe. How do I encode or decode this when I am
> outputing
> the variable?
www.php.net/stripslashes
They are added to GET, POST, COOKIE data according to the
magic_quotes_gpc setting in php.ini.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--- End Message ---
--- Begin Message ---
As noted earlier, in the manual ....
and please don't cross post.
Miles
At 05:37 PM 3/26/2003 +0000, shaun wrote:
Hi,
i would like to list all of the tables and field names in my database
e.g.
table 1
field 1
field 2
field 3
table 2
field 1
field 2
field 3
table 3
field 1
field 2
field 3
etc
is there a simple way to do this?
thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
what is the best way to check, if a value is NOT in an array?
the purpose is to take results from a webpage and check one-by-one if they
are in the txt file already. if they are not, i have to write them there..
If they are in there then i just want to leave them alone.
this is what i came up with so far:
<?php
$fp = fopen ('http://site.com', 'r');
for ($src = ''; !feof ($fp); $src .= fgets ($fp, 1024));
fclose ($fp);
preg_match_all ('/\<td\>(.*)\<\/td\>/isU', $src, $sum, PREG_SET_ORDER);
$i=0;
$result=file('boot.txt');
while($sum[$i][1] && $i<50){
$word=$sum[$i][1];
if(in_array($word, $result)){}
else{
$word = "\n".$word;
$addtxt = fopen('boot.txt', 'a');
fputs($addtxt,$word);
fclose($addtxt);
}
$i++;
}
?>
but somehow it still writes into the txtfile if if an identical line is
already there.
could somebody please correct the code or suggest a better option for
checking?
thank you
--- End Message ---
--- Begin Message ---
Hi ... PHP newbie here.
I'm migrating from ASP/vbScript.
I'd like to set up a subroutine that will change several variables at once.
In VB, I can say:
Private Sub Change_Variables ($variable1, $variable2)
$variable1 = "Something different from it's original value"
$variable2 = "I'm changed also!!"
End Sub
// in my code I can call it like this:
$My_variable1 = "This is the original value of variable1"
$My_variable2 = "This is the original value of variable2"
Call Change_Variables ($My_variable1, $My_variable2)
// after calling this subroutine the variables are changed:
print $My_variable1 // yeilds: "Something different from it's original
value"
print $My_variable2 // yields: "I'm changed also!!"
I try to convert this to PHP, and I'm getting stuck. I'm sure there's a
kind of function that can do this.
Any ideas?
TIA
--- End Message ---
--- Begin Message ---
Robert Dyke wrote:
> Hi ... PHP newbie here.
>
> I'm migrating from ASP/vbScript.
>
> I'd like to set up a subroutine that will change several variables at
> once.
>
> In VB, I can say:
>
> Private Sub Change_Variables ($variable1, $variable2)
> $variable1 = "Something different from it's original value"
> $variable2 = "I'm changed also!!"
> End Sub
>
> // in my code I can call it like this:
> $My_variable1 = "This is the original value of variable1"
> $My_variable2 = "This is the original value of variable2"
>
> Call Change_Variables ($My_variable1, $My_variable2)
>
> // after calling this subroutine the variables are changed:
>
> print $My_variable1 // yeilds: "Something different from it's
> original value"
> print $My_variable2 // yields: "I'm changed also!!"
>
> I try to convert this to PHP, and I'm getting stuck. I'm sure
> there's a kind of function that can do this.
>
> Any ideas?
VB defaults to pass by reference while PHP defaults to pass by
value.
Read more at: http://www.php.net/manual/en/language.references.pass.php
Jome
--- End Message ---
--- Begin Message ---
"Jome" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Robert Dyke wrote:
> > Hi ... PHP newbie here.
> >
> > I'm migrating from ASP/vbScript.
> >
> > I'd like to set up a subroutine that will change several variables at
> > once.
> >
> > In VB, I can say:
> >
> > Private Sub Change_Variables ($variable1, $variable2)
> > $variable1 = "Something different from it's original value"
> > $variable2 = "I'm changed also!!"
> > End Sub
> >
> > // in my code I can call it like this:
> > $My_variable1 = "This is the original value of variable1"
> > $My_variable2 = "This is the original value of variable2"
> >
> > Call Change_Variables ($My_variable1, $My_variable2)
> >
> > // after calling this subroutine the variables are changed:
> >
> > print $My_variable1 // yeilds: "Something different from it's
> > original value"
> > print $My_variable2 // yields: "I'm changed also!!"
> >
> > I try to convert this to PHP, and I'm getting stuck. I'm sure
> > there's a kind of function that can do this.
> >
> > Any ideas?
>
> VB defaults to pass by reference while PHP defaults to pass by
> value.
>
> Read more at: http://www.php.net/manual/en/language.references.pass.php
>
> Jome
THANKS!! I inserted the ampersands and it works beautifully ...
--- End Message ---
--- Begin Message ---
Hi,
Sunday, March 16, 2003, 10:52:49 AM, you wrote:
RD> Hi ... PHP newbie here.
RD> I'm migrating from ASP/vbScript.
RD> I'd like to set up a subroutine that will change several variables at once.
RD> In VB, I can say:
RD> Private Sub Change_Variables ($variable1, $variable2)
RD> $variable1 = "Something different from it's original value"
RD> $variable2 = "I'm changed also!!"
RD> End Sub
RD> // in my code I can call it like this:
RD> $My_variable1 = "This is the original value of variable1"
RD> $My_variable2 = "This is the original value of variable2"
RD> Call Change_Variables ($My_variable1, $My_variable2)
RD> // after calling this subroutine the variables are changed:
RD> print $My_variable1 // yeilds: "Something different from it's original
RD> value"
RD> print $My_variable2 // yields: "I'm changed also!!"
RD> I try to convert this to PHP, and I'm getting stuck. I'm sure there's a
RD> kind of function that can do this.
RD> Any ideas?
RD> TIA
You need this:
function Change_Variables (&$variable1, &$variable2){
$variable1 = "Something different from it's original value"
$variable2 = "I'm changed also!!"
}
(notice the '&' symbols)
--
regards,
Tom
--- End Message ---
--- Begin Message ---
Well i thought about changeing access levels into numbers so that only
LARGER numbers can access lower numbers and Lower numbers can't access
anything higher ... if that makes sence ...
So 3 can access 2 and 1,
2 can't access 3, but can access 2 and 1 and one can't access 2 or 3, but
can 1 ...
assuming that $siteAccessLevel is = to eather level-1, level-2 or level-3
...
if ($slevel >= $glevel) {
is the line i can't seem to get right.
*GRIN* any help? code below.
if ($siteAccessLevel == "level-1") { $slevel = "1"; }
else if ($siteAccessLevel == "level-2") { $slevel = "2"; }
else if ($siteAccessLevel == "level-3") { $slevel = "3"; }
if ($gAccessLevel == "level-1") { $glevel = "1"; }
else if ($gAccessLevel == "level-2") { $glevel = "2"; }
else if ($gAccessLevel == "level-3") { $glevel = "3"; }
if ($slevel >= $glevel) {
//LOAD PAGE
} else {
// ERROR MESSAGE HERE.
{
------
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
+64 (9) 576 9491
+64 021-048-3999
------
Friends are like stars
You can't allways see them,
but they are always there.
------
Websites:
PhilipNZ.com - Design.
http://www.philipnz.com/
[EMAIL PROTECTED]
Philip's Domain // Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Vital Kiwi / NEWMAN.NET.NZ.
http://www.newman.net.nz/
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I think this is what you mean ....
<?php
// This looks cleaner, and is a lot easyer to read!
$siteAccessLevel = 2;
$gAccessLevel = 1;
switch ($siteAccessLevel) {
case "level-1":
$slevel = "0";
break;
case "level-2":
$slevel = "1";
break;
case "level-3":
$slevel = "2";
break;
}
switch ($gAccessLevel) {
case "level-1":
$glevel = "1";
break;
case "level-2":
$glevel = "2";
break;
case "level-3":
$glevel = "3";
break;
}
if ($slevel < $glevel) {
echo "Access Granted";
}else{
echo "You don't belong";
}
?>
-----Original Message-----
From: Philip J. Newman [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 15, 2003 8:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Confused a little with = to and grater than ...
Importance: Low
Well i thought about changeing access levels into numbers so that only
LARGER numbers can access lower numbers and Lower numbers can't access
anything higher ... if that makes sence ...
So 3 can access 2 and 1,
2 can't access 3, but can access 2 and 1 and one can't access 2 or 3, but
can 1 ...
assuming that $siteAccessLevel is = to eather level-1, level-2 or level-3
...
if ($slevel >= $glevel) {
is the line i can't seem to get right.
*GRIN* any help? code below.
if ($siteAccessLevel == "level-1") { $slevel = "1"; }
else if ($siteAccessLevel == "level-2") { $slevel = "2"; }
else if ($siteAccessLevel == "level-3") { $slevel = "3"; }
if ($gAccessLevel == "level-1") { $glevel = "1"; }
else if ($gAccessLevel == "level-2") { $glevel = "2"; }
else if ($gAccessLevel == "level-3") { $glevel = "3"; }
if ($slevel >= $glevel) {
//LOAD PAGE
} else {
// ERROR MESSAGE HERE.
{
------
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
+64 (9) 576 9491
+64 021-048-3999
------
Friends are like stars
You can't allways see them,
but they are always there.
------
Websites:
PhilipNZ.com - Design.
http://www.philipnz.com/
[EMAIL PROTECTED]
Philip's Domain // Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Vital Kiwi / NEWMAN.NET.NZ.
http://www.newman.net.nz/
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
RIghto then. Just make a nice website, on my windows box and everything and
when i moved it to the live server, the things that didn't work where file
uploads. What (if any) settings do i have to use for a Linux dir ..
to allow access for the file to be uploaded?
------
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
+64 (9) 576 9491
+64 021-048-3999
------
Friends are like stars
You can't allways see them,
but they are always there.
------
Websites:
PhilipNZ.com - Design.
http://www.philipnz.com/
[EMAIL PROTECTED]
Philip's Domain // Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Vital Kiwi / NEWMAN.NET.NZ.
http://www.newman.net.nz/
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Check the permissions on the directory you are trying to upload your
files. The host I am using required me to either chmod the upload
directory to 777 (not what I wanted to do) or run PHP with cgi-wrap
enabled - this allowed my PHP application to run as the user and
therefore had permission to write to a directory. Check with the host
on this.
- Charles
On Saturday, March 15, 2003, at 09:53 PM, Philip J. Newman wrote:
RIghto then. Just make a nice website, on my windows box and
everything and
when i moved it to the live server, the things that didn't work where
file
uploads. What (if any) settings do i have to use for a Linux dir ..
to allow access for the file to be uploaded?
------
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
+64 (9) 576 9491
+64 021-048-3999
------
Friends are like stars
You can't allways see them,
but they are always there.
------
Websites:
PhilipNZ.com - Design.
http://www.philipnz.com/
[EMAIL PROTECTED]
Philip's Domain // Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Vital Kiwi / NEWMAN.NET.NZ.
http://www.newman.net.nz/
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On 15-Mar-2003 CF High wrote:
> Hey all.
>
> Quick question:
>
> If I have a function that, say, prints out the months in a year, and I
> call
> that function within a 10 cycle loop, which of the following is faster:
>
> 1) Have function months() return months as a string; set var
> string_months = months() outside of the loop; then echo string_months
> within
> the loop
>
> -- OR
>
> 2) Just call months() for each iteration through the loop
>
> I'm not sure how PHP interprets option number 1.
>
> Guidance for the clueless much appreciated...........
>
Easy enuff to test:
<?php
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
for ($m=1; $m <11; $m++) {
echo date('F', strtotime("2003-$m-1")), '<br>';
}
echo '<P>A: ', getmicrotime() - $time_start , '<P>';
$time_start = getmicrotime();
for ($m=1; $m <11; $m++) {
$str[]=date('F', strtotime("2003-$m-1"));
}
echo implode('<br>',$str);
echo '<P>B: ', getmicrotime() - $time_start , '<P>';
unset($str);
$time_start = getmicrotime();
for ($m=1; $m <11; $m++) {
$str[]=date('F', strtotime("2003-$m-1"));
}
while (list(,$v)= each($str)) {
echo $v, '<br>';
}
echo '<P>C: ', getmicrotime() - $time_start , '<P>';
?>
On my machine I get numbers like:
A: 0.000907063484192
B: 0.000651001930237
C: 0.000686049461365
The function call within the loop is slower (contrary to what I
expected), the real question is how much effort do you want to expend to
save 2-3 micro-seconds?
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--- End Message ---
--- Begin Message ---
Storing the results of a function in a variable and referencing the
variable will almost always be faster, this should be no surprise
because instead of executing the function PHP just has to return the
variable's value.
In #1 since you only call the function once the function is only
executed once, in a loop it is executed once for each loop iteration.
Jason
On Sat, 2003-03-15 at 21:25, Don Read wrote:
> On 15-Mar-2003 CF High wrote:
> > Hey all.
> >
> > Quick question:
> >
> > If I have a function that, say, prints out the months in a year, and I
> > call
> > that function within a 10 cycle loop, which of the following is faster:
> >
> > 1) Have function months() return months as a string; set var
> > string_months = months() outside of the loop; then echo string_months
> > within
> > the loop
> >
> > -- OR
> >
> > 2) Just call months() for each iteration through the loop
> >
> > I'm not sure how PHP interprets option number 1.
> >
> > Guidance for the clueless much appreciated...........
> >
>
> Easy enuff to test:
>
> <?php
>
> function getmicrotime(){
> list($usec, $sec) = explode(" ",microtime());
> return ((float)$usec + (float)$sec);
> }
>
> $time_start = getmicrotime();
> for ($m=1; $m <11; $m++) {
> echo date('F', strtotime("2003-$m-1")), '<br>';
> }
> echo '<P>A: ', getmicrotime() - $time_start , '<P>';
>
> $time_start = getmicrotime();
> for ($m=1; $m <11; $m++) {
> $str[]=date('F', strtotime("2003-$m-1"));
> }
> echo implode('<br>',$str);
> echo '<P>B: ', getmicrotime() - $time_start , '<P>';
>
> unset($str);
> $time_start = getmicrotime();
> for ($m=1; $m <11; $m++) {
> $str[]=date('F', strtotime("2003-$m-1"));
> }
>
> while (list(,$v)= each($str)) {
> echo $v, '<br>';
> }
> echo '<P>C: ', getmicrotime() - $time_start , '<P>';
>
> ?>
>
> On my machine I get numbers like:
> A: 0.000907063484192
> B: 0.000651001930237
> C: 0.000686049461365
>
> The function call within the loop is slower (contrary to what I
> expected), the real question is how much effort do you want to expend to
> save 2-3 micro-seconds?
>
> Regards,
> --
> Don Read [EMAIL PROTECTED]
> -- It's always darkest before the dawn. So if you are going to
> steal the neighbor's newspaper, that's the time to do it.
--
Jason Sheets <[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
Hello,
Guys i try to join to tables
slides:
id
userid
file
moment
users
id
username
As there few slids per user and i want to get only last one, i use following
sql query, but it fetches me first slide. How can i make it fetch last one
please?
SELECT slides.file, slides.moment, users.id, users.username FROM slides,
users where users.id=slides.userid GROUP BY users.id desc
--- End Message ---
--- Begin Message ---
hi,
Does someone have solution how to index page and dynamically create
keywords for "keywords" meta tag ?
Based on full page content, not only on title.
Thanks !
--- End Message ---
--- Begin Message ---
You do have to declare the headers first !!??
John Taylor-Johnston wrote:
> For the record, am I declaring these in the correct order?
> Thanks,
> John
>
> <?php
>
> header("Content-type: text/notabene");
> header("Content-Disposition: attachment; filename=".$dbtable.".nb");
>
> ob_start("ob_gzhandler");
> set_time_limit(150);
--
John Taylor-Johnston
-----------------------------------------------------------------------------
"If it's not open-source, it's Murphy's Law."
' ' ' Collège de Sherbrooke:
ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/
- Université de Sherbrooke:
http://compcanlit.ca/
819-569-2064
--- End Message ---
--- Begin Message ---
You do have to declare the headers first !!??
John Taylor-Johnston wrote:
> For the record, am I declaring these in the correct order?
> Thanks,
> John
>
> <?php
>
> header("Content-type: text/notabene");
> header("Content-Disposition: attachment; filename=".$dbtable.".nb");
>
> ob_start("ob_gzhandler");
> set_time_limit(150);
--- End Message ---
--- Begin Message ---
Hello all!
In index.php I include a file template.php using
<?php
// this is index.php file
include('template.php');
?>
Works fine. In template.php I'm using include function too
<?php
// this is template.php file
echo 'before include';
include('header.php');
echo 'after include';
?>
Works fine on all machines I installed it till now: Windows (NT, 98), Linux
(some of them). But I installed it on FreeBSD and... surprise. When I call
index.php, all I get is "before include". No header.php content, no "after
include" phrase. And there is no warning or error message. Has anybody got
an idea what is wrong? Cheers,
Hubi
--- End Message ---