chrometweaks.org

PHP mailto function not working for me !! iPage windows hosting account !?

Click Here To View All Answers...


First question I got is PHP mailto function not working for me !! iPage windows hosting account !? Looking forward for any response. Another question on my mind: Okay, I installed the Define Mainpage module, but I cant get it to work the way I want it..

I have a modified Catalog/Index.html file and I dont feel like playing around with it to get define mainpage working the way I want..

What I thought I could do is something like this in languages/english/index.php.

Define('TEXT_MAIN', '<?php include ("My New Page.php");');.

But that, or other variations, do nothing. I also tried a simple echo statement inside the ''s and it doesnt print that either..

When Including additional PHP inside of the define brackets, is there a certain way to do it? I tried it with and without the PHP tags. With them it shows nothing, without them it prints the statements as if they were plain text..

If anyone can tell me how I could go about doing this, it would be great. If I get this working, I can then just update this one page with dreamweaver and upload it using the dreamweaver extensions..

I could always use an Iframe if that doesnt work out, but iframes dont look as clean as a php includes...

Comments (52)

Hmm... I need to find out myself. I don't know what is the answer to your question. I'll do some research and get back to you if I bump into an anything. You should email the people at iPage as they probably can answer it..

Comment #1

Sorry, the directory is catalog/languages/english/index.php.

Can't edit my post anymore..

Comment #2

Hmm, that didnt work, it just printed TEXT_MAIN on my main page instead of the file..

If I wanted to do it by using the catalog/index.php method, how would I go about that since I edited my main page so it displays in an infobox?.

Here is the code for my index.php file..

 <?php.

 $info_box_contents = array();.

 $info_box_contents[] = array('align' => 'left',.

                              'text' => tep_customer_greeting());.

 $info_box_contents[] = array('align' => 'left',.

                              'text' => TEXT_MAIN);.

 new infoBox($info_box_contents);.

?>.

So using that, where would I put the include statement?.

This post has been edited by.

Goanna.

: 01 March 2004, 16:24..

Comment #3

Hmmm I'll have to get back to you..

I currently have a mod in my index page that prohibits me from testing that modification, so I'll have to undo it and then try it your way, that will take some time.....

Comment #4

Thanks patrick, I apreciate it. For now I am using a borderless Iframe, which is working good, I just dont like having to go back in and specify new heights when I ad something, as I dont want it to have a scrollbar...

Comment #5

Okay, I installed the Define Mainpage module, but I cant get it to work the way I want it..

I have a modified Catalog/Index.html file and I dont feel like playing around with it to get define mainpage working the way I want..

What I thought I could do is something like this in languages/english/index.php.

Define('TEXT_MAIN', '<?php include ("My New Page.php");');.

But that, or other variations, do nothing. I also tried a simple echo statement inside the ''s and it doesnt print that either..

When Including additional PHP inside of the define brackets, is there a certain way to do it? I tried it with and without the PHP tags. With them it shows nothing, without them it prints the statements as if they were plain text..

If anyone can tell me how I could go about doing this, it would be great. If I get this working, I can then just update this one page with dreamweaver and upload it using the dreamweaver extensions..

I could always use an Iframe if that doesnt work out, but iframes dont look as clean as a php includes...

Comment #6

You can do this one of two ways:.

1..

Inside catalog/index.php, find the line.

<?php echo TEXT_MAIN ?>.

And replace it with.

<?php include('pathto/page.php'); ?>.

OR, the preferred method:.

2..

Inside catalog/languages/english.php, replace:.

Define('TEXT_MAIN', 'some text');.

With.

$filecontents = file_get_contents('pathto/file.html(php)').

Define('TEXT_MAIN', $filecontents);.

Hope this helps!..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.