Curtis Thompson
Forum Replies Created
-
hello…
short answer is i wouldn’t bother…google’s ad system does work pretty well and you get money for clickthroughs, but unless you have a set of products or a distinct service (like web design or video editing), you’re not likely to get clickthroughs very much. based on your post that it would be a personal site, i don’t think you’d have much luck with ads…and pretty much the same for sponsors – the net is just really too big for people to take on sponsoring or promoting a single site…
your best bet if you want to draw traffic is to do link sharing – put up a resources section and link to sites if they link to you – that helps your google ranking and then you can get more traffic on your site as well…and it’s free. always a good thing…
hope that helps!
sitruc
-
should be $tally++; (with the dollar sign)….
-
hello…
i sorta follow how you have your code but without seeing it i can’t say for sure (the generated html didn’t help much, unfortunately)…but there are 2 basic ways to do a tally in a loop.
——————
example 1
——————you have an array of elements like this:
$foo = array(“apple”, “orange”, “strawberry”);
and you want to have your pulldown increment situation – so you could do either of these:
$tally = 1; foreach ($foo as $f) { echo “<OPTION VALUE=\”{$f}_{$tally}\”>{$f}</OPTION>”; tally++; }or
for ($i=0; $i < count($foo); $i++) { echo "<OPTION VALUE=\"{$foo[$i]}_".($i + 1)."\">{$foo[$i]}</OPTION>”; }(btw – the { } chars around the variable in the echo are just to help php and the code reader see the full variable name – they border the variable. it can also sometimes be needed if you want to keep the quote string going, as if (for example) you have a variable called “$bar” – if you reference it in a quoted string as “$bar_text”, php will think the var name is “bar_text” – but if you do “{$bar}_text”, then it will see the correct var name)
——————
example 2
——————you have a hash/associative/key value array of elements like this:
$foo = array(“fruitApple”=>”Apple”, “fruitOrange”=>”Orange”, “fruitStrawberry”=>”Strawberry”);
then you can make use of the key value like this (very similar to the first example above):
$tally = 1; foreach ($foo as $k=>$v) { echo “<OPTION VALUE=\”{$k}_{$tally}\”>{$v}</OPTION>”; tally++; }does that do what you need?
sitruc
-
Curtis Thompson
August 18, 2005 at 11:58 pm in reply to: Reinstalling Safari without installing entire system? -
hello…
your best bet is probably a 3rd party freeware/open source tool like phpbb – writing a generic forum is sorta re-inventing the wheel at this stage of the net, unfortunately…
but i would also sorta caution against a forum for a small site unless you really think the traffic is there to support it – otherwise, you end up with a site that has a dead forum (not a good visual impression for new visitors) or you have to spend a bunch of time monitoring it and making sure random people don’t post in appropriate messages… :-/
hope that helps!
sitruc
-
hello…
[TNewman] “Is there on online resource that will further breakdown how to apply these? “
when you word it that way, it’s sorta hard to answer, unfrotunately. both perl and php can do just about anything you want them to do in terms of web apps (dynamic content, db interaction, etc. etc.), so to ask how you would apply them is sort of an endless spectrum. typically, you learn the languages and then as you have needs, you use the languages to meet the need. this is often db-driven content or shopping carts, but again – the sky’s the limit.
i think what you’re wondering about is how could you use these to make your site better? if so, then the best thing i can suggest is to just look around the net – you’ll see stuff all over that you can probably determine if it’s created by a scripting language or not and then that might give you some ideas on how you could do stuff like that in your sites…
sorry to not have a clear-cut answer for you, but it’s a very open-ended question…
sitruc
-
hello…
you’ve listed a few different types of scripts there that are not in the same family…java (sans script) is a very different thing and is not a scripting language but rather a full-fledged programming language. it can be used for java applets and servlets, which run in web environments, and it can also be used to make jsp pages, which are in fact more along the lines of traditional scripting languages such as asp and php. so here’s some categories:
1. server side scripting languages (jsp, asp, php): these are used to generate dynamic content as html – so if you have a database and you want to show content from it, for example…these languages would be used to pull the data from the db and then format the content and present that to the visitor as basic html that their browser understood.
2. javascript (either embedded or linked in an enternal .js file): javascript (not to be confused with java) is a client-side scripting language that runs in the browser’s memory on the user’s computer (that is essentially considered “client side”). it is used to dynamically change content and alter presentations (rollovers, etc.) in a web page once it is loaded.
3. css (either embedded or linked in an external .css file): css is client-side as well, and is used to control styles on the page – you create style classes (like large font, bold, and red) and then assign that class to items in your site (like a header, for example)
hope that makes some sense… 🙂
sitruc
-
hello…
typical is sorta (for better or worse) what the market will bear and it is also _very_ tied into your personal skill set and the type of work you’re doing. rates can vary from probably $30/hr up to $100+/hr depending on the these and other factors (length of contract, location, etc. etc.)…
any more details on what type of work you’re doing, your experience and location?
sitruc
-
hello…
i would say that the best place to research how to set up a site would be the net itself. in your case, i would suggest googling up some wedding sites and see what sorts of designs they use to see if it inspires you in any way. then, if you want to hand-code your html, just view the source of any site and start to play around in wordpad, or alternately, you can download a demo of a wysiwyg editor like dreamweaver and give that a shot as well…
there are a lot of books in the bookstore, but the reality is they all cost $50 or more, and i don’t think they really end up showing you much more than you could learn on your own for free by just poking around the net…
if you have any specific questions, you can also post here!
sitruc
-
hello…
[Bret Williams] “Maybe Curtis will suggest you take a year long php/mysql training class to learn to build a store, but I think you’d be reinventing the wheel on that one”
nope – writing shopping cart software can be relatively easy but it is typically something that you probably don’t need to be doing unless you have a very custom need or want to learn how…but when it comes to collecting payment info, it can get very confusing and risky quickly (storing cc info encrypted, etc.), so it can often be much easier to use existing products to handle that…
but if you want to learn, this book covers the basics:
https://www.oreilly.com/catalog/webdbapps/
sitruc