Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
A couple quick questions
Old 12-16-2009, 10:56 AM A couple quick questions
Extreme Talker

Posts: 246
Name: Patric
Trades: 0
Hi,

I have been wondering about these different issues lateley and was hoping someone could provide a little clarity.

1.) PHP development - In general, besides the use of developing a site that is used in a CMS and having the ability to have interaction from users (email forms, contact, etc..) what is the purpose of having a site built in php? I've seen a few sites on the net that are built in php but it looks like they could have been done in html just as well.

2.) Hiding the .html, .php, .asp, etc extension from the browser address bar - this one is pretty stupid, but something I've been wondering about. How do I place a page on a site so that the .html extension doesn't show up in the browser? For example instead of mysite.com/page.html it would then just be mysite.com/page. Does that make sense?

3.) Flash Development - In general, is there a good site that provides tutorials on how to develop flash content for AS2 and AS3? Any recommendations would be greatly provided. The one's I've found on the net don't really provide he kind of clarity I am looking for.
Reckoner is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-16-2009, 02:25 PM Re: A couple quick questions
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
1.)
Quote:
what is the purpose of having a site built in php
Mainly, being able to interact with something else, and add logic to the operations made by the site.

Quote:
I've seen a few sites on the net that are built in php but it looks like they could have been done in html just as well.
Which does make 100% sense, as PHP (and jsp, asp.net, coldfusion, ruby on rails, python and literally hundreds of other server-side languages) are there to do something "under the cover".
They just generate a bunch of HTML given conditions the programmer gave them.
Nothing of this is required, as you could create static pages that could have the same look.

But the devil is in the details.
Imagine a shop. Overused example, I know, but accurate.
Let say you want to apply a 10% sale for everyone during december.

In a server side enabled site, with a DB, you do in the db:
Code:
update prices set retail=retail-(retail*0.1);
and every prices of your shop are reduced by 10 %.
In a static site, it means you have to compute and manually update possibly hundreds of pages.
Sure, the result would be the same, but the time invested at the beginning to have a database pays of later.

Another example.
You want to change the look of your product page.
In a server side enabled site, you have 1 page, that define the look, ad where the language inserts bits taken out of a database.
So, updating every articles page means modifying 1 page really.
Again, in a static site, you have to modify every static pages by hand.

2.)
This is done via a process known as "url rewriting". It means that you tell the web server that when a browsed tries to reach the url it has to serve the content of a specific file.
You have a documentation and examples there:
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

3.)
Could not say, I never touched to flash and never looked to neither.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 12-17-2009, 01:16 PM Re: A couple quick questions
Extreme Talker

Posts: 246
Name: Patric
Trades: 0
thanks.
Reckoner is offline
Reply With Quote
View Public Profile
 
Old 12-17-2009, 06:12 PM Re: A couple quick questions
Defies a Status

Posts: 1,606
Trades: 0
Quote:
1.) PHP development - In general, besides the use of developing a site that is used in a CMS ...........
The very first thing that got me interested was the seventh time I went through 20 some pages to update the html menu. Using PHP I could have changed one page and had the results show on all of them.

My answers are the same as tripy for 2 and 3.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 12-17-2009, 06:58 PM Re: A couple quick questions
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Quote:
Hi,

I have been wondering about these different issues lateley and was hoping someone could provide a little clarity.

1.) PHP development - In general, besides the use of developing a site that is used in a CMS and having the ability to have interaction from users (email forms, contact, etc..) what is the purpose of having a site built in php?
..snip

Go ahead and create a forum, shopping site, or blog with html...You will find out how difficult it would be to populate it with content. What I am getting at is if you don't know some kind of ssl (that's server side language, not secure socket layer) your site will be limited. Ok, some php sites are limited, but when the money making idea comes along, I GUARANTEE YOU WILL BE THE MOST LIKELY TO FAIL.
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to A couple quick questions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.16877 seconds with 12 queries