Zero Identity Forums - General - Programming - PHP help
Are you bored? Check out the unaswered threads!
|
pyr0t3chnician
![]() Member Too Legit Professional Analyst Joined: 01/04/2009 Last Seen: 0000-00-00 Experience: 455.88 Points: 550 |
|
| #1 PHP help on 01/01/1970 00:00 | |
|
I am programming a client management system for a friends parents company. I only get this error on the viewDate.php page and no where else. It says I am declaring session_start() after I have sent the header info.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/epco/public_html/viewDate.php:1) in /home/epco/public_html/admin/user.php on line 1 Heres the first of viewDate.php: Code Highlighting :: Select Code Here's login.php: Code Highlighting :: Select Code and user.php: Code Highlighting :: Select Code This is the only page that gives the warning. It doesn't happen on my computer, but I might have warnings disabled or something. Any idea on how to fix it?
|
|
|
swiftnomad
![]() Administrator Public Relations ZI Guru Joined: 04/04/2008 Last Seen: 0000-00-00 Experience: 3463.68 Points: 490 |
|
| #2 Public Relations on 01/01/1970 00:00 | |
|
well, you can turn on error reporting. error_reporting(E_ALL); let me read this.
Code Highlighting :: Select Code You should have that on all of your pages.. I'm thinking because you have it in only one page but you should use it in all of the pages. USER: Hello Tech Support? I can't print... ME: Try cursive then <hang up> |
|
|
pyr0t3chnician
![]() Member Too Legit Professional Analyst Joined: 01/04/2009 Last Seen: 0000-00-00 Experience: 455.88 Points: 550 |
|
| #3 on 01/01/1970 00:00 | |
|
Yeah, I turned off error reporting on the server and it works just fine. Its weird cause out of the 20+ other pages that are done the EXACT same way, this is the only bugger that gives me that error. Oh well.
|
|
|
el3v3nty
![]() Veteran Member Superiority ![]() ZI Guru Joined: 04/02/2008 Last Seen: 0000-00-00 Experience: 2228 Points: 1625 |
|
| #4 on 01/01/1970 00:00 | |
|
just put ob_start(); at the top of your main php file, it will turn on output buffering and you can set the response headers from anywhere in the executing scripts
|
|
|
swiftnomad
![]() Administrator Public Relations ZI Guru Joined: 04/04/2008 Last Seen: 0000-00-00 Experience: 3463.68 Points: 490 |
|
| #5 on 01/01/1970 00:00 | |
|
I never heard or used that function, just make sure you read whats on http://www.php.net/ob_start.
USER: Hello Tech Support? I can't print... ME: Try cursive then <hang up> |
|
| #6 on 01/01/1970 00:00 | |
|
Can any one help me, how to get started with PHP?
|
|
|
3l_f3n1x
![]() Member V Fan ![]() Professional Analyst Joined: 08/06/2008 Last Seen: 0000-00-00 Experience: 299.25 Points: 905 |
|
| #7 on 01/01/1970 00:00 | |
|
If you know the basics about programming, then I suggest you learn some HTML in http://www.w3schools.com, then learn the basics of how the HTTP protocol works (it's a pretty simple protocol) and then go again to http://www.w3schools.com and learn some PHP. Learning javascript will also teach you how to use AJAX which is pretty useful too.
Hope this helps... "Beneath this mask there is more than flesh. Beneath this mask there is an idea, Mr. Creedy, and ideas are bulletproof." - V BTW: My username was elfenix |
|
| #8 on 01/01/1970 00:00 | |
|
Thanks a lot man for your kind help.
Also, please tell me what servers to download to run the PHP program? |
|
|
3l_f3n1x
![]() Member V Fan ![]() Professional Analyst Joined: 08/06/2008 Last Seen: 0000-00-00 Experience: 299.25 Points: 905 |
|
| #9 on 01/01/1970 00:00 | |
|
You can always test your PHP skills using a Free Server Account at some sites like http://www.000webhost.com/. If you want to download PHP on your computer, then it depends on what OS you're using. Go to http://www.php.net, there you'll find tutorials, information and how to start your own server.
Remember you can always use http://www.google.com to find information. BTW, in http://www.w3schools.com/php/php_intro.asp you'll find lots of free information about PHP. Just read the page carefully and avoid clicking the publicity banners... Hint: Click on "Next Chapter >" "Beneath this mask there is more than flesh. Beneath this mask there is an idea, Mr. Creedy, and ideas are bulletproof." - V BTW: My username was elfenix |
|
| #10 on 01/01/1970 00:00 | |
|
Thanks for your kind help once again!
|
|
| #11 on 01/01/1970 00:00 | |
|
Any good website for learning SQLServer?
|
|
Who is watching forums
| Users viewing this page: | Guests (1) |
| Users viewing the forum: | 0 |









