Jump to content

allenskd

Members
  • Posts

    50
  • Joined

  • Last visited

    Never

About allenskd

  • Birthday 07/12/1988

Profile Information

  • Gender
    Male
  • Location
    Puerto Rico

allenskd's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. To do a foreach you must know the data residing in your arrays therefore you need to start var_dump()ing your array to know the structure. foreach iterates an array, iterates = lets say there are 8 keys with values stored in an array so foreach goes from 0 to 7 (do note that arrays always starts at 0 unless its a custom one) supposing we have $array = array('1','2','3','4'); //The count would be 3 var_dump($array); in an array a key starts with zero (yes I'm repeating myself) So, imagine this 0 = 1 1 = 2 2 = 3 3 = 4 Now when we want to do a foreach foreach($array as $key => $value) { // foreach is a loop that will stop at the end of an array echo "Key: ".$key ".PHP_EOL; echo "Value: ".$value."<br />".PHP_EOL; }
  2. Hello My name is David González (no speedy gonzalez , and no I'm not mexican either). Anyways, I live in Puerto Rico, the island of corruption. I'm 20, turning 21 this July 12. I've started learning PHP last 2004-2005 and so on. Where I also met Daniel0 but I forgot already how we met. All I remember was that I typed like an idiot "hw u doin, lolz did u see tat! omgwtfbbq!" or something like that. Well, also on that time I picked HTML, CSS and a bit of MySQL. Anyways, a few years passed and I still had Daniel on MSN I don't remember what I said to him but registered into this forum which I use to keep shaping my PHP and well other things (eventually) and join other discussions. Eventually I regained my lost interest in programming and got back in shape to continue learning PHP best practices, solutions and best interest in application design. From there I picked Java and today just started dabbling with C# with Mono. OS I use is archlinux, I'm no windows hater either(or microsoft), just getting experience. The IDE I use is netbeans 6.7 (btw do people keep saying, "hey, 1337 people use notepads, n00b!"? :|) Personal life: Social life == . I love reading books, about to finish The Book Thief to start Dry Ice. Favorite bands: Cranberries, Dream Theater, Iron Maiden, Metallica *to be honest, just the S&M release :x*. I have a dog named brigand which sometimes I feel like kicking for crapping the floor ! Favorite series: House, Supernatural, Fringe, True Blood <Whine> Still kicking myself for joining a sucky institution that could resemble a school in a third world. I have learned almost nothing. Last semester was supposed to be "introduction to web applications"," introduction to application design". We picked up flowcharting, ok. The professor gave the shittiest lesson ever, and tried to cover the lesson within 3 days. Now, there wouldn't be much problem, except SHE didn't know how to explain. Every time she started explaining somehow sentence jumped to another unrelated sentence. Well, it'll drop it here lol, else it'll never end.. besides, we went into a Strike against the institution administration afterwards... blah blah </Whine> Favorite beverage: Heineken Sorry if there are some grammar errors, spanish here
  3. Really, the time it doesn't bother me that much but using that thing seems more counterproductive. It's a frame, I think, but to build applications on top of it doesn't sound like a pretty idea. I look through the PDF and it looked more like a sales man talking. complex, weird named directory structures. have you heard of KISS?
  4. Drupal gave me some trouble personally, its the annoying learning curve it takes a while to get familiar on how it works before you start developing a module or theme. I mostly use wordpress, Joomla! (yes I have used joomla but only to do some theming work, not really that hard to create themes) There is also SilverStripe, haven't used it but seems very attractive.. sadly it uses a template engine.. (just had a deja vu.. ) as for coding your own CMS, it's just the easy way out. It's okay to learn how to create a CMS but if you don't know much about security it can turn into the recipe for disaster.
  5. Well, you could check php.net/chown and try, but if it change... that's really a bad sign. You could also build an interface with your script to manage the files and continue managing them. Or you can log in to your SSH and chown them
  6. It's probably because Apache is running as root (or different group/user), so it creates the file that it only can manage. So you can't directly use ftp but still can manage it using your script, http://php.net/unlink or SSH to chown the file Then again thats as far as I get, lets see if other users have a different way to manage this
  7. I started looking at the topics name at PHP Help... it reminds me when I was browsing 4Chan site that was the day I lost half of my braincells :[ *facepalm* Well, true enough you could either force the users to learn how to ask questions... then again.. it's one scary thought. Of course you could also do CV's suggestion of "after post" that is to direct it to the search then if the post doesn't exist (which probably will do) create a new one which is probably better than having a real-time lookup. Now, truth is that not many people will know how to ask because they are new to PHP. Yet, there will be people once in a while that comes asking specific questions (paypal subscriptions... how to do X thing, i want to create X... ) if the javascript is tried, while the user writes the post title they become more aware of how irrelevant is their topic, so it is safe to say that they might attempt to rewrite the topic to see what results they get. Or not. It's hard to determine how many users will become aware
  8. What does $myusername carries? it's nowhere in the code so I assume thats the problem
  9. hmm.. I wonder if they are going to have a splash saying "Google OS Beta" :| Like corbin I also wonder how the GUI would look.. I just hope they don't take google's "web design" as inspiration.. Besides that, I wonder what default software will it ship(for audio, text editor etc), of course google chrome will probably be the main browser.
  10. You must attribute the column to ZEROFILL in phpmyadmin it would be UNSIGNED ZEROFILL
  11. well... you could start by adding a dot.. curl_setopt($ch, CURLOPT_URL, 'http://quiver.outwar.com/trade.php?tradeWith=7200&addItem=6919211&addHash='.$hash);
  12. Well, I don't know who decides these things anyway (site and forum features/updates) lol I'm already heartbroken and probably will cry at night but but I know... that deep inside... there is a kind soul (coughs blood) Anyway, well, the idea is there, just needs support and approval... *goes to overdose with valium and prozac*
  13. of course Oh well, was worth a try to mention, alright
  14. Hello! This is a feature suggestion for the boards. I don't know if you have been in ubuntuforums, google groups, or stackoverflow that features a set of relevant topics using the keywords typed in the title name It would help quite a lot to keep down redundant questions made in PHP Help forum imho (or maybe other forums) See attachment for example, taken from stackoverflow [attachment deleted by admin]
  15. I have done it once like a year ago but I forgot lol check out this thread should help you grasp how to do it http://www.phpfreaks.com/forums/index.php/topic,257920.0.html
×
×
  • 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.