chrishea 182 Nearly a Posting Virtuoso

If someone here doesn't have an answer, I suggest that you call the PayPal support people. The most obvious reason would be that the amount is wrong and you are trying to refund a total that is more than the amount of the original transaction but it probably isn't that simple.

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
chrishea 182 Nearly a Posting Virtuoso

If you don't have a copy of the PHP manual, you need to download a copy and use it. It states very clearly:
'w' Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.

You then see option 'a':
'a' Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it.

chrishea 182 Nearly a Posting Virtuoso

I don't think there is any other answer other than your code has to be smart enough to check for (valid) content in the form fields before you try to use them in your program. If you have a field that might have a number or might be blank and you try to use that field as an index into an array, then I would guess that you would get a message like the one you have shown. If you go through a validation routine first, insert default values if necessary and/or check in the code that follows that you have appropriate content in the field then you shouldn't have a problem.

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

Malwarebytes is one of the best of its kind. Can't comment on CCleaner.

chrishea 182 Nearly a Posting Virtuoso

Try teamviewer. There is a free version and it is pretty easy to use.

chrishea 182 Nearly a Posting Virtuoso

I'm not clear as to why you have a customized reset rather than a simple html reset but I don't think that is the problem. I'm guessing that reset is clearing the values in the boxes but the fact that you have it defined to load values into those variables (the previous values entered) is probably still happening after the form is reset. I think you will probably have to change the code to clear those previous values and only return them if the user chooses to update them. If the form is accepted then I think that you must clear the previous values before displaying the form again.

chrishea 182 Nearly a Posting Virtuoso

I saw your note and I ended up spending quite a bit of time playing with it. I wasn't making too much progress so I ended up using the free online openid service at: RPX
I did get that working and I recommend it.

You may have reasons why you need to roll your own but if you don't I suggest that you try the service version. When I was trying to get php-openid working I did see some postings that were reporting how people were having problems with Yahoo and Google Apparently, they handle it a bit different than the rest. There were some suggested changes to get around it. There were also suggestions that it needs to be re-written for PHP 5. If you do a bit of searching on google, I'm sure that you'll find it.

chrishea 182 Nearly a Posting Virtuoso

You'll need to post some code.

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

You've done most of the normal steps. Clean out dust from the fan and ensure that the fan is working. If you have an external monitor, you should try connecting it just to be sure that it isn't your LCD panel. Dust in general can cause problems. If you can get at your motherboard with some compressed air, that wouldn't hurt either.

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

I don't think that's enough. The array isn't being loaded correctly either!

But seriously though. You may have better luck using the authorize.net forum to see if anyone else has encountered similar problems and what the cause was.
http://community.developer.authorize.net/

chrishea 182 Nearly a Posting Virtuoso

The Search box is there for a reason. Most common problems have been solved before. If you do a search on volume control, you'll find quite a few previous posts. Here's a link to one of them:
http://www.daniweb.com/forums/thread73442.html

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

fopen, fwrite, fclose or even simpler, file_put_contents.

chrishea 182 Nearly a Posting Virtuoso

You could write the code to a file (saving it with a .htm or .php suffix) in a temp directory and then re-direct to that page. You'll want to limit the access to that directory so hackers can't create their own pages there.

chrishea 182 Nearly a Posting Virtuoso

Cell phone providers allow you to send to send SMS messages to cell phones by using a format of the form nnnnnnnnnn@telco.com where nnn... is the cell phone number and telco.com is the specific website address for the telephone company in question. This means that you need to know the company for each cell phone in order to create the email address. Many / most do not allow the phones to send a reply.

If you want a two-way service, you can use a gateway provider. Examples are http://www.smsgateway.ca/ and http://www.clickatell.com/

The code to confirm the registration and provide a password would be the same as you would use to send to an email address (except you may have to add some code for the API to the gateway). You can find a tutorial on this at:
http://www.tutorialcode.com/php/registration-script/

chrishea 182 Nearly a Posting Virtuoso

It's possible that your power jack is loose so it isn't making good contact with the motherboard and you aren't getting any juice. The jack in the machine could also be faulty. If it starts up and then almost immediately shuts down or if it won't start booting at all, this might be your problem. If you can hold the power cord (male) jack and move it around so it doesn't seem like a solid / tight fit, then that would be a sign.

This is apparently fairly common on at least some HP's. I have a dv9201 and I have that problem. Right now the power cord is taped into position with duct tape and that is keeping it running until I rip it apart to fix or replace the jack.

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

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

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

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

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

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

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

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

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

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

I don`t know if this will work but you can give it a try

http://code.google.com/p/php-excel-reader/

chrishea 182 Nearly a Posting Virtuoso

If you can view the files you should see folders for Apache, MySQL and PHP. If you can run a phpinfo command you'll see details of all three.

chrishea 182 Nearly a Posting Virtuoso

In the PHP manual it suggests using the session_destroy and deleting the session cookie. Have a look at the manual and give it a try.

chrishea 182 Nearly a Posting Virtuoso

I don't have an answer for you but you may want to look at:
http://ca.php.net/manual/en/function.header.php

The source of the file is dependent on the $file variable. You need to check that it is correct. The header statement defines the name for the output file.

chrishea 182 Nearly a Posting Virtuoso

If you look at each of the things you want to do, none of them seem to be very difficult:

1. Send the user to a different web site
The login will have to pull in info from the (MySQL?) database for this user and probably save them as session variables. Something in the DB will identify the type of user and that is probably the determinant for where to redirect to (php header command).

2. Only display certain products
This is similar to the first point in that some information in the user's record is going to determine this. You have already re-directed to a specific web site so if that isn't specific enough, then you check the user info and decide what should be displayed. You could have this be unique to each user but I would guess that for simplicity you will probably have a limited number of categories that the user could fall into.

3. Images as links ...
I'm not really clear on what you want to do from the explanation but regardless, it doesn't sound too complex.

4. Quicklinks
In this case you need to store the history and then do some real-time analysis. To keep it managable you probably need to give every significant page an identifier and then store that into a history file under the user's id (as you hit each page). Alternately, you could store the info in a table in a …

chrishea 182 Nearly a Posting Virtuoso

Well if I had the problem and if it was my phpBB system, I'd:
- Convert to version 3, or
- Write a short script to convert all the user names to lowercase and advise the users that it was done, and / or
- Change the registration code to force all usernames to lower case, and / or
- Make the change directly in the database when I had to do something on a user account that had this case problem. This might be just making the username lowercase manually or it might be patching a change directly into the db (but probably the first option).

From something that I read when doing a bit of searching on this, there is a "clean" lowercase version of the username in the phpBB3 database. If the same thing is there in phpBB2, maybe the access to the user record should use that instead. Depends on your comfort in making internal changes to the code.

chrishea 182 Nearly a Posting Virtuoso

If you want to choose all of the records from the db for July of the current year you can do a select such as:
Select ... where date like '2009-07-%'

if you want all July records for any year the it would be:
Select ... where date like '%-07-%'

chrishea 182 Nearly a Posting Virtuoso

You might have more luck searching or posting the question on the phpBB forums at http://www.phpbb.com/support/forums/. You are a major release behind but that means that someone must have already encountered the same problem on release 2.

chrishea 182 Nearly a Posting Virtuoso

If you are concerned about having the details on the command line, then you may want to put them into session variables (assuming that you are posting a program within the same domain).

chrishea 182 Nearly a Posting Virtuoso

You can use my desktop_write module. As you will see, the actual code to do it is pretty simple. This just packages it for you and provides the option of different output file types.

desktop_write

chrishea 182 Nearly a Posting Virtuoso

I don't think you can do it through PHP. The best I could come up with was a way to display the computer name:

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
	echo $hostname;
chrishea 182 Nearly a Posting Virtuoso

If you use your own button to go to the page (by address) you shouldn't have the problem. On the other hand, if you wanted to go back with values you previously entered populated into a form, then the second page will need a form with your submit button and some hidden variables to pass back the values (with the values in the original form defined with variable names that you will set).

chrishea 182 Nearly a Posting Virtuoso

If this is a project then aren`t you supposed to be writing it? If you tried to write something and had a problem making it run then people would probably be willing to help. Even if someone was willing to help you find one, they would need more details (requirements) than you have provided.

chrishea 182 Nearly a Posting Virtuoso

A little but of googling would lead you to PIG, the PHP Interest Group that has a specific interest in ICQ. I suggest that you use that site to get an answer.

chrishea 182 Nearly a Posting Virtuoso

I have recently been looking into this. There are a couple of free options to generate keys and so forth but the actual activation is probably additional development if you want to automate it.
Kenetix
This is a pretty simple approach
http://www.kenetix.net/Utilities-License_Generator.html

Activelock
There was oriiginally built for VB but there is a PHP version. I did a bit of initial testing. It looks as if it is made for PHP4. It will take a bit of work to make it PHP5 compatible (but it may be worth it).
http://www.activelocksoftware.com/

or if you are prepared to pay for it, you can look at:
PHP License Pro
This includes activation and monitoring.
http://www.phplicensepro.com/

You are going to have to protect the code as well so you will probably want to use Ioncube by purchasing a copy or uisng their online pay as you go option. You can use an obfusticator but they can be broken so you probably don't want to do that for anything that you've invested a lot of time into.

chrishea 182 Nearly a Posting Virtuoso

Excel can read HTML and open it as a spreadsheet. My Desktop Write utility takes advantage of this to create Excel, Word and other types of output. Get it here:
http://innovationsdesign.net/wb_2.7/pages/tech-resources/downloads.php

chrishea 182 Nearly a Posting Virtuoso

It's worth doing a search of previous postings because most common questions have been asked and answered before. I got this link from a previous post:
http://corz.org/serv/tricks/htaccess2.php

If it doesn't answer your question, there are a number of previous posts that you can look at.

Chris