Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 06-03-2003, 01:35 PM   #1 (permalink)
Insane
 
Location: A fuzzy cloud.
How do news posts in a web page work?

I'm wanting to make myself a web page/site where I can post new things on. Much like a blog. Bloggers can post their new bits of information or thoughts or whatever and it shows up, with newest post at the top of the page.


How does this work?

I've done some reading and seen things about PHP and MySQL and I kind of can understand it but not really.

Do people use a web based application to make their new post, and then upon hitting submit, the application develops an Entirely new page that includes new entries on this page?

I don't think the above would be how they do it, because then how would they be able to set up preferences like "show only 10 posts." A server couldn't possibly be able to provide that many new pages for each user viewing.

Is there some sort of module based thing going on?


I'm not doing very well at posting this question.

This is what I want: I want to design my page, have it exactly like I want it, images here, a links section there, but readily available for new posts.

What is it that enters in these new posts on the web pages? This is my guess as to what happens, maybe you guys can help me fill in the blanks.
A PHP based web form that will 1) write the entry to a MySQL (or other) database, 2) edits the current web page by adding a previously created template of code which adds the appropriate entries for a news post.

Now, I think I have that part basically right. What I don't understand though is how someone specifies what part of the single page gets updated. Most blogs that I view are one individual page no frames, they are composed of one Large table containing multiple tables for each column within, one table for nav, one table for links, and a table for content. In that content table is all their posts. What specifies that I want to add "this code" to "this part"?

I'm really wanting to learn how to set this up, but I don't have anyone really to teach me (or push me in the right direction) that I can talk to face to face. I'm willing to put work into understanding this, I just don't know where to look. That might be an oxymoron, but I figured maybe you all could help point me in the right direction.

Thanks a lot..
Realizm is offline  
Old 06-03-2003, 02:10 PM   #2 (permalink)
Insane
 
Location: In beautiful (YOUR AREA)
Check out E107

Also goto Freshmeat or Sourceforge

Do a search for containment management systems. You can also visit Hotscripts
ToiletDuck is offline  
Old 06-03-2003, 02:51 PM   #3 (permalink)
Huggles, sir?
 
seretogis's Avatar
 
Location: Seattle
http://hotwired.lycos.com/webmonkey/programming/php/

Above, is a link to the "webmonkey" php section. It's a pretty nice collection of some tutorials and info about php & mysql. I suggest checking out the PHP from the Ground Up and PHP and MySQL Tutorial links. They are what I used many years ago to learn some PHP basics.

If you are looking for books, I suggest checking out "Professional PHP" and "Core PHP", but avoiding the cheap code-sample books.

ToiletDuck: iirc it's "content management systems"
__________________
seretogis - sieg heil
perfect little dream the kind that hurts the most, forgot how it feels well almost
no one to blame always the same, open my eyes wake up in flames
seretogis is offline  
Old 06-03-2003, 02:52 PM   #4 (permalink)
Psycho
 
Location: Oregon
Basically, a user types his post and submits it, most of the time they have some system setup like those mentioned above, that add the entry into a database. Then, the database/code program finds the most recent entry, and dynamically generates a page to accomplish that.

Being a PHP/Mysql developer myself... feel free to ask any questions.
__________________
"It's not that I don't understand, it's that I don't care"
- Homer Simpson
viveleroi0 is offline  
Old 06-03-2003, 04:37 PM   #5 (permalink)
Upright
 
I don't know if this will help but the links these people are directing you to PHP code already made to interact with a MySQL database. You just basically copy and paste the code and your money.

I've also just started to learn PHP and MySQL, a lot of cool stuff you can do. Just hard to get it going is all.
evercl is offline  
Old 06-03-2003, 05:31 PM   #6 (permalink)
Insane
 
Location: A fuzzy cloud.
Ok... so to expand on questions..

Thanks for the links btw guys.. will be reading these a lot to come.. and the books probably soon too.



My main page that I make, that will have all the posts... is that going to be an HTML file or a PHP? I realize that this is basically just a text file, but when I finally upload this thing to server, am I going to want to have my file be ending in .php or .html? Or will it matter?

[Edit/Add]

After looking at some CMS stuff... Do I really need a CMS? How many people would rather write their own? Is it smart to write my own?

Last edited by Realizm; 06-03-2003 at 05:40 PM..
Realizm is offline  
Old 06-03-2003, 08:12 PM   #7 (permalink)
Crazy
 
Location: Fayetteville, AR
You will want a php page(end the page with .php). The code will need to go to the articles table in MySQL and sort them by date. Then grab and print the first 8-10(however many you want). Then you can do the same thing for an archives page - only skip the first 8-10 and then print the rest.

Also, I believe it is better to setup your MySQL with 2 tables for articles - one with everything but the main text, and one with just the text and some ref to the other info in the first table. I believe it speeds up processing when searching etc.

Not sure about the CMS stuff, just know I didn't use it for my personal page.

Last edited by thecow; 06-03-2003 at 08:14 PM..
thecow is offline  
 

Tags
news, page, posts, web, work


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 03:11 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360