-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
http://us2.php.net/operators.increment
-
obviously because I'm psychic.
-
pretty self-explanatory... there's a problem, and it's on the 37th line of your code.
-
The problem is on line 37.
-
order of operation...
-
mm..think i'd rather do this: $text = preg_replace_callback('/(\$[^=]*=)/s',"toLower",$text); madtechie's would make make the values lowercase also..
-
well the only way you are going to get stuff to overlap is by using absolute positioning. Perhaps you don't want to use absolute positioning because you are not using it within the context of the div? Setting the position to relative in #topnav will then make any positioning of things inside it relative to it, instead of the document. So you can then use absolute positioning for #links and it will be relative to to #topnav #topnav { position: relative; width: 757px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; } #links { position: absolute; top: 20px; right: 0px; width: auto; }
-
...and what does this have to do with php? thread closed.
-
How to clear all html tags except some from html file using regex?
.josh replied to dpacmittal's topic in Regex Help
example: remove all tr tags: $content = preg_replace('~</?tr[^>]*>~i','',$content); note: that does not remove content between the tags. -
maybe if you wrote like a normal human being I'd be able to answer your question.
-
Copy mysql data into another table with another mysql user?
.josh replied to Cory94bailly's topic in MySQL Help
so why can't you change the permissions to grant access to it? -
sounds like a job for positive/negative lookahead/lookbehind/lookaround.
-
how can i delete my thread or question
.josh replied to vinpkl's topic in PHPFreaks.com Website Feedback
Because editing is disabled 10 minutes after post creation. hi Daniel0 As an administration u have the control of the admin panel. so is it possible for you to delete my thread. vineet You're missing the point. Dan is not saying he can't. He's saying he won't. -
yes. but to be fair, PHP is not the first time I've ever touched programming. But on the other hand, one of the first languages I ever learned was qbasic (technically i learned some gwbasic before that, but I don't really count that beyond getting my feet wet). I was like 6 years old. My dad used to take me to his work (he worked as an editor for a newspaper) and I would sit there doing nothing all day but there was a computer at the desk I sat at and I knew basic DOS commands and I found qbasic and I started learning straight from the help section. I opened up the index, started at 'A' and went down the list. Did I know what everything was automatically? No. Did I know the "bigger picture" and how things are more or less useful when working with other things or being used at certain times? No. A 6 year old CV started out valuing the simple things like hey cool! I can make a pixel show up on the screen by doing pset! But then it progresses from there. Writing out 100 psets for 100 pixels made way to loops by the time I got to 'F'. 25 years later, I know what to look for in a manual. I know how to use a manual. Admittedly, most manuals are shitty. At best, they have the details, but they are presented in a way by authors who assume you know it to begin with. But as many have stated, PHP has an exceptional manual. Shows the format of a function. What it expects, what it will return, what happens if it doesn't get what it expects, tons of user contributed notes, clarifications, code snippets exploiting it or working around limitations, writing prev. version workarounds, etc... seriously, can you ask for anything more? But that's obviously not an issue or exception in this case, since OP has been programming for 4 years, does it for a living, and can program anything under the sun, right?
-
yeah i know in general they mean the same thing, which is why I thought maybe some other language out there chose to call it attribute instead. Just curious.
-
Don't wanna nitpick, but technically 'classvariable' would be a property, not an attribute. Is it called an attribute in some other OOP language? Just wondering where you got that term from.
-
I was hoping for an opportunity to learn some arcane reason why his method is better. Stuff like that is gold. But considering I just read in some whine thread of his that he's been programming in php for 4 years and never knew it supported OOP makes me think I'm about to be disappointed.
-
well you know what this isn't the first thread he claimed he was being "picked on" and I'm tired of hearing his whining. Seriously, take off your little sister's jeans, I can hear your balls screaming all the way over here.
-
So do your homework before saying something. This is a php help board, and a php help forum, not a "I want to whine because someone told me I'm wrong" forum. Maybe it's because most tutorials out there are very poorly written. Funny how we show up as #1 in organic search on "php help" on google. It's obviously because you're right and we're wrong. www.php.net actual experience. 4 years programming in php and you've never heard of classes in php? seriously? p.s.- Thread closed (because you're breaking the rules by posting this garbage here, not because I'm picking on you). edit: nevermind I'm moving it to misc. section. Open, for now. Post a legitimate bitch or it will be closed for real.
-
(php) search phrase to populate side columns with terms..
.josh replied to grk101's topic in PHP Coding Help
coming up with a system to link similar stuff like that is not really going to be the hard part. You can do something as simple as have a table of words with ids and a list of ids of all other words you want to be associated with it. The hard part is mapping out what words relate to each other. There is no "set in stone" list. Your example links those other words to pizza because they happen to be toppings on a pizza. Well that's an arbitrary link. You will not, for instance, see mushroom show up on a list of words for pizza in a standard thesaurus (or visa versa). -
maybe he's having trouble understanding the manual since its not in leetspeak.
-
I asked an honest question. You aren't the only one around here that "does this for a living." The fact that you prefer that method over mod rewrite in my mind either makes you retarded or brilliant. I was trying to give you the benefit of the doubt, because I'm always up for learning something. I'm humble enough to recognize that I'm not perfect. If I were going to just write you off as retarded I would have expressed myself in like manner. Like right now. You're being retarded for assuming that I'm out to get you.
-
ah i don't have notices turned on. I got Array ( [0] => Array ) from ^^
-
er.. well when you try to explode an array, for instance: $x = range('a','z'); $y = explode(' ',$x); explode evaluates it as a string of value "Array" and explodes the string based on the delimiter.