Jump to content

sircatsquid

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by sircatsquid

  1. Multitasking isn't my strong side I just read wrong on the last post. Yes that would work.
  2. Have access to PEAR since I installed it with the go-pear file. I just don't have access to php and apache. Can't see that PEAR has a error file :/
  3. Okay, so I moved my files to the host and Installed PEAR and the component I needed to make smtp mail's, problem is that as soon as NET_SMTP is installed I no longer get errors for missing things or code errors, When I run the script that uses PEAR the server stops responding on every page, FTP works fine. I can't check for error logs since it's on a host and I only have access to my www folder. What to do, anyone know's what could be the issue?
  4. I know that you aren't suppose to have duplicate data in the database but I need to have this data as backup in these tables in case the foreign data gets removed.Like all the users in one table and lets say blog posts in an other if the user gets removed I still want the username stored in the blog table. While writing this I just realized that I might not ever remove any data just flag it out and update the sensitive columns to blank. But still going to ask is there a way to link column data to be updated between two tables like the foreign key updates if the foreign data change id. My educated guess is that this is something solved on the server side and not in SQL.
  5. Here is where you read things a bit fast. "don't want to program because you want money." is not what it says. See the difference?"I don't do programming cause I want to make money." This is what it says."don't want to program because you want money." This is what you probably read So let me rewrite it and see if you understand the sentience in a different way.So what I'm saying is, money is not why I am doing programming. Second quote isn't stating anything about wanting any money at all but the opposite.Third quote is not stating that I know how funny it is but that it is not boring to do it.
  6. Haven't said I want money. I haven't said that I don't enjoy programming. I just don't have the focus on it right now. Now again I'm telling you working with it is not the same as just playing around.
  7. Yes but compared to your free time programming sessions you don't have a deadline and there isn't much of a consequence if you take a 2 week break from the problem. About what I wrote about the money is that I haven't learned all this cause I want to make lots of money which many beginners has as a goal. I learned this cause I was curious. I actually wanted to work in the transporting business and still do think it's something for me. But now my source of income is from my programming skills. That you can make lots of money is probably true but I don't aim for it. My aim is that stimulates my interest I wouldn't bother with a job what makes me tons of money if it is something that waste my time.
  8. You have more of a must when you work with it, witch kills some of the fun in programming.
  9. Sleeping, might be something worth trying. Though I do get all the hours I need, I get them at the wrong hours of the day. I don't do programming cause I want to make money. I didn't want to have it as a profession to begin with, but now I found my self doing it anyway and I even like it. But compared with having fun playing around I actually have a deadline and things that has to be done, so that is a bit of a stress factor. I've tried taking walks and they do work, I get new ideas during the walk but usually it's blank when I get back in. Should have some notepad with me maybe?
  10. I'm in a bit of a ruff point in my life and I haven't been able to get the focus I need on work. I get an hour done every now and then but never that total focus when the hours flyby. I'm soon done with a larger project that will be used in my next one. I'm guessing this also makes things go a bit slow. What do you guys do to get your focus on programming? Any hint on what I can do?
  11. Okay, then I know. I just used is_int cause it was shorter to write, But I was thinking if I could send multiple arguments to one function argument.
  12. I tried it and it looks like it does math. But I thought it was going to try both arguments can't find the doc for it not really sure what to search for. :/ is_int($arg1|$arg2): This results in the sum of arg 1 and 2 is thrown to is_int
  13. Just change where the root directory is in your Apache config file.
  14. Oh, PEAR I know where is other ways on the page to get it to but, I don't really get PEAR cause I never get it to install successfully or work. is that something normal with PEAR?
  15. Yeah I know, this just felt so far of. Should really make a automated testing script on all methods. Instead of manually test everything. I should really learn how to use a TDD library.
  16. I did find the problem but oddly I got the error at that place, cause the error was couple of hundred lines away :/ Had to use exit to find the location of the error, moving one line at the time till the error occurred again. But it's odd that the compiler can't tell where it was :S
  17. Is it possible that php says the error is in the wrong line.It's now saying that my object isn't an object. But if I var_dump, It says it's an object. $lang = ($type->getLanguage()) ? $type->getLanguage() : self::$ref->URL()->getLang();$langID = $lang->getID(); //Line: 84, this becomes an error untill I do exit on the next line then everything is OK. This is the var_dump of $lang: object(Language)#22 (5) { ["name":"Language":private]=> string(2) "en" ["lastUpdated":"Language":private]=> string(19) "0000-00-00 00:00:00" ["createDate":"Language":private]=> string(19) "2013-04-10 16:30:28" ["id":"Language":private]=> int(1) ["dataHandleFlag":"DataHolder":private]=> int(1) } Very confused.
  18. Yeah, but that didn't work either... why? Well the issue was that I forgot to refer to what class the constant was belonging to when assigning the default value of a privet property in the parent class.Funny cause it said the error was on the line there I was instantiating the child class... very confusing. Thanks anyway for sharing your thoughts, it's appreciated to get some hints.
  19. Looks like the problem is when I call it from the child class.Tried these two.. still don't work. parent::YEY testconst::YEY
  20. Um.. tried Google this but I only find answers about if making constant abstract...I just wonder if I can have constants in an abstract class. Cause I get this error of a undefined constant. This just a example of what I mean and not the actual code, does the same on the other hand. abstract class testconst { const YEY = 0; public function dosomething(){ if(testconst::YEY == 0) return "Awesome!"; }}class test extends testconst { public function something(){ return parent::dosomething(); }} What I was aiming for to have a base class that did some general thing I don't want to define in every class and I wanted to define some options for it.
  21. So I never seen anyone use copy to move the uploaded file to it's destination,if you followed any tutorial they would have used this function, very curious did youactually upload anything with copy to the destination?http://www.php.net/m...loaded-file.php Also you need to escape your user submitted data before having it in the query.http://www.php.net/m...cape-string.php You should look at mysqli since mysql is deprecated and will disaper from the near future.http://www.php.net/mysqli
  22. Yeah I did that at first but it didn't feel right also it's considered bad practice to use static like that. But yes one way of doing it.
  23. I've already got a solution for this but might get something I haven't thought of.I'm starting to have a lot of reference variables to send to each class what is the best practice here?I solved this with a resource class, that I send instead with all the references I need to send. Any other suggestions on this problem is appreciated. But I think this will work just fine, just curious if there is other ways.
×
×
  • Create New...