Unstoppable Domains โ€” AI Assistant

Blog script problem!

NamecheapNamecheap
Watch

bdd

Established Member
Impact
1
i decided to go with the blog script from plugged out http://www.pluggedout.com/index.php?pk=dev_blog

and it all seems great except for a few things which i have listed below... i am in a real time crunch with this project so all help would be muchly appreciated... i have posted on their support forum but i am still waiting for an answer... i think it could be the long weekend in the US...?

issues i still have (so far anyways) is:
1- how do i restrict the config.php file from intruders...
2- my calender seems to be out by 1 month... when i go to June, it displays entries for May... and april for may etc... how do i fix that...? the entries are getting the correct month... its just the calender that is displaying one month ahead instead of the current month...
3- when included the index.php file in my website table it came up with some warnings... i have corrected them by making all og the includes etc. go back to the root directory and work from there...
4- the session.php file gave a warning saying that the headers had already been sent... so i moved the includes for the session.php file to the top of my diary.php file (above HTML tag) i assume that is why i was getting that arror... because it was trying to start the session in the middle of my code...?
5- should i remove the HTML and BODY tags from index.php seeing as i am including this in my already created website?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
bdd said:
1- how do i restrict the config.php file from intruders...

How do you mean? -- They won't be able to read anything anyway ;)
 
0
•••
Yea, I have a couple of suggestions.
Not a good idea to include it in your website. This is because all headers get sent out before any data (i.e. HTML, BODY, or META data). So, your blog script is trying to send out headers, but it can't because you've already sent out the HTML tags. I think this script was meant to work on it's own and not embedded into a website... As for the calendar thing, that might just be your web server but im not entirely sure about that. P.S. also that's correct, no one will be able to see the contents of your config.php file :blink:
 
Last edited:
0
•••
okay... you are right about the config.php file so that is fine...

the script seems to be working alright embedded in my website (so far anyways) i just called the session.php file above the rest of the code for the whole page... and being that the session file just creates a new session for the user, im assuming that doing it that way should be fine because it would create the session etc. then load the page and inside it would go through the blog script etc...

the calender thing is a bit of a headache as i dont think it is the server simply because when i put in an entry it is added with the correct time stamp... it is just the calender screen below that has the incorrect date on it... so im assuming i need to go into the code that is calling the month and subtract one... the rest of the days correspond to the correct day of the week, so it is definitely just the month that is wrong...
 
0
•••
Spaceship
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back