kade119 Posted July 27, 2011 Share Posted July 27, 2011 i have wamp setup and currently have a few virtual host setup and working but i'm finding some PHP not working properly on my server but is on other servers, so my first assumption is that it's the php.ini file, could someone look at it for me and tell me if anything should be configured differently. The notices i'm receiving : Notice: Undefined index: sent in C:\wamp it seems to be affecting sessions that post or get appreciate any support. -file attached [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/242908-configuring-phpini-for-a-hosting-environment/ Share on other sites More sharing options...
trq Posted July 27, 2011 Share Posted July 27, 2011 That notice is caused by poor programming, not any PHP setting. You can configure PHP to hide notices but your much better off fixing the code itself. Quote Link to comment https://forums.phpfreaks.com/topic/242908-configuring-phpini-for-a-hosting-environment/#findComment-1247775 Share on other sites More sharing options...
kade119 Posted July 27, 2011 Author Share Posted July 27, 2011 well - there seems to still be an underlying problem other than poorly coded php i install this form http://tutorialzine.com/2009/09/fancy-contact-form/ on a godaddy server and everything runs smoothly yet when it's implemented on my server .. i get the below error Notice: Undefined index: errStr in C:\wamp\www i tried adding isset .. still not success Quote Link to comment https://forums.phpfreaks.com/topic/242908-configuring-phpini-for-a-hosting-environment/#findComment-1248076 Share on other sites More sharing options...
trq Posted July 27, 2011 Share Posted July 27, 2011 That is still a coding issue, not a configuration one. Quote Link to comment https://forums.phpfreaks.com/topic/242908-configuring-phpini-for-a-hosting-environment/#findComment-1248224 Share on other sites More sharing options...
kade119 Posted July 28, 2011 Author Share Posted July 28, 2011 why would the code work for one server and not another? Quote Link to comment https://forums.phpfreaks.com/topic/242908-configuring-phpini-for-a-hosting-environment/#findComment-1248275 Share on other sites More sharing options...
trq Posted July 28, 2011 Share Posted July 28, 2011 As I said in my previous post. One server likely has notices hidden, this doesn't mean they don't exist. You should fix the code. You should always check an index exists before attempting to access it. Quote Link to comment https://forums.phpfreaks.com/topic/242908-configuring-phpini-for-a-hosting-environment/#findComment-1248278 Share on other sites More sharing options...
kade119 Posted July 28, 2011 Author Share Posted July 28, 2011 no, i tried hiding them - that didn't fix it, the notices still showed.. i actually hid them in my php but it still didn't function properly but did on the other server Quote Link to comment https://forums.phpfreaks.com/topic/242908-configuring-phpini-for-a-hosting-environment/#findComment-1248296 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.