answersLogoWhite

0

How do you get require files through Ajax with PHP?

Updated: 8/16/2019
User Avatar

Wiki User

15y ago

Best Answer

This question appears confused as PHP is a server side language, and AJAX relies on client side scripting such as javascript.

AJAX can load a script with GET or POST arguments to either manipulate server data or insert data from the server into the current page's DOM, or (more commonly) both.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you get require files through Ajax with PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What was operation Ajax?

Unfortunately I am not specialst in AjaX, but I can advice you these online tutorials:php tutorials. There are many articles about php, AjaX and interaction between AjaX and PHP in whole.


Will php 4.4.7 server support php 5 files?

Yes php 4.4.7 server support php 5 files. But most of the php 5 features are not supported by php 4.4.7 version


Can .php files be executed when saved in other location than its web's root directory?

They can execute if you use include or require and show the full path of external php file in the www folder based php file.


How can you put PHP into your product details pages?

<?php // your php code goes here ?> If your product pages are created in PHP (have the .php extension) then you can simply add the php start/end tag. There is a way to have the server recognize PHP inside of HTML files but that would require some work on the server, better left to the server manager.


Can a php file be valid without any php code?

PHP files are HTML files with any amount of PHP intermingled into it, so the file can be empty or only contain HTML and be valid, yes.


What is the default extension that most Web servers use to process php scripts?

PHP files extension is .php


How can you run PHP files?

Use the 'include()' in your pages. Eg. include(link.php); ?> Normally PHP files are meant to be run through a web server which serves on a browser. What is outputted is the HTML of the page along with any information that is generated by php depending on the code inside the page. If you would like to run the PHP code from the command line you can using the php executable. If you are on a windows machine you can do the following: c:\php>php c:\websites\webroot\filename.php This will output the HTML that the PHP generates after being parse by PHP. You can also do this on Linux as follows: $->php /path/to/file.php


How do you open php files in 3d max?

PHP is a programming language. Unless 3D max has a programming interface of some kind, you can't open php files with it. You can open a PHP file with notepad or any other text editor.


Where can one find PHP documents?

You can find PHP documentation on the official PHP website at php.net. The website has comprehensive documentation on PHP functions, classes, and features, as well as user-contributed notes and examples.


What line is added to the Apache configuration file to ensure that PHP extensions are recognized?

Adding the following lines to the Apache 2.x configuration file will associate .php files with PHP, given the PHP 5 module (DLL file) is also loaded through the configuration: <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch>


Is there any way to call a PHP script in HTML?

PHP is a server side language, so cannot run within the browser as HTML does. You can however make a call to the PHP page within your HTML (using a form button or anchor link for example), and using Ajax (javascript) make the HTML show the response of the PHP program. The user will not know that the server side PHP program has been executed, as when using Ajax the browser does not load a new page.


How do you get PHP codes for writing on an image?

You can use the GD extension for PHP to edit image files.