Search Results

Showing results 1 to 40 of 1000
Search took 0.10 seconds.
Search: Posts Made By: kkeith29 ; Forum: PHP and child forums
Forum: PHP 31 Days Ago
Replies: 13
Solved: Login System
Views: 1,423
Posted By kkeith29
Use:


$_POST = array_map( 'mysql_real_escape_string',array_map( 'stripslashes',$_POST ) );
Forum: PHP Nov 13th, 2009
Replies: 6
Views: 408
Posted By kkeith29
Look up func_get_args().
Forum: PHP Oct 29th, 2009
Replies: 20
Views: 432
Posted By kkeith29
You would need to run the new string through eval to make the includes work.

Use that function with caution though. If you don't use it right there are huge security risks.
Forum: PHP Oct 29th, 2009
Replies: 20
Views: 432
Posted By kkeith29
You would need to run the new string through eval to make the includes work.

Use that function with caution though. If you don't use it right there are huge security risks.
Forum: PHP Oct 27th, 2009
Replies: 4
Views: 251
Posted By kkeith29
You most likely forget a closing }.
Forum: PHP Oct 27th, 2009
Replies: 6
Views: 320
Posted By kkeith29
Use either GET or POST. Don't use REQUEST as it has security flaws.
Forum: PHP Oct 27th, 2009
Replies: 12
Views: 481
Posted By kkeith29
Thats not php. Its html and javascript.
Forum: PHP Oct 27th, 2009
Replies: 12
Views: 481
Posted By kkeith29
You need to post the code.
Forum: PHP Oct 27th, 2009
Replies: 12
Views: 481
Posted By kkeith29
Use code tags. It really hard to follow your code.

There is 0 php in the code you posted. The only reason you are getting the error is because you have short_tags enabled.


<?xml version="1.0"...
Forum: PHP Oct 26th, 2009
Replies: 3
Views: 320
Posted By kkeith29
You either need to use eval (which is slow and has security risks if not used properly) or you loop through the array until you get to the index you want.

Here is an example. You should find what...
Forum: PHP Oct 24th, 2009
Replies: 4
Views: 606
Posted By kkeith29
You can't pass url parameters to a php script through cron.

If you need to store something to be used in a cronjob later, your best bet would be either to use a database or a text file.
Forum: PHP Oct 24th, 2009
Replies: 3
Views: 197
Posted By kkeith29
Post your code.
Forum: PHP Oct 24th, 2009
Replies: 3
Views: 197
Posted By kkeith29
No one is going to write the code for you. You must try first before receiving help here.
Forum: PHP Oct 24th, 2009
Replies: 1
Views: 471
Posted By kkeith29
An associative array is one with named keys.
Ex.

array(
'name' => 'Name here',
'other' => 'Other data here'
);


In a mysql result, they are the column names.
Forum: PHP Oct 24th, 2009
Replies: 107
Views: 3,570
Posted By kkeith29
Have you fixed the video yet?
Forum: PHP Oct 23rd, 2009
Replies: 4
Views: 277
Posted By kkeith29
You need to understand that a salted hash is irreversible (without the original text and salt). Thats the point of it.

You either need to generate them a new password and send it to them or give...
Forum: PHP Oct 21st, 2009
Replies: 6
Views: 455
Posted By kkeith29
Wow, I can't believe I missed that.
Forum: PHP Oct 21st, 2009
Replies: 18
Views: 8,417
Posted By kkeith29
Replace

$html .= "\t\t<td><img src=\"{$imageDir}{$image}\" /></td>\n";

with

$html .= "\t\t<td><a href=\"http://www.mysite.com/?v={$image}\"><img src=\"{$imageDir}{$image}\" /></a></td>\n";
Forum: PHP Oct 21st, 2009
Replies: 6
Views: 455
Posted By kkeith29
I got bored and wrote code to echo out the actual string. Only took 10 minutes.

I ended up getting 21224 not 21124. Maybe I overlooked something.


$ones = array(
1 => 'One',
2 => 'Two',...
Forum: PHP Oct 21st, 2009
Replies: 5
Views: 243
Posted By kkeith29
Most of it is personal preference. Configuration files are really the only thing that needs to be protected.
Forum: PHP Oct 20th, 2009
Replies: 5
Views: 243
Posted By kkeith29
Here are the files from my current project so you can see how it works. Its easier to show you than explain.
Forum: PHP Oct 20th, 2009
Replies: 5
Views: 243
Posted By kkeith29
I use a mixture of both. Kind of.

All my calls a centralized around index.php. My url rewrite changes urls like http://www.mysite.com/page/index to index.php?url=page/index. Then my url class...
Forum: PHP Oct 20th, 2009
Replies: 107
Views: 3,570
Posted By kkeith29
The tutorial seems pretty good so far. The video stops early again at 10 mins. 32 secs so I didn't see it all.

The video quality needs to be improved. It was hard to read some of the text on...
Forum: PHP Oct 20th, 2009
Replies: 3
Views: 219
Posted By kkeith29
Here is an email class that I made. I have never had problems with it.

It also allows for attachments as well.

Example usage:

$email = new email;...
Forum: PHP Oct 18th, 2009
Replies: 50
Views: 5,041
Posted By kkeith29
I can code anything in php, but when it comes to javascript I am a complete failure. I have officially given up. The php side of the chat is complete. Hopefully someone will take an interest and...
Forum: PHP Oct 18th, 2009
Replies: 50
Views: 5,041
Posted By kkeith29
Not yet.
Forum: PHP Oct 18th, 2009
Replies: 107
Views: 3,570
Posted By kkeith29
Sorry it took so long to respond.

The code looks good. There are still a few inline styles that need to be added the head css.

I am not sure if advertisements makes your site commercial....
Forum: PHP Oct 18th, 2009
Replies: 50
Views: 5,041
Posted By kkeith29
I am recoding the javascript to make it faster. I have a few ideas I am wanting to try.

There is a bug in opera I am trying to sort out.

If I have some more time later I will make a tutorial,...
Forum: PHP Oct 17th, 2009
Replies: 4
Views: 319
Posted By kkeith29
I don't add stuff like that. I keep it simple.

The random token helps out with automated requests so I don't worry about a brute force attack. If someone wants to try and login a hundred times, I...
Forum: PHP Oct 17th, 2009
Replies: 4
Views: 319
Posted By kkeith29
Using $_SESSION['admin'] would be fine. Its pretty difficult to hijack a session anyway. You have taken the right security measures to prevent that from happening so there isn't much to worry about....
Forum: PHP Oct 17th, 2009
Replies: 50
Views: 5,041
Posted By kkeith29
So many people have asked for this code so I have updated it. Before I post the source I need to test it. Anyone willing to help?

The demo site is: http://www.box201.com/~kkeith/chat/
Forum: PHP Oct 17th, 2009
Replies: 6
Views: 769
Posted By kkeith29
You could extend it, but every time you called a class a new connection to the database would be made (which isn't good).

I would use the singleton method.
Forum: PHP Oct 17th, 2009
Replies: 6
Views: 769
Posted By kkeith29
You have a few options.

You can send an instance to each class.
Ex.

$db = new db;
$admin = new admin( $db,$id ); //send the db object to the class


Or use the singleton method. Look this...
Forum: PHP Oct 17th, 2009
Replies: 50
Views: 5,041
Posted By kkeith29
The chat is only good for one on one conversations (like for helping a client/customer). After testing it couldn't handle more than 10 people at a time (which was more than I expected).

If you are...
Forum: PHP Oct 16th, 2009
Replies: 107
Views: 3,570
Posted By kkeith29
Thats the same one I told you about. Its the flv-player.net one.

No problems with it.
Forum: PHP Oct 15th, 2009
Replies: 7
Views: 516
Posted By kkeith29
What exactly are you wanting?
Forum: PHP Oct 15th, 2009
Replies: 107
Views: 3,570
Posted By kkeith29
I have never had that problem (I must not of noticed it). You can just read the file and use explode with "\n" kind of like you did before. Or use array_filter right after the file() call.
Forum: PHP Oct 15th, 2009
Replies: 107
Views: 3,570
Posted By kkeith29
Here is my version of your tutorial. The css styling is incomplete as I didn't feel like doing it. This is xhtml strict validated. The php is untested but looked like it would work.


<!DOCTYPE...
Forum: PHP Oct 15th, 2009
Replies: 107
Views: 3,570
Posted By kkeith29
The new player you are using has a flaw in it. When I press play it starts the video, but doesn't show a pause button. I just goes directly back to play. So when I try to pause it, it darkens the...
Forum: PHP Oct 15th, 2009
Replies: 107
Views: 3,570
Posted By kkeith29
Sorry, I might of sounded at bit harsh there. Its 6:13am here and I haven't been to bed yet. I was just listing what I saw. I figured since others will be viewing and learning from it, the tutorial...
Showing results 1 to 40 of 1000

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC