unable to view images
Posted: Wed Aug 04, 2004 3:19 pm
Hi there,
I have a couple of questions .
1. the html pages and images are stored in a directory and am calling the pages from a template (php) outside that directory.
so use the readfile() to get the page in dir into the template.
But unable to view the images in the dir page. Any suggestions? Is there any other function in php that would help
code in template.php
chdir("$dir");
readfile("index.html");
$dir contains images and index.html
no images seen in template.php that called index.html
2. How to execute a program or script from php.
say, need to run xmms from a button click.
Isaac,
India
I have a couple of questions .
1. the html pages and images are stored in a directory and am calling the pages from a template (php) outside that directory.
so use the readfile() to get the page in dir into the template.
But unable to view the images in the dir page. Any suggestions? Is there any other function in php that would help
code in template.php
chdir("$dir");
readfile("index.html");
$dir contains images and index.html
no images seen in template.php that called index.html
2. How to execute a program or script from php.
say, need to run xmms from a button click.
Isaac,
India