Search Results

Showing results 1 to 40 of 45
Search took 0.01 seconds.
Search: Posts Made By: mschroeder
Forum: JavaScript / DHTML / AJAX 30 Days Ago
Replies: 6
Views: 673
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 Oct 29th, 2009
Replies: 2
Views: 476
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 Jul 20th, 2009
Replies: 16
Views: 862
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: JavaScript / DHTML / AJAX Jun 12th, 2009
Replies: 16
Views: 3,007
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 May 21st, 2009
Replies: 4
Views: 235
Posted By mschroeder
Google for Wildcard DNS (http://tinyurl.com/qrg3qm)
Forum: JavaScript / DHTML / AJAX May 21st, 2009
Replies: 4
Solved: Using jQuery
Views: 616
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: PHP Apr 10th, 2009
Replies: 11
Views: 588
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: JavaScript / DHTML / AJAX Apr 6th, 2009
Replies: 6
Views: 682
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: 682
Posted By mschroeder
Forum: PHP Mar 13th, 2009
Replies: 12
Views: 1,083
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,083
Posted By mschroeder
or UNIX_TIMESTAMP()
Forum: PHP Mar 12th, 2009
Replies: 12
Views: 1,083
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 10th, 2009
Replies: 13
Views: 575
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: 575
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: 575
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: 575
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: 575
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 5th, 2009
Replies: 5
Views: 285
Posted By mschroeder
If the information that you want is available in an rss feed, then i think that is the way to go. If the info you want to scrape is not available to you in the rss feed(s) then you will have to grab...
Forum: PHP Mar 5th, 2009
Replies: 5
Views: 285
Posted By mschroeder
Are they both database driven, and do you have access to both databases?
Forum: PHP Mar 4th, 2009
Replies: 5
Views: 544
Posted By mschroeder
http://www.swiftmailer.org/wikidocs/v3/sending/bounce_address
http://www.swiftmailer.org/wikidocs/v3/misc/logging

I believe both of those pertain to what you're looking for.
Forum: PHP Mar 2nd, 2009
Replies: 6
Views: 671
Posted By mschroeder
For starters, Zend Guard is a product for encoding your php in opcode *I believe the term is opcode*, it has nothing to do with securing a form or validating logins.

Second, I'm going to make a...
Forum: PHP Feb 28th, 2009
Replies: 14
Views: 1,621
Posted By mschroeder
indeed i believe that was referenced recently on slashdot, but I might be mistaken.

Some how though, I don't think "hacking my school's proxy server" falls into the national interest of science.
...
Forum: PHP Feb 27th, 2009
Replies: 14
Views: 1,621
Posted By mschroeder
Actually the math is 8^62 8 positions with 62 possibilities in each, special characters excluded 62 positions where each will only be 1 of 8 options yields significantly less possibilities.

Not...
Forum: PHP Feb 26th, 2009
Replies: 14
Views: 1,621
Posted By mschroeder
php simply isn't meant for this kind of thing, regardless of its intention, albeit yours is a pretty useless one. On the basis of an 8 character password, where each letter can be 1 of 62...
Forum: PHP Feb 24th, 2009
Replies: 3
Views: 704
Posted By mschroeder
<?php

$xYahooXML = '
<ysearchresponse responsecode="200">
<prevpage> /ysearch/web/v1/sunflower%20seeds?appid=e4j0dGfIkY0.VnPaj_m8JivWDmAdWAV50uTRuIaqvA--&amp;format=xml&amp;count=1&amp;start=0 </prevpage>...
Forum: JavaScript / DHTML / AJAX Feb 20th, 2009
Replies: 6
Views: 1,634
Posted By mschroeder
Why does the page value need to be passed in the url?
Will it always be the same as the hidden field view?

I ask because i see $_GET['page'] & $_POST['view'] being set to the same value.

Here...
Forum: PHP Feb 17th, 2009
Replies: 7
Views: 1,691
Posted By mschroeder
Well, if you can execute commands against the server, you could try this:


GRANT ALL PRIVILEGES ON {database}.* TO '{username}'@'{ip address}' IDENTIFIED BY '{password}' WITH GRANT OPTION;

...
Forum: PHP Feb 17th, 2009
Replies: 7
Views: 1,691
Posted By mschroeder
If the server is configured to allow access from the outside world, then just use the ip of the machine to connect to it.

At least in terms of cPanel you need to add external hosts to the...
Forum: PHP Feb 11th, 2009
Replies: 24
Views: 951
Posted By mschroeder
Glad to be of assistance. Please mark the thread as solved if we've resolved your issue
Forum: PHP Feb 11th, 2009
Replies: 24
Views: 951
Posted By mschroeder
<td width=""><p><?php echo nl2br(wordwrap($message, 75, PHP_EOL, true)); ?></p></td>


The wordwrap function breaks your content down with PHP_EOL which is a constant that is defined to match the...
Forum: PHP Feb 11th, 2009
Replies: 24
Views: 951
Posted By mschroeder
You could use the wordwrap (http://us2.php.net/manual/en/function.wordwrap.php) function and break the string at however long you would like.

Although there are some shortcomings, as it will treat...
Forum: PHP Feb 11th, 2009
Replies: 24
Views: 951
Posted By mschroeder
if you mean when typing in the textarea the text just continues on one long line, add wrap="physical" to the textarea markup.
<textarea name="" cols="" rows="" wrap="physical" class=""...
Forum: PHP Feb 10th, 2009
Replies: 15
Views: 886
Posted By mschroeder
Could you post an export of your table structure?
Forum: PHP Feb 10th, 2009
Replies: 15
Views: 886
Posted By mschroeder
You're positive you have a column named status in your table?
Forum: PHP Feb 10th, 2009
Replies: 15
Views: 886
Posted By mschroeder
$query = 'INSERT INTO user_notifications (`username`, `status` ) VALUES ("'.$username.'", "new to the site!" )';

mysql_query( $query ) or die( mysql_error() );


That is how I would handle the...
Forum: JavaScript / DHTML / AJAX Feb 9th, 2009
Replies: 7
Views: 2,087
Posted By mschroeder
Try this example out. This uses jQuery to grab the css properties you want. Even on elements that do not have inline styles.

This is what matters, it serves the jquery library from googles cdn,...
Forum: PHP Feb 8th, 2009
Replies: 4
Views: 1,124
Posted By mschroeder
Check out PHPMailer or Swift Mailer.
I prefer the prior, but u simply set the FROM address(es) or name(s), REPLY-TO etc...

Then when the user receives the email it looks like it came from...
Forum: PHP Feb 7th, 2009
Replies: 3
Views: 412
Posted By mschroeder
Excellent glad i could be of assistance.
Don't forget to mark the thread as solved.
Forum: PHP Feb 7th, 2009
Replies: 3
Views: 412
Posted By mschroeder
What you're describing sounds like you're looking for something like the __call() magic method (http://us3.php.net/manual/en/language.oop5.overloading.php)
Forum: PHP Jan 22nd, 2009
Replies: 1
Views: 834
Posted By mschroeder
Lets see if i understand what you're trying to attempt.

You have a physical xml file somewhere on your server, we'll call it file.xml and you have a php form. That should load the contents of...
Showing results 1 to 40 of 45

 


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

©2003 - 2009 DaniWeb® LLC