chrishea 182 Nearly a Posting Virtuoso

bad-behavior deals with link spam it isn't a general web site security package. I wasn't aware of it so I just had a look. There are "connectors" / interfaces for some common systems like Wordpress. If you want to use it on your own site, it can be as simple as adding a Require (that is documented on the bad-behavior site) but it will run degraded unless you do some customization to add logging and so forth.

chrishea 182 Nearly a Posting Virtuoso

I generally answer two kinds of questions:
1. Questions where I know the answer or I can determine it /confirm it fairly quickly.
2. Questions where I don't know the answer but I have a reasonable chance of finding it out with a little bit of research.

If you have some interest in the topic and you will potentially learn (or refresh) something that may be useful, then it makes it worth investing a little bit of time. It is surprising how many questions can be answered through a search on the topic. A lot of people who post questions are too lazy or just not competent enough to find the answer to their own question. That leaves lots of opportunity to fill that gap.

chrishea 182 Nearly a Posting Virtuoso

Usually this means that you don't have the variable in quotes in the form so it only picks up the text up to the first space.

chrishea 182 Nearly a Posting Virtuoso

PHP is fine for what you are trying to do. Assuming that you are going to keep the jobs in a database (MySQL) then you can use some SQL statements to query the database based on your input fields.

You aren't the first to want one of these and there are some open source php systems out there that may save you some work. They may not be exactly what you want but it is often easier to make a few changes than to build from scratch.

Here is one example:
http://wwwebber.wordpress.com/2009/05/24/php-job-script-free-job-aggregator/

You will find a number of them here:
http://www.hotscripts.com/search/php/job+search

chrishea 182 Nearly a Posting Virtuoso

Normally, if everything is done correctly, you will get the same result in each browser. Some are more forgiving than others so you might get away with something in one browser that you won't in another. First ensure that you have a session_start command in each module. If you do, then you might want to do a print_r for $_SESSION in the second module right after the session_start() command and see if you have anything in the session variables array. Just to be sure you could do the same thing before leaving the first module.

Also, see the comment below that I found in another post on this topic:

Check the name of the server machine. IE has problems with machine names that contain '-' or '_' - they cannot maintain a session! I've had this problem twice in the past, and it always takes me weeks to figure out, and I'm shocked IE hasn't fixed it.

Don't know which browser versions it applies to but it is worth checking.

chrishea 182 Nearly a Posting Virtuoso

The simplest way would be to get a stereo to mono plug that merges the two sources into one. You can get one at any electronics supply place and maybe even at Walmart.

chrishea 182 Nearly a Posting Virtuoso

In the SQL statement, it is treating $sql as a column because it isn't enclosed in single quotes. Add the single quotes and it should work.

chrishea 182 Nearly a Posting Virtuoso

I think that your first sentence is closer to the truth than the last. You can make it harder but you can't prevent them from copying the questions. You can copy anything on the screen with a print of the screen, or the Win7 Snipping Tool or a variety of other utilities. You may be able to restrict copying actual text but even that isn't absolute.

chrishea 182 Nearly a Posting Virtuoso

PHP does a few key things:
1. It interacts with databases and files on the server.

2. It uses data and logic constructs to make decisions

3. It sends HTML and Javascript to the server.

It can do other things as well but the important point is the last one. Unlike a Windows program that writes to one or more windows, the output "device" for the server program is the browser. The browser understands HTML and Javascript and CSS. HTML provides basic formatting commands which are complemented by CSS (which is now the preferred method for defining much of the formatting) and javascript which is a scripting language that the browser understands. Javascript can be used to implement a variety of friendly user-interface "web 2" features. Thus, if the user interface is important to what you are developing, then effective use of HTML, CSS and Javascript is critical. PHP is great for the logic and the database interface but on its own, it can't interact with the user sitting in front of the screen.

If you already have programming experience, then that reduces the number of things you need to learn. You may find this post interesting in terms of contrasting C# and PHP.

chrishea 182 Nearly a Posting Virtuoso

Just like desktop development, it could be anything, including web sites. PHP and ASP are the most popular languages. PHP is popular because it is relatively easy to use and it is open source. It has a large user community with lots of open source systems to choose from. w3schools is the best source for tutorials and reference info. In addition to PHP, you will want to know some sql and learn about MySQL; you will need to know HTML and some CSS and you'll probably want to know something about Javascript. The JQuery library and its plug-ins make this pretty easy.

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

I suggest that you replace the first and second lines of sendmail.php with:

<?PHP
$email = $_POST['email'];
$message = $_POST['message'];

It is better to use <?PHP rather than just <? because that doesn't work on all systems. Since the first program used method="post" the second one has to get the variables from the $_POST array. Finally, you aren't using the $email variable and I presume that is supposed to contain the email address. If so, then you need to change the mail statement to look like:

mail( $email, "Email Subject", $message, "From: $email" );

chrishea 182 Nearly a Posting Virtuoso

You haven't had any replies because what you are asking for goes beyond the normal definition of "help". If you want collaborators, then you should be posting in the Project Partners Wanted forum. Realistically however; you would have to ask what you are bringing to the table and why anyone else would want to spend their time helping you or collaborating. With what you have posted it is a bit like saying:
"I'd like to build a bicycle. I have a few spokes: here let me show you. Please help."

In terms of what you would like to build, it has probably been done many, many times before. If you would like to use this as a learning process, then I suggest that you download an existing system, study it and make some improvements to it. If you are serious about this, then you will have to be prepared to do a lot more work and research before you ask for help. One existing PHP Journal system that you could start with is this one.

diafol commented: You were really polite chris - I wouldn't have been +7
chrishea 182 Nearly a Posting Virtuoso

Works for me now too but it wasn't yesterday.

chrishea 182 Nearly a Posting Virtuoso

Fraid not.

chrishea 182 Nearly a Posting Virtuoso

And there is a forum on Google Groups
http://groups.google.com/group/raintpl

chrishea 182 Nearly a Posting Virtuoso

The rainTPL website seems to be gone but rainTPL can still be found at:
http://www.jooria.com/Tutorials/website-programming-16/templating-your-site-with-raintpl-141/

chrishea 182 Nearly a Posting Virtuoso

The first and the third aren't identified as to what system was used to build them. They may be custom designs. The second one is built using VBulletin. That's a system that you can download and use, in conjunction with Wordpress if you wish. In every case, the experience and skill of the person doing the implementation will affect the time required. For someone who has implemented VBulletin before, a basic shell could probably be implemented in a day or less (assuming that the server is already available and so forth). There is then some setup required for the forums that you need and maybe some other customization. There would be some time required to connect VBulletin to WordPress if you wanted to do that.

It isn't clear what you mean by control. If you use VBulletin you can probably use different colors / themes but it will still look very much like every other VBulletin system.

You can create a WordPress template to provide almost any look. If there isn't an existing WordPress template like the ones shown, one could be created (again by someone who knows what they are doing). It would probably be simpler to work in the other direction first and go through the existing WordPress templates and see if there is one that appeals to you (which might look like one of the examples you have shown).

chrishea 182 Nearly a Posting Virtuoso

You need to clarify dependent. Are these filled in a sequence (e.g. one form for name followed by another form for address). If all you need to do is to track which one they have completed, the simplest way would probably to have a session variable for each form with the status. If you need to force a specific sequence, then you would need to define that sequence and then check for the last form filled and then use your sequence definition to determine which one comes next.

chrishea 182 Nearly a Posting Virtuoso

I am not a wamp server user however, I assume that have phpmyadmin within your environment. There is more than one way to import. There is an actual import option in phpmyadmin but you can also create an sql export file in the system that you are coming from and just paste it into the phpmyadmin query facility (and then run the SQL statements). Either way, you can do this to create your tables and / or import the data.

chrishea 182 Nearly a Posting Virtuoso

If you are looking for help, you need to tell us / show us what you have already done to try to find /develop the solution.

chrishea 182 Nearly a Posting Virtuoso

I don't understand why you have included the header statement. You would normally use that if you were trying to create a file. If you only want to link to the file, try it without the header and see what happens.

chrishea 182 Nearly a Posting Virtuoso

Append #page=7 (or whatever page number you want) to the url.

chrishea 182 Nearly a Posting Virtuoso

I messed up the link. This is what it should have been:

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

chrishea 182 Nearly a Posting Virtuoso

Check php.ini and make sure the URL_fopen_wrappers is enabled.

chrishea 182 Nearly a Posting Virtuoso

There are quite a number of LAMP (Linux, Apache, MySQL, PHP) development systems. You can see a list at:
_FileWriteToLine($output_file, $file_line, $file_line_data) $file_line = $file_line + 1

The two you mention are somewhat lesser known (and not in the list). It seems that Sokkit is no longer supported. PHP Triad seems to be a popular download on CNET. Suggest that you look at (info on) some of the others before making a decision. Xampp and maybe some of the others are available for the Mac.

Depending on how much relevant programming experience you have, it's going to take some, or possibly a lot of work and time to become any good with PHP. You can probably do some simple stuff fairly quickly but to do anything more complex (which may be what your boss is hoping for) you will need to spend some time at it. If you don't already have a pretty good knowledge of html and css you'll be needing those as well, you'll probably need to get at least a basic knowledge of a database (probably MySQL) and you'll need at least some knowledge of Javascript / Ajax (or a package like JQuery) if you are aiming to develop really dynamic sites.

If you are starting off with negative feelings, then I think there will be a lot more of that to come unless you can get to enjoy it. If you aren't doing it because you like it, then you'll never be …

chrishea 182 Nearly a Posting Virtuoso

I did a search but I didn't find a function or a really slick way that you can do this. It seems that you may need to loop through all of the days in your date range, determine the day of the week for each day and exclude it if it is a Saturday or Sunday. With respect to holidays, I think that you will need to create a table of holidays and then compare the date for each one with the date for each day in your date range. You will need to use the strtotime and date functions so familiarize yourself with them if you haven't used them before.

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

When you redirect, you will need to pass the variable as part of the re-direct.

header("Location: Decryption.php?name=".urlencode($usersubmit));

Next time you post something, please use code (

...

) tags around the code that you are including in the post.

chrishea 182 Nearly a Posting Virtuoso

After reading your tale of woe, I think you are screwed with respect to the software that you bought and you need to move on. You might be able to break through the password protection but someone who is completely computer illiterate has almost no chance of being able to change the software to make it work the way you want.

There are free / open source packages out there. I interpret what you are doing as a fantasy football league. Try the link below to see some open source options. If I have incorrectly interpreted what you are looking for, just change the search:

http://lmgtfy.com/?q=fantasy+football+league+software+open+source

chrishea 182 Nearly a Posting Virtuoso

Had response time issue with Daniweb yesterday afternoon. Other sites were ok so not the network.

chrishea 182 Nearly a Posting Virtuoso

How about by reading the PayPal documentation:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_documentation

Normally, PayPal is implemented on a site to accept payments (which adds funds to your account if the payment is made). Adding funds to your account directly is normally done from your bank account so you can use those funds to make a purchase (yourself). That isn't something that you would normally use an API to do (and I'm not sure if the API actually supports that).

chrishea 182 Nearly a Posting Virtuoso

I presume that you want to allow them to vote once for each movie. If you store the IP for each vote for each movie, you could be carrying a lot of these voting records in your database. You might want to consider creating a cookie for each vote instead. It isn't foolproof but it may still be the best solution for this particular need. It is also better than storing the IP because it really does identify a particular user. Large internet access companies normally assign IP addresses when you connect to them so the same user doesn't always get the same IP address. It would thus be hit and miss as to who gets blocked from entering a vote (if you store the IP in the database).

chrishea 182 Nearly a Posting Virtuoso

If you give it a try and come up with something and you have a specific problem that you have tried to solve but can't: THEN, someone may be able to help you. It's your assignment so you have to do the work.

chrishea 182 Nearly a Posting Virtuoso

Just select the record from your DB. If no records found then it doesn't exist. Your checkh will be something like

$resource = mysql_query (select * from ... where username like '$username');
 $num_rows = mysql_num_rows ($resource)
 if ($num_rows == 0) {
   // user record doesn't exist
 }
 else {
   // user record exists
 }
chrishea 182 Nearly a Posting Virtuoso
<a href=xxx.php><img src="_images/banner1.jpg"></a>
chrishea 182 Nearly a Posting Virtuoso

Coppermine is pretty full-featured photo gallery. It appears that it can handle EPS files (see this link). I would do a bit more investigation to be sure that it can display them (not just upload them).

chrishea 182 Nearly a Posting Virtuoso

On some hosts, you can "pipe" mail to your php program and it can then inspect the info and take whatever action is required (e.g. send an email). This isn't allowed by some web hosts so the other alternative would be to read the mail file on a regular basis and then do what you have to do. You can probably find lots of info on this doing a search. One article is linked below:
http://www.evolt.org/incoming_mail_and_php

chrishea 182 Nearly a Posting Virtuoso

re: HTML2PDF

If you were referring to this facility in your previous note, it uses TCPDF (for the PHP5) version and it doesn't matter what the source is. You write your output to a variable and then pass that variable to HTM2PDF and it's done.

chrishea 182 Nearly a Posting Virtuoso

It could tie up their mail server so yes they might not be happy but 600 isn't all that many. I'd look at the hosting provider's policies. If you can't see anything there about it, I would give it a shot with all 600.

chrishea 182 Nearly a Posting Virtuoso

try a print_r for $_POST at line 19 to confirm what is being posted.

chrishea 182 Nearly a Posting Virtuoso

Your link isn't valid (404 error)

chrishea 182 Nearly a Posting Virtuoso

This is essentially a (piece of a) customer relationship management (CRM) system. If you do a search, you will find a bunch of these systems, some free and some not. Don't know if any of them have phone system integration but I am sure that you will find out. As mentioned previously, this will need a desktop component (maybe the whole system) if it is going to integrate with the phone system. Unless there is a real need to automatically capture info on every call (including dropped calls) then manual entry may be sufficient. You can certainly track info on calls without the automated interface. You may also be able to use something off the shelf if the requirement is simple. A link to an example is below:
http://www.sharewareconnection.com/voice-call.htm

chrishea 182 Nearly a Posting Virtuoso

If you are running an email blast, I don't think that 500 emails should be an issue but it all depends on your web host. I have sent several thousand email blasts without a problem. If necessary, you could put a governor on it and only issue them at a certain pace (a short sleep between emails). That probably isn't necessary.

If you don't have Cron and you don't want to do it manually, there are other alternatives. PHPJobScheduler is one of them. This depends on having a site that receives fairly regular traffic that can trigger your program. A second alternative is to trigger it from your desktop. You could use Autoit to do that.

chrishea 182 Nearly a Posting Virtuoso

This has been covered many times in this forum. You can do a search on SMS and you should find a bunch of previous posts. In a nutshell you can send an SMS like an email as long as you know the cell phone provider, the person's cell phone address and the email address format for SMS messages used by that provider. The format will be something like nnnnnnnnnn@xxx.com where nnnnnnnnn is the phone number and the rest is defined by the cell phone provider.

You can't receive SMS messages in your program without subscribing to an SMS message service who can provide the 2 way connection. If you do that, then you won't need to know the cell phone provider in order to send a message (the SMS message service will figure that out).

chrishea 182 Nearly a Posting Virtuoso

You can't have a nested form (and I don't know what you mean by a sub-form or what you plan to do with it) but if your objective is to know which check boxes have been checked, then the name assigned to each checkbox should have a consistent part and an index number. as an example:

<form ... >
<input type=checkbox name=selectme1 value=1>
<input type=checkbox name=selectme2 value=2>
...
<input type=submit name=submit value=submit>
</form>

In the module that processes the form, you could just process each one individually or you can do it in a loop:

$i=1;
while ($_POST[selectme$i] <> "") {
  ...
  $i++;
}
chrishea 182 Nearly a Posting Virtuoso

see http://www.w3schools.com/html/html_forms.asp

If you don't know how to do the MySQL part you can find that on W3Schools as well.

chrishea 182 Nearly a Posting Virtuoso

One way this is done is define all of your text as variables as follows:

$MOD_NEWS['TEXT_READ_MORE'] = 'Read More';
$MOD_NEWS['TEXT_POSTED_BY'] = 'Posted by';
$MOD_NEWS['TEXT_ON'] = 'on';

That would be your English module (e.g. en.php) You then produce a module with the same variable names with the appropriate translated text for each of the other languages. The French version (fr.php) would look like:

$MOD_NEWS['TEXT_READ_MORE'] = 'En savoir plus';
$MOD_NEWS['TEXT_POSTED_BY'] = 'Post&eacute; par';
$MOD_NEWS['TEXT_ON'] = '&agrave;';

These all reside in a languages directory and you include the appropriate version based on a system-wide parameter for language that you set in a config module.

chrishea 182 Nearly a Posting Virtuoso

HTM2PDF works quite well as long as you feed it valid HTML. There was a posting on this topic within the last couple of days and I provided a brief example. You should find it by a search on this site.

chrishea 182 Nearly a Posting Virtuoso

There is nothing built into PHP to explicitly support this (that I'm aware of). You can certainly build an application to support it, assuming that you have some PHP experience as well as the appropriate knowledge to build the local client component. There are some utilities around (e.g. MySync and DBSync) that might be usable but I can't recommend them because I have never used them.

If you have only one local database and one entry point, then the "synchronization" is pretty easy. If you keep a local log of changes you can go by entry date and check if the most recent changes were applied and, if not then do the update. If you don't keep a log, then keep a date last updated in your local database and work backwards using that. The simplest approach may be for your local program to act like / through a browser and generate a form with all the required fields. A small PHP program on the other end will be the "action" for the form and it will receive and process the data fields in the form. If you need to go the other way and update your local database as well, then your local program could talk to a php program on the other end that would feed it the database records. If the database is going to get quite large, it may need some sophistication so it can avoid processing every record.