Regular Expression Help

Trying to get a reg exp. working to match a specific word, then any number of any characters, then a specific closing character, pattern like this:
[sku-price:*] where the asterisk can be any data, including dashes (-)
Tried this based on what I’m reading from tutorials, but it isn’t working:

preg_match("[[sku-price:.*$]]",$string,$matches);

Thanks

Continue reading

Web developer skills

So I’ve been doing web development for a few years (~6) on and off and I’d like to start doing more of it. The only thing is that I’ve picked things up as I’ve gone. I’m curious, for all the paid developers, how often do you use OOP? I’ve done C++ and Java OOP, but it’s been many years (before I was doing web development) and I need to do some refreshing. I need to work on more efficient programming. Can anyone give me any tips or is there a site with good example projects to try out? I feel like everything I learn, I’m just mediocre. Thanks

Continue reading

Please Help w/ Mulitple Javascript Pop-ups

i searched for a pop-window script that allowed me to pass paramters within the button because I plan on using multiple pop-up windows.

the script below doesn’t work.
i got it from this place here:

<script "_javascript" type="text/_javascript">
<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*(( screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,men ubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
if(win.focus){win.focus();}}
// -->
</script>
<a href=_javascript:NewWindow('whatever.html','mywin','320','240','yes','center')>

please help
Continue reading

Any good feedback / Comment scripts?

looking for any good good feedback / comment scripts.
the ones i’m bumping into seem to suck.

thanks

just general feedback/comments? or to comment on an item?

just for general feedback / comment.
sorta similar to wordpress but i don’t need wordpress

i need to practice my shit, i can write one for you if you’d like?

thanks but I don’t want have you go through all that trouble.
Continue reading

Do you guys think website design is important? When shopping? Let’s compare sites and

Examine things a bit further. They both do a similar amount in sales, etc. So do you guys really think an amazing website design is worth it? I’m curious because I’m in the middle of a site re-design and wondering will the new site really be worth it?.. Lets say those "cheap" sites below upgraded to a new design, do you think they’d even benefit from it?

Here’s a few examples:

Poorly designed, over content filled, cheap looking sites:
Continue reading

html/css form elements browser specific display issues

okay, unfortunately I can’t post the site to review, but the issue is this…

i have a contact form. The "text" input elements look fine, but the textarea input element is extended width in firefox.

When viewed on a mac with firefox all form input elements are stretched in width

im sure it’s something basic i’m missing, but I’m pulling my hair out here!@!

.contactform input {
	font-size: 14px;
	color: #cccccc;
	border: 1px solid #cccccc;
	padding: 3px;
	margin: 3px 0px 3px 0px;
}

.contactform text {
	font-size: 14px;
	color: #cccccc;
	border: 1px solid #cccccc;
	padding: 3px;
	margin: 3px 0px 3px 0px;
}

.contactform textarea {
	font-family: Tahoma;
	font-size: 14px;
	color: #cccccc;
	border: 1px solid #cccccc;
	padding: 3px;
	margin: 3px 0px 3px 0px;
}

.contactform submit {
	font-size: 14px;
	font-color: #000000;
	color: #000000;
	background-color: #cccccc;
	border: 2px solid #999999;
	padding: 3px;
	margin: 3px 0px 3px 0px;
}

Continue reading

not familiar with git, can someone help?

i’m trying to edit some files for someone and their host doesn’t have ftp. they use git. i have the files downloaded in a clone dir but i can’t seem to push it back to the server. i get to this point and get stuck:

Please enter the commit message for your changes. Lines starting
# with ‘#’ will be ignored, and an empty message aborts the commit.
#
# Committer: Nn <
/* */>
Continue reading

VPS hosting: Verio or Hostgator?

A client is paying $90/mo for Verio hosting.

"Enhanced Plan"

It looks like you could get the same for less at Hostgator:

Plus IME Hostgator has better customer service (I waited for 10 minutes with no response at Verio; Hostgator helped me in like 15 seconds).

I have no personal experience with VPS so I defer to TWL’s expertise.

Should I have him change over to Hostgator?

I’d go with MediaTemple. (), Outstanding support, responsive service, flawless up-time, awesome control panel, etc..

Continue reading