Search Results

Showing results 1 to 40 of 1000
Search took 0.07 seconds.
Search: Posts Made By: kkeith29
Forum: PHP 9 Days Ago
Replies: 20
Views: 300
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 9 Days Ago
Replies: 20
Views: 300
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 11 Days Ago
Replies: 4
Views: 178
Posted By kkeith29
You most likely forget a closing }.
Forum: PHP 11 Days Ago
Replies: 6
Views: 193
Posted By kkeith29
Use either GET or POST. Don't use REQUEST as it has security flaws.
Forum: PHP 12 Days Ago
Replies: 12
Views: 270
Posted By kkeith29
Thats not php. Its html and javascript.
Forum: PHP 12 Days Ago
Replies: 12
Views: 270
Posted By kkeith29
You need to post the code.
Forum: PHP 12 Days Ago
Replies: 12
Views: 270
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 12 Days Ago
Replies: 3
Views: 193
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 14 Days Ago
Replies: 4
Views: 248
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 15 Days Ago
Replies: 3
Views: 168
Posted By kkeith29
Post your code.
Forum: PHP 15 Days Ago
Replies: 3
Views: 168
Posted By kkeith29
No one is going to write the code for you. You must try first before receiving help here.
Forum: PHP 15 Days Ago
Replies: 1
Views: 197
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 15 Days Ago
Replies: 104
Views: 2,839
Posted By kkeith29
Have you fixed the video yet?
Forum: PHP 16 Days Ago
Replies: 4
Views: 158
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 17 Days Ago
Replies: 6
Views: 260
Posted By kkeith29
Wow, I can't believe I missed that.
Forum: PHP 17 Days Ago
Replies: 18
Views: 7,459
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 17 Days Ago
Replies: 6
Views: 260
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: Geeks' Lounge 17 Days Ago
Replies: 15
Views: 583
Posted By kkeith29
No. I don't read anymore. I haven't read a book since middle school.

If a book becomes a movie, I am more inclined to watch it rather than read.
Forum: PHP 18 Days Ago
Replies: 5
Views: 207
Posted By kkeith29
Most of it is personal preference. Configuration files are really the only thing that needs to be protected.
Forum: Geeks' Lounge 18 Days Ago
Replies: 296
Views: 20,619
Posted By kkeith29
A playlist of Breaking Benjamin, Stone Sour, Sevendust, Three Days Grace, and some T-Pain to change it up.
Forum: PHP 19 Days Ago
Replies: 5
Views: 207
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 19 Days Ago
Replies: 5
Views: 207
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 19 Days Ago
Replies: 104
Views: 2,839
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 19 Days Ago
Replies: 3
Views: 183
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 20 Days Ago
Replies: 50
Views: 4,691
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 21 Days Ago
Replies: 50
Views: 4,691
Posted By kkeith29
Not yet.
Forum: PHP 21 Days Ago
Replies: 104
Views: 2,839
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 21 Days Ago
Replies: 50
Views: 4,691
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 21 Days Ago
Replies: 4
Views: 242
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 21 Days Ago
Replies: 4
Views: 242
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 21 Days Ago
Replies: 50
Views: 4,691
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 21 Days Ago
Replies: 6
Views: 374
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 21 Days Ago
Replies: 6
Views: 374
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 21 Days Ago
Replies: 50
Views: 4,691
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 23 Days Ago
Replies: 104
Views: 2,839
Posted By kkeith29
Thats the same one I told you about. Its the flv-player.net one.

No problems with it.
Forum: PHP 23 Days Ago
Replies: 7
Views: 425
Posted By kkeith29
What exactly are you wanting?
Forum: PHP 23 Days Ago
Replies: 104
Views: 2,839
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 23 Days Ago
Replies: 104
Views: 2,839
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 23 Days Ago
Replies: 104
Views: 2,839
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 23 Days Ago
Replies: 104
Views: 2,839
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