chitta_pk Posted September 27, 2007 Share Posted September 27, 2007 hello I m facing some problems in php file. 1. how to include a php file inside another php file. 2.in one php file i m getting the json object values. but how to get those json object values in another file, after including that php file. Kindly suggest me. Quote Link to comment https://forums.phpfreaks.com/topic/70872-help-me-in-php-and-javascript/ Share on other sites More sharing options...
Jenk Posted September 27, 2007 Share Posted September 27, 2007 Did you even know http://www.php.net exists? Quote Link to comment https://forums.phpfreaks.com/topic/70872-help-me-in-php-and-javascript/#findComment-356274 Share on other sites More sharing options...
steelmanronald06 Posted September 27, 2007 Share Posted September 27, 2007 wow. wrong board for this topic. MOVED! Quote Link to comment https://forums.phpfreaks.com/topic/70872-help-me-in-php-and-javascript/#findComment-356363 Share on other sites More sharing options...
tjodolv Posted September 27, 2007 Share Posted September 27, 2007 Including one file inside a .php file: <?php include "file.php"; // if file.php does not exist, this will print a notice, and continue the script include_once "file.php"; // if file has already been included, will not include again. Will also print a notice and continue if file.php does not exist require "file.php"; // if file.php does not exist, this will stop the script and print a Fatal Error. require_once "file.php"; // includes it once, and will print Fatal Error and stop the script if file does not exist ?> json I have no idea about... Quote Link to comment https://forums.phpfreaks.com/topic/70872-help-me-in-php-and-javascript/#findComment-356379 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.