Search Results

Showing results 1 to 40 of 147
Search took 0.01 seconds.
Search: Posts Made By: mschroeder
Forum: JavaScript / DHTML / AJAX 7 Days Ago
Replies: 6
Views: 311
Posted By mschroeder
This is not an IE issue.
Get yourself Firebug for Firefox and the IE Developer Toolbar for IE7 -- maybe 6 and 8?

When I run through the example on firefox it is not removing the li tags from the...
Forum: PHP 13 Days Ago
Replies: 2
Views: 285
Posted By mschroeder
if you're making the form submit to itself then you need to make the index action in the index controller look for post data so it knows it needs to validate the form.


<?php

class...
Forum: PHP Sep 18th, 2009
Replies: 15
Views: 275
Posted By mschroeder
I've now tested it on both linux (centos) and windows (xp) and both php 5.2.10 and php 5.3.0 and don't see the dot directories showing up.


<?php
error_reporting(E_ALL | E_STRICT);

$path =...
Forum: PHP Sep 18th, 2009
Replies: 15
Views: 275
Posted By mschroeder
change that line to:

$parts = explode('.',$file->getBasename());
$extension = strtolower(end($parts));


apparently explode returns its value by reference.

Are . and .. showing? In my...
Forum: PHP Sep 18th, 2009
Replies: 15
Views: 275
Posted By mschroeder
post what is on line 97 of your file. There is nothing in my code that is passed by reference.

The indentation will be a little more tricky but i'll see what i can do.
Forum: PHP Sep 18th, 2009
Replies: 15
Views: 275
Posted By mschroeder
I am not sure what the point of $x is in that function besides being a counter. But this should solve your recursion issue.


<?php

//Path to starting point
$path = '/your/path/goes/here';
...
Forum: PHP Jul 23rd, 2009
Replies: 11
Views: 486
Posted By mschroeder
Just be very careful when working with values passed in the GET & POST arrays . Its extremely easy for them to be modified by the user and you have to be fully aware of this.

Probably the most...
Forum: PHP Jul 21st, 2009
Replies: 16
Views: 831
Posted By mschroeder
That is what I was trying to illustrate as well, that it was a path problem, aka the filename was missing from the path, the code itself was fine. The example i posted was from the manual...
Forum: PHP Jul 20th, 2009
Replies: 16
Views: 831
Posted By mschroeder
The problem you're having is $_FILES['userfile']['tmp_name'] is an actual filename. your destination is a directory without a file name. its trying to create a file named "uploads", which is a valid...
Forum: PHP Jul 20th, 2009
Replies: 6
Views: 265
Posted By mschroeder
Why even bother with all of the sanitizing when the php5 DOM does this for you.

Check out the following code...it is based on what you originally posted and creates the same XML. Its not a perfect...
Forum: PHP Jul 16th, 2009
Replies: 5
Views: 474
Posted By mschroeder
check out http://www.mysqlperformanceblog.com/ you will have to do some looking and some reading but provide a lot of really good information for performance tuning and/or what you can expect from...
Forum: JavaScript / DHTML / AJAX Jun 17th, 2009
Replies: 1
Views: 758
Posted By mschroeder
I think I have achieved what you were describing. There is some consolidation that could occur as there is minor repetitive code.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
Forum: JavaScript / DHTML / AJAX Jun 12th, 2009
Replies: 16
Views: 2,753
Posted By mschroeder
@essential

I may be wrong, but wouldn't the onblur event mean the field needs to lose focus?

If its auto-submitting the form then it should probably wait for a delay indicating the user has...
Forum: PHP Jun 9th, 2009
Replies: 12
Views: 1,216
Posted By mschroeder
This is such a common topic that can be debated in so many different ways. The fact is BOTH the unix timestamp and mysql date fields are standards and php and mysql both provide the necessary...
Forum: PHP May 21st, 2009
Replies: 4
Views: 220
Posted By mschroeder
Google for Wildcard DNS (http://tinyurl.com/qrg3qm)
Forum: JavaScript / DHTML / AJAX May 21st, 2009
Replies: 4
Solved: Using jQuery
Views: 592
Posted By mschroeder
They are two different technologies:

php is server-side and will be executed on the server with the results being displayed to the user.

jquery is client-side and will be executed in the...
Forum: JavaScript / DHTML / AJAX May 15th, 2009
Replies: 9
Views: 2,593
Posted By mschroeder
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">...
Forum: PHP Apr 10th, 2009
Replies: 11
Views: 563
Posted By mschroeder
Actually in a purely PHP file, the closing tag ?> should be excluded.

It is necessary when you are jumping in an out of php control structures that are mixed with html or some other kind of...
Forum: PHP Apr 9th, 2009
Replies: 10
Views: 423
Posted By mschroeder
Then the problem is in the code prior to:


echo '<tr>'.
'<td>'.$row['title'].'</td>'.'<td>'.$row['category'].'</td>'.'<td>'.$row['year'].'</td>'.
'<td>'.'<font size="2"><a...
Forum: JavaScript / DHTML / AJAX Apr 6th, 2009
Replies: 6
Views: 665
Posted By mschroeder
There are some fine Ajax/Javascript libraries that exists:

http://jquery.com/
http://www.prototypejs.org

Are two very prominent ones, but there are countless others.
They all have Ajax...
Forum: JavaScript / DHTML / AJAX Apr 6th, 2009
Replies: 6
Views: 665
Posted By mschroeder
Forum: PHP Mar 15th, 2009
Replies: 15
Views: 93,267
Posted By mschroeder
Well you're definitely right. regex is definitely slower when compared to str_replace especially as the length of the string increases. Although return str_replace(' ', '', $str); is not the same as...
Forum: PHP Mar 13th, 2009
Replies: 12
Views: 1,724
Posted By mschroeder
Do you possibly have cookies disabled in FF and have php configured to use a cookie to store the session id?
Forum: PHP Mar 13th, 2009
Replies: 15
Views: 93,267
Posted By mschroeder
If it solves your problem how you need it to solve your problem then its a solution. There is always more than one way to skin a cat.
Forum: PHP Mar 13th, 2009
Replies: 12
Views: 1,058
Posted By mschroeder
That is because your column type is set to datetime or timestamp not certain which one actually produces that as I don't use the mysql datetime or timestamp data type.

To store a unix timestamp...
Forum: PHP Mar 12th, 2009
Replies: 12
Views: 1,058
Posted By mschroeder
or UNIX_TIMESTAMP()
Forum: PHP Mar 12th, 2009
Replies: 12
Views: 1,058
Posted By mschroeder
Store a UNIX Timestamp (http://en.wikipedia.org/wiki/Unix_time) in that mysql column.


<?php
$iCurrentTime = time();


$iCurrentTime would result in an integer like: 1236884436
Which is the...
Forum: PHP Mar 12th, 2009
Replies: 15
Views: 93,267
Posted By mschroeder
GAH! Just realized how old this thread is, how did it get resurrected?!:-O
Forum: PHP Mar 12th, 2009
Replies: 15
Views: 93,267
Posted By mschroeder
For starters, functions in loops should be avoided whenever possible. e.g. for($i = 0; $i < strlen($s); $i++) also, you're doing a lot of extra work here.

I would suggest something like this:
...
Forum: JavaScript / DHTML / AJAX Mar 11th, 2009
Replies: 17
Views: 1,567
Posted By mschroeder
Can you link to the W3C DOM Specs where you found that?

Dom Model 1
http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-22445964
...
Forum: PHP Mar 10th, 2009
Replies: 2
Views: 239
Posted By mschroeder
header( 'refresh: 5; url=http://www.example.com' );

Can also be a url relative to your site, like: home.php etc.
Forum: JavaScript / DHTML / AJAX Mar 10th, 2009
Replies: 17
Views: 1,567
Posted By mschroeder
nav33n: well that rules out the <b></b> tags then. haha. i've had issues with IE and FF going from one to the other and having broken functionality when I have a broken tag in the javascript. When I...
Forum: JavaScript / DHTML / AJAX Mar 10th, 2009
Replies: 17
Views: 1,567
Posted By mschroeder
Before i propose any other solutions, did you try removing the <b></b> tags from this line: <input type="checkbox" name="chkRecipeBook" id="chkRecipeBook"...
Forum: PHP Mar 10th, 2009
Replies: 13
Views: 552
Posted By mschroeder
But the notices are important, I always like to develop with error_reporting( E_ALL | E_STRICT ); In a production environment I NEVER leave error reporting enabled.

The problem with the notices...
Forum: PHP Mar 9th, 2009
Replies: 13
Views: 552
Posted By mschroeder
It's the escaping in your html in this area


if ( empty( $_POST ) )
{
echo "<table border=\"0\" cellspacing=\"3\" cellpadding=\"3\">\n";
echo "<form method=\"post\"...
Forum: PHP Mar 9th, 2009
Replies: 13
Views: 552
Posted By mschroeder
Try this. I made several changes, including moving an IF/ELSE statement up into the prior control structure. I also revised your sql statements slightly.

See if this does the trick and if you have...
Forum: PHP Mar 9th, 2009
Replies: 13
Views: 552
Posted By mschroeder
That is a Notice not an error, what it is telling you, is that your code is checking the value of $_SESSION['uid'] even though the array key 'uid' does not exist in the $_SESSION array.

replace:
...
Forum: PHP Mar 9th, 2009
Replies: 13
Views: 552
Posted By mschroeder
What is the actual error message you are getting, and what is the value of $_SESSION['uid'] in this part of your code?


if($_SESSION['uid']){
/** Add the following line **/
echo...
Forum: PHP Mar 9th, 2009
Replies: 1
Views: 282
Posted By mschroeder
I'm not sure if there will be a reliable alternative for the time being.
This is due to the Y2K38 problem. http://en.wikipedia.org/wiki/Year_2038_problem
Forum: JavaScript / DHTML / AJAX Mar 9th, 2009
Replies: 17
Views: 1,567
Posted By mschroeder
Does all that javascript do is show and hide a DIV?
Showing results 1 to 40 of 147

 


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

©2003 - 2009 DaniWeb® LLC