Wednesday 15 May 2013

php how can i include internal page by url? -


For example, my website is "myweb.com" how can I make an option like the following? Include

  (http://myweb.com/file);   

This is an internal URL.

For example I want to include

  http://myweb.com/process. Php? Action = update   

This is not a file

  "? Action = update"   

How to do this Can you do this operation?

You can include the basic PHP file - process.php - and then pass the variables that You want from there I will do this by wrapping the code of process.php, which uses $ function in a function. After that, you can include it and get information on that function:

  included Do ('process.php'); Process_function ("update");   

There is also an OOP method of doing this if process.php defines a class with a single converter that you can pass to the required $ update variables, such as: Includes

  ('process.php'); $ Process = new process ("update");    

No comments:

Post a Comment