Creating a Basic CMS with PHP - Part 3 [Super Improved]
Uploader Comments (pbj746)
All Comments (17)
-
How Can I fixed ... !!!!!!!!! Can I ues Opstart():
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at \login.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at\login.php on line 10
-
I think there should be session_start(); (and maybe admin check) in delete, so noone can enter the code and delete the post if hes not admin.
-
Would you not just do (( title = $_POST["Title"]; ,, etc etc then use the var
-
cms/admin/posts.php =>
Parse error: syntax error, unexpected '{' in C:\Webserver\root\CMS\admin\in
cludes\functions.php on line 6 -
These lessons would be just perfect, but I would so like to have working source-files. I made all these and worked fine but the last delete part doesnt work for me. Says: Undefined index: id plaplapla.. in deletePost.php on line 3. I checked the code and its all the same as in the video.
-
@nysc2007 He likely can get away with the other way since he's working locally, you seem to be working remotely. Once you set it up the way I directed yo, you can follow the rest of his tutorial keeping that structure in mind. It works.
Also, remove the * echo "Login Successful" * from dologin.php, that will interfere with the header() under it and give you the same error you are already getting.
-
@nysc2007 You can likely solve problem 1 by putting * session_start(); * on the first line of the documents that use sessions.
Problem 2 is because you have content written to the page at the time the header wants to change location. The only way it can take action is if nothing is printed in the document. You can fix this by putting all the HTML tags that aren't inside the IF structure, inside the IF structure. If you look at his 2nd video at 5:57, do the structure like that.
-
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home4/pixelat6/public_html/CM
S/admin/includes/functions.php :2) in /home4/pixelat6/public_html/CM S/admin/dologin.php on line 4 Login successful
Warning: Cannot modify header information - headers already sent by (output started at /home4/pixelat6/public_html/CM
S/admin/includes/functions.php :2) in /home4/pixelat6/public_html/CM S/admin/dologin.php on line 15 -
Dont worry i've figured it out :P
A bit of a delay on Part 4, expect it up by friday
pbj746 1 year ago