Forum Moderators: open

Message Too Old, No Replies

php and frontpage

Trying to include php in a frontpage html file

         

vinturella

3:38 pm on Jul 16, 2005 (gmt 0)

10+ Year Member



I am trying to include a php program in a frontpage html file. My host is GoDaddy Economy, and I can get phpinfo.

The php file "scrapes" my blog to html. It runs as a stand-alone program, and when the php code is embedded in the html. But, I can't find any set of file endings and directories in any include operation that gives me any thing but parsing errors.

HELP! Thanks,
John

jatar_k

5:13 am on Jul 20, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld vinturella,

what piece of code is giving you trouble exactly? I'm sorry but I don't reaaly understand what is going wrong.

vinturella

11:53 am on Jul 20, 2005 (gmt 0)

10+ Year Member



Thanks for responding.

I was having trouble with the php include, but I got it to work by using an absolute path in quotes. Then I changed the host program and included files to php.

Stay close though, I am in over my head.

jatar_k

8:30 pm on Jul 20, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



>> absolute path

that's always the way to go with includes

>> Stay close though

come on over with anything you have
PHP Forum [webmasterworld.com] ;)