chrishea 182 Nearly a Posting Virtuoso

Sorting a multi-dimension array takes some pre-work before you sort to make it work. Follow the link and have a look. I think that will solve your problem.
Click Here

chrishea 182 Nearly a Posting Virtuoso

Dani,
I think that it seems repetitive because the major category has an amalgamation of topics from the subcategories (e.g. Community Center conatins items from Geeks Lounge and Community Feedback). I'll get over it. Only a minor thing.

chrishea 182 Nearly a Posting Virtuoso

PHP normally only sees the data when you submit the form. If you want a PHP program to process the data 'live' then you will need some Ajax to do that. It can get data entered into the fields and call a PHP program to deal with it.

chrishea 182 Nearly a Posting Virtuoso

From a "growing the business" point of view, trying to be all things to all people makes sense but realistically it may be difficult to achieve. Thus, "being more welcoming to newbies" while having "more experienced, intelligent questions being asked" would try to tackle both ends of the spectrum. The first may be more achievable than the latter. You could have forums / sticky threads that are a lot more focused (e.g. a "Help with homework" or “experts exchange”) and that might help but keeping people around means that they need to get continuing value from the forums. I think that the Q&A format encourages the one-shot use. Once the question is answered (or not) the poster is gone until the next question (or maybe forever). It is probably a relatively small % who keep coming back to read the latest questions and answers.

I used to spend quite a bit of time on Daniweb reading posts and answering questions. I now find it pretty repetitive and my daily dose of Daniweb has become a quick look at a few of the forums and I'm out again. I find that the new format with the same thread showing up in multiple forums makes it even more repetitive and thus, less appealing. I agree with Deceptikon that experienced people are usually more self-reliant and don't use forums to get answers very often. The experienced ones who join / stick around are answering questions or they may be quietly reading the latest …

chrishea 182 Nearly a Posting Virtuoso

miniPHP Studio does allow you to build a desktop application using PHP. It's less than perfect and your app may require some re-engineering to go from a server to the desktop. It can work but you have to decide if it is worth the trouble or if you are better off just rebuilding it.

chrishea 182 Nearly a Posting Virtuoso

I don't know how accurate this is but you can give it a try.
Click Here

chrishea 182 Nearly a Posting Virtuoso

I find this to be the easiest approach. You need to format your output (in html) the way you want to see it saved to PDF. You write that output to a variable and then echo it initially to see that the format is correct. Then you can send that variable to html2pdf to convert it. This doesn't require a lot of special code in your program. The conversion process works pretty well. The most important rule is that your html must have a closing tag for all of your html (opening) tags. You can get away with taking shortcuts in html but this program expects everything to be matched properly

Click Here

chrishea 182 Nearly a Posting Virtuoso

There seem to be some PHP facilities for this. One example is:
Flashpageflip

Don't know if this will meet your needs but there are probably some other similar options.

chrishea 182 Nearly a Posting Virtuoso

To fit with your program flow, you probably need to use Ajax as mentioned in the previous post. In a simple situation, you can use some Javascript to pass variables to PHP by calling a PHP program with parameters. An example of passing the screen dimensions to PHP:

if ($_SESSION['scrn_info_sw'] <> "set") {
        echo "<script language='JavaScript'>
            var w = screen.width;
            var h = screen.height;
            document.location.href='default.php?user=$userid&p=$p&w='+w+'&h='+h';
            </script>
            ";
            $_SESSION['scrn_info_sw'] = "set";
    }

If you are trying to avoid screen refreshes and do everything interactively, then this obviously isn't the right solution but I thought that I'd show you this approach so you understand the options.

[I'm having a problem with Markdown so I left this as plain text. Need to do some experimenting!]

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

It seems that there should be an overview of the changes somewhere (home page?) and maybe a status of the implementation (something concise and up-to-date - more than just the "bugs" item on this forum). I notice that the IT Professionals Forum seems to be gone. Is there someplace on the site that I can find out what happened to it?

chrishea 182 Nearly a Posting Virtuoso

It seems that you might have a better chance of getting an answer by contacting NI Support or using their forum.

chrishea 182 Nearly a Posting Virtuoso

If you want to pass variables to another PHP module, you probably want to use session variables. This is pretty easy. You need a session_start() in every module where you are creating/using the session variables. You can then create a session variable almost like creating a local variable:

$_SESSION["a"] = "xxxxx";
chrishea 182 Nearly a Posting Virtuoso

Sending an email isn't that difficult unless you get into some of the options like sending attachments. I use a module called libmail that you can download and use to make it easy.

Sending text is like sending an email except for the format of the address to send it to. For more info click here.

chrishea 182 Nearly a Posting Virtuoso

It will be interesting to understand how this was done (and what, if anything can be done about it). It appears that the site is referencing php code within that site. If he somehow got a complete copy of the original (.ca) site, that would be one way. Another might be if he created dummy php modules that 'include' your php modules from your site. There may be other ways that someone can suggest. If you make a small change on the original site and it immediately shows on the .net version, then he has to be using some sort of dynamic approach.

Legally, since you know who is doing it, the (.ca) website owner (who presumably has the copyright) may want to send a "cease and desist" letter to him and copy his hosting company.

chrishea 182 Nearly a Posting Virtuoso

You can use an iframe to embed another site's page on your page. That way, you are seeing the original site (content) under a different domain/page. Links to other pages work but they are all displayed within the (same) frame so the page address in the browser bar won't change. This can be a very useful trick but it can also be an underhanded way to dynamically 'steal' other sites' content. The only obvious logic here would be that the person behind it likes your content and intends to promote his (her?) version AND/OR they expect enough mistakes keying .net instead of .ca that it will give them some traffic. I presume that in either case, they would want to surround your content with their own ads / links.

a (Javascript?) statement like:

if (window.top !== window.self)window.top.location.replace(window.self.location.href);

has been suggested by others as a way to determine that your content is running in an iframe and then redirect back to your page. If that is what this other site is doing, then this could negate it.

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

http://www.ioncube.com/

They also have a "pay-as-you-go" option where you can upload the code and compile it for much less than you would pay to buy the whole package.

Any protection can be broken but the "byte-code" approach used by Ioncube and Zend is the most secure. Encryption (like PHPShadow) can be easily broken. There are solutions posted on Forums like this that demonstrate how to do it.

chrishea 182 Nearly a Posting Virtuoso

The last time that I looked into it I think that I found that Customer Service for many of the manufacturers seemed to be pretty poor. A number of them make pretty good hardware (I think both Toshiba and Lenovo fell into that category) but if anything did go wrong, it was very frustrating trying to get the problem resolved. From what I could find, Asus and MSI service was somewhat more responsive than the others (and their hardware was also good). I ended up buying an Asus laptop.

All of the manufacturers seem to have service problems so this isn't that unusual but here is an example of issues that people have had with Lenovo:
http://forums.lenovo.com/t5/General-Discussion/LENOVO-CUSTOMER-SERVICE/td-p/7289

chrishea 182 Nearly a Posting Virtuoso

You never said what the purpose of this is or if you will be publishing the results here.

IDE: Context and occasionally Netbeans
OS: Win7

chrishea 182 Nearly a Posting Virtuoso

There are two ways to approach this. You can try to get a handle on how much they are willing to pay, charge them that and hope that the number of hours that it takes results in more than minimum wage; or, you can use the more traditional scientific approach.

Either way, you need to get their agreement to the requirement before you can come up with a cost. I suggest that you write down your current understanding of what they want (and/or what you are proposing) and have them review it. This could go back and forth a few times before you get there. If you are going to be scientific, once you know what has to be done, do an estimate of the time to do design, development, testing plus all of the customer interface time, then add a healthy fudge factor for the unknowns (and potential re-work once they see it and decide they need changes). Once you have the number of hours, then you need to come up with an hourly rate. Someone may suggest a good rate for an Android developer. If not, then you need to come up with a number that is somewhere between minimum wage and $100 / hr. Your experience, your location and what the market will bear all come into it. Your hourly rate will probably be in the $25 - $60 / hr range.

chrishea 182 Nearly a Posting Virtuoso

Gallery is well-rated but I don't have any experience with it in terms of ease of use or customization.

A good list of CMS systems can be found here. Many have demos available.

chrishea 182 Nearly a Posting Virtuoso

What makes you want to invent your own online shopping system when there are good open source systems available? These are written by knowledgeable teams of people and the systems have gone through multiple releases fixing security holes and other issues. These systems have thousands of hours of work invested in their development so they are quite rich in features compared to what you can afford to develop on your own.

If your purpose is to learn, then download one or two of these systems and see how they have been constructed. If your objective is to have a working ecommerce system, then pick one of the open source systems and use it. If none of them provides exactly what you're looking for, then give some thought to how important your unique requirements are. In many cases, it makes more sense to adapt to what the system provides. If the differences are critical, then consider modifying the open source system rather than building from scratch.

chrishea 182 Nearly a Posting Virtuoso

This may be a convenience for the user but it may also reduce the security and possibly the trust in the process. Credit card processors have high security sites because of the nature of the business. Sending the user to the third party site means that you don't have to get involved in the financial part of the process (you aren't collecting sensitive data). The user may have more concern giving the credit card info to you than they would giving it to a Credit Processor. You have a greater responsibility to make your site more secure, have a published privacy policy and so forth. You Credit Processor may not be happy with this either. If they no longer have direct contact with the customer, they may not take any responsibility if there are any problems.

chrishea 182 Nearly a Posting Virtuoso

Assuming that your intention is to protect a PHP script that you intend to sell, then you need an encoder and a license capability. I suggest that you look at IONCUBE (the Cerebrus version). A do-it-yourself solution (especially license only) is a waste of time. If you don't want to spend some money up-front to protect it, then you might as well give it away.

chrishea 182 Nearly a Posting Virtuoso

Could the standard for acceptance into UIIT be so low as to include those who are unfamiliar with such recent innovations as Google?

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

Most sites don't have this much traffic and yours may not either, especially at the start. You need a profile of how much activity would be associated with each user. 1000 users doing a single short query in an hour probably isn't a problem. If it is 1000 users who will all be active for an hour with a lot of bandwidth, cpu and database activity for each one, then it might be a problem. You might want to share the profile with some web hosting companies and see what they think.

If you realistically expect a lot of users and activity (but not immediately) then you may want to start with a shared hosting package with a web host who can move you to a dedicated server if you reach the point that you need it.

You might find this blog item helpful"
http://wassupblog.com/bluehost-cpu-throttling-and-dedicated-server-packages/

chrishea 182 Nearly a Posting Virtuoso

I haven't examined your code so I can't tell you how to 'fix' it.

The key question is why you want to do this. There is no harm done if there are gaps in the sequence but you will potentially be doing a lot of extra updating to renumber everything in order to avoid it. I presume that you are trying to avoid some sort of problem in another process by eliminating the gaps but I think that you need to re-examine that (other process) and see if you can change it to cope with the gaps. With a small database, the extra overhead may not be significant but with a database of any size it could be.

chrishea 182 Nearly a Posting Virtuoso

You aren't 100% clear on what you want to do however; I will say this, passwords are normally encrypted so that they aren't reversible. They are verified by encrypting what the member enters and comparing that with the encrypted version that is in the database. This makes them pretty safe and hard to abuse, even if someone does get access to them. The approach that you seem to be suggesting to cater to lazy people makes the passwords less safe. If you are going to have a login process, it makes sense to make it as secure as you can. Otherwise, what's the point?

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

Converting a Coppermine Picture Gallery installation to the latest version.

chrishea 182 Nearly a Posting Virtuoso

It might just be the code but you should check that your web host allows this. I know that mine doesn't.

chrishea 182 Nearly a Posting Virtuoso

It might be easier to get into some other kind of role first. You need to do some research. If you see some other types of jobs advertised and it isn't clear what sort of training and experience they require, don't be afraid to give them a call and ask. As per Ardav's question, part of your thinking needs to be about your long-term vs short-term interests. Where do you want to be in 5 or 10 years in terms of a career? If jumping into the work force immediately doesn't get you there, then you might want to reconsider your priorities. Some people like Steve Jobs are good enough (and impatient enough) that they can be successful without having a university degree behind them. For most of us, not having a degree can be a serious career limitation.

chrishea 182 Nearly a Posting Virtuoso

Education doesn't come with any guarantees but it might expedite your learning and it can be helpful in giving you credibility with a potential employer. Also remember that you might need to start somewhere else in order to get to where you want to be. In the IT industry, there are many different kinds of jobs so you could potentially start somewhere else even if your longer-term intent was to become a programming guru. There are networking, help-desk, computer operations, quality-control testing and various other kinds of jobs that may be available. They also need people who can do more mundane jobs like pulling cables through raised floors. Some of these types of jobs only exist in bigger companies so again you need to look at the ads and see what is available in your area. Doing something that's easier to get into while taking some (programming?) classes at night could be a combination that works.

chrishea 182 Nearly a Posting Virtuoso

Hi Greg and welcome to Daniweb.

Some observations for you:

  • Getting your own place, getting a job and learning web development are all separate items that might not be tied together. It might be ideal for you if they all came together (quickly) but that might not be realistic, at least in the short-term.
  • Depending on your time-frame to move out, a minimum-wage job may be all that you can find so you may need to plan based on that. I don't want to be a pessimist but people with college educations are taking minimum-wage jobs in some cases because they can't find anything else.
  • There are a lot of people with some amount of software / web development training, knowledge and experience. There are also people in third world countries with very good training and skills who can be hired online. Compared to what we expect to be paid in North America or Europe, they work cheap. I mention this because they would also be part of your competition.
  • Before trying to use web development as your ticket to an independent life style, I think that you need to determine if it is something that you enjoy and if you have the natural ability and personality to be good at it. You can start small by learning some HTML and CSS and creating some web pages. Once (if!) that is going well, you can start dabbling in PHP and databases (followed by using javascript tools like JQuery).
grekos commented: Very helpful, honest post. Made me think a little more realisticly then I previously was. +0
Zagga commented: Great post +5
chrishea 182 Nearly a Posting Virtuoso

I think that you need to consider / explain how you want to accomplish this in a bit more detail. It seems that you need to keep track of who is active and the time of their last activity. If they have closed the web page for your site, then you won't have anything running on the server for that session (that can access session or cookie data). You probably need some sort of timed task that will periodically check the time of last activity for whoever you believe to be online and mark them as offline if the last activity was older than some pre-determined period (e.g. 30 minutes).

chrishea 182 Nearly a Posting Virtuoso

The actual number of records being read from the database shouldn't have much impact unless it is really large. If you are displaying a very long list on a web page that will have some impact. The solution to that is to use "pagination" to display a fixed number at a time with navigation button to move forward or backward. There are JQuery modules and sample PHP code available if you do a search on "pagination".

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

You might want to read about the history of the Chrome Browser to get a feeling for what it takes to put something like that together.

http://en.wikipedia.org/wiki/Google_Chrome

You might want to read this one as well:
http://www.wired.com/techbiz/it/magazine/16-10/mf_chrome?currentPage=all

chrishea 182 Nearly a Posting Virtuoso

It sounds as if you are trying to create an email service like GMail or Yahoo Mail as opposed to an email client. If that is the case, I think that you are into something pretty complex if you try to build it yourself. There are many mail server systems available. The easiest course of action would be to install one of them and use that. If you really want to build something yourself, you can still download one or two of the open source mail servers to get an idea of the size and the complexity of the work involved. That might change your mind. You can find a comparison of mail servers (with links) here.

chrishea 182 Nearly a Posting Virtuoso

I suggest that you start with a logic diagram or some pseudo-code to lay out the logic of the program. If you can't do that, then there is no point in even worrying about the PHP to implement it because you'll never be able to debug it if you get that far. It isn't our job to do your homework! If you can't get to the point of having some code that is mostly working then you aren't properly prepared for this assignment. That might be because you haven't done / understood the work prior to this, you don't really have the ability to do this kind of work or the school program hasn't given you the proper preparation. Whatever the answer, there is no point in trying to get through this by having other people do it for you.

chrishea 182 Nearly a Posting Virtuoso

You need to clarify the information and your question. You say that the user can choose one form at a time. Does this mean that the user can choose to complete just one form or that he is required to complete more than one / all of them? Your question "How to allow..." implies that there is an issue with allowing the user to choose a form. It seems simple enough to provide the user with a list of forms and to let them click on a link to the page for that form. Is your issue that you don't know how to code this or is it something else?

chrishea 182 Nearly a Posting Virtuoso

You might want to do a search and find some sample systems and see how they were built. This is one that I found:
http://www.phpkode.com/projects/item/justreason-engine/

chrishea 182 Nearly a Posting Virtuoso

This comes up on a fairly regular basis and I don't think that anyone has identified a really good solution. There are one or two (PHP) programs that attempt to convert from Doc to text but they aren't 100% accurate. It can be done with COM but that doesn't help you on Linux. You could do it as a local program (with COM) rather than as a server-based program. In that case you would do the conversion and the upload from the user end. This is very "do-able" but has the obvious inconvenience for the user of having to download the program. A program like that could be done quite easily using Autoit.

Other ways at it could be:
* Convert it to PDF (using the Zend conversion tool) and store / display that.
* Have the user upload something other than a .doc file (e.g. RTF) that you may be able to interpret more easily. You could also have them save from Word into html directly but the output is a terrible jumble that you wouldn't want to deal with.
* Possibly try to incorporate Open Office components that might be able to do this.
* Just leave it as a Doc file and save / display that.

chrishea 182 Nearly a Posting Virtuoso

I'm sure that it is possible but an (easier) alternative (maybe a first step) would be to create a mobile-friendly version of your website that can be accessed using the browser on a smartphone or tablet. This is mainly a matter of displaying the screen so that it works on the smaller smartphone screen without making it necessary to use the scroll bars (at least horizontally).

chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

If you can't get any support, then maybe you don't want to use Bluepay.

chrishea 182 Nearly a Posting Virtuoso

I suggest that you contact BluePay and see if they have any sample code or know of anyone who has done this.
http://www.bluepay.com/developers/developer-support

chrishea 182 Nearly a Posting Virtuoso

Please use code tags when you include code.
Don't include your Database id and pw for your own protection.
Some web hosts don't allow you to create databases dynamically. You have to use their control panel / PHPMyAdmin. If that isn't a problem, then double-check that your db info is accurate.