I want to add a print of a grid to an email. I use emogrifier for this.
I need to set the path to this file. When i use the following code everything works perfect.
$html=file_get_contents("https://123.myscriptcase.com/scriptcase9/app/W/grid_tblwissel_mail_eigen_nieuw/grid_tblwissel_mail_eigen_nieuw.php);
But when i use a relative path it does not work anymore. I get an error this file does not exist.
$html = file_get_contents("[SIZE=18px]…/[/SIZE]grid_tblwissel_mail_eigen_nieuw/grid_tblwissel_mail_eigen_nieuw.php);
The weird thing is that the relative path DOES work with the css.
$css = file_get_contents("[SIZE=18px]…/[/SIZE]_lib/css/Sc9_Rhino/Sc9_Rhino_grid.css");
Since the path of the production server is different i want to use the relative path. Below is the full path of the production server
$html = file_get_contents(“https://rf2019.be/grid_tblwissel_mail_eigen_nieuw/grid_tblwissel_mail_eigen_nieuw.php”);
Any suggestions how to put this in one line of code? Or am i doing something wrong with the relative path?
https://123.myscriptcase.com/scriptcase9/app/W and https://rf2019.be