You are viewing our Forum Archives. To view or take place in current topics click here.
My Attempt at a Blog and Stuff
Posted:

My Attempt at a Blog and StuffPosted:

CoNdEmR
  • Retired Staff
Status: Offline
Joined: Apr 29, 200914Year Member
Posts: 4,420
Reputation Power: 1211
Status: Offline
Joined: Apr 29, 200914Year Member
Posts: 4,420
Reputation Power: 1211
So, for the past 2 weeks, I've been delving further into PHP as I've had the time off with college finished for the summer. And so i put it to myself to do something productive with my time, and have managed to construct a very basic template for a blogging site.

The site is functional, and entirely written in PHP you can visit it here: [ Register or Signin to view external links. ]

The idea of the blog will be to document the progress and updates i make to it in order to get myself into the habit of documentation. As well as other project's i may work on in the future, or maybe even some personal stuff WHO KNOWS.

In any case tell me what you guys think, and let me know of any additions you think i could add. What i hope to add in the future thus far is to allow users to comment on my articles posted, and maybe some more user interaction.


Last edited by CoNdEmR ; edited 1 time in total
#2. Posted:
Z61
  • V5 Launch
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
Status: Offline
Joined: Apr 16, 201014Year Member
Posts: 4,309
Reputation Power: 179
Seems pretty awesome! I was working on something similar a while back and lost the entire project .
Good luck on future updates!
#3. Posted:
skatertg
  • Summer 2019
Status: Offline
Joined: Jan 20, 201014Year Member
Posts: 8,013
Reputation Power: 2165
Status: Offline
Joined: Jan 20, 201014Year Member
Posts: 8,013
Reputation Power: 2165
I'll be watching your progress, seeing as i have nothing to do until next term as well lolol

Just a quick thing, didn't know if it was intentional or not but in your second blog post, when you use an apostrophe there is a backslash in there.

(my explanations are really bad, here is just a pic, though im sure you have already noticed this)

[ Register or Signin to view external links. ]

Keep us updated
#4. Posted:
CoNdEmR
  • Summer 2022
Status: Offline
Joined: Apr 29, 200914Year Member
Posts: 4,420
Reputation Power: 1211
Status: Offline
Joined: Apr 29, 200914Year Member
Posts: 4,420
Reputation Power: 1211
skatertg wrote I'll be watching your progress, seeing as i have nothing to do until next term as well lolol

Just a quick thing, didn't know if it was intentional or not but in your second blog post, when you use an apostrophe there is a backslash in there.

(my explanations are really bad, here is just a pic, though im sure you have already noticed this)

[ Register or Signin to view external links. ]

Keep us updated


Yea that's the data being sanitized from the mysql_real_escape_string function. I had originally intended to to make users able to post and slapped it in. Seeing as i'm the only one to write an article i'll remove it. Also skater, you need to provide a valid e-mail to activate you're account

[ Register or Signin to view external links. ]
#5. Posted:
speed
  • Winter 2020
Status: Offline
Joined: Jun 11, 200914Year Member
Posts: 9,897
Reputation Power: 3160
Motto: "I'l no I grew up to fast speed I no u will be little famous" - Famous_Energy
Motto: "I'l no I grew up to fast speed I no u will be little famous" - Famous_Energy
Status: Offline
Joined: Jun 11, 200914Year Member
Posts: 9,897
Reputation Power: 3160
Motto: "I'l no I grew up to fast speed I no u will be little famous" - Famous_Energy
CoNdEmR wrote
skatertg wrote I'll be watching your progress, seeing as i have nothing to do until next term as well lolol

Just a quick thing, didn't know if it was intentional or not but in your second blog post, when you use an apostrophe there is a backslash in there.

(my explanations are really bad, here is just a pic, though im sure you have already noticed this)

[ Register or Signin to view external links. ]

Keep us updated


Yea that's the data being sanitized from the mysql_real_escape_string function. I had originally intended to to make users able to post and slapped it in. Seeing as i'm the only one to write an article i'll remove it. Also skater, you need to provide a valid e-mail to activate you're account

[ Register or Signin to view external links. ]


stripslashes()

Also, your email system doesn't work.

Might want to fix that (use SMTP).
#6. Posted:
Nic
  • Retired Staff
Status: Offline
Joined: Jun 08, 201013Year Member
Posts: 2,466
Reputation Power: 1070
Motto: I've been watching you all day.
Motto: I've been watching you all day.
Status: Offline
Joined: Jun 08, 201013Year Member
Posts: 2,466
Reputation Power: 1070
Motto: I've been watching you all day.
CoNdEmR wrote
skatertg wrote I'll be watching your progress, seeing as i have nothing to do until next term as well lolol

Just a quick thing, didn't know if it was intentional or not but in your second blog post, when you use an apostrophe there is a backslash in there.

(my explanations are really bad, here is just a pic, though im sure you have already noticed this)

[ Register or Signin to view external links. ]

Keep us updated


Yea that's the data being sanitized from the mysql_real_escape_string function. I had originally intended to to make users able to post and slapped it in. Seeing as i'm the only one to write an article i'll remove it. Also skater, you need to provide a valid e-mail to activate you're account

[ Register or Signin to view external links. ]

You can also look into using prepared statements. That way, the database can actually tell the difference between the SQL statements and the values (user input). So you won't have to escape anything or worry about SQL injections. Then, you only need to make sure to use the htmlentities function when printing data from the database to prevent nasty scripts from executing.

Let me know if you need any help ;)
#7. Posted:
CoNdEmR
  • Summer 2022
Status: Offline
Joined: Apr 29, 200914Year Member
Posts: 4,420
Reputation Power: 1211
Status: Offline
Joined: Apr 29, 200914Year Member
Posts: 4,420
Reputation Power: 1211
SPEED wrote

stripslashes()

Also, your email system doesn't work.

Might want to fix that (use SMTP).


Did that, thanks. The e-mail system i have does work but it gets sent into you're junk mail. I'll look into SMTP
#8. Posted:
MarKehh
  • TTG Master
Status: Offline
Joined: Dec 31, 200914Year Member
Posts: 892
Reputation Power: 38
Status: Offline
Joined: Dec 31, 200914Year Member
Posts: 892
Reputation Power: 38
Looks like you've made your register and login from phpacademy! I am following the tutorial now! Love the site btw, good luck.
#9. Posted:
CoNdEmR
  • Shoutbox Hero
Status: Offline
Joined: Apr 29, 200914Year Member
Posts: 4,420
Reputation Power: 1211
Status: Offline
Joined: Apr 29, 200914Year Member
Posts: 4,420
Reputation Power: 1211
MarKehh wrote Looks like you've made your register and login from phpacademy! I am following the tutorial now! Love the site btw, good luck.


Yep, i followed his tutorial and built onto it
#10. Posted:
Left
  • TTG Senior
Status: Offline
Joined: Jun 30, 201112Year Member
Posts: 1,010
Reputation Power: 49
Status: Offline
Joined: Jun 30, 201112Year Member
Posts: 1,010
Reputation Power: 49
Quite good, is this going to be open source?
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.