websmoken Posted February 6, 2007 Share Posted February 6, 2007 I've noticed something with WAMP5 ver 1.6.1, is when I do an include on a form mail script I found, that it doesn't show up on localhost when I try to view the page but when I upload to my server it does. I have Cartweaver & WAMP5 shows thoses includes ok. the form appears ok in Dreamweaver. Its no big deal maybe its the differences between PHP versions or something. Dave Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 7, 2007 Share Posted February 7, 2007 What version of php is WAMP1.6.1 using? Also how are you including your files? Quote Link to comment Share on other sites More sharing options...
websmoken Posted February 8, 2007 Author Share Posted February 8, 2007 wildteen88 WAMP5 1.6.1 uses PHP 5.1.2. I use the SpiceScript Contact Us Package and the include statement: "<? include ("guestmailer/guest_form.php");?>" I looked at the script & the readme, it doesn't say what PHP it was written for. Its in use on my contact us page & for my guestbook. http://candlesbythecreek.com/contactus.php & http://candlesbythecreek.com/guestbook.php . The guestbook doesn't auto post. Dave Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 8, 2007 Share Posted February 8, 2007 Does it work if you use the following code instead?: <?php include ("guestmailer/guest_form.php");?> If it does then its a configuration issue. Your host has a setting called short_open_tag turned on, which allows you to use <? ?> instead of <?php ?> and thus reaosn why the code works on your host and not your local dev server. In order for <? ?> tags to work on your local dev server you need to edit php's config file (php.ini) to turn short_open_tag on. Change short_open_tag = off to short_open_tag = on Save the php.ini When you have turned this setting on you must restart the server (click WAMP's icon in the taskbar and select restart All services from the menu to restart the server). Quote Link to comment Share on other sites More sharing options...
websmoken Posted February 10, 2007 Author Share Posted February 10, 2007 wildteen You DA MAN Bubba. That works great. I've read that is was best to use the long tags. Now I won't make that mistake again. Thanks Dave Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 10, 2007 Share Posted February 10, 2007 ha, no problem. I'll mark this as solved. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.