hefex Posted April 24, 2011 Share Posted April 24, 2011 Hi, I watched one of your videos where you talked about setting up WAMP server etc. I download some .php to test it on my server and i go this (pic attached) Can anyone give me some help? Quote Link to comment Share on other sites More sharing options...
Thrill Posted April 25, 2011 Share Posted April 25, 2011 Hi there, What are you trying to achieve? To me it looks like it's an old PHP version, that doesn't support the newer variables. Quote Link to comment Share on other sites More sharing options...
hefex Posted April 26, 2011 Author Share Posted April 26, 2011 Im looking to eventually build a cart of some sort. I was just trying to test this code i found and when all the errors came up i thought i might have done something wrong in WAMP. Quote Link to comment Share on other sites More sharing options...
Thrill Posted April 30, 2011 Share Posted April 30, 2011 Are you writing the cart yourself in PHP? What are the errors? Quote Link to comment Share on other sites More sharing options...
hefex Posted April 30, 2011 Author Share Posted April 30, 2011 No no, i havent started to build the cart yet. The errors in the image are of some code i found. I was just looking for an explanation as to why they occured and if they can be fixed. Quote Link to comment Share on other sites More sharing options...
Thrill Posted April 30, 2011 Share Posted April 30, 2011 Ah sorry, I didn't see the error up top. I was looking in the function column, oops Either you are including the file multiple times on a page; or you are including it on a page that has its' own session_start() statement; or your php.ini (possibly .htaccess) is automatically starting a session before you do. Quote Link to comment Share on other sites More sharing options...
webdevuser Posted June 10, 2011 Share Posted June 10, 2011 Well, as trill said, the error is in the coding. If you take a look to the code, you will probably see 2 X (session_start()) in differents files, but theses files have been included or required. Again, I know this is a old topic, the best way to fix this is to read the code, following step by step what is loaded in the page you are trying to access and remove the unnecessary session_start(). The lazy way would be to add at the top of the page right after <?php ob_start(); and and the end of the page right before ?> ob_end_flush(); and I don't think this topic should stay in windows xp support XD Maybe moving it to the programming forum would not be a bad idea. 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.