Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!

Author Search Results: 'Rob'

We found 5 matches.


<< < > >>

Viewing 1-5 of 5 matches.

1.

None

Topic: IE6 Blues.

Posted: 05/06/08 12:40 PM

Forum: Programming


2.

None

Topic: Mod rewrite help? f.php to /f

Posted: 05/05/08 02:57 PM

Forum: Programming

I could not disagree more. You just use a simple algorithm to transform a url into a page. That way, you can add logic to every page or only some pages from a single, centralized place. This becomes more important as a site grows. That's why every major framework uses a front controller. Believe me, you don't want to have to use mod_rewrite to change individual URLs, you don't want to have to add validation logic piecemeal, and you don't want to be restricted to modifications at the top and bottom of every page. I could go on and on about the advantages of a front-controller architecture, but if you want to know more, there's always Google.

At 5/5/08 12:42 PM, yhar wrote: Of course that should be done with a small site, with minimal php pages, but with a larger site with a lot of pages, it's much easier to have many pages and simply use header and footer includes...

3.

None

Topic: Mod rewrite help? f.php to /f

Posted: 05/05/08 11:54 AM

Forum: Programming

I strongly recommend that all PHP developers build their sites with a front controller - i.e., one script that all hits are redirected to. Then that script can read the incoming URL and load the correct pages. To do this, you use a redirect like the following:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]

Then, in index.php, you can get the url with
$url = $_SERVER['REQUEST_URI'];

I have found that this method saves me time even on sites with only a couple pages.

-Rob

At 5/4/08 05:27 PM, yhar wrote: Hi,
I have "domain.com"
I have "domain.com/file.php"
I want "domain.com/file" to redirect to "domain.com/file.php"
I want this for every file, not just ones i set manually.

I have it atm so i can set them manually, but I want it automatic, adding manually is a pain.
What's the mod_rewrite code?

Much appreciated darlings <3

4.

None

Topic: New Blog Feature: Video Embedding

Posted: 04/16/08 03:32 PM

Forum: NG News

Hey guys,
About the icon: it's Harvey Pekar's head, and it is temporary. About music, etc.: we are only going to allow embedding from sites that provide a play button - i.e., nothing that plays upon loading will be supported.


5.

None

Topic: New Blog Feature: Video Embedding

Posted: 04/16/08 02:58 PM

Forum: NG News

Hey Newgrounds, this is the new web developer, Rob, with good news: you can now embed videos in your posts! For full instructions, check out my first blog post.

Also, MindChamber's April Fools prank is now a reality, as you can both post video to your blog AND we are giving out Pico trophies for Pico Day. Check out MindChamber's video here.


All times are Eastern Daylight Time (GMT -4) | Current Time: 08:50 PM

<< < > >>

Viewing 1-5 of 5 matches.