chrishea 182 Nearly a Posting Virtuoso

If you get bored with programming that easily, then maybe you just weren't made to be a programmer. Programming requires patience and perseverance. I don't think that there is any way around that. There are solutions like frameworks that are supposed to speed up the development process but in order to get to the point where you can effectively use the framework, you have to invest quite a bit of time to understand it.

One way to cut down the development time is to collect a library of code for common functions. Using include modules and reusing / adapting code can cut down the development time quite significantly. No matter what you do though, I don't think that you'll be able to develop anything significant in a day. There are some code generators (e.g POG) but I don't know if any serious development is being done with them or how much quicker they make the process.

kolibrizas commented: Very interesting tool that you have just suggested. Big thanks! +1
chrishea 182 Nearly a Posting Virtuoso

I started using Chrome initially because its minimalist approach gives me more usable space on my screen (laptop - screen not that big). I also like that it starts and runs pretty quick (on my dual processor!). Found some sites (a few - not that many) that won't work on Chrome so then I fire up IE to get past it. It doesn't have as wide a range of plugins as Firefox yet but I think that they are growing and more things are being offered for Firefox and Chrome. I also found that when I leave it running for a long time (days) the cpu usage will start to rise and I have to kill it and start it again to get it back to normal (running under Win7 64bit). Overall, I'm happy with it.

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

I can't compare it with Fusion Charts but Google also provides a chart facility that is quite easy to use (here).

Have a look at my help file for creating Excel output. You may be able to use that in combination with something like RLib.

chrishea 182 Nearly a Posting Virtuoso

This one (RLib) is free. There are others that you'll have to pay for and you may find some other free ones with a search.

If you end up creating your own reports, then see my PHP help page (link in signature line below) for info on crating Excel and PDF output.

chrishea 182 Nearly a Posting Virtuoso

Why don't you contact the EasyJobPortal Support? It sounds like a setup problem but unless someone here has used this package, chances are they you won't get an answer on this forum.

Whatever page it is trying to go to (you weren't specific on that) probably doesn't exist or it doesn't exist in the directory where it is trying to find it. If it is the latter (and assuming that this is a standard system module), then I would double check the config to make sure that all of the directories are properly defined.

chrishea 182 Nearly a Posting Virtuoso

I read one Blog post that suggested Liberty Reserve. Their fee is only 1%. You may want to investigate them further. Their site has a chart that compares them with PayPal and a couple of other providers. There is info on their API (link from the main page). It looks as if you have to sign up first (as PayPal used to do) so that could be a problem. Depending on your user community, they may not have the same trust in any other processor than PayPal because they know the PayPal name but don't know the others.

I think that you would really want this to be a single transaction with payments going in two directions, one to you and one to User B. Otherwise, all the funds go to you first and you are effectively acting like a bank / payment processor and that might have legal implications. On the other hand, I'm not sure that it's possible to avoid that with PayPal or Liberty without making it two separate transactions (one for $5 and one for $95) that User A would then be required to process one at a time. Here is PayPal's answer to a similar question.

chrishea 182 Nearly a Posting Virtuoso

Seems like almostbob and I got to this at the same time with two different solutions. His is a little simpler to implement while this one may look a little fancier at the expense of a bit more work to code it. The choice is yours.

He already mentioned the code tags so enough said on that.

Your question wasn't totally clear but I have taken a stab at it. If this is an administrator's page where you want to list all of the patients and let the user choose one to see more details, then you can make the output lines part of a form. You could output a <form> statement before the While loop, output a </form> after the end of the loop and then make the first item in each row a radio button:

echo "<td class='td'><input type=radio name=pat$i value=.$row['pat_id']."></td>";

You need a variable $i that is incremented by one on each iteration of the loop to provide a patient number. The module that processes this form will receive a $_POST (or $_GET) variable for each patient, pat$i (e.g. pat1, pat2 etc) that will be used to know which one was selected. If the patient was selected, the value will be the patient ID, otherwise it will be an empty string.

I hope that this is helpful. I had to interpret what you are trying to do so hopefully I got it right. If you understand how HTML forms work, then this should be …

chrishea 182 Nearly a Posting Virtuoso

If your intent is mainly to make money, then you need to do some research on Internet Marketing and Search Engine Optimization. The PHP is secondary. You can easily build a site with Wordpress or some other CMS but you will probably want to find a "niche" where the competition isn't too strong. There are all kinds of websites that will give you advice on this and Forums like DaniWeb's Internet Marketing Forums where you can get info and ask questions. A course that you might find useful is here (it isn't free). It's about becoming an Amazon Affiliate and finding niches for products that you can market. There may be other ways to build a site and make money, but this is the simplest and most common approach. Google is becoming much harder on sites that have little useful content and are just designed as Affiliate sites. Thus, if you go down this path, you still need to develop some good content about your website topic.

If your real intent is to build something innovative and cutting edge (the next Facebook!) AND make money, then you can probably come up with some ideas but you could spend a huge amount of time building something that goes no where. There are many failures for every success. You may want to undertake a project like this just for the experience and the possibility that it might make money but it depends on your priorities.

chrishea 182 Nearly a Posting Virtuoso

Is this a school assignment or is there some other reason why you want to do this? If you are going to put a lot of time and energy into building a site, then you should focus it on something that interests you. It could be music, art, computer programming, astronomy or any one of a million topics. It won't be very satisfying if you are building something that you think other people will be interested in but you aren't.

Thus, if you want some useful ideas, it would be helpful if you identified:
1. Why are you doing it (what is the objective or the definition of success)?

2. What are some categories that interest you?

3. What is your skill level in PHP and other associated technologies? Is this a simple site so you can learn PHP or is it intended to be a bleeding edge, high tech site?

chrishea 182 Nearly a Posting Virtuoso

It sounds as if you need to a session variable to store variables like the stock symbol. Initially, the user will enter the symbol into your form and you will retrieve it as a $_POST variable. You should then copy it to a session variable:

$_SESSION['stock_sym'] = $_POST['stock_sym'];

and use the session variable from then on. The session variable persists for that user until the session ends (generally when the browser is closed). You have to use a session_start() in any module where you want to access session variable.

chrishea 182 Nearly a Posting Virtuoso

I have used php-excel-reader and it works well.

chrishea 182 Nearly a Posting Virtuoso

If you are going to debug it then you need to be methodical. I would start by putting an echo "test"; on a new line after line 166 and trying it. If that works, then I'd be suspicious of your Require on line 169. If there is an error in the included file, it can cause it to stop at that point. If you put another echo at line 170 and that doesn't work, it gives you a pretty good indication. Another thing that you can do is to put an error_reporting(E_ALL); after line 166 in case there are errors that aren't being reported. Start with those and see what you get.

chrishea 182 Nearly a Posting Virtuoso

It does exactly what you programmed it to do!

The first that you could do to see what is happening is to insert a

print_r($_POST);

between lines 6 and 7. If you then run the code, you will see that all of your form variables have been passed back to the module (assuming that this module is called test.php - you don't need the action parameter by the way if you want it to come back to this module).

Then, you need to look at your IF statements on lines 7 and 9 to see if the conditions are satisfied. You will see that is true for line 7 but it might not be for line 9. The main thing is what happens when it gets to line 21. At that point, you have finished processing the form. Logically, the program should stop at this point. Since you didn't put an exit statement before line 21, it keeps right on going and displays the form again starting at line 50. If the 'If' statement at line 9 wasn't satisfied, then it will look as if nothing happened because the form will just be displayed again.

This problem involves how you think through your design and how you debug it if it doesn't work. The php isn't that big a factor. If you don't do the design and the debugging well, then I think you will find developing programs to be quite slow and frustrating. For the debugging …

chrishea 182 Nearly a Posting Virtuoso

You need to look at your code. If you can narrow it down and post some code, then someone might be able to help. Otherwise it's guess work.

chrishea 182 Nearly a Posting Virtuoso

It was working fine for me yesterday but initially not today. Then, after a few minutes it seemed to go back to the proper format and everything seemed fine. It looked as if it was displaying a totally different form in the Iframe and the addressing for the graphics made no sense so they all came out as broken. Is there something in your PHP code that chooses what form to display in the IFrame? That would be my first guess because something is happening dynamically (and it seems rather random) and it doesn't make sense based strictly on looking at the resulting screen and html.

When I looked at it again, I see that you have retreat.php as the main page and contact/retreat.php as the contact form. It looks as if these two are mixed up together because when it didn't work it looked as if it was trying to display the one used for the main page within the Iframe (but also as if it was in the contact directory hence the broken links). How it gets to this point is probably tied to your php code (which you haven't posted).

chrishea 182 Nearly a Posting Virtuoso

I had a look at that page in Chrome, IE and Firefox and I didn't see any problem. I also had a look at the Job Ops and it was OK too. If you are having problems on some machines, I guess you'll have to identify what is different between those machines and ones where it works ok.

chrishea 182 Nearly a Posting Virtuoso

There are quite a few previous threads on chat systems for PHP. Click here

chrishea 182 Nearly a Posting Virtuoso

From the PHP help file

session_destroy() destroys all of the data associated with the current session. It does not unset any of the global variables associated with the session, or unset the session cookie. To use the session variables again, session_start() has to be called.

In order to kill the session altogether, like to log the user out, the session id must also be unset. If a cookie is used to propagate the session id (default behavior), then the session cookie must be deleted. setcookie() may be used for that.

The help file is free. Get yourself a copy.

chrishea 182 Nearly a Posting Virtuoso

Does your php module have a name that ends in .php? Is your localhost running when you try this. If so, what did you install for a LAMP stack? Did you run some sort of simple "hello World" php program at the start to verify that your installation was functioning properly?

chrishea 182 Nearly a Posting Virtuoso

You need more than php to make this work. This link provides a discussion with some additional links for more info. If you want to stream to many end points then you need something fairly sophisticated.

If you need something smaller scale with a closed audience, then you could look at a web conferencing solutions like Mikogo. The free version handles up to 10 end points. If you pay, you can get up to 25.

chrishea 182 Nearly a Posting Virtuoso

You can send free sms messages formatted as an email in North America and possibly in other countries as well. In Asia it seems that they aren't free.

See this.

chrishea 182 Nearly a Posting Virtuoso

If you want to do web programming, then PHP is a good choice for a bunch of reasons. Besides being pretty easy to learn, it is supported on almost all servers, it has a large community with lots of open source code and lots of help. You can do almost anything that you might need to do from a server point of view. It's also free as is MySQL the main database used with PHP. To build more sophisticated applications, you would want to learn some CSS as well and become familiar with JQuery or one of the other Javascript libraries. PHP isn't made to write games but it could be used for a role playing game (probably with some javascript on the front end).

If you want an article that compares Ruby and PHP have a look at this.

I recently discovered Titanium, a system that allows you to use PHP (and some other languages) to create apps for a variety of platforms including Android and IPhone. You can do a search for it and see what it can do.

chrishea 182 Nearly a Posting Virtuoso

If you want help, then you need to demonstrate some effort and provide an initial design with some specific questions. If you can't get that far on your own, then maybe you don't deserve to graduate! There are lots of reservation systems out there and that probably includes some open source ones that you can download. Do some research and build a rough design and define the features that you want to include. There's all kinds of stuff out there on the Internet waiting to be found.

chrishea 182 Nearly a Posting Virtuoso

There is a Drupal chat module:
http://drupal.org/project/chatroom

There are simpler CMS's than Drupal to implement and maintain. You might want some of the CMS functionality, now or in the future. If you start with a separate Chat app, one option is to embed the Chat application within a CMS page later. Joomla and some other CMS's offer this capability (using frames). That leaves the door open to adding a CMS later if you want some of the functions that it provides.

chrishea 182 Nearly a Posting Virtuoso

This article looks at some of the strengths and weaknesses of the different options. You need to consider Javascript solutions like JQuery as well. In part, it depends on what you're going to do with it. Mobile apps are becoming a bigger part of the picture but that may not be part of what you want to do. How well PHP integrates with these different approaches is then another question once you establish your preference for a particular approach based on the other criteria.

http://www.codeproject.com/KB/HTML/Enterprise-RIA.aspx

Note: I can say from personal experience that it is quite easy to implement JQuery plugins and requires very little startup time or learning. You don't need to know anything about Javascript to use them. My perception is that you would have to invest some time and energy (and maybe $) if you wanted to start using Flex or Silverlight. It depends how serious you are about it and whether you'll get sufficient payback for that investment. If you are already a Flash or .Net developer, then that would be another factor in the decision.

chrishea 182 Nearly a Posting Virtuoso

I have done quite a bit of work with uploading and reading data from Excel and the tool that I have used is the php-excel-reader. This lets you access the rows and columns in the spreadsheet (after you upload it). It should work just fine for what you need to do.

chrishea 182 Nearly a Posting Virtuoso

You could start with this:
http://www.fuzzy-logic.com/

Here are some classes that may be useful when implementing:
http://yawf.org/phpdocs/Sure/_plugins---Logic---FuzzySure.php.html

chrishea 182 Nearly a Posting Virtuoso

As you seem to already recognize, when you include the module with the arrays, you are getting a fresh copy every time. If your intent is to pass these arrays around and update them, then you are right again, using session variables would be the best way to do it. In your include module, you could enclose all the definitions in an if:

session_start();
if ($_SESSION['array_flag'] <> "set") {
   $_SESSION['array_flag'] = "set";
   $_SESSION['model'] = array(1=>"Compact",2=>"Saloon",3=>"SUV" );
   ...
}

That way you'll only do the definitions once. All of your arrays need to become Session variables as I showed above for mode1. Anywhere that you use the arrays, you will now reference the Session versions. Any modules that use the session variables must have a session_start statement.

llamaboy commented: Was simple and easy to understand +1
chrishea 182 Nearly a Posting Virtuoso

Why not use something that already exists like Pixlr.

chrishea 182 Nearly a Posting Virtuoso

You don't really need the action on the form since it defaults to itself anyway. Re-direct usually means something specific and that isn't what you need to do for this.

Before it displays the form, your program needs to check the post variables ($_POST) to see if something was posted (you could check the submit button variable). If you have posted data then it needs to build the variables for the email and then send it using the mail statement. I use a library that makes it easy, especially when you start using features like attachments. You can get more info on it here.

chrishea 182 Nearly a Posting Virtuoso

Clearing the cache fixed it. Thanks.

chrishea 182 Nearly a Posting Virtuoso

I've had a problem the last couple of days that the Daniweb drop-down menus don't drop down under Chrome. I have to click on the category and open the page to get at the secondary categories. Never had this problem before and it still works ok for me under IE.

I am running under Win 7 with Chrome 11.0.696.68 (a new update that was just loaded). The problem started happening before this latest update.

chrishea 182 Nearly a Posting Virtuoso

Assuming that PHP and Apache are working correctly (and they may not be) then this is likely caused by trying to run PHP code from a module that doesn't have a .php suffix. For this reason or because of your setup, the module isn't being processed as a php module.

chrishea 182 Nearly a Posting Virtuoso

Could this be a limit imposed by your web host?

chrishea 182 Nearly a Posting Virtuoso

A blank page usually means that you had a syntax problem and the program didn't run. If you use an editor that has built in syntax checking (like Netbeans) it will help you find these errors. Indenting your code makes it easier to see some kinds of problems visually.

In this case, you are missing the final bracket for the BlackScholes function.

chrishea 182 Nearly a Posting Virtuoso

You could explode the string using the ":" as the delimiter. This will give you an array with two entries. Take the first entry, multiply it by 60 then add the result to the second entry and you're done.

chrishea 182 Nearly a Posting Virtuoso

I doubt that anyone can help you without more info. Especially if this is a homework project, we need to see some code and a demonstration of your effort. If you can identify a specific section of your code that isn't doing what you want it to do (and post that code with a definition of what's going wrong) then maybe someone can steer you in the right direction.

chrishea 182 Nearly a Posting Virtuoso

I stand by my comments and some of yours are rude and inappropriate. If you don't ask a good question, you are probably not going to get a good answer. If you want round corners on boxes or background images or whatever, then stating the specific needs may get you a useful response. "Fancy" may mean some specific things to you in this context but it won't mean a lot to anyone else who hasn't seen your site in its current state and doesn't know what things you like or don't like. If you have ever worked with customers on doing any web design, then you will know that it is like art and what appeals to one person may be very unsatisfactory to someone else. I don't think that there is any cookbook for this sort of thing, it tends to be pretty personalized. So I say again, if you were to post a screenshot and provide some ideas of the type of changes that you would like to be able to make, you might get some helpful feedback.

chrishea 182 Nearly a Posting Virtuoso

Your question is pretty broad and difficult for anyone to respond to in a meaningful way. You say that you already know css, html, php, mysql, ajax and javascript but that you can't get beyond a very basic appearance for your system. That is contradictory since making a system look "fancy" is done using CSS and Javascript, often using one of the Javascript libraries like JQuery. If you don't know how to apply these tools to achieve your goal, then you need to post a very specific example / question (and maybe in some other forum rather than the PHP forum since PHP probably isn't your issue or the solution). If you said, here is a screenshot of my current forum page and I want to add drop-down lists / a shadowed border / some other specific feature, then someone could probably point you in the right direction.

chrishea 182 Nearly a Posting Virtuoso

You haven't provided a definition of the scope of the project or any limitations. Some of this could be done by implementing an existing open-source online training system but if the requirement is that you develop the solution yourself then you are potentially looking at a very significant project that could take many hundreds if not thousands of hours.

With respect to web conferencing, have a look at the link below for some idea of what you would be into if you want to include that:

http://www.daniweb.com/web-development/php/threads/351147

chrishea 182 Nearly a Posting Virtuoso

Digital-Ether: Your approach to determining the answer is very intelligent. Should have thought of doing something like that (but of course, I didn't!). Good work.

chrishea 182 Nearly a Posting Virtuoso

In my case (since it isn't working for me either), I changed the short open tag when I tried it. I am running PHP 5.2.10 but my understanding is that it should still run.

According to PHP.net
This extension is available and compiled by default in PHP 5.0.0.
As of PHP 5.3.0 this extension can no longer be disabled and is therefore always available.

chrishea 182 Nearly a Posting Virtuoso

I tried it and I had the same problem. I checked php.ini and I had the extension disabled (php_spl_types.dll) so I changed that but it still didn't work. I checked and the extension is in the Ext directory. It should work but it is still giving the same error.

chrishea 182 Nearly a Posting Virtuoso

"Are space and time fundamental concepts or are they approximations to other, more subtle, ideas that still await our discovery?"

"What is the difference between the sigmundoscope and the sigmoidoscope? Less cryptically, how is everyday narrative logic different from extensional mathematical logic?

"Is there, or should we expect, a fracture in the logical basis on which people now look for a description of the nexus between particle physics and cosmology?"

"Why do we continue to act as if the universe were constructed from nouns linked by verbs, when we know it is really constructed from verbs linked by nouns?"

Could our lack of theoretical insight in some of the most basic questions in biology in general, and consciousness in particular, be related to us having missed a third aspect of reality, which upon discovery will be seen to always have been there, equally ordinary as space and time, but so far somehow overlooked in scientific descriptions?
____________________________________________________________________________

Discuss, and develop a single theory of the universe which addresses all of these questions with a strategy for providing quantifiable proof to support your theory. You have 20 minutes.

chrishea 182 Nearly a Posting Virtuoso

First: You need to include your code using code tags.

Second: In this case the code may not matter a lot. It may be the result of what you installed and how you have installed it. If you want to get PHP (and MySQL) working, the easiest way is use one of the packaged solution (see the list here).

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

There might be another way but the classic way of handling a sequential file is to write a new copy (and then replace the old copy with the new one at the end). A CSV sequential file isn't a database and it isn't meant to handle random reads and writes. As a variation on this, you could read your whole file into an array (if it isn't too big), make all of your changes then write the whole thing back to the original file (wiping out the previous contents).

chrishea 182 Nearly a Posting Virtuoso

I don't think that you can initiate it from the user end with HTML (without two forms). You might be able to do it with Ajax. You could possibly transfer it from the prime (external) server to your server after it is received on the prime server.

chrishea 182 Nearly a Posting Virtuoso

You need to talk to HostMonster. I suspect that you won't be able to do it but you won't know unless you ask.