Jump to content

help me in php and javascript


chitta_pk

Recommended Posts

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.

 

Link to comment
https://forums.phpfreaks.com/topic/70872-help-me-in-php-and-javascript/
Share on other sites

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...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.