Computing.Net > Forums > Web Development > how to fopen a .php which is .htm ?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how to fopen a .php which is .htm ?

Reply to Message Icon

Name: vesper8
Date: January 25, 2006 at 20:14:56 Pacific
OS: Windows XP-64
CPU/Ram: AMD 3700+ Diego / 1GB OCZ
Comment:

weird question i know..

i need a piece of script that can paste through .htm files

the catch is.. the only way to get to that .htm file (as far as i know) is to try to 'save target as' on the index.php file and then it comes up with a index.htm

i don't know exactly what that means.. but what I need is the .htm file.. and you can't access it directly..

I guess it means that the .php creates the .htm file on the fly

but how can i have a php script open/read that .htm file ?

hope that's not too confusing a question..

thanks



Sponsored Link
Ads by Google

Response Number 1
Name: vesper8
Date: January 25, 2006 at 20:30:22 Pacific
Reply:

never mind!

i found it.. i just wasn't using the right function to open it... for a file i was using fopen followed by fread

but then i learned that for a url i need to use fopen followed by stream_get_contents !

and that worked! woot


0
Reply to Message Icon

Related Posts

See More


Help with PHP data forum best software to use with...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: how to fopen a .php which is .htm ?

Sharing: How to make a video sharin www.computing.net/answers/webdevel/sharing-how-to-make-a-video-sharin/3784.html

how to make a website www.computing.net/answers/webdevel/how-to-make-a-website/2840.html

How to do a LAN search www.computing.net/answers/webdevel/how-to-do-a-lan-search/1237.html