Search Results

Showing results 1 to 38 of 38
Search took 0.01 seconds.
Search: Posts Made By: mschroeder ; Forum: PHP and child forums
Forum: PHP Oct 29th, 2009
Replies: 2
Views: 602
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: 881
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 May 21st, 2009
Replies: 4
Views: 248
Posted By mschroeder
Google for Wildcard DNS (http://tinyurl.com/qrg3qm)
Forum: PHP Apr 10th, 2009
Replies: 11
Views: 604
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 Mar 13th, 2009
Replies: 12
Views: 1,116
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,116
Posted By mschroeder
or UNIX_TIMESTAMP()
Forum: PHP Mar 12th, 2009
Replies: 12
Views: 1,116
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: 582
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: 582
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: 582
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: 582
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: 582
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: 300
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: 300
Posted By mschroeder
Are they both database driven, and do you have access to both databases?
Forum: PHP Mar 4th, 2009
Replies: 5
Views: 566
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: 719
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,734
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,734
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,734
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: 746
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: PHP Feb 17th, 2009
Replies: 7
Views: 1,809
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,809
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: 967
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: 967
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: 967
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: 967
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: 899
Posted By mschroeder
Could you post an export of your table structure?
Forum: PHP Feb 10th, 2009
Replies: 15
Views: 899
Posted By mschroeder
You're positive you have a column named status in your table?
Forum: PHP Feb 10th, 2009
Replies: 15
Views: 899
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: PHP Feb 8th, 2009
Replies: 4
Views: 1,163
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: 438
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: 438
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: 877
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...
Forum: PHP Jan 12th, 2009
Replies: 9
Views: 646
Posted By mschroeder
in your parameter_check function
$_SESSION['error_list'][] = $error_list;
Forum: PHP Jan 12th, 2009
Replies: 9
Views: 646
Posted By mschroeder
that is because in the mysql_data_check function you are doing this:

$_SESSION['error_list'][] = &$error_list;

which i believe is setting and entry of $_SESSION['error_list'] equal to an array....
Forum: PHP Jan 12th, 2009
Replies: 9
Views: 646
Posted By mschroeder
I wasn't sure what you were doing on line 101 I assumed you were basically looking to see if there was an error and if so you were redirecting to page1 to handle the errors.

In which case you...
Forum: PHP Jan 12th, 2009
Replies: 9
Views: 646
Posted By mschroeder
in you functions you add string data to $_SESSION['error_list'] instead of actually making $_SESSION['error_list'] an array of multiple errors.

Then when you call foreach it is not finding an...
Forum: PHP Jul 17th, 2008
Replies: 22
Solved: editor
Views: 1,395
Posted By mschroeder
I would generally caution against fckEditor for its lack of MS-Word support. Other than that it runs pretty neck and neck with tinyMCE.

tinyMCE however has a wonderful paste from word feature that...
Showing results 1 to 38 of 38

 


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

©2003 - 2009 DaniWeb® LLC