Page 2 of 2

Re: im still a noob in need of help but ignore last topic

Posted: Thu Jul 10, 2008 6:55 pm
by Stryks
Best to verify I guess.

chrismarsden, What output do you get from a file called test.php containing only ...

Code: Select all

<?php phpinfo(); ?>
Also, the file you are running, I assume it does have a php extension, yes?

Re: im still a noob in need of help but ignore last topic

Posted: Thu Jul 10, 2008 7:06 pm
by WebbieDave
pytrin wrote:No, PHP isn't parsing since it isn't recognizing the tags.
I was thinking that too, but then I read this:
chrismarsden wrote:could this be a settings error as if i turn off short tags the error:
Parse error: syntax error, unexpected '=' in C:\wamp\www\login.php on line 78
So then I figured he had short tags off the whole time, implemented what he thought were correct long tags (<?php=), posted that code for us to read, changed some other stuff he forgot to tell us about, edited the wrong php.ini, posted the same problem to two other forums, tried some of their suggestions without filling us in, edited the right php.ini, then somehow solved it by trying a combination of all suggestions never to return.

That would be my guess.

Re: im still a noob in need of help but ignore last topic

Posted: Thu Jul 10, 2008 7:11 pm
by Eran
My guess is that in addition to what we see there is a short tag like this '<?=' that was working while he had short tags turned on. When he turned it off, it threw an error

Re: im still a noob in need of help but ignore last topic

Posted: Fri Jul 11, 2008 2:52 am
by chrismarsden
hi, im back, webbie dave was right, i did approch other forums, simply to try and find the answer to solve my problem, its not that i dont appriciate your help but im learning so the more suggestions i get that are wrong the less things i will have to try when i get the same problem, i have scrapped this script now... (did my head in lol)

sorry if you thought i didnt trust your opinions, thats not the case completely, i do appriciate all the help you guys have given.

Re: im still a noob in need of help but ignore last topic

Posted: Mon Jul 14, 2008 4:15 am
by WebbieDave
Welcome back, Chris. Everything I said was, of course, with tongue firmly planted in cheek :)