php-general Digest 23 Mar 2006 12:16:18 -0000 Issue 4031
Topics (messages 232425 through 232449):
Re: Error loading module php_mapscript.so
232425 by: Chris
Re: Error loading module php_mapscript.so (zend_hash_internal_pointer_reset_ex)
232426 by: Robert Cummings
Re: pulling in template file in var and populating vars?
232427 by: Jim Lucas
232433 by: clive
232441 by: Kevin Waterson
Re: Creating a Window without JavaScript that is on top
232428 by: Todd Cary
232429 by: Jay Blanchard
232432 by: Todd Cary
232435 by: Mike Rondeau
232436 by: Todd Cary
232437 by: Todd Cary
232443 by: brian dichiara
Re: Reading data from SELECT in PHP
232430 by: Jim Lucas
mail link problem with php echo statement
232431 by: Mark
232434 by: Chris
Atrributes and NuSOAP
232438 by: Peter Lauri
232444 by: Chris
undefined function error with lost password script
232439 by: Mark
232440 by: Barry
232448 by: Robin Vickery
GD Library or PHP Function
232442 by: brian dichiara
why is PEAR::DB constantly initting connection?
232445 by: joseph
232449 by: Chris
Re: session vars
232446 by: John Wells
232447 by: João Cândido de Souza Neto
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:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Fósforo wrote:
Hi,
I just have compiled a module for my webserver, added it to
httpd.conf, but apache gives me an error when i try to start it:
[EMAIL PROTECTED]:/var/www/html/laget/servlet# apachectl configtest
Syntax error on line 241 of /etc/apache/httpd.conf:
Cannot load /usr/libexec/apache/php_mapscript.so into server:
/usr/libexec/apache/php_mapscript.so: undefined symbol:
zend_hash_internal_pointer_reset_ex
We won't be able to help you.. ask on the mailing list that supports
this module.
http://mapserver.gis.umn.edu/docs/howto/phpmapscript-install
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
On Wed, 2006-03-22 at 18:47, Fósforo wrote:
> Hi,
>
> I just have compiled a module for my webserver, added it to
> httpd.conf, but apache gives me an error when i try to start it:
>
> [EMAIL PROTECTED]:/var/www/html/laget/servlet# apachectl configtest
> Syntax error on line 241 of /etc/apache/httpd.conf:
> Cannot load /usr/libexec/apache/php_mapscript.so into server:
> /usr/libexec/apache/php_mapscript.so: undefined symbol:
> zend_hash_internal_pointer_reset_ex
Looks like you probably have a Zend API version conflict. A precompiled
shared module must shared the same Zend API as the PHP module. Make sure
your using the right .so for your version of PHP.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
blackwater dev wrote:
I have a chunk of html data that I want to output for each iteration through
a db result
while($result){
$list.=file_get_contents("my_template_file.php");
}
return $list;
The template file looks like this:
<table>
<tr>
<td><?php echo $result["name"];?></td>
</tr>
</table>
I basically want a good way to keep the template file out of the class so I
don't have to code:
$list.="<table><tr>...etc
The problem is with the method I have, it doesn't translate the
vars...what's the best way to do this?
Thanks!
check into the eval() function
I see reading in the user notes that you will want to do something like
$filedata = file_get_contents($file);
while ($result) {
$list .= eval('?>'.$filedata);s
}
Looks like someone has figured this out.
You might also look into using str_replace and use markers in your
template file
{SOME_VAR}
and then set in your while loop
$some_var = $result['something'];
$list .= str_replace('{SOME_VAR}', $some_var, $filedata);
This might work for you also
Jim
--- End Message ---
--- Begin Message ---
You could also look at using a templating engine like Smarty for instance.
clive
blackwater dev wrote:
I have a chunk of html data that I want to output for each iteration through
a db result
while($result){
$list.=file_get_contents("my_template_file.php");
}
return $list;
The template file looks like this:
<table>
<tr>
<td><?php echo $result["name"];?></td>
</tr>
</table>
I basically want a good way to keep the template file out of the class so I
don't have to code:
$list.="<table><tr>...etc
The problem is with the method I have, it doesn't translate the
vars...what's the best way to do this?
Thanks!
--- End Message ---
--- Begin Message ---
This one time, at band camp, clive <[EMAIL PROTECTED]> wrote:
> You could also look at using a templating engine like Smarty for instance.
BHAHAHAHAHAHAHAAA
1000 lines of code for "hello world"
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--- End Message ---
--- Begin Message ---
Thank you! Very helpful indeed!
Todd
Jay Blanchard wrote:
[snip]
Is there a way to create a Window that is like the Help or Popup
type windows one can create with JavaScript?
I have an event calendar and I want the link for the event to go
to a PHP page, but I want the page to be on top and have focus
with a Close button. The PHP page will have some PHP code that
will display the data passed by the GET var.
[/snip]
You do know that JavaScript can open a PHP page right? Here is an
example....
/*
* description: pop up a window with a specific file
* call: <a href="javascript:popUp('<name of file to open like
foo.php>')"><link name></a>
*/
function popUp(url){
pop = window.open(url,'window
name','width=300,height=200,toolbar=no,location=no,menubar=no,scrollbars
=no,resizable=no');
pop.moveTo(50,50);
}
Whatever foo.php is will be displayed in the pop-up window. There are
several ways to pass variables back and forth using JavaScript....but
this is not the list for that :)
--- End Message ---
--- Begin Message ---
[snip]
Personally, I think that posting a way to allow php to communicate
with javascript OR any other language is relevant for a php-general
list, don't you think?
[/snip]
Hmmmmm... maybe that is what I provided an example of how to make them
work together. :) Lighten up.
--- End Message ---
--- Begin Message ---
Gosh darn! That really works!! Many thanks!
Though I may be still playing around with the PHP code, a demo
might be seen at
http://209.204.172.137/calendar/php/showmonth.php
Todd
Brady Mitchell wrote:
Personally, I think that posting a way to allow php to communicate
with javascript OR any other language is relevant for a php-general
list, don't you think?
To use the value of a PHP variable in javascript, you create a
javascript variable and then echo the value of the php variable.
For example:
Say you have a $price variable set in your PHP script and you want to
use that in a JavaScript.
<?php
$price = 50;
?>
<script language="javascript" type="text/javascript">
var price = <?php echo $price; ?>;
</script>
Assuming you put this in a .php file, PHP will parse the file and echo
the price before the javascript makes it to the browser, so if you look
at the source of the document you'll see:
<script language="javascript" type="text/javascript">
var price = 50;
</script>
HTH,
Brady
--- End Message ---
--- Begin Message ---
I'd like to echo that statement!
Mike
----- Original Message -----
From: Todd Cary
To: php-general@lists.php.net
Sent: Wednesday, March 22, 2006 5:49 PM
Subject: Re: [PHP] Creating a Window without JavaScript that is on top
Thank you! Very helpful indeed!
Todd
Jay Blanchard wrote:
> You do know that JavaScript can open a PHP page right? Here is an
> example....
>
> /*
> * description: pop up a window with a specific file
> * call: <a href="javascript:popUp('<name of file to open like
> foo.php>')"><link name></a>
> */
> function popUp(url){
> pop = window.open(url,'window
> name','width=300,height=200,toolbar=no,location=no,menubar=no,scrollbars
> =no,resizable=no');
> pop.moveTo(50,50);
> }
>
> Whatever foo.php is will be displayed in the pop-up window. There are
> several ways to pass variables back and forth using JavaScript....but
> this is not the list for that :)
--- End Message ---
--- Begin Message ---
How do I get the var into a php variable in the destination window?
Todd
Brady Mitchell wrote:
Personally, I think that posting a way to allow php to communicate
with javascript OR any other language is relevant for a php-general
list, don't you think?
To use the value of a PHP variable in javascript, you create a
javascript variable and then echo the value of the php variable.
For example:
Say you have a $price variable set in your PHP script and you want to
use that in a JavaScript.
<?php
$price = 50;
?>
<script language="javascript" type="text/javascript">
var price = <?php echo $price; ?>;
</script>
Assuming you put this in a .php file, PHP will parse the file and echo
the price before the javascript makes it to the browser, so if you look
at the source of the document you'll see:
<script language="javascript" type="text/javascript">
var price = 50;
</script>
HTH,
Brady
--- End Message ---
--- Begin Message ---
Problem solved....
Todd
Todd Cary wrote:
How do I get the var into a php variable in the destination window?
Todd
Brady Mitchell wrote:
Personally, I think that posting a way to allow php to communicate
with javascript OR any other language is relevant for a php-general
list, don't you think?
To use the value of a PHP variable in javascript, you create a
javascript variable and then echo the value of the php variable.
For example:
Say you have a $price variable set in your PHP script and you want to
use that in a JavaScript.
<?php
$price = 50;
?>
<script language="javascript" type="text/javascript">
var price = <?php echo $price; ?>;
</script>
Assuming you put this in a .php file, PHP will parse the file and echo
the price before the javascript makes it to the browser, so if you look
at the source of the document you'll see:
<script language="javascript" type="text/javascript">
var price = 50;
</script>
HTH,
Brady
--- End Message ---
--- Begin Message ---
you could create a div that floats on top of everything, but you'll
still need javascript to set its position and to hide/unhide it.
as far as I know, you need javascript to do it.
_Brian.
Todd Cary wrote:
Is there a way to create a Window that is like the Help or Popup type
windows one can create with JavaScript?
I have an event calendar and I want the link for the event to go to a
PHP page, but I want the page to be on top and have focus with a Close
button. The PHP page will have some PHP code that will display the data
passed by the GET var.
Todd
--- End Message ---
--- Begin Message ---
tedd wrote:
Hello friends,
I've create a form containing a SELECT under JavaScript, where the user
decide all list's elements.
My problem is how can I get all list's elements on PHP. Using $-POST[] I
only get the selected option.
With my most sincere thanks.
Lorca
Lorca:
Yes, a SELECT only returns one value.
You might want to look at:
http://www.weberdev.com/get_example-1739.html
It show one way to combine php and javascript variables.
tedd
PS: Probably a typo, but it's $_POST[]
You can for sure have a SELECT select more then one option.
Check out this site
http://www.htmlhelp.com/reference/html40/forms/select.html
It will explain how to setup a SELECT to allow you to submit multiple
options from the list.
Jim
--- End Message ---
--- Begin Message ---
How can i make this email from a database a hyperlink so it doesnt show the
email address--i have tried many things but i keep getting errors. At the
moment it just shows the email (no link)
thanks
<?php
//get comp_id
$query = mysql_query("SELECT * FROM comps WHERE name = '$comp_name'");
$result = mysql_fetch_array($query);
$comp_id = $result['id'];
$joinfee = $result['joinfee'];
$email = $result['email'];
?>
Administrator email[<?php echo $email;?>]</td>
--- End Message ---
--- Begin Message ---
Mark wrote:
How can i make this email from a database a hyperlink so it doesnt show the
email address--i have tried many things but i keep getting errors. At the
moment it just shows the email (no link)
thanks
<?php
//get comp_id
$query = mysql_query("SELECT * FROM comps WHERE name = '$comp_name'");
$result = mysql_fetch_array($query);
$comp_id = $result['id'];
$joinfee = $result['joinfee'];
$email = $result['email'];
?>
Administrator email[<?php echo $email;?>]</td>
Something like this?
<a href="mailto:<?php echo $email; ?>">Email the administrator</a>
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Hi,
I have been trying to find a simple example of how to add attributes to the
requests, but after two days search I can not find an example. The $param is
easy to create if it does not contain any attributes. This is what I want to
create, but the internalId is giving me troubles:
-------------------
<soap:Body>
<platformMsgs:login>
<platformMsgs:passport>
<platformCore:email>[EMAIL PROTECTED]</platformCore:email>
<platformCore:password>Cracker1</platformCore:password>
<platformCore:account>111111</platformCore:account>
<platformCore:role internalId="3"/>
</platformMsgs:passport>
</platformMsgs:login>
</soap:Body>
-------------------
So I started:
$param = array(
'passport'=>array(
'email'=>'[EMAIL PROTECTED]',
'password'=>'Cracker1',
'account'=>'1111111',
//But here I have no clue what to write
)
);
Maybe the reason is that you can not do that with NuSOAP, but I am a newbie
so I have no clue.
Best regards,
Peter Lauri
--- End Message ---
--- Begin Message ---
On 3/23/06, Peter Lauri <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have been trying to find a simple example of how to add attributes to the
> requests, but after two days search I can not find an example. The $param is
> easy to create if it does not contain any attributes. This is what I want to
> create, but the internalId is giving me troubles:
...
> Maybe the reason is that you can not do that with NuSOAP, but I am a newbie
> so I have no clue.
You're better off asking the NuSOAP list for help because they know
the script better than we do.
http://sourceforge.net/mail/?group_id=57663
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Can anyone see a problem with this at a glance. I think i have pushed my
luck with this forum ( inc. Chris)of late but i paid a lot of money for this
script and it has a few bugs.
THis is what i get returned---
Fatal error: Call to undefined function: recover_pw() in
/home/realt905/public_html/lost_pw.php on line 70
where line 70 is : recover_pw($_POST['email_address']);
********************************
<?php
include("connect.php");
if (isset($_POST['Submit'])) {
$comp_name = $_POST['comp_name'];
//get comp id
$sql = "SELECT id FROM comps WHERE name = '$comp_name'";
$query = mysql_query($sql);
$result = mysql_fetch_array($query);
$comp_id = $result['id'];
recover_pw($_POST['email_address']);
function recover_pw($email_address){
if(!$email_address){
?>
<p align="center"><font size="4"><strong><?php echo $comp_name;?> Lost
Password</strong></font></p>
<div align="center"><strong><a href="comp_site.php?name=<?php echo
$comp_name;?>">Back</a> |<a href="index.php">Main
Site</a></strong></div>
<?php
echo "<br><br>You forgot to enter your email address!<br>";
include("lost_pw_retry.php");
exit();
}
// check to see if record exists
$sql_check = mysql_query("SELECT * FROM users WHERE
email_address='$email_address' AND comp_id = $comp_id");
$sql_check_num = mysql_num_rows($sql_check);
if($sql_check_num == 0){
?>
<p align="center"><font size="4"><strong><?php echo $comp_name;?> Lost
Password</strong></font></p>
<div align="center"><strong><a href="comp_site.php?name=<?php echo
$comp_name;?>">Back</a> |<a href="index.php">Main
Site</a></strong></div>
<?php
echo "<br><br>No records found matching your email address<br>";
include ("lost_pw_retry.php");
exit();
}
// Generate password, update it and send it
function makeRandomPassword() {
$salt = "abchefghjkmnpqrstuvwxyz0123456789";
$pass = "";
srand((double)microtime()*1000000);
$i = 0;
while ($i <= 7) {
$num = rand() % 33;
$tmp = substr($salt, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
$random_password = makeRandomPassword();
$db_password = md5($random_password);
$sql = mysql_query("UPDATE users SET password='$db_password' WHERE
email_address='$email_address' and comp_id = $comp_id");
$subject = "$comp_name - password reset";
$message =
"Hi, we have reset your password.
New Password: $random_password
To Login: $address/login_user.php?name=$comp_name
Thanks!
Admin
This is an automated response, please do not reply!";
mail($email_address, $subject, $message, "From:
Admin<$fromemailaddress>\nX-Mailer: PHP/" . phpversion());
?>
<p align="center"><font size="4"><strong><?php echo $comp_name;?> Lost
Password</strong></font></p>
<div align="center"><strong><a href="comp_site.php?name=<?php echo
$comp_name;?>">Back</a> |<a href="index.php">Main
Site</a></strong></div>
<?php
echo "<br><br><center>Your new password has been sent. Please check your
email.</center>";
}
} else {
$comp_name = $_GET['name'];
?>
<p align="center"><font size="4"><strong><?php echo $comp_name;?> Lost
Password</strong></font></p>
<div align="center"><strong><a href="comp_site.php?name=<?php echo
$comp_name;?>">Back</a> |<a href="index.php">Main
Site</a></strong></div>
<form method="post" action="lost_pw.php">
<table width="39%" border="0" cellspacing="0" cellpadding="4"
align="center">
<input type="hidden" name="comp_name" value="<?php echo $comp_name;?>">
<tr>
<td>Email</td>
<td><input name="email_address" type="text" id="email_address"
size="50"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input name="recover" type="hidden" id="recover" value="recover">
<input type="submit" name="Submit" value="Recover My Password!"></td>
</tr>
</table>
</form>
<?php
}
include("footer.html");
?>
********************************
--- End Message ---
--- Begin Message ---
Mark wrote:
Can anyone see a problem with this at a glance. I think i have pushed my
luck with this forum ( inc. Chris)of late but i paid a lot of money for this
script and it has a few bugs.
THis is what i get returned---
Fatal error: Call to undefined function: recover_pw() in
/home/realt905/public_html/lost_pw.php on line 70
where line 70 is : recover_pw($_POST['email_address']);
1. If you paid for it, why don't you ask the support?
2. Please use sites like pastebin.com to post huge code snippets.
3. The function lost_pw is called before it's declared!
Greets
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--- End Message ---
--- Begin Message ---
On 23/03/06, Mark <[EMAIL PROTECTED]> wrote:
> Can anyone see a problem with this at a glance. I think i have pushed my
> luck with this forum ( inc. Chris)of late but i paid a lot of money for this
> script and it has a few bugs.
>
> THis is what i get returned---
> Fatal error: Call to undefined function: recover_pw() in
> /home/realt905/public_html/lost_pw.php on line 70
>
> where line 70 is : recover_pw($_POST['email_address']);
>
>
> ********************************
> <?php
> include("connect.php");
>
> if (isset($_POST['Submit'])) {
>
> [...]
> recover_pw($_POST['email_address']);
>
> function recover_pw($email_address){
> [...]
> }
Normally it doesn't matter if you define a function before or after
you use it., but you're defining the function conditionally - if
$_POST['Submit'] isn't set then recover_pw() will not be defined. In
that case you have to make sure it's defined before it's used.
The manual tells you that.
http://au.php.net/manual/en/language.functions.php
The solution is to take the function definition out if the if-block.
-robin
--- End Message ---
--- Begin Message ---
Is there a way to check to see if a JPEG or PDF is color or black/white?
Like a function or something?
Thanks for any help!
--- End Message ---
--- Begin Message ---
bonjour,
why does my DB object always send INIT DB to mysql server? i am using
PHP 5.0.5 and
* @version Release: 1.7.5
* @link http://pear.php.net/package/DB
*/
the problem caused by calls like the following -- very simple code,
really ---- may be caused by my PEAR/DB.php wrapper functions (see
below) . evidence is my mysql query log (shown below the code, also),
please help me pinpoint the error................
if (!$db) $db=db_connect();^M
$this_userRS = db_query($db,$query);
$this_user= $this_userRS->fetchRow();
$top_bar_text = "these are old todo list entries by " .
$browse_user_name . " (". $this_user[0] .")";
$max_from_db_table = $this_user[0];
i use functions like this :
function db_connect() {
global $err,$errstring, $dsn,$mysql_host,$mysql_db,$mysql_user,
$mysql_password,$DEBUG_DICT_CONNECT,$options;
// Retries connection to server 5 times.
if ($DEBUG_DICT_CONNECT) echo "dsn = " . print_r($dsn) . "<br>";
for ($i = 0; !(@$db = DB::connect($dsn,$options)) && $i < 5; $i++)
{ }
if (DB::isError($db))
{
header("Location: http://" . $_SERVER['HTTP_HOST'] .
"/index.php?cfile=err&query=" . $err . "&errstring='" . $errstring."'");
exit;
}
else {
db_query($db,"set names utf8");
return $db;
}
} // end db_connect
and
function db_query(&$db,$query)
{
global $err,$errstring, $DEBUG_DICT, $tpf_admin_email;
$result = $db->query($query);
if (DB::isError($result))
{
exit;
}
else return $result;
}
function db_getAssoc(&$db,$query)
{
global $err,$errstring, $DEBUG_DICT, $_SERVER, $tpf_admin_email;
$result = $db->getAssoc($query,false,array(),
DB_FETCHMODE_ORDERED,true);
if (DB::isError($result))
{
exit;
}
else return $result;
}
and my server query log shows up stuff like
373 Init DB dict_explicit
373 Query select
rss_id,rss_url,rss_name,rss_cache_time,rss_listnum,rss_listtype,from_lang from
rss_info where rss_user = 'curious' and cid = '246' and from_lang='german'
373 Query select cid from rss_category where
cname= 'misc' and from_lang='french'
373 Init DB dict_explicit
373 Query select
rss_id,rss_url,rss_name,rss_cache_time,rss_listnum,rss_listtype,from_lang from
rss_info where rss_user = 'joe' and cid = '219' and from_lang='french'
373 Init DB dict_explicit
373 Query select
rss_id,rss_url,rss_name,rss_cache_time,rss_listnum,rss_listtype,from_lang from
rss_info where rss_user = 'curious' and cid = '219' and from_lang='french'
--- End Message ---
--- Begin Message ---
On 3/23/06, joseph <[EMAIL PROTECTED]> wrote:
> bonjour,
>
> why does my DB object always send INIT DB to mysql server?
>
> the problem caused by calls like the following -- very simple code,
> really ---- may be caused by my PEAR/DB.php wrapper functions (see
> below) . evidence is my mysql query log (shown below the code, also),
> please help me pinpoint the error................
You're better off asking the pear list for help. They are more
familiar with Pear::DB than we will be.
http://pear.php.net/support/lists.php
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Ummmm, is your top.php code being printed AT ALL? Because in the code
you gave us, you're attempting to include "topo.php".
HTH,
John
On 3/21/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
> tedd wrote:
>
> > Hi:
> >
> > I hate this.
> >
> >>Ok guy, don't fight with me. hehehe
> >>
> >>Follow's all code of files.
> >
> > Yeah ! Where's "rodape.php" ?
> >
> > If we're going to spend our time looking at your code, shouldn't you
> > spend the time to provide all of it?
> >
> > tedd
> >
>
> I'm sorry for do that.
>
> I'm stressed today. Forgive me.
>
> Follow's the rodape.php code:
>
> <table width="780" height="61" border="0" cellpadding="0" cellspacing="0"
> bgcolor="#FFFFFF" align="center">
> <tr>
> <td height="61" bgcolor="#009EFF">
> <div align="center">
> <font color="#FFFFFF">
> <strong>
> Buffet Online -
> www.buffetonline.com.br
> </strong>
> <br>
> Copyright (c) 2006 - Todos os
> direitos reservados
> </font>
> </div>
> </td>
> </tr>
> </table>
>
> --
> ---------------------------------------------------
> João Cândido de Souza Neto
> Web Developer
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
John Wells wrote:
> Ummmm, is your top.php code being printed AT ALL? Because in the code
> you gave us, you're attempting to include "topo.php".
>
> HTH,
> John
>
> On 3/21/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
>> tedd wrote:
>>
>> > Hi:
>> >
>> > I hate this.
>> >
>> >>Ok guy, don't fight with me. hehehe
>> >>
>> >>Follow's all code of files.
>> >
>> > Yeah ! Where's "rodape.php" ?
>> >
>> > If we're going to spend our time looking at your code, shouldn't you
>> > spend the time to provide all of it?
>> >
>> > tedd
>> >
>>
>> I'm sorry for do that.
>>
>> I'm stressed today. Forgive me.
>>
>> Follow's the rodape.php code:
>>
>> <table width="780" height="61" border="0" cellpadding="0" cellspacing="0"
>> bgcolor="#FFFFFF" align="center">
>> <tr>
>> <td height="61" bgcolor="#009EFF">
>> <div align="center">
>> <font color="#FFFFFF">
>> <strong>
>> Buffet Online -
>> www.buffetonline.com.br
>> </strong>
>> <br>
>> Copyright (c) 2006 - Todos os
>> direitos reservados
>> </font>
>> </div>
>> </td>
>> </tr>
>> </table>
>>
>> --
>> ---------------------------------------------------
>> João Cândido de Souza Neto
>> Web Developer
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
I found the error. If you lookt at carefully, you'll see that the var
$_SESSION["root"] has the "http://localhost/buffets/" value, then, when i
use include($_SESSION["root"]."top.php") it losts the session variables. I
just change to include("../top.php") and then it works fine.
--
---------------------------------------------------
João Cândido de Souza Neto
Web Developer
--- End Message ---