![]() |
|
|
#1
|
||
|
I have a file, mysql.php, that connects to the database. However, I have other files that use mysql.php that are also included in more files that also have mysql.php included.
IE: index.php -> has mysql.php and config.php config.php also has mysql.php I'm getting an error when using mysql functions. Is there a way to only include once in php? |
|
|
|
||
|
#2
|
||
|
I don't understand you.
Why not just remove the include("..."); from config.php file? Also look at these functions: include_once(); require(); require_once(); |
|
|
|
||
|
#3
|
||
|
yes you are right used this function script.
|
|
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is Virtual (Shared) Web Hosting? | asp | Web Hosting Forum | 9 | 05-23-2008 02:20 |
| Include php into Html | admans | Domain Name Forum | 2 | 07-28-2005 12:23 |