Blogs RSS
Forums RSS
DaniWeb Home
>
Forums
>
Search Forums
Search Results
•
•
•
•
Showing results 1 to 31 of 31
Search took
0.01
seconds; generated 5 minute(s) ago.
Posts Made By:
rgviza
Refine this Search
Save these search results for 24 hours
Forum:
Computer Science and Software Design
Jun 15th, 2008
Replies:
15
Online education?
Views:
1,929
Posted By
rgviza
Re: Online education?
University of MD has an online school
umuc.edu. You can down online courses all you want but for some people it's the only option (because of work and kids)...
As far as what the degree means, I...
Forum:
Computer Science and Software Design
Jun 15th, 2008
Replies:
7
Research in Computer Architecture
Views:
965
Posted By
rgviza
Re: Research in Computer Architecture
In other words, git'er DONE!
Forum:
Legacy and Other Languages
Jun 4th, 2008
Replies:
1
Mathematical Logic Question
Views:
569
Posted By
rgviza
Re: Mathematical Logic Question
The handyman is telling the truth, the rest are lying.
The detective could tell which witnesses were lying through instinct, experience, story comparison and knowledge of human behavior, although...
Forum:
Ruby
Jun 4th, 2008
Replies:
13
Ruby and non-web development
Views:
6,520
Posted By
rgviza
Re: Ruby and non-web development
True, and where's the python forum?
They should really have forums for languages like java, ruby and python in both web and thick client places, or stop making the distinction between "web" and "non...
Forum:
Ruby
Jun 4th, 2008
Replies:
4
Having some trouble getting started
Views:
4,810
Posted By
rgviza
Re: Having some trouble getting started
Try doing a:
telnet localhost 3000
To see if the service is really starting on that port or there's some other issue. If it times out the service definitely isn't started. Check your firewall...
Forum:
PHP
Jun 4th, 2008
Replies:
4
php, java and C/C++ which is better
Views:
410
Posted By
rgviza
Re: php, java and C/C++ which is better
Development is pretty much going to keep you employed no matter what modern language(s) you learn. Pick one and learn it well and the work will find you.
Your chat friend has no clue what he's...
Forum:
PHP
May 30th, 2008
Replies:
1
What you (yes, you too) need to know about sql injection
Views:
6,828
Posted By
rgviza
What you (yes, you too) need to know about sql injection
In reading and posting on this forum, I see a lot of code here that doesn't consider sql injection.
SQL injection is an attack where the attacker terminates or modifies an sql query with input...
Forum:
PHP
May 29th, 2008
Replies:
16
Where should I save credit card data?
Views:
995
Posted By
rgviza
Re: Where should I save credit card data?
Storing cc info is very bad.
If you really want me to, I'll explain why, but it's pretty well covered in google. The people that run Amazon are insane.
Hint: It's pretty easy to write an...
Forum:
PHP
May 29th, 2008
Replies:
3
CNAME records
Views:
461
Posted By
rgviza
Re: CNAME records
>is this done with CNAME records?
no.
Questions:
1. will xyz.com be living on the same physical server as abc.def.com?
2. is abc.def.com running in an apache vhost already?
3. if you look at the...
Forum:
PHP
May 23rd, 2008
Replies:
8
Help me understand sessions....please
Views:
454
Posted By
rgviza
Re: Help me understand sessions....please
you need to add a session checker to everything...
pseudocode:
if([user is not logged in])
{
header("Location: /login.php\r\n");
}
Forum:
PHP
May 23rd, 2008
Replies:
2
Session problem
Views:
491
Posted By
rgviza
Re: Session problem
Determine what constitutes a logged in session. Codify it into an include and include the session checker in each script you want to protect. Unfortunately, example code would be hard to produce...
Forum:
PHP
May 23rd, 2008
Replies:
2
Session problem
Views:
491
Posted By
rgviza
Re: Session problem
Determine what constitutes a logged in session. Codify it into an include and include the session checker in each script you want to protect. Unfortunately, example code would be hard to produce...
Forum:
PHP
May 23rd, 2008
Replies:
24
Script for voting
Views:
950
Posted By
rgviza
Re: Script for voting
Aieeee!
First, never execute mysql queries in a loop. This is very very bad. Any data you need from the database, unless from unrelated tables, can be pulled with one query.
I've found my self in...
Forum:
PHP
May 21st, 2008
Replies:
6
Anyone To check My code??
Views:
367
Posted By
rgviza
Re: Anyone To check My code??
This script is also vulnerable to sql injection.
Always filter your input variables.
Google "sql injection prevention in php" or someone will steal all of your data and compromise your accounts....
Forum:
PHP
May 16th, 2008
Replies:
2
Remove Non Printing Characters From Text
Views:
1,451
Posted By
rgviza
Re: Remove Non Printing Characters From Text
$formvar = preg_replace("/[^\w\d]/g","",$formvar);
inside the brackets add any special characters you want to allow. example:
[^\w\d\-\@\.\&\n ] (note the unescaped space)
A whitelist is far more...
Forum:
PHP
May 16th, 2008
Replies:
16
$_GET['id'] is not working?????
Views:
1,760
Posted By
rgviza
Re: $_GET['id'] is not working?????
I learned it by EH and advice from experienced penetration testers. people compromise proxies and search the logs for qstring vars sent from forms. Some proxies log the data, even over ssl. When they...
Forum:
PHP
May 16th, 2008
Replies:
4
PHP Split function
Views:
3,971
Posted By
rgviza
Re: PHP Split function
forgot to mention the security and language compatibility benefit... \w will match non-english characters if locale is set (usually with a language pulldown)
The security benefit is such a login...
Forum:
PHP
May 15th, 2008
Replies:
19
$_server['script_name']
Views:
1,475
Posted By
rgviza
Re: $_server['script_name']
there's still no space between the attributes.
try
$bobo = strrpos($_SERVER['SCRIPT_FILENAME'], "/bobo/index.php");
if ($bobo)
{
$style_home = ' style="background-color: #6C674F"';
Forum:
PHP
May 15th, 2008
Replies:
3
help with code
Views:
351
Posted By
rgviza
Re: help with code
Quick sanity check...
In your original post you first saved the image with a random value, then you generated a new value and inserted it in the database. How could you possibly match the file if you...
Forum:
PHP
May 15th, 2008
Replies:
1
Custom php.ini help
Views:
301
Posted By
rgviza
Re: Custom php.ini help
think of "shell" as "dos prompt for unix".
there are several of them and each has a superset of the same basic commands.
When you log into a host via ssh, after logging in you "get a shell" where...
Forum:
PHP
May 15th, 2008
Replies:
16
$_GET['id'] is not working?????
Views:
1,760
Posted By
rgviza
Re: $_GET['id'] is not working?????
yea tacking get variables onto a form action is very bad form(no pun intended). Put the data in a hidden field or session and read it out of the appropriate array.
Anyone in the IT industry should...
Forum:
PHP
May 15th, 2008
Replies:
4
PHP Split function
Views:
3,971
Posted By
rgviza
Re: PHP Split function
The cleanest way to handle this is:
$id='ha12345';
switch(true)
{
case preg_match("/^\w{2}\d{5}$/",$id):
//user is LLNNNNN
echo "LLNNNNN";
break;
Forum:
PHP
May 15th, 2008
Replies:
19
$_server['script_name']
Views:
1,475
Posted By
rgviza
Re: $_server['script_name']
I'm actually surprised this works at all anywhere because the result will look like:
<li class="linkLevel01"><a href="index.php" class="homy"style="background-color: #6C674F">Home</a></li>
when...
Forum:
PHP
May 15th, 2008
Replies:
11
i`m lost!!!
Views:
594
Posted By
rgviza
Re: i`m lost!!!
You have http://localhost hardcoded in your script, use the host name of the web server.
This would explain why it works on your workstation but not the server. When you have no session data it's...
Forum:
PHP
May 15th, 2008
Replies:
4
variable values
Views:
311
Posted By
rgviza
Re: variable values
you can break caches by appending a ?[somevar]=[random string] after the image tag. They determine freshness by url (is it the same?) then, if the url is the same, by checking last modified date,...
Forum:
PHP
May 14th, 2008
Replies:
9
File Upload Variables
Views:
829
Posted By
rgviza
Re: File Upload Variables
#page 1 form processor
<?php
session_start();
#
$uploadDir = 'upload/';
#
#
if(isset($_POST['upload']))
#
Forum:
PHP
May 14th, 2008
Replies:
3
Based on IP address change the info of a site
Views:
506
Posted By
rgviza
Re: Based on IP address change the info of a site
you can parse country information from whois response. the various ip authorities have different record formats so you have some work ahead of you.
ARIN will tell you if you need to go to another...
Forum:
PHP
May 14th, 2008
Replies:
3
Based on IP address change the info of a site
Views:
506
Posted By
rgviza
Re: Based on IP address change the info of a site
There are two ways of doing this. One is to buy the MaxMind database, another is to do whois calls using a socket (not through their web interface!) and cache the netblock results so you don't hammer...
Forum:
PHP
May 14th, 2008
Replies:
1
Help with regular expression please
Views:
248
Posted By
rgviza
Re: Help with regular expression please
there's a quote after action= which is breaking the first string argument and it's needlessly complex.
Try
$var='<form method="post" action="xyz.com">';
echo preg_replace("/action=\"xyz.com\"/",...
Forum:
PHP
May 14th, 2008
Replies:
9
File Upload Variables
Views:
829
Posted By
rgviza
Re: File Upload Variables
I'd put the file upload in page one like the client originally wanted.
On loading page 2 of form, upload file, write it to disk and set a session variable with the file path. Also collect the form...
Forum:
PHP
May 14th, 2008
Replies:
1
realtime query without cronjob
Views:
238
Posted By
rgviza
Re: realtime query without cronjob
write a stored function in postgres that outputs the data in mysql's bulk insert format.
bulk insert it into mysql.
-r
Showing results 1 to 31 of 31
Forum Highlights
Today's Posts
All Forums
Unanswered Threads
All Forums
Forums
|
Blogs
|
Tutorials
|
Code Snippets
|
Whitepapers
|
RSS Feeds
|
Advertising
All times are GMT -4. The time now is
11:44 am
.
Newsletter Archive
-
Sitemap
-
Privacy Statement
-
Acceptable Use Policy
-
Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC