Jump to content

sfc

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sfc's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Question 1) Is the only and proper way to call a parent function "parent::function()"? Are there other/better ways from within a child function? Question 2) What are the deciding factors for when to make a function or attribute static? How do you make that decision? Assuming 5.3... Thanks.
  2. That's what I did. I put it in the ini file. This is my first time running on a remote server so I'm not familiar with this.... Thanks!
  3. I don't understand how to use this function with my code. Do I put it in an include file for each page?
  4. Warning: require_once() [function.require-once]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/cernem5/public_html/includes/form_functions.php on line 2 I looked through all of the php.ini file and I can find this setting. Any suggestions? I contacted the guys at inmotion who are hosting my vps and they said they had to make a change on their server since I didn't have root access. Is there a way in my coding to avoid this problem? Here is the code that is causing all the problems: <?php echo date("Y", time()); ?>
  5. It is saying: 5.2.13 if I run it from my PHPEd IDE, which opens http://localhost:8080/file:/C:/wamp/www/xhtml-css/contact-us.php but if I type in http://localhost/xhtml-css/contact-us.php it says 5.3.1. Apparently I have something configured wrong. Is there a place we can move this so I can have someone help me understand what I am doing wrong? Thanks!
  6. I am running WAMP on windows 7 and PHP 5.3.1 and I am getting this error: Fatal error: Call to undefined function checkdnsrr() in C:\wamp\www\xhtml-css\includes\form_functions.php on line 80 According to the research I did checkdnsrr() was available on the Windows platform at 5.3 so why am I getting this? Here is where I make the call: if ($isValid && !(checkdnsrr($domain,"MX") || checkdnsrr($domain,"A"))) Any ideas?
  7. Figured it out...the code I copied had debug mode turned on...sorry for bothering you. Thanks for asking for the code...it made me go back through it.
  8. I'm getting a strange response using PHPMailer where it is echoing the gmail server responses. SMTP -> FROM SERVER:220 mx.google.com ESMTP e20sm5319142vcm.40 SMTP -> FROM SERVER: 250-mx.google.com at your service, [68.4.142.3] 250-SIZE 35651584 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH 250 ENHANCEDSTATUSCODES SMTP -> FROM SERVER:250 2.1.0 OK e20sm5319142vcm.40 SMTP -> FROM SERVER:250 2.1.5 OK e20sm5319142vcm.40 SMTP -> FROM SERVER:354 Go ahead e20sm5319142vcm.40 SMTP -> FROM SERVER:250 2.0.0 OK 1279116570 e20sm5319142vcm.40 I don't tell it to echo anything. Any ideas? Thanks
  9. I thought private methods couldn't be called by child classes and protected could but not by anything outside the class or sub-classes. Am I wrong?
  10. I haven't seen "!==" before. Isn't it suppose to be !=?
  11. So I am a little confused. The user class extends databaseobject so I should be able to call a protected class from the instantiated child right? i.e. $user->save(); Where save is protected method in the databaseobject class. But when I just did I got an error saying that I called a protected method. As soon as I change the save() method to public it worked perfectly. Can someone explain? Do you need more information? Thanks!
  12. Thanks guys...still wrapping my mind around all this.
  13. That's exactly what I want it to do. If I make the method static, will that change?
  14. If I have a class DatabaseObject that has the follow method: protected function attribute () { return get_object_vars($this); } And I call this method from the class user which extends the DatabaseObject class (i.e. $user->attribute), what will "$this" refer to? The parent or the child? Thanks!
  15. Is it safe to assume that this is the best/only way to do this?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.