Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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.

Posted

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.

Posted

Ah sorry, I didn't see the error up top. I was looking in the function column, oops :D 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.

  • 1 month later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...