TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-22-2008, 08:59 PM   #21 (permalink)
WebDev'n Beer Drnkn' Fool
 
stewart's Avatar
 
Join Date: Dec 2007
Location: Denver, CO
Posts: 59
Thanks: 2
stewart is on a distinguished road
Default

Quote:
Originally Posted by Orc View Post
The second one can easily be fixed, just do:
PHP Code:

 
if (!is_numeric($_GET['s']))
 {
   
header("Location: ./");
 } 
For some reason i can never seem to get that to work with post/get vars... =/ I end up using a regular expression to do it.
__________________
stewart::howe
Web Developer & Programmer
CelerMedia.Com | iAmStewart.com | CelerLabs.com
Send a message via ICQ to stewart Send a message via AIM to stewart Send a message via MSN to stewart Send a message via Yahoo to stewart
stewart is offline  
Reply With Quote
Old 03-22-2008, 10:40 PM   #22 (permalink)
The Acquainted
 
freenity's Avatar
 
Join Date: Feb 2008
Posts: 119
Thanks: 17
freenity is on a distinguished road
Default

I read somewhere that all $_GET, $_POST, $_COOKIE values are strings... but it works for me.....

I use this: $var = (int)$_GET['var'];

If it's not a number it will return 0, but of course it allows hex, values too...
__________________
http://feudal-times.net - My PBB Game
http://gwphp.feudal-times.net - My Blog "Gaming With PHP"
freenity is offline  
Reply With Quote
The Following User Says Thank You to freenity For This Useful Post:
Nor (03-24-2008)
Old 03-24-2008, 04:08 PM   #23 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

If I can request a feature :), make it so you can have private snipplets either so it doesn't list, but the owner can see it, or using a password.
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 03-24-2008, 08:19 PM   #24 (permalink)
The Wanderer
 
codyodell's Avatar
 
Join Date: Nov 2007
Posts: 12
Thanks: 2
codyodell is on a distinguished road
Default

Nor,

Good idea, I already had thoughts of a "gold account" which would enable private snipplets or businesses to provide snipplets to certain users, their employees or friends. You would also have access to other features on the site, more on that later.

I'm still trying to get a solid business model together and that's why this hasn't been implemented yet. If anyone wants to brainstorm with me, just IM me on AIM: cody74119
__________________
The man who invented the wheel was smart. The man who invented the other 3, he was a genius.
codyodell is offline  
Reply With Quote
Old 03-25-2008, 02:07 AM   #25 (permalink)
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Very good job. I kind of don't like the design though, too much text and too little colors.
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 03-25-2008, 04:07 PM   #26 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

Quote:
Originally Posted by codyodell View Post
Nor,

Good idea, I already had thoughts of a "gold account" which would enable private snipplets or businesses to provide snipplets to certain users, their employees or friends. You would also have access to other features on the site, more on that later.

I'm still trying to get a solid business model together and that's why this hasn't been implemented yet. If anyone wants to brainstorm with me, just IM me on AIM: cody74119
I'll add you today. I could also help you make your template Internet Explorer Appropriate ( e.g..look good in all browsers :) )
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 03-27-2008, 07:35 AM   #27 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

I was going to go add a tutorial to make your own images in php, but you don't have the category, can you add one please?

Snipply - PHP » String Manipulation » GD Images
__________________
VillageIdiot can have my babbies ;d

Last edited by Orc : 03-27-2008 at 08:02 AM.
Orc is offline  
Reply With Quote
Old 04-13-2008, 02:09 PM   #28 (permalink)
The Visitor
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
DarkMindZ is on a distinguished road
Default

How about doing some SEO?

gets your site out there much faster, and reduces the `hack attempts` :)
__________________
DarkMindZ is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB 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. The time now is 03:09 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design