chrishea 182 Nearly a Posting Virtuoso

Please use code tags when you include code and clarify your question.

chrishea 182 Nearly a Posting Virtuoso

I think that you are asking us to do part of your project for you. Why don't you do a bit of research first (there is lots of info available if you do some searching) and present the results here and ask for some feedback. That way you are adding some value.

chrishea 182 Nearly a Posting Virtuoso

If what you want to do is to show it formatted (interpreting all of the HTML tags rather than showing them with the text) then you need to display what is in the db as an html page. Simplistically, read what's in the db and echo it to the screen.

chrishea 182 Nearly a Posting Virtuoso

You don't say what you actually tried or were thinking of trying. If the site had some sort of API then you could use that but there is no indication of that so I assume that this will be a "screen-scraping" exercise. You can read the page periodically and extract the data from it. You could do this as raw html with embedded data or you could use Curl or other screen-scraping tools to make it easier.

chrishea 182 Nearly a Posting Virtuoso

You haven't provided too much info on the program or the course so there isn't much context for your question. I would interpret "management of IT" as being the impact on Corporations (and their IT departments) of the future direction of one of these technologies. Your ability to provide a "substantive analysis" will depend on your ability to find good source materials about the expected technical direction and the impact that will have. Your instructor's expectation of what a substantive analysis should contain will depend on the level of the course (high school, PHD or somewhere in between!).

With respect to HTML5, it probably will have a significant impact since web sites are becoming more graphics-intense as time goes on; and, HTML5 will have some similar capabilities to existing vendor products, especially Flash, that currently fill much of that need. Is there enough info available to do a "substantive analysis". You'll only know that once you start digging.

chrishea 182 Nearly a Posting Virtuoso

When PHP gives you an error, you need to spend some time desk checking the code to see what you missed. That is a part of programming in PHP as much as writing the code. PHP can't always pin it down to the exact line but it is often the preceding line and occasionally it can be many lines before. When it tells you that something is "unexpected", it almost always means that you have a syntax error on, or prior to, the line number that it reports to you. So, if you carefully check the syntax on line 54 and the immediately preceding line, do you see anything missing?

chrishea 182 Nearly a Posting Virtuoso

What is a Proxy Server?
http://en.wikipedia.org/wiki/Proxy_server

Using a Proxy Server from PHP:
http://forums.digitalpoint.com/showthread.php?t=242255

It's all out there. These are pretty straightforward.

chrishea 182 Nearly a Posting Virtuoso

if you post your code with code tags, that would help.

chrishea 182 Nearly a Posting Virtuoso

A couple of thoughts:

  • Precede every entry with the keyword(s) that they entered, then the 500 char just to emphasize that there is a connection.
  • Scan each entry for the keyword / phrase and then show the result as "...keyword remaining 4xx characters" Thus the result in these cases will start with the keyword with whatever follows it.
chrishea 182 Nearly a Posting Virtuoso

The first one has little or nothing to do with the last two. Very few programmers will invent anything of consequence and very few will get rich by programming. Thinking that they are connected may be the result of a naive understanding of how some of the successful companies like Microsoft, Facebook and Google came about and how difficult it is to actually do that. Thousands of people have ideas and try to implement them. A few of them are good, original ideas; they manage to get some funding and become interesting enough that one of the big companies buys them out (and then they do get rich). The odds are probably worse than walking into a Casino or going to the Track and hoping to come out rich. None-the-less, people keep doing all of those and a few do come out as winners so if you don't mind the odds then go for it.

chrishea 182 Nearly a Posting Virtuoso

Do you want to write this as a learning exercise or because you think that you need to? There are open-source schedulers available that can probably do a lot of what you need (and maybe a lot more). One example is here. I'm sure that if you do some searching you will find more of them.

chrishea 182 Nearly a Posting Virtuoso

There isn't a standard reporting tool like Crystal Reports (that I am aware of) that you can use from PHP. You will probably have to "roll your own" and that is what Cwarn23 is implying with the references he provided. You can see a discussion on this topic at:
http://stackoverflow.com/questions/747103/something-like-crystal-reports-for-php
Even though it's a couple of years old, I'm not aware that anything has changed.

There are a few mysql reporting tools but I don't know if you can call them from PHP. A thread with a few suggestions:
http://stackoverflow.com/questions/2468188/i-am-looking-for-good-free-reporting-tool-for-mysql-databases-web-or-windows

I find it simplest to create reports in html and then feed them into a converter that produces a PDF for you. You can see more on that at:
http://html2pdf.fr/en

chrishea 182 Nearly a Posting Virtuoso

A few observations:

  • There are a lot of capable technical people out there that you would be competing with. Many are in countries like India, Pakistan and the Philippines and willing to work at a much lower hourly rate than we would normally expect in North America. Have a look at ODesk where you will find a lot of jobs posted and people posting their skills and rates.
  • Potential employers are often looking for people with a broad range of skills and meaningful experience. If you look at some of the ads on Craigslist or Kijiji you will probably see that pretty quickly. Some of the ads read like vegetable soup. Whether they find people with that range is hard to say.
  • There are some jobs where you can focus and don't necessarily need quite the same range of tech skills. There is some demand for people to configure and maintain Content Management systems like Wordpress and Joomla. There is also demand for SEO people who have a different range of knowledge and skill and it is less technically intense.
  • Working freelance on a project-to-project basis is pretty challenging since you never know where your next paycheck is coming from and you need to be constantly marketing and providing responses to ads while trying to get the work done for the current project. Having some ongoing customers is much more secure if you can find some.
  • The initial learning curve will be pretty steep and it will take quite …
chrishea 182 Nearly a Posting Virtuoso

There are other ways to produce a PDF file but I find it simplest to create the output in html first, make sure that it is all displaying correctly and then let HTML2PDF convert it. You need to ensure that the HTML is complete (e.g. every opening tag has a closing tag) but as long as you do that, it works pretty well.

chrishea 182 Nearly a Posting Virtuoso

If I remember correctly, the most common way is to link to the appropriate php module with the javascript variable as a parm. This is an example:

echo "<script language='JavaScript'>
			var w = screen.width;
			var h = screen.height;
  //alert('You are using ' + w + 'x' + h + ' resolution...!');
  document.location.href='default.php?user=$userid&p=$p&w='+w+'&h='+h;
  </script>
  ";
chrishea 182 Nearly a Posting Virtuoso

As a server-based language, PHP isn't really intended to control local devices. For security reasons, it is generally prevented from accessing anything on the local system except for a few explicit cases like files uploads and downloads. Javascript can be used for some local stuff (and that can be generated by a PHP program) but even that is limited in what it can (again for security reasons). As per the link below, you might have to use Flash, Silverlight or something like that.

http://stackoverflow.com/questions/219476/using-php-to-access-a-users-webcam

chrishea 182 Nearly a Posting Virtuoso

There isn't an easy and obvious solution for this. You can generate a PDF with PHP but pulling it apart is a different matter. The easiest solution would be to generate a file at the source that has exactly what you want and then all you have to do is to display it. This could be a second version of the existing file. Trying to take an existing PDF file and then rework the content to give you what you need is certainly the hard way and may not be do-able.

A second best alternative, if you can find something to do it, would be a PDF reader which will take a parm for the pages that you want to display. I'm not aware of one, but you might find something if you do a search.

The least likely to succeed would be trying to read the content and manipulate it. The programs that can do this with some success are desktop applications. They often aren't 100% with graphics. I am not aware of any that have an API that lets you get detailed access to the content.

chrishea 182 Nearly a Posting Virtuoso

$_REQUEST probably doesn't exist. You don't have an 'id' parm.

chrishea 182 Nearly a Posting Virtuoso

There probably are but you'll have to go searching yourself. OSCommerce is probably the most extensive with the most plugins.

chrishea 182 Nearly a Posting Virtuoso

As per the previous suggestion, you could provide a form where the information can be pasted and saved to the DB. This makes some sense if the process is selective and the volume isn't too high. It is also possible to read from a mailbox directly and then save the data without any human intervention. In that case you could store it under the email ID and that would be the link back to the customer.

chrishea 182 Nearly a Posting Virtuoso

It seems that you could store the cart data in a cookie or in the database and just get it where and when you need it.

chrishea 182 Nearly a Posting Virtuoso

OK, it's been more than an hour. What happened?

chrishea 182 Nearly a Posting Virtuoso

DUPLICATE

chrishea 182 Nearly a Posting Virtuoso

DUPLICATE

chrishea 182 Nearly a Posting Virtuoso

For the future, please use code tags when you include code.

This code is trying to calculate the total value in a column (not a row).

If you want to group the results (and provide sub-totals) you will need to use an Order clause in the Select and your While loop will need to check for the end of a grouping (by keeping the prev value for each of the fields) and print a sub total line when a group ends.

chrishea 182 Nearly a Posting Virtuoso

OSCommerce is one of the best open source ecommerce systems. You should investigate it to see if it has any plugins that meet your other requirements.

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

It's all relative. If you happen to live in Angola, living beyond age 48 and making more than $600 / year in income would potentially qualify.

chrishea 182 Nearly a Posting Virtuoso

Do a search on pagination

Nahiyan commented: Saved my day! +3
chrishea 182 Nearly a Posting Virtuoso

It may be a cheap trick but probably the simplest way would be to open up the mail system in an iframe. This is really simple and provides the benefit of the features and the interface that is already built into the mail systems. You could build a POP3 or IMAP interface to receive / send mail to the mail systems but that would be a lot more work and the extra benefits would be ???

chrishea 182 Nearly a Posting Virtuoso

It's probably simpler to get them from the DB. Otherwise, each time you want to access a value, you need to check if the session variables have been loaded and if not go to the module / function that loads them. There are purists who always look for the most efficient way to do things even if it makes little real-world difference. I don't belong to that group. If you have that much traffic or you will be doing this often enough that it will make any real performance difference, then do the session variable version. Otherwise, just read them when you need them.

chrishea 182 Nearly a Posting Virtuoso

See: http://php.net/manual/en/function.unlink.php

There are a number of posts about recursive deletes. In answer to your question: it looks as if the unlink won't recursively delete with wildcards. You need additional code.

chrishea 182 Nearly a Posting Virtuoso

$gambar probably wasn't defined (it has no value).

chrishea 182 Nearly a Posting Virtuoso

This is called pagination. You can find a lot of previous posts on this site if you do a search. You can find a lot of references on Google as well.

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

It seems that the easy way would be to have a "date of last activity" and use that to sort them.

chrishea 182 Nearly a Posting Virtuoso

I don't know if you can find any numbers but I think that you'll find that the government and big (conservative) companies probably prefer ASP.net because they feel more comfortable dealing with big companies like IBM and Microsoft and they don't necessarily trust free / open source systems. The start-ups and companies that once were start-ups (like Facebook) and the smaller companies are quite happy with open source and the price is right. What looks best on the CV probably depends on what kind of organization you apply to.

chrishea 182 Nearly a Posting Virtuoso

You can extract data dynamically (screen scraping) with Curl and other tools. You could use this for the "Open Parties".

Since the Newsletter is just a signup form, it doesn't make sense to extract it dynamically. Just copy the code, modify it if necessary then include it in your site.

chrishea 182 Nearly a Posting Virtuoso

There are many good solutions. GoDaddy isn't one of them.

chrishea 182 Nearly a Posting Virtuoso

If you are running this in a local testing environment (e.g. Wamp Server), that normally isn't set up to handle mail. Let's clarify that before worrying about the code.

chrishea 182 Nearly a Posting Virtuoso

You should probably start by checking php.ini and ensure that everything is turned on for msssql that needs to be.

chrishea 182 Nearly a Posting Virtuoso

If you look at the error message it is telling you that it found an undefined variable "handler" in module rsappt_pro14_front_desk.php on line 34. Since you don't have a reference to "handler" on line 34 in the module that you have posted, I suspect that this isn't module rsappt_pro14_front_desk.php. There is a reference to $handler on line 10 in this module. You could post some or all of the code (including line 34) from module rsappt_pro14_front_desk.php. The bottom line is probably that $handler wasn't defined somewhere and that might be the result of some other error. It might be that it is supposed to be defined in one of the two modules included prior to line 10 in this module. It may also be that something wasn't defined (correctly) in a config module and that has rippled through a number of modules and ended up creating this error. You will probably need to find out where $handler is supposed to be defined before you can make any sense of this.

chrishea 182 Nearly a Posting Virtuoso

Your Insert needs to have an agent_id in the Values list to insert into the table. The question is: where is that agent_id coming from? Is it entered and passed to this module as a $_POST variable or is it coming from somewhere else? You need to answer that then use the variable in the Values list. If you know the member name and need to get the id, you'll have to Select from the MyMembers table by the name in order to get the ID.

There is no magic to this. For the tables to be linked by agent id you must provide the appropriate agent_id value to insert into the row in the products table.

chrishea 182 Nearly a Posting Virtuoso

Your Insert statement on line 44 doesn't look to be correct. The column names and the values need to be in sync. The second column specified was agent_id but the second value is $price. Yoy are also missing a comma after agent_id.

For an insert you can use the alternate format
set a='xxxxx', b='yyyyy',...
This makes it easier to be sure that everything is specified properly.

chrishea 182 Nearly a Posting Virtuoso

From what I've read, it seems that this is in a research and experimentation stage. It may be that concrete examples don't exist yet. The theory seems quite straightforward so if you are desperate, you could try building something with the mobile app acting as a thin client.

chrishea 182 Nearly a Posting Virtuoso

I think that the point is that we expect someone in the final year of a Masters degree to be a pretty capable person. Most people don't have a Masters degree so we expect you to be among the elite of educated people in society. Education is more than just learning a very narrow set of skills. It is also about being able to think and to tackle new challenges. You are but the latest in a long line of people with similar requests. That is part of the reason why you got some cynical responses. Seeing as many of these requests as we have has led us to the implicit question: "Is there something wrong with these programs or is there something wrong with the people going into them."
The results don't seem to be consistent with our expectations. If you had already done some analysis of the pros and cons of doing these particular topics and you were looking for some input to confirm your thinking or identify possible challenges that you hadn't considered, then that wouldn't be unreasonable and you probably would have had a warmer reception. We expect posts that say: "I have to do a project and I don't know what to do" from 15 year old's in High School. We don't expect it from people completing a Masters program.

chrishea 182 Nearly a Posting Virtuoso

You should start looking at the ads in Craigslist or commercial job posting sites like Workopolis and Monster.com. It will start to give you a feeling for what companies are looking for. Obviously, it will vary but a good knowledge of html and css is a given. A good familiarity with using SQL databases is also a given. Many will probably want some knowledge of Javascript or familiarity with Javascript libraries like JQuery. At least some knowledge of OOP and frameworks might be helpful as well. You'll want to be able to demonstrate what you know so having some well structured and well documented programs available that you've written would be helpful. You'll probably find that companies are generally looking for a pretty broad skill set and pretty strong ability in PHP and some of the other areas. It isn't too likely that you'll see an ad looking for just 'basic' skills. Thus, getting some experience working with advanced PHP systems would be to your benefit. There are lots of open-source systems available so you might want to pick one or two of the more popular ones, download them and then explore how they work.

chrishea 182 Nearly a Posting Virtuoso

Have you come to any theories / conclusions yet as to the key factors in the latest drop in traffic?

chrishea 182 Nearly a Posting Virtuoso

"...what i need is genuine and totally new concept and that i lack."

New concepts and original ideas aren't easy to come by. If you want to develop something new in terms of an online survey service, you could do a detailed review of existing survey services and list what you like and don't like about each one. You could also look at the markets that are served and the way they are delivered. In the end, you have to find some unsatisfied needs that you can potentially address.

A really new concept might be a totally different way of doing a survey other than going through a series of questions like a traditional survey. I don't know exactly what that would be but it might be a lot more visual and it might not have any questions in the traditional way. It might be a lot more entertaining so more people would actually want to do it.

If you want to actually get into the creativity part to come up with some new and possibly radical ideas, I suggest that you look at some of the work of Edward De Bono on Creativity and Lateral Thinking. One key concept is the "po" statement where you make a very challenging / illogical statement and then brainstorm around that to generate ideas. Create thinking needs to break out of what is normal and what has been done before and the "po" statement is a device for …

chrishea 182 Nearly a Posting Virtuoso

These are just notices. PHP prefers that variables be defined before they are used but it will create them as it finds them. If you don't want to see the notices, you can change the error_reporting in the program or in the php.ini file.

The error message line numbers aren't in sync with the listing of the module that you provided so something must have changed in the module since you copied the errors (but that doesn't matter much, the notices would just have different line numbers).