A PHP Programming Problem...im Stuck - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › A PHP Programming Problem...im Stuck (2018 Views)
| A PHP Programming Problem...im Stuck by freshp(op): 8:23am On Nov 05, 2014 |
I kindly need help in detecting the error in this code...it is from a video tutorial[Lynda.com - PHP with MySQL Essential Training] i am following to learn php. According to his instructions which i followed to the letter things should work(and it did on the video) but when i tried it on my system i kept getting the errors as shown below.. what i'm i doing wrong and how do i go about correcting it... Here is the raw code itself <?phpthe images below show both the error and a capture of the code from notepad++ for accurate analysis. Please i need someone to kindly tell me step by step what do to move forward thanks
|
| Re: A PHP Programming Problem...im Stuck by jacob05(m): 8:32am On Nov 05, 2014 |
Hmmm. Try removing extra spaces and newline... The error occurred because something is already sent to the browser with processing the page.. |
| Re: A PHP Programming Problem...im Stuck by freshp(op): 9:03am On Nov 05, 2014*. Modified: 10:20am On Nov 05, 2014 |
jacob05:thanks for the prompt response..i have tried it and even checked and rechecked..the thing is i am a newbie and still learning so all the line where the errors occurred i have checked. this is a direct capture from the video itself...just take a look and you will see that it is exactly(i think so) as my own above. thanks once again.
|
| Re: A PHP Programming Problem...im Stuck by codemarshal08(m): 9:09am On Nov 05, 2014 |
place Ob_start(); on the top of Your Page. For More Info on header Errors : http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php |
| Re: A PHP Programming Problem...im Stuck by jacob05(m): 9:13am On Nov 05, 2014 |
Try Removing newline on line 12 and 16 in your code |
| Re: A PHP Programming Problem...im Stuck by jacob05(m): 9:14am On Nov 05, 2014 |
codemarshal08:Or try ob_start as suggested |
| Re: A PHP Programming Problem...im Stuck by freshp(op): 10:22am On Nov 05, 2014 |
thanks i will try it ..thanks once again. |
| Re: A PHP Programming Problem...im Stuck by freshp(op): 3:47pm On Nov 06, 2014 |
thanks for all the support jacob05: codemarshal08: jacob05:the problem was actually from me..there was nothing wrong with the code..it was in the typing of the address on the browser that i had the problem i should have typed http://localhost/php/sandbox/redirect.php?logged_in%20=0but i was typing http://localhost/php/sandbox/redirect.php?logged_in%20 =0 Notice the space before the equal to sign....there shouldn't have been any space there... chaii i had 3 whole sleepless nights with this tiny issue..i doff my hat to you guys ahead..it wasn't an easy road.. ![]() thanks once again. i hope you will all be there for me as i climb on.. ![]() |
| Re: A PHP Programming Problem...im Stuck by jacob05(m): 3:56pm On Nov 06, 2014 |
freshp:You're welcome bro |
| Re: A PHP Programming Problem...im Stuck by freshp(op): 4:47pm On Nov 06, 2014 |
![]() |
| Re: A PHP Programming Problem...im Stuck by codemarshal08(m): 4:51pm On Nov 06, 2014 |
Hihi, it's nice you figured it out....Welcome to Programming World ! |
| Re: A PHP Programming Problem...im Stuck by dsypha(m): 5:37pm On Nov 06, 2014 |
Please wat text editor is this? Its sleek. I love it |
| Re: A PHP Programming Problem...im Stuck by codemarshal08(m): 5:48pm On Nov 06, 2014 |
dsypha:Dat Looks like SublimeText. http://www.sublimetext.com |
| Re: A PHP Programming Problem...im Stuck by 1jimax: 1:11pm On Nov 07, 2014 |
Nah dats NOtepad ++ hw can u call dat editor sublime na wa for u ooooooo |
| Re: A PHP Programming Problem...im Stuck by codemarshal08(m): 1:23pm On Nov 07, 2014 |
1jimax:u are very funny ! Read My Post Well...... "Dat looks like"..... Which means, i was not Certain about it. |
| Re: A PHP Programming Problem...im Stuck by dsypha(m): 7:51am On Nov 08, 2014 |
1jimax:Its not notepad++. Looks more like sublime, just thrilled hw he could customize it this much. |
| Re: A PHP Programming Problem...im Stuck by Djtm(m): 1:36pm On Nov 08, 2014 |
dsypha:Thats notepad++mehn!!!! I use the same theme. I've edited the theme tho (fonts and stuffs).
|
| Re: A PHP Programming Problem...im Stuck by 1jimax: 10:56pm On Feb 20, 2015 |
i jst wonder hw he did not see the notepad++ logo at the top |
Everyday PHP Programming Challenge (solved) • I Need Advanced PHP Programming,ajax And JS Ebooks, Pls!!! • Basics Of PHP Programming? • 2 • 3 • 4
Html5 Or Php • Difference Between C, C++ And C# • Create Self-Signed Certificate
{