Is there a way to create external php? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there a way to create external php?

Like the ones that can be created when working with css or javascrip.

2nd Aug 2016, 4:44 PM
Vicente Soares Kaparakata
Vicente Soares Kaparakata - avatar
3 Answers
+ 1
you can create external php script havibg only php content in it with no html and it can be included in html using include or require at the starting of your another php file
2nd Aug 2016, 6:45 PM
venky
venky - avatar
+ 1
You can include another PHP file within a PHP file using the include function or require. If you want to include a file name foobar.php, just use require "foobar.php".
3rd Aug 2016, 12:31 PM
King Tech
King Tech - avatar
0
@Venky Thanks, I'll try it in order to see how it works.
2nd Aug 2016, 8:21 PM
Vicente Soares Kaparakata
Vicente Soares Kaparakata - avatar