As the title says ,
I'm doing a small enhancement for my own blog.
(Fopen is already installed in my server (VPS) )
Instead of opening another URL & grab its contents
eg. $file = fopen("http//example.com", 'r') or exit('Unable to open file');
That works fine for opening another domain.
But i want to open my own POST url.
if i paste
$file = fopen($get_permalink, 'r') or exit('Unable to open file');
it refuses with an error ( not such file or failed to open stream etc. )
The basic idea is
1.< if post in category("EXAMPLE") ?>
2.php fopen -- > echo the permalink or the address of the post im looking at
3.After fopen has downloaded my post
4.php scans a particular thing & echo's it.
As i said everything works except number2. because i want to open my own url of the POST im viewing..not another site.
Is there any solution for this ?