PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Warning: include(../dbconfig.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\SuperFastSMS\Clients\QuickSMS.php on line 41
Warning: include() [function.include]: Failed opening '../dbconfig.php' for inclusion (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\SuperFastSMS\Clients\QuickSMS.php on line 41
That means it cannot find the dbconfig.php file. With just one set of double dots, it's looking in the SuperFastSMS folder. You may have to add more ../ onto it if it's further up the file structure.
after complexity increases i used my method below. now, i am happy with this method because
it has an advantage to easily transfer your files in future & all links are absolutely will be working without much effort
i include below file to my pages
<?php
/* php include("{$rootfolder}php/examplefile.php");?> */
$rootfolder = "/home/username/public_html/"; // it can be different in your system maybe
/*<link rel="stylesheet" href="<?php echo $belowfolder; ?>css/dis.css" type="text/css">*/
$belowfolder = "/";
?>
in future if i transfer all my portal from root to folder 'transfer' then
$belowfolder becomes = "/transfer/"
$rootfolder becomes = "/home/username/public_html/transfer/";