Call another php file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjay123456
    New Member
    • Sep 2006
    • 125

    Call another php file

    Sir ,

    how can i call one php page into another php page ?

    let say i am working in index.php and in this page i want

    to call abc.php ?

    how can it possible ?

    sanjay
  • thavaht
    New Member
    • Aug 2006
    • 12

    #2
    Just try:

    [PHP]<?php include("abc.ph p"); ?>[/PHP]

    Comment

    • ronverdonk
      Recognized Expert Specialist
      • Jul 2006
      • 4259

      #3
      How do you want to call it? I.e.

      - via a link that can be clicked by the user (html <a href ....>
      - via an include statement, such as the one shown in the previous reply
      - or via the PHP header() statement
      - using CURL process (HTTP generated by curl)
      - using HTTP by writing this code yourself

      Ronald :cool:

      Comment

      • duga999
        New Member
        • Aug 2007
        • 1

        #4
        Originally posted by ronverdonk
        How do you want to call it? I.e.

        - via a link that can be clicked by the user (html <a href ....>
        - via an include statement, such as the one shown in the previous reply
        - or via the PHP header() statement
        - using CURL process (HTTP generated by curl)
        - using HTTP by writing this code yourself

        Ronald :cool:
        i have same provlem.. i cant reach a php file from php file. i want to call it via href... can you help me please..

        Comment

        • ak1dnar
          Recognized Expert Top Contributor
          • Jan 2007
          • 1584

          #5
          Originally posted by duga999
          i have same provlem.. i cant reach a php file from php file. i want to call it via href... can you help me please..
          Could you please give us an example, It will help us to understand your problem well. Please post some codes here.

          Comment

          Working...