chrishea 182 Nearly a Posting Virtuoso

I have used HTML2PDF quite successfully for copying schedules to PDF files. I had to tweek the html a bit at the start but it has been working like a charm for quite a while now. I have added my notes on it here.

chrishea 182 Nearly a Posting Virtuoso

My understanding is that sessions handle serialization for you. Are you sure that you need it? Maybe you are interfering with the Session internal serialization process.

chrishea 182 Nearly a Posting Virtuoso

When you import to mysql you don't want the first row with column headings in the file. It strictly depends on the order of the columns. The easiest way would be to have the users convert to a standard format that is consistent with what you need for the DB. If that isn't possible, then it depends how often you plan to do this. If it is a one-time deal, (and there aren't many spreadsheets) then it might be quicker to cut and paste from the current spreadsheets into the format you need. If you have many spreadsheets or you need to do this regularly, then you could certainly upload the spreadsheets, read the temp file that is created, convert to the appropriate format (new temp files) and then import into the database.

chrishea 182 Nearly a Posting Virtuoso

Reading the documentation works for me! From the PHP manual:

path
The path on the server in which the cookie will be available on. If set to '/', the cookie will be available within the entire domain . If set to '/foo/', the cookie will only be available within the /foo/ directory and all sub-directories such as /foo/bar/ of domain . The default value is the current directory that the cookie is being set in.

chrishea 182 Nearly a Posting Virtuoso

Possible that a virus could have done some damage. Just to be sure you could do a scan (MalwareBytes). If you have the original Windows install disk, you could also try doing a repair and see if that corrects it. If you have recovery disks you could also try that. If all else fails, you could clean your disk and re-install but it may be a lot of work to put it back together again.

Hard Disks are cheap enough these days that it maybe easier to get a new disk and do a fresh install on that. You'll still have to re-install programs but at least you have all your data and you still have the old disk for reference to remember what was installed. If you go down this path, then you will have to be careful to get a disk that is compatible with your with your (older) hardware.

Salem commented: Nice idea +19
chrishea 182 Nearly a Posting Virtuoso

There are lots of posts on this topic. The response by Trionztek summarizes the key problem with these machines. If you have eliminated other possible hardware problems (e.g. by re-seating the memory boards and trying one at a time) then the video board solder is the likely problem. I have the same problem on a DV9000 but I have been able to get around it. Don't know if this will work for you or anyone else but it's worth a try.

Boot the machine while holding down the Del key. If you don't get the initial HP screen, then shut the machine down by holding down the power button until it turns off. Push the power button again while holding down the Del key. Keep forcing it to power down and then boot it again for 5 or 6 tries. It usually takes me that many tries before it works. If you get to 10 or 12 tries and it still won't start, then you have a more serious problem that is preventing it from booting. I had that situation a couple of times and I found that my hard disk needed to be re-seated and then it would work. If it can't see your hard disk, it isn't going anywhere. I found in my case that I could boot from my Windows install disk (after a few tries using the procedure above) and I could then get into the bios and I saw that there was no hard …

chrishea 182 Nearly a Posting Virtuoso

Presuming that you have already sorted out the login system itself, then it should be simple to add a check for the trial period. Each user record could have a trial period flag with a second field for the date that the trial period ends. You could go with just the date if you interpret no end date as being registered. On every login, this field is checked and if it is a past date, then the login fails.

chrishea 182 Nearly a Posting Virtuoso

I think that it's reasonable that you would define your needs more completely and that you would do some of the research instead of posting a totally open-ended question on a forum such as this.

You should provide more detail on what you want this "community portal" to be able to do. You also need to define your objective. Is this a PHP learning exercise or do you want to install a package and get it running as quickly as possible. The more detail you can provide (within reason), the more likely that someone will be able to provide some useful suggestions.

chrishea 182 Nearly a Posting Virtuoso

... you can remember the days when having someone else to keypunch your program for you was a real luxury, when all testing was done at night and 12k of memory was all we had to work with in a (Univac) machine that filled a room. I'll be really old when I can't remember it anymore.

chrishea 182 Nearly a Posting Virtuoso

I wasn't able to make it work that way but what did work was to replace the click event with ready as in:

$(".run").ready(function(){  ... });
chrishea 182 Nearly a Posting Virtuoso

This should probably have been titled "Auto-start a script". It's my PHP focus coming through.

chrishea 182 Nearly a Posting Virtuoso

I'm a PHP guy so I still struggle with Javascript. The answer to this is probably easy.

I need to add some animation effects and I'm experimenting with JQuery animate. The sample routine is set up to run when you click on the Run link. I want to change the routine to run automatically when the page is loaded. Suggestions on what I need to change would be appreciated.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Chainable Transition Effects</title>

<script type="text/javascript" src="../raxan/plugins/jquery.js"></script>

<script type="text/javascript">
$(document).ready(function(){


	$(".run").click(function(){
	
		$("#box").animate({opacity: "0.1", left: "+=400"}, 1200)
		.animate({opacity: "0.4", top: "+=160", height: "20", width: "20"}, "slow")
		.animate({opacity: "1", left: "0", height: "100", width: "100"}, "slow")
		.animate({top: "0"}, "fast")
		.slideUp()
		.slideDown("slow")
		return false;
	
	});

});
</script>

<style type="text/css">
body {
	margin: 20px auto;
	padding: 0;
	width: 580px;
	font: 80%/120% Arial, Helvetica, sans-serif;
}
a {
	font-weight: bold;
	color: #000000;
}
#box {
	background: #6699FF;
	height: 100px;
	width: 100px;
	position: relative;
}
</style>
</head>

<body>

<p><a href="#" class="run">Run</a></p>
<div id="box">
</div>

</body>
</html>
tomato.pgn commented: i was also in search of similar code...thanks for sharing... +1
chrishea 182 Nearly a Posting Virtuoso

That should work fine. I have done this sort of thing to prevent a double definition of a function as in:

if (!function_exists('abc')) {
 function abc() {
   ...

 }
}
darkagn commented: Thanks for the tip +3
chrishea 182 Nearly a Posting Virtuoso

Unfortunately, this isn't an urban legend. If you look at Big Pharma as a business looking to maximize their profits and dominate the market, it makes sense that they would try to control the natural food market for their own benefit. That is what appears to be happening. They have huge budgets and they can buy everyone off. Governments are corrupted by this and make very little effort to actually control and regulate them.

The Dude commented: Very knowledgable!! +0
chrishea 182 Nearly a Posting Virtuoso

You may find that this helps to make it easy:
php-paypal-ipn-integration-class

chrishea 182 Nearly a Posting Virtuoso

What permission is defined for the directory that you are trying to upload to?

chrishea 182 Nearly a Posting Virtuoso

You haven't provided too much detail. You have to look at the obvious first. You haven't indicated what investigation you have already done. If you are trying to upload into this directory, you need to define it with write access. If you are getting a 404 error, chances are that you haven't provided a good address for the error page.

chrishea 182 Nearly a Posting Virtuoso

You have a choice:
1. Your query can use just the query name as in:

mysql_query ($query1) ...

2. In your Connect use a variable to keep the resource handle:

$handle = mysql_connect("localhost", "username", "password") or die(mysql_error());

then in the query use that handle:

mysql_query($query1,$handle) or die("Failed Query of " . $query1);

The first one is simpler. It's all in the PHP manual with an example.

chrishea 182 Nearly a Posting Virtuoso

I ran your code through my interpreter and I didn't get an error. Is it possible that you are running on PHP 4? I believe that try and catch are PHP 5 only.

Roebuc commented: Thanks for the info! +2
chrishea 182 Nearly a Posting Virtuoso

I don't think that this is possible. If you find a way I hope that you'll post it.

I tried some reverse engineering by using the html output from word for a document with a header and footer. The best I could get was the header and footer listed as part of the body of the document before and after the actual text. HTML doesn't have an equivalent feature so I think that this is really an internal Word feature that you probably can't access by giving it formatted input.

chrishea 182 Nearly a Posting Virtuoso

Someone posted a similar question recently. The answers aren't quite a "how-to" but they are a start:

http://www.daniweb.com/forums/thread120918.html

csharplearner commented: Thanks for referring this thread +1
chrishea 182 Nearly a Posting Virtuoso

if you change line 84 to

if (($rowcount % $picsperrow) == 0) {

it eliminates the error and hopefully gives you what you wanted.

Borderline commented: Many thanks +1
chrishea 182 Nearly a Posting Virtuoso

If you are still using AVG anti-virus Version 7 and you're about to install the latest version in response to the threats about end of support for Version 7, be aware that there are a couple of problems:

  • In Vista, the install can have a problem if User Account Control is turned on (as it normally is). I turned it off and the install worked the secoind time around.
  • If you let it install the Linkscanner feature, it uses Port 80 and that prevents Apache from starting if you use EasyPHP (and probably the same if you use WAMP). You can run the AVG install again and that allows you to de-install Linkscanner and then EasyPHP works again.

I just wasted some time on this so I thought that I'd share the info.

nav33n commented: Thanks for sharing the info :) +10
chrishea 182 Nearly a Posting Virtuoso

I downloaded Aptana and did a quick tour. Also seems pretty capable. A fairly detailed comparison of some popular IDEs, including Netbeans and Aptana can be found here:
http://spreadsheets.google.com/ccc?key=pV8XyUSUOM7ET07rn4n7NYA

As you will see, Aptana and Netbeans both have most of the features but Netbeans comes out ahead on some. Either one can do the job, it becomes a matter of spending the time to learn how to use the tool effectively.

Chris

darkagn commented: Good link providing a useful comparison IDE spreadsheet +3
chrishea 182 Nearly a Posting Virtuoso

Start by changing the line if(!$db_selsected) -to- if(!$db_selected)

gangsta gama commented: Very helpful +1