chrishea 182 Nearly a Posting Virtuoso

Assuming that the new image would show when the next person gets to the specific page (or pages), then you probably need Cron or something like that to trigger a (PHP) program that would set an indicator / name for which image to use. The indicator would have to be in your database so all subsequent sessions are able to check it.

This, of course, assumes that the image to be used and the time to change from one to the other isn't predictable. If it is, then you would just put the code into the program that displays the image, check the time and then display the appropriate image.

chrishea 182 Nearly a Posting Virtuoso

Making variables available across different modules like this is best done using session variables.

chrishea 182 Nearly a Posting Virtuoso

I suggest that you 'explode' the string and then check that the parms exist in the array that is created.

chrishea 182 Nearly a Posting Virtuoso

It will be quicker for you to use the paypal class than to figure out what is wrong with your code.

If you had provided all of the code set up to use the PayPal sandbox then it would be easy to take that code and duplicate the error. What you have provided isn't sufficient to do that. There is definitely more that you need to make IPN work so I assume that you have other code that you haven't provided.

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

Define "not working". If you do it right it works.

chrishea 182 Nearly a Posting Virtuoso

Try this:
desktop_write

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

Even most lawyers like lawyer jokes so don't take any of these too personally.

Here's a couple more:

A man walked into a bar with his alligator and asked the bartender, "Do you serve lawyers here?".
"Sure do," replied the bartender.
"Good," said the man. "Give me a beer, and I'll have a lawyer for my 'gator."
_________________________

At a convention of biological scientists one researcher remarks to another, "Did you know that in our lab we have switched from mice to lawyers for our experiments?" "Really?" the other replied, "Why did you switch?" "Well, for three reasons. First we found that lawyers are far more plentiful, second, the lab assistants don't get so attached to them, and thirdly there are some things even a rat won't do. However, sometimes it very hard to exterpolate our test results to human beings."
______________

chrishea 182 Nearly a Posting Virtuoso

Are you using a secured page (Https)? If so, then apparently is isn't passed.

chrishea 182 Nearly a Posting Virtuoso

I think that you may have a better chance if getting help on the Argo Forum. You can try the link below to see if the advice helps with your situation. The message is the same even though the error code is different.

Argo Forum

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

I have used re-directs without any problem that I'm aware of in any of the browsers. I use them on a couple of sites that re-direct in the initial index module to a sub-domain so it gets used a lot.

In my case, I used a version of the following lines:

<META NAME="GENERATOR" CONTENT="xxxxx">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<meta http-equiv="refresh" content="2;URL=http://....php"

The first one is basically a comment so it shouldn't matter. Maybe the Pragma make a difference.

chrishea 182 Nearly a Posting Virtuoso

500 errors can be difficult to debug. You may want to contact your web host and see if they can give you any more info from their logs.

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

Change your mysql_db_query to a mysql_query with the query string as the only parm. It will use the DB that you selected.

chrishea 182 Nearly a Posting Virtuoso

It may take multiple tries. If you did that and you couldn't get it to start then you'll need another solution. Good luck.

chrishea 182 Nearly a Posting Virtuoso

If you aren't even getting to the initial (HP) screen then it is probably a hardware problem. It never gets past the initial hardware status tests and it aborts the boot and then tries to restart. This is all too common on HP laptops.

For my experience with this problem and the way in which I have bypassed the problem you can have a look at the post on my site.

chrishea 182 Nearly a Posting Virtuoso

I tried a number of them and ended up with Sun Netbeans (which now does PHP and other languages not just Java).

chrishea 182 Nearly a Posting Virtuoso

See my latest post. Your symptoms are a bit different but you can try what I've been doing to see if it works.

chrishea 182 Nearly a Posting Virtuoso

New posts are added regularly for HP Boot Problems because it seems to be a pretty widespread problem. I am using a bypass to get around the problem and this may work for others as well.

In the end I think that I have the same problem that many other people have with HP Laptops not booting. It is claimed that it is caused by a problem with the NVIDIA chip and there is even a class-action suit being assembled for it. I thought that the seating of the hard drive was part of the problem but now I don't think it played any significant part in it.

I am still using my machine because I was able to find a bypass. I documented my experience and the bypass on my site. Click here to see it.

Note: I originally posted this problem in the Windows Vista forum so I posted this final comment on both.

chrishea 182 Nearly a Posting Virtuoso

And a Final Comment:
In the end I think that this is the same problem that many other people have with HP Laptops not booting. It is claimed that it is caused by a problem with the NVIDIA chip and there is even a class-action suit being assembled for it.

I am still using my machine because I was able to find a bypass. I documented my experience and the bypass on my site. Click here to see it.

chrishea 182 Nearly a Posting Virtuoso

If your problem is how to select the appropriate record from a (MySQL) database, then you could use:

Select * from table1 where date like '%-$mm-%'

To select a specific month.

chrishea 182 Nearly a Posting Virtuoso

How about:

<?PHP
while($row=(mysql_fetch_array(result)) {

   echo "       
   <td>$row['photo']</td><td>$row['info']</td>
         ";
   if ($row=(mysql_fetch_array(result)) {
      echo "
      <td>$row['photo']</td><td>$row['info']</td>
      ";
   }

   echo "</tr>";
}

?>

I find it messy to go in and out of PHP so I modified it to make it all PHP.

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 have used this little routine to create a unique (ascending) sequence number for registrations. These aren't random, they are very predictable. If you are using the number as a unique reference number, then this is probably what you want to do. It uses a text file so you don't need a database. It locks the file because you could have multiple users trying to do this at the same time (so it needs to be done in a serial fashion).

$fc =fopen("reg_ctr.txt","a+") or die("Error!");
	flock($fc,LOCK_EX);			/* lock the file */
	$seq_ctr = fread($fc,10);
	$seq_ctr_next = $seq_ctr;
 	@$seq_ctr_next = $seq_ctr_next+1;
	ftruncate($fc,0);
	$ret=fwrite($fc,$seq_ctr_next);
	fflush($fc);
	flock($fc,LOCK_UN);                               /* unlock the file */
	$ret=fclose($fc);

In other cases where "semi-unique" is close enough (the number generated is never used on its own to find the associated information), I have used the time stamp as the reference number. If you use the full ten characters, then it is unique unless two threads request a number in the same second. If you limit it to the last six characters, then it is less unique and you will eventually get some duplicates. If you want it more unique, you use microtime and a much longer number. For this type of use, the time-stamp info can also be combined with some other info (e.g. last name or part of the phone number) to make it even more unique.

chrishea 182 Nearly a Posting Virtuoso

Since PHP is interpreted at run time, you don't need to go through any sort of compilation process before putting it on a server or zipping it to make it available for download. Generally, what is working under Xampp should also work on a linux server. Some applications have install programs that check the operating environment to check that the right PHP parms are set, the DB has been defined (if it needs one) and so on. I'm not aware of any general purpose install utility for PHP, I think that these are all custom.

If you are developing proprietary rather than open-source code and you wish to sell it, then you have to consider how to protect it and license it. There are a couple of pretty good systems to do this (from Ioncube and Zend), a few others that might be OK and some that can be fairly easily broken (obfusticators). From what I have read, they can all be cracked (same as for Windows apps) and it is just a question of the degree of difficulty. Ioncube has an online pay-as-you-go online facility. The Ioncube and Zend systems (and a few others) convert your programs to 'byte-code' (similar idea to compiling but it doesn't produce machine code). Features to handle licensing (registration codes etc) are also available.

chrishea 182 Nearly a Posting Virtuoso

The simplest way (but would probably require some rework on your part) would be to use session variables that you can access anywhere. If you don't do that, then you will probably need Global definitions for all of the external variables that you will be using in the function.

chrishea 182 Nearly a Posting Virtuoso

To verify what is working at each step, you can use get_defined_vars(); to dump the variables to see what is defined and what isn't. You can experiment until it works.

chrishea 182 Nearly a Posting Virtuoso

Read this article and see if it helps:
article

chrishea 182 Nearly a Posting Virtuoso

With the ob_start statement, the echo statements shouldn't be a problem however, they are redundant.

Try putting an ob_end_clean() before the header statements to clear the buffer and turn off the buffering.

You could do the same thing with forms or buttons but it would require user intervention so this approach is better (once it works).

chrishea 182 Nearly a Posting Virtuoso

If you are trying the process the code as data then you will probably want to use file_get_contents and file_put_contents to read and write the php file as if it were data.

You will then probably want a table of fields to check for and then scan the string read from the file and do a search and replace (str_replace) to substitute the new values.

chrishea 182 Nearly a Posting Virtuoso

If you want help I think that you will need to be more specific. If you don't know how to design it, then you may want to download a shopping cart module or two and see what they have done. If you have written some code and it isn't working then you should isolate the part that isn't working and pose a more specific question with the code that you are having a problem with.

chrishea 182 Nearly a Posting Virtuoso

Generally a report in the online php world is displayed to the screen. This is usually driven from a database, most often MySQL. If you want a hard copy, you can print from the screen or possibly create a PDF file or maybe a Word file. There are some programs around that can extract from a database and produce basic reports but you will probably be looking at a custom program. If you are familiar with PHP then it's no big deal. If you aren't that familiar with PHP then that's where you need to start.

chrishea 182 Nearly a Posting Virtuoso

I find that your expanation of the problem is hard to understand. If you are trying to nest one form within another, I'm pretty sure that won't work. you mention nesting so I'm guessing that is what you tried to do.

If you have two independent forms on a page that will work but it will only give the results for the form that was submitted (not both). If you need the results from both sections (with one submit), then you should merge the fields into one form.

If you are trying something else, then it would be helpful to restate clearly what you are trying to do.

chrishea 182 Nearly a Posting Virtuoso

I have / had similar symptoms on an HP DV9000. Did a lot of research and tried lots of suggestions without any success. A couple of things seemed to help to some degree:

* If it goes into the (POST) startup loop, hold down the power button until it shuts off; push the power button again to start it and hold down the Delete key. This seemed to get it past the loop and into a normal startup but it may take a few tries. Once it fails and starts looping, this didn't seem to have any effect so you need to stop it and start it again.

* I found that re-seating the hard drive seemed to help. I suspect that it might have been going into the loop because it was having trouble reading the drive. In my case, the drive wasn't screwed into the machine so it was only attached by the connector. If yours is firmly attached, that may not be a problem unless the drive itself is intermittently bad.

I have mostly been leaving it running. Last night I turned it off and it started OK this AM but I still don't have confidence that it will do it every time.

chrishea 182 Nearly a Posting Virtuoso

Any good reason that you would respond to a posting that is a year old (or is it just a business promotion thing)?

chrishea 182 Nearly a Posting Virtuoso

A couple of important things on this extended warranty:
* It applies for 24 months after the expiry of the standard one year warranty.

* It doesn't seem to say it anywhere on the site but when you dig into the details I think you'll find that this only applies if you have an Intel processor. If you have AMD, the Bios hasn't been updated in a long time.

chrishea 182 Nearly a Posting Virtuoso

Why are you adding on to a thread that was started in 2005 and last updated in 2007? Read the previous posts and follow the advice or open a new one if they don't help.

chrishea 182 Nearly a Posting Virtuoso

Creating output files in most of these formats isn't that difficult. To make it even easier, I created a small include module that you can use. You can download it at:
Desktop_Write

chrishea 182 Nearly a Posting Virtuoso

A bit of additional info.

I don't know if this was the original problem or not. When I fired up the machine this AM, it seemed to go into the same Post loop I had originally. I tried the (XP) Windows CD and when I tried the repair option it told me it couldn't find a hard disk. I could hear the hard disk turn but maybe something wasn't connecting right. I took out the disk, fiddled with the adaptor and then put it back in. The machine then booted up normally. Was this the problem all along? Don't know but if I get the same symptoms again, reseating the hard drive will be my first action.

chrishea 182 Nearly a Posting Virtuoso

I am marking this as Solved even though I don't fully understand why it did what it did. Since I also posted in the Windows forum (since it wasn't clear if it was software or hardware) I put the closing summary there .

There may be a hardware factor in this problem but it still isn't quite clear. When I couldn't get out of hibernate and had to force a re-boot, it would appear that something was then detected in the Post process that wouldn't let it complete. Since the system is now booting correctly (from a normal boot), it would appear that the problem was created by Hibernate or there is some extra checking after a forced shutdown that detected some sort of error (which does not inhibit normal operation and isn't checked on a normal boot). This is all speculation. If anyone understands the details of what Post is doing it would be interesting to get a real understanding. Since Hibernate and Sleep seemed to trigger the sequence, I have them turned off and I'll do without them.

chrishea 182 Nearly a Posting Virtuoso

The Last Chapter
This is ready to be closed even though I still don't understand exactly why the machine did what it did.

I turned off the machine overnight and it booted up normally this morning.

The Recap
HP Pavillion (dv9201) running an up-to-date copy of Vista Home Premium. The machine is a couple of years old. I had the Motherboard replaced previously under warranty because of a wireless problem.

I put the machine into hibernate mode (which I did on a regular basis since it was new). The next day when I tried to bring it back to life, it went into a loop (in the Post process), trying to start up, shutting itself down and then immediately trying again. I let it retry many times but it never got out of the loop. I tried all of the standard ideas like removing the line power and the battery, holding down the power button for an extra long time etc but none of those helped this time around. I messed around with the HP Recovery Manager for a bit and I managed to get it restarted once but overall, it wasn't much help. The only action that was successful in getting out of the loop was holding down the Delete key when starting it up. It took a few tries but that took it to the HP logo and into the Windows Boot.

Since Hibernate seemed to trigger it, I thought that Vista …

chrishea 182 Nearly a Posting Virtuoso

I've had the machine running continuously (under Vista) for a month or so. It booted a few times after Windows updates and that worked OK. I tried some restarts and I shut is down and then started it with the power button. That all worked fine. Swapped drives and booted under XP and that was OK too. If the problem is related to a connection problem with the NVidia chip, then I'll probably find out when I shut it down and let it cool off. That's my next step.

chrishea 182 Nearly a Posting Virtuoso

An Update
I post this as part of my ongoing saga in case it may be of value or interest to others.

Once I got the machine running again (more than a month ago), I didn't want to take the chance and reboot it so I just left it running. Windows update was set to automatically do its thing (I didn't think to disable it initially) so it forced a few restarts along the way and they worked ok. I think that the longest it ran without a restart was around 300 hours up to this morning.

I didn't initiate a restart or shutdown myself until this morning (after Windows Update had already restarted it once). I was still running Vista and I tried the restart (which worked as you might expect), then I shut it down and restarted with the power button. That worked OK too.

I checked on the BIOS situation (the HP BIOS update!) and found that there have been updates for the Intel version but the AMD version hasn't changed since 2007 so I have the latest version already.

Along the way, I purchased a new drive and loaded XP onto it. That worked OK for a while until I let it go into Sleep Mode and then it started having the same problem I had under Vista. This morning, I swapped drives again and booted it under XP and that worked OK as well. The combination of the new faster …

chrishea 182 Nearly a Posting Virtuoso

I have had problems in the past trying to pass a resource like this and make it work. It was simpler to open a new connection. You will end up with more open connections and that might be a problem in some cases but it has never been a problem for me.

Having said that, it may also be that your original connect didn't work or you have lost the pointer before it was passed.

chrishea 182 Nearly a Posting Virtuoso

Not having seen your site, I would suggest that you might want to consider the feature to "wrap" existing web pages within your new CMS site. The navigation might then be at two levels so it might have to be re-worked a bit. I use Website Baker which has this feature but I know that there is a similar capability in Joomla.

If you want to see a working example, send me a PM.

chrishea 182 Nearly a Posting Virtuoso

What does "not working as expected" mean exactly. What is the actual value of $results going into the comparison and what result do you get from the compare. Have you tried substituting a fixed value for $results? If that works, then there is some problem with what goes into / comes out of the addition.

chrishea 182 Nearly a Posting Virtuoso

KB Publisher is quite good. It was open source up to release 2 but it has now become a commercial product and it looks as if the author worked on removing any copies of the open source version. Guess I'll have to post one for him when I get around to it!