faqts : Computers : Programming : Languages : PHP : kms : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 6 people (50%) answered Yes
Recently 2 of 4 people (50%) answered Yes

Entry

I have been struggling to open a file and replace the current frameset with a new file. I try to open using readfile("filename.phtml?selected=$ref"); but this want open the file with the variable passed

Jul 16th, 2001 11:43
Rich Cavanaugh, Allan Taylor,


you can do the following:
<?php
    readfile("http://www.mydomain.com/path/to/filename.phtml?
selected=$ref");
?>
The other way didn't call it through the webserver, so it wasn't being 
parsed by php. Better yet, depending on exactly what you're trying to 
do, you could just include() or require() it.