Get PHP file with GET variables

1

Good afternoon. I'm going to use PHPMailer, but I'm not sure how to send it using variables.

See:

$mail->CharSet = "text/html; charset=UTF-8;";
$mail->IsHTML(true);    
$mail->msgHTML(file_get_contents('proposta.php?id='.$_GET["id"].''), dirname(__FILE__));

I need the file proposta.php to receive the proposal ID.

Error:

  

Warning: file_get_contents (proposal.php? id = 17):   failed to open stream: Resource temporarily unavailable

How can you do this?

    
asked by anonymous 30.06.2015 / 20:35

1 answer

1

Do not send file_get_content() read your file, ask him to make a request or add the protocol and the full url.

Torque:

file_get_contents('proposta.php?id='.$_GET["id"].''

By:

file_get_contents('http://localhost/projeto/ proposta.php?id='.$_GET["id"].''
    
30.06.2015 / 23:19