Can you load cgi script into php script?

Discussion in 'PHP' started by phpPig, Jul 6, 2010.

  1. #1
    Hello all.

    This may sound like a rather dumb question but I have a functioning cgi script that I cannot get to work when coding with php. So.....

    I won't to try to integrate this cgi script into a php script so that it will walk like a php script and quack like php but still be cgi. Is this possible? I know that I can make it work with frames in html but I am trying to make it work and still be SEO friendly.
     
    phpPig, Jul 6, 2010 IP
  2. c_programmer

    c_programmer Peon

    Messages:
    92
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is not possible. Each page has to be either CGI or PHP and each one is unable to process the other.
     
    c_programmer, Jul 6, 2010 IP
  3. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #3
    What type of script is it? There is no reason why you cant have a frontend PHP script, passing details to the CGI as a backend for example; you can pass data to each other by serializing it/unserializing it via RPC and other such services.
     
    lukeg32, Jul 7, 2010 IP