You are here: problem with include. « PHP Programming Language « IT news, forums, messages
problem with include.

Posted by SoulIntruder on 01/06/08 20:19

Hello folks.

I have a beginners question.

I have such script:

<?php
$User = $_POST['User'];
$Password = $_POST['Password'];
$Database = $_POST['Database'];

if (isset($User, $Password, $Database))
{
//do something here
}
else {
echo 'One or more of the connection parameters has not been set
up.';
}
?>

Now, I need to use some external functions. I need to include file
'common.php'. But when I do it like this:


<?php
include 'common.php';
$User = $_POST['User'];
$Password = $_POST['Password'];
$Database = $_POST['Database'];

if (isset($User, $Password, $Database))
{
//do something here
}
else {
echo 'One or more of the connection parameters has not been set
up.';
}
?>


nothing happens. I don't get any warning message but my script is not
running.

What is happening?

Thanks for your advice.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация