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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

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

Post 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?
WebbieDave
Forum Contributor
Posts: 213
Joined: Sun Jul 15, 2007 7:07 am

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

Post 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.
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

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

Post 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
chrismarsden
Forum Newbie
Posts: 14
Joined: Wed Jul 09, 2008 11:37 am

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

Post 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.
WebbieDave
Forum Contributor
Posts: 213
Joined: Sun Jul 15, 2007 7:07 am

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

Post by WebbieDave »

Welcome back, Chris. Everything I said was, of course, with tongue firmly planted in cheek :)
Post Reply