chrishea 182 Nearly a Posting Virtuoso

I only have a partial answer. You may not get everything you want in one place (at least not for free). A good converter that handles lots of formats is Super. When I did editing (e.g. adding titles) I used Windows MovieMaker. As for the watermarks, I'm sure that you can find that doing a search.

chrishea 182 Nearly a Posting Virtuoso

I don't know how Facebook is doing it but a couple of options come to mind:

1. Instead of having a unique page address, have the number as a parameter in the url and use that in a database select to identify the user and get the db info.

2. Have a custom 404 (page not found) page. The page won't really exist so you will get a 404 error when the click the link. If you intercept the error you can then store the last part of the link (that is actually the parm) and then re-direct to wherever module that you have to process it.

chrishea 182 Nearly a Posting Virtuoso

It seems that you would want to make the ID a parameter in the link so you can find the right one.

chrishea 182 Nearly a Posting Virtuoso

With his cell # and the cell phone provider you can send an email that will go to the phone. There have been lots of posts on this topic. You can start with these:
http://www.daniweb.com/forums/search10163832.html

chrishea 182 Nearly a Posting Virtuoso

Laptops are somewhat delicate so it depends on your experience and willingness to take a bit of risk. It certainly can be done but you need to be prepared for the possibility that something will go wrong and that you'll end up going to a tech with a larger problem than you started with.

I had a laptop with broken hinges. I bought new ones on ebay and installed them myself. I broke a small wire leading to the screen and had to put that back together but in the end the hinges and the machine worked. I then had a problem with the power plug and that required a bit more disassembly than I was comfortable with so I took it to a tech and paid $100 to have it done.

There are instructions on disassembly on the net. Here is one example of a complete Gateway disassembly (disassembly) You can probably find others with a search. I saw mention in one post that someone with a similar problem couldn't get the switch from Gateway so that is one thing that you'll want to sort out before you start pulling it apart. If this isn't your kind of thing then find a good local tech and pay the money.

chrishea 182 Nearly a Posting Virtuoso

You need to work in seconds and you need the timestamp for the starting time.

1. Use strtotime to convert a string to a timestamp (format the input string in a obvious format like yyyy-mm-dd hh:mm if you can).

2. Once you have this converted, then convert your duration hours and minutes to seconds.

3. Add the duration seconds to the timstamp.

4. Convert the resulting end timestamp back to a display format using the date command ( e.g. date ("Y-m-d h:i",$end_timestamp).

chrishea 182 Nearly a Posting Virtuoso

You don't have a true gateway you have an SMS application. As you know, you can send an outbound SMS message as long as you know the number and the provider. Inbound SMS isn't provided by the Cell phone providers to the public. A gateway will handle both inbound and outbound traffic for you but it isn't free. An example is Clickatell.. You can do a search and find others. If you were looking for something for free, it's probably possible to use Twitter as a gateway but it would take a bit of research and your users would probably have to be signed up with Twitter for it to work.

chrishea 182 Nearly a Posting Virtuoso

What does this have to do with PHP? It looks like you need to post this in the Javascript forum.

chrishea 182 Nearly a Posting Virtuoso

If you are trying to include from the root directory of your site, use:

include $_SERVER['DOCUMENT_ROOT']."/lol.php";
chrishea 182 Nearly a Posting Virtuoso
echo "<a href=".$row['reviewlink'].">Click Here</a>";
chrishea 182 Nearly a Posting Virtuoso

Anything on the web that uses a database and / or needs something beyond a simple display (i.e. some logic is required) can use PHP. Thus, you can build systems rather than just a site. CMS's were already mentioned. Forums, social networking, chat, email, blogs, classified ads and almost anything you can imagine that would run from a server can be done in PHP (and probably has been done many times over).

chrishea 182 Nearly a Posting Virtuoso

Step 1: Go to the top of this page to the search box

Step 2: Enter 'Google Translate API PHP' and click on the Search button

Step 3:Look at the list and find the snippet titled: PHP Class for Google AJAX Language API (Language Translation)

Step 4: If that doesn't fit your need, look at the other items listed and if still isn't what you need, then try the same search on Google or try another without Google in the search string.

That wasn't too difficult was it?

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

If you have a program that is working then imagine taking a section of that code, copying and removing it then being able to plug it back in from somewhere else. That is essentially what an Include / Require does. There are a variety of things that you can do with an Include. If you have parameters that are global to a system and you want to have available in every program, then you put them into a config module and include it everywhere. If you have headers and footers and other format bits that you want to include on every page, then you can use it for that as well. It is this latter usage that you are looking at.

This article may be useful as a starting point:
http://blog.themeforest.net/tutorials/simple-layouts-with-php/

chrishea 182 Nearly a Posting Virtuoso

This is one example of an open source class to do geolocation. I can't say how well it works as I haven't used it personally. You can probably do a search and finds others.
http://www.phpclasses.org/package/3813-PHP-Get-the-location-of-an-IP-address-with-the-hostip.html

Since you have already identified maxmind as part of your solution, you have probably already done some research. Here is an article that talks about the accuracy and issues for geolocation with maxmind as their solution as well.

http://www.chehodgins.com/php/free-and-fast-geolocation-in-php/

With respect to your question 3, why not do the geolocation and then ask the user to press enter to confirm it or allow them to make changes to it? That way it is minimal effort in most cases but when it is wrong, they do get the chance to correct it.

chrishea 182 Nearly a Posting Virtuoso

I'm not sure that I totally understand your question based on your explanation but let me take a stab at it. If I understood it incorrectly, then you'll need to clarify:

If you need to send the RoomName from module to module2 that is just a (straightforward) use of a form variable. Your option (0 or 1) will be sent to module2 and so will the room name. You can do this as a free form entry of a text field (not the best solution) or provide them with a drop-down list that you load with all of the possible room names or have a checkbox or radio button beside each room that you are displaying in the first module. Whichever way you do it, module2 will know which room name to use when it reads the database.

chrishea 182 Nearly a Posting Virtuoso

Are you looking for the ability to stop entering part way thru filling the form, refresh the page and whatever you entered has been retained? If so, then you need to look into some javascript to save the values as soon as you complete each field.

chrishea 182 Nearly a Posting Virtuoso

$_SERVER will give you the root address.

chrishea 182 Nearly a Posting Virtuoso

Define not working. Have you done any debugging and isolated where it is having a problem? You presumably have a test environment where you can try this. We don't. When I started working on computers we had to desk check everything because there was no choice. Now we can let the computer do some of the work for us. When something doesn't work, you debug it and try to determine what isn't working the way you expected. There are some better ways but the simple echo command can be used to give you more info on the value of variables at different points in the program so you can see if it doing exactly what you expected it would. If the database reads or writes aren't working properly you can echo the select / insert / update command and then try it in phpMyAdmin to see what it returns.

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

Is image the full URL or just the actual filename portion? If I was in your position, I would echo the values of $image and and $image_ext[0] and $image_ext[1] after line 5 to get more info about what is going on.

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

First, let's see how it looks with proper code tags.

$todo=$_POST['todo'];
if(isset($todo) and $todo=="search"){
$search_text=$_POST['search_text'];
$type=$_POST['type'];

$bad_string = $search_text;
$bad_chars=array(',', '!', '.', 'ï','»','¿','â','¢','®');
$search_text=str_replace($bad_chars,'',$bad_string);

$search_text=ltrim($search_text);
$search_text=rtrim($search_text);

db_connect();

if($type<>"any"){
$query="select * FROM pages WHERE page_text='$search_text' ";
}else{
$kt=split(" ",$search_text);
while(list($key,$val)=each($kt)){
if($val<>" " and strlen($val) > 0){$q .= " page_text like '%$val%' or ";}

}

$q=substr($q,0,(strlen($q)-3));

$query="select * FROM pages where $q";

} 

$result=mysql_query($query);
echo mysql_error();

$num_results = mysql_num_rows($result);


echo "<table cellspacing = 0 cellpadding = 10>";



while($row=mysql_fetch_array($result)){

$page_text = $row['page_text'];
$qid = $row['qid'];
$page_name = $row['page_name'];


echo "<tr><td>";
echo '* <u><a href="';
echo $page_name;
echo '.php">';
echo substr($row['page_text'],0,100);
echo '... *read more...</a></u><br><br>';
echo "</td></tr>";
} 
echo "</table>";

}
chrishea 182 Nearly a Posting Virtuoso

Not unless you provide more info. Clarify the problem and show us the code.

chrishea 182 Nearly a Posting Virtuoso

I suggest that you use an IDE (such as Netbeans) that will identify errors for you before you even try to execute the program.

PHP doesn't like this sort of array reference embedded the way you have done it. You have the same thing on line 23 as on line 7. There are a couple of ways that you can resolve it:

1. Set a variable equal to $_post and use that variable in the Select statement.
2. Force PHP to evaluate the array variable by enclosing it in braces:

$query = "SELECT * from transaction_table WHERE tran_ID={$_POST['tran_ID']}";
chrishea 182 Nearly a Posting Virtuoso

The simplest way is to just have a form with a refresh button where the action is the same module (assuming that it generates a random captcha each time). If the user has entered any data, then you need to pass them as hidden variables so they aren't lost (or as session variables). This will cause the screen to be refreshed from the server. If you want to get fancier, you can investigate JQuery / Javascript captchas that have this refresh built in.

chrishea 182 Nearly a Posting Virtuoso

I don't think that you have provided enough info for anyone to help you. The structure of your modules and how they relate to each other isn't clear. You could certainly add a link to call the above module but it isn't clear if this will accomplish what you need to do. Maybe you should be including this module instead. You don't call a session, it is just a facility that you can use to pass info between modules and keep info through a transaction sequence. If you provide a more complete explanation, someone may be able to help you.

chrishea 182 Nearly a Posting Virtuoso

It seems that MIGS (Mastercard Interface Gateway) is a niche topic and it's hard to find info on it. The developer / supporter is TNS but they don't seem to have support info or a forum on their site, probably because they sell to the Banks and then they rebrand it and provide it to customers. This forum post is about MIGS so you might be able to get some additional info there.

I suggest that you contact the Bank that you are using MIGS to connect to or contact TNS directly and ask them where you can get support.

chrishea 182 Nearly a Posting Virtuoso

In case you didn't find it, the API documentation is here. It only seems to provide the ability to check what's available not to check an id. You could try writing to the API author and see if he had any suggestions.

chrishea 182 Nearly a Posting Virtuoso

These articles contradict what you are saying:
article1
article2

I have a core-duo and Win 7 (Home Premium) and it uses both cores (I have a gadget that tracks usage of everything). Don't know if there is a limit on the number of cores that it will support but it is at least two.

chrishea 182 Nearly a Posting Virtuoso

Cron basically executes a program on a schedule that you set. You may have access through your control panel but if not you should contact your web host.

chrishea 182 Nearly a Posting Virtuoso

You will need a database table (e.g. MySQL) to keep the status for each person (especially the initial activity date and their email address. You will then need a program that is run every day to go through the database table and determine who is due for a reminder. In order to run it every day, you will probably want to use the Cron facility that is generally available on Unix servers.

There are systems that can do the kind of thing that you require (or at least most of it). You may want to look at Hotscripts.com and sourceforge.net as a starting point. You will still need some expertise to set it up and based on the questions you are asking, you either have a lot of learning to do or you need to find someone to do this for you.

chrishea 182 Nearly a Posting Virtuoso

It seems that you need to check if you have any data before you add another line break. If you currently output the line break before you output the fields, you need to create the output line as a variable and then check the length to determine if it has any data.

chrishea 182 Nearly a Posting Virtuoso

Just to be really clear about what is going on: Did you start EasyPHP before you tried to access MySQL. If you did start it then you should see the MySQL status panel that shows the status of Apache and MySQL. For each one there is a traffic light that goes to green when everything is connected. What are you seeing when you start EasyPHP. Does Apache go to green and MySQL stays red? Have you looked in the MYSQL log and if so are there any MySQL messages that are pertinent. There should also be a message in the status panel.

chrishea 182 Nearly a Posting Virtuoso

A few thoughts:

* Did you install it outside of the normal program directories (ie not in Program Files or Program Files(x86)). It works best when put somewhere else.

* Did you check that the php.ini has the mysql.dll extension uncommented and that mysql.dll is in the php extensions directory. In at least one previous version, MySQL was not set up as a default.

* You may want to check the EasyPHP forum at: EasyPHP for pertinent comments.

* Version 5.3.3 is released. It might be worth trying that one instead.

chrishea 182 Nearly a Posting Virtuoso

Your initial statement / request is almost as unrealistic as:
"I am a PHP programmer. I need to build a bridge. I don't have the time to learn all about civil engineering. Just tell me the most common design approaches for building a bridge so I can get on with it."

There is no list because it depends on what you are doing. If you have programming experience in another language, then you may know conceptually how to accomplish what you need to do but you still need to turn that into working PHP. If you don't have much programming experience, then you can't take a PHP cookbook, put together a program and expect that it will work (or that you will know enough to be able to debug it).

If you need to put together a site, I strongly suggest that you use a Content Management System rather than build it from scratch. Even if you are experienced in PHP, HTML, CSS and Javascript, it makes no sense to do it from scratch unless you have a requirement that can't be satisfied with a CMS.

chrishea 182 Nearly a Posting Virtuoso

I realize that you're new to this but if you need to do this again, you should enclose the code in

tags as it provides a better listing to work with.

There is a problem in the code so you need to consider what was changed and why. There is an obvious problem (that I have pointed out below) but there could have been other changes that aren't causing an obvious PHP error but may still result in it not working correctly. If you don't have a backup of the code before the changes, then you also have to look at how you are managing this program / system. It seems that you need to find someone else to provide you with support and maintenance.

You will notice that there is an echo statement about halfway down the listing. This needs to have an open quote before the string that is to be displayed. At the end of the string it needs to have a closing quote. It looks as if the closing (double) quote is at the end of the very last line: (&gt;&gt;</a></font></p><br>";). The problem is that the text in between also contains some double quotes. The easiest solution based on what I am seeing would be to use opening and closing single quotes. Thus, change the line with the echo to look like:
[CODE=php]
  echo '<h1>Advanced Property Search</h1>

and then to change the last line to finish with a single quote:

&gt;&gt;</a></font></p><br>';

That will get rid of …

chrishea 182 Nearly a Posting Virtuoso

Your IF and the ELSE IF are both checking if submit1 is set. It can only re-direct to script1 or to nowhere. Suggest that you give the two button different names and check each one.

chrishea 182 Nearly a Posting Virtuoso

If they are significantly cheaper, they may be pirated. They could also be OEM versions that are supposed to be sold with a PC (but you should be able to register it).

There are a lot of free equivalents out there (e.g. Open Office, Lotus Symphony, Google Docs, Zoho Office etc.) but if you really need MS Office, then check with the seller that it is a legal version that can be registered and check that they have a strong rating (i.e. you can hopefully believe them). I saw a sealed copy of MS Office 2007 on EBAY for $199US and that is pretty good compared to the price at the Microsoft store for Office 2010 (about $650).

chrishea 182 Nearly a Posting Virtuoso

Google search works just fine!
Have a look at this one (php 4.3.0 or higher recommended):
http://php.brickhost.com/index.php#requirements

chrishea 182 Nearly a Posting Virtuoso

If it is specific to each user, then you need a database and a record for each user where you can keep the last status and maybe the last status date if that matters. If you don't have access to MySQL or some other DB you could do it with a file but it would only be usable for a relatively small number of users since you will have to read and write the whole file every time you check or update it.

chrishea 182 Nearly a Posting Virtuoso

If you want to use PDF then HTML2PDf is a good option. In fact any time that you want formatted paginated output, it is worth considering. Here is small example of defining pages (with the optional headers and footers) as input to HTML2PDF:

<page style="font-size: 14px">
     test0
     <br>
     Here is some test text
     <br>
    <!-- This kind of page break doesn't work
     <p style="page-break-before: always">
     Here is page 2 maybe
     </p>
     -->

     The end of page 1
</page>

<page backtop="7mm" backbottom="7mm" backleft="10mm" backright="10mm" style="font-size:12px">
    <page_header>
          <b><div style="font-size:10px; color:silver;">Here is the page header</div></b>
    </page_header>

     Here is page 2
     can I do another page this way?
     <br>Yes I can
    <page_footer>
          <b><i><div style="font-size:10px; color:silver;">This is the page footer</div></i></b>
    </page_footer>
</page>

<page pageset="old">
     Now here is page 3
</page>

Each <page> command initiates a new page. There are a number of optional parameters that you can use. The pageset="old" picks up the parms from the previous page. One thing to note is that it is very particular about getting correct html. If you miss closing tags and that sort of thing it won't work. Thus, you can't just throw any html at it and expect it to work. You may need to do a little tweaking. I have been using the older version quite successfully for some time now and this one is even better.

I have some stuff on my website for the older version. I have to do an update for this newer version because it is a significant …

chrishea 182 Nearly a Posting Virtuoso

It isn't meant to be decoded. That's why they encoded it in the first place.

chrishea 182 Nearly a Posting Virtuoso

I ran a little test program from my (virtual) linux server. I ran it from IE, Firefox, Opera and Chrome. It checks the filesize for another program in the same directory. It gave exactly the same (correct) result in every case. You must have a problem or limitation in your server environment or something wrong in the program or a problem in one or more browsers (try another version?). The program that I used was:

<?PHP
/*
     Test filesize (change the module name to check to something in the same directory)
*/

     $size = filesize ("div_by_zero.php");     
     echo "<br>div_by_zero.php reported as size=$size ";    
?>

If you run this and you don't get a value at all then something strange is happening on the server. If you don't get a value (or it is inconsistent) in different browsers then there could be a problem with the version of one or more browsers that you are using.

chrishea 182 Nearly a Posting Virtuoso

If you create the output as a Word file, you can tell it where you want the page breaks. I don't have the details handy but if you want to go that way I can dig up some details (I have done it but I would need to dig through a program to remember how).

chrishea 182 Nearly a Posting Virtuoso

It isn't just whitespace, it is anything that generate output to the browser. That could be an echo or a session statement or other things. Please post the first 5 or 6 lines of head.php

chrishea 182 Nearly a Posting Virtuoso

Have a look at this:
http://html2pdf.fr/

It makes it pretty easy to take a html screen display and produce a PDF output. It does requires valid / complete html (e.g. closing tags) that your browser can live without.

chrishea 182 Nearly a Posting Virtuoso

You need to post your code using code tags. If you have a question or if you are having a problem, please state what it is.

chrishea 182 Nearly a Posting Virtuoso

Since you are downloading, you are trying to get the file size of a file on the server. This should work just fine on any browser because it is happening on the server not locally. If you give it a valid file system address (relative, c:/... home/ etc) then you should get the size.

chrishea 182 Nearly a Posting Virtuoso

From some further reading, it seems that application/x-zip-compressed is the mime type to use rather than application/zip. You might want to give that a try.