chrishea 182 Nearly a Posting Virtuoso

There are quite a few systems that do this sort of thing but I don't know if any of them are free. At a minimum it may give you some ideas if you wish to continue building your own:

http://www.capterra.com/school-administration-software

chrishea 182 Nearly a Posting Virtuoso

This is usually the result of unpaired braces (e.g. on an iF or While) or possibly unpaired quotes for a string. The problem could be anywhere in your code so you have to go through the module and look for that type of situation or compare the current version with a previous version to look at what you last changed.

chrishea 182 Nearly a Posting Virtuoso

I agree with the previous note that you will need some expertise and some time to put this together. Have a look at the following links:

Expedia Affiliate Program: http://www.expediaaffiliate.com/private-label-xml.html

A service similar to what you are trying to do: Kayak

A sample of the Expedia API Spec (2007): Expedia API

I'm sure that Travelocity and other such companies provide similar capabilities. I think that you have a lot of research to do before you decide on the best approach.

scaiferw commented: Well considered links contributed. +1
chrishea 182 Nearly a Posting Virtuoso
theighost commented: very helpful :) +0
chrishea 182 Nearly a Posting Virtuoso

Sorry, I didn't read your question carefully enough. There will be some processing for the functions on every page that is executed. It is probably better to be consistent and include it everywhere unless it is really big. Even if that is the case, the performance difference probably won't be significant. If you have some pages that are executed very frequently and don't need any of the Functions, you could possible exclude the functions from that one and possibly put a note in the code as a reminder that they have been excluded.

chrishea 182 Nearly a Posting Virtuoso

The answer is probably yes but the question isn't totally clear. If this is your database, then at the start of the program, you read the database, determine if they did it before or not and then display the appropriate page. Could anything be simpler? There may be more to the question than what you stated previously so, if there is, please clarify.

chrishea 182 Nearly a Posting Virtuoso

At a minimum, you need some sort of text editor to use in writing your code. There are other useful free tools out there. You can see my list at: SNIP

chrishea 182 Nearly a Posting Virtuoso

If you have a function (definition) in the executable path of your code more than once you will get an error. If you will potentially have that situation and want to avoid the problem rather than re-engineer your code, use:

if (!function_exists(xxx) {
   function xxx( ) {
     ...
   }
}

wherever you have the definition of the Function. This will avoid the potential problem.

chrishea 182 Nearly a Posting Virtuoso

It's pretty simple and you don't need to pay for a gateway.

You can send an SMS message just like an email. The wrinkle is that the email format differs between cell phone providers. When you want to do an SMS authentication, you must ask the person (on the website) for their cell number and provider name (best to use a drop-down list). Then, you must create the right email address format and send the message like a normal email. On the website, you will have a 'Continue' button and it will provide a form where they can enter the code. To get the formats for the various providers you can do a web search for something like 'PHP SMS send' and you'll probably find some sample code and as starting list of providers and formats. Any others that you need can be found by going to the web sites for the providers that you need.

Questions on working with SMS come up often enough I guess I'll have to create a tutorial but right now, this is what you get.

iWalletMobile commented: Great Help +1
chrishea 182 Nearly a Posting Virtuoso

How you go about it depends on how you learn best. Some people need to have a course with an instructor, others can do tutorials and others like me prefer to jump in an thrash about and go looking for the info as they need it. W3Schools provides good tutorials and a good reference as you go.

chrishea 182 Nearly a Posting Virtuoso

If you use a relative address like include "inc/xxxx.php" or one that points to the root like $_SERVER... I don't see why you would need to change it. I don't understand why you would anticipate a need to totally change the structure. Once you define a need to have $_SERVER."/inc/top.inc.php" then that becomes a requirement for your site. Unless I am misunderstanding your question, it seems that you are trying to be unnecessarily flexible.

chrishea 182 Nearly a Posting Virtuoso

You created the query statements but you didn't actually call MySQL to take action on them. You need a mysql_query statement to execute each query.

chrishea 182 Nearly a Posting Virtuoso

You should build a second version of the page with just the info to be exported and create the excel file from that.

chrishea 182 Nearly a Posting Virtuoso

If multiple people could potentially update the file in parallel and then try to upload it to the server, you will eventually have the problem of one user overwriting someone else's changes. You could build an application to control this or maybe find an open source program that will do that. An easier option might be to use Google Docs. It would eliminate the need to upload / download and I believe that it has dealt with the concurrent update issue. I believe that they have dealt with security and privacy issues so that it can be a Corporate tool. I think that it is worth a look.

chrishea 182 Nearly a Posting Virtuoso

[start_rant]
Maybe it's just me but we seem to be getting a lot of posts from newbies (more than normal) who post vague general questions or dump a whole bunch of code that isn't working and expect someone who knows what they are doing to spend a bunch of time doing something that they may have been too lazy to do for themselves. You don't need to be a php expert to post a question or a problem (probably quite the opposite most of the time). I think that we should expect some effort on their part first to do some research, some testing / debugging and provide a decent statement of the problem / question before they get any help. In many cases, you can do the work to get them an answer and you don't even get a response much less a thank you. Maybe what the internet needs is a global rating of every person for intelligence and as a decent human being. This would follow you around everywhere you go so everyone would know what they are dealing with. Sort of like the DaniWeb + or - ratings for individual posts but on steroids. I am kidding (mostly) but it seems that there are quite a few people who would deserve to be blacklisted on one or both counts.
[end_rant]

vaultdweller123 commented: agreed, very well said ^_^ +1
Lusiphur commented: My sentiments exactly! +1
chrishea 182 Nearly a Posting Virtuoso

If you display about.php in the iframe (instead of linking to it) then I believe that the original page url will still be displayed in the address bar. If you link to about.php, then you are no longer using the iframe and the about.php address will be displayed in the address bar. Are you saying that it is being displayed in the iframe AND the about.php address is in the address bar? That isn't logical.

chrishea 182 Nearly a Posting Virtuoso

Please fix your post to use code tags properly. Your code is showing up as text.

chrishea 182 Nearly a Posting Virtuoso

Good luck getting an answer!
First: You have dumped a large amount of code into your post without code tags so that makes it difficult for anyone to make sense of the code.
Second: Debugging is part of programming. You give no indication as to what you have already done to try to isolate the problem or where in your code the pertinent code is to choose the state or set the value.

chrishea 182 Nearly a Posting Virtuoso

So what is the issue? If you display another page within the iframe you are still on the original page and that address should still show in the address bar.

chrishea 182 Nearly a Posting Virtuoso

Your question is vague and might be interpreted in different ways depending on how much importance that you put on 'properly'. You can easily mix php and html in a PHP module. Just end the PHP section with a ?> and start your html. You can go back and forth as many times as needed in a module. You can also use PHP to echo html statements. The purists don't like to see things mixed together so they would probably prefer the first approach. You can also put your html in separate modules and include them at the appropriate place(e) in your PHP module.

chrishea 182 Nearly a Posting Virtuoso

Why would you want to do that? If you like the design, it would be better to copy some of the html and adapt it to fit your needs. If you have some other reason for doing it, you need to explain it better.

chrishea 182 Nearly a Posting Virtuoso

I see that you posted the same question at:
http://forums.digitalpoint.com/showthread.php?t=1858971

A Google search of unix2data brings up your two posts and nothing else. What is unix2data?

chrishea 182 Nearly a Posting Virtuoso

If you have some sections that should be standard on every page (like a header or footer) then you can define those parts of the page as separate PHP files and use include / require to make them part of every page that needs them.

chrishea 182 Nearly a Posting Virtuoso

You are implying that you had another video card and that was working (?) and then you installed the GEForce 8600 and it is no longer working. If that is not correct, then you need to provide a more thorough explanation if you expect to get any help. If it is correct, then the new video card may not be working properly or maybe it wasn't installed properly.

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

You need to provide more information on when this occurs (what happens leading up to it) and what have you already tried to recover from it. If you took it to a technician, did you ask him to fix this problem and if so, what did he tell you? If it isn't fixed why not take it back to him?

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

You could separate your fields with a comma or some other unique character (when the file is written) and then use explode when you read the line to separate the fields.

chrishea 182 Nearly a Posting Virtuoso

There are PC utilities that do a good job of this. You may be able to do it through PHP but it may not give you as good and accurate a result as you can get from the free PC utilities.

If you are determined to try it, you can try the following utilities:

1. Convert Word to other formats (html)
http://www.weberdev.com/get_example-3211.html

2. Convert HTML to PDF
http://innovationsdesign.net/wb_2.7/pages/tech-resources/downloads/html2pdf.php

chrishea 182 Nearly a Posting Virtuoso

If they are entering the code that you send them into a box in your online application (as I would expect) then you don't need to pay for a gateway service. You just need to have them enter their cell number and choose from a list of cell phone service providers that you will define. You will need to define the table of cell phone providers in your application along with the corresponding email address format that you need to use for each one. If you do a search, you can probably find a text version of a list of providers if not some php code. The other option is to go to the website for each cell phone provider and get it there. I have done this and it isn't a long or difficult task.

chrishea 182 Nearly a Posting Virtuoso

It looks as if your first attempt to post your code didn't work correctly as it has all come out as text. This makes it more difficult for anyone to help you. Suggest that you try it again.

chrishea 182 Nearly a Posting Virtuoso

To export to Word, Excel and other formats see:
Desktop Write

To create a file as a PDF, you can use built in support and open-source classes to construct your file OR, you can create the output as HTML and then convert to PDF. I have used this latter approach successfully using the HTML2PDF utility. FOr info on this see:
HTML2PDF

chrishea 182 Nearly a Posting Virtuoso

It seems that you are trying to go beyond what you can control from the server using PHP. Normally, when you use a PDF document you provide a link, the document opens in the browser and then you have the option of printing it.

If you do a search on javascript pdf print you will find posts on what you can do from javascript to handle printing of a PDF. Trying to print multiple PDFs in one go may be a challenge. If that isn't possible / easy, then you might have to live with pre-packaging certain parts of the form together in a discrete number of bundled PDFs. Another approach would be to generate a custom PDF file based on their requested options then just give them a link to open it and use the standard PDF print capability to print it. Doing it that way gives them the option to save it and print it later (may be useful if they use that same version of the form regularly).

If you go for a javascript solution, you will have check for limitations on which Browsers and which versions of the Browsers the code will run in and if it needs the latest Acrobat version installed.

chrishea 182 Nearly a Posting Virtuoso

Apparently, a 305 error can be the result of the hard disk being too full so there isn't enough space for critical system files. If your machine is relatively new, then that probably isn't your situation. You should try to get into safe mode. If you can, it means that the disk is still working and it will give you the chance to do some backups if you don't have everything backed up already. Either way, you should take it back under warranty but chances are that you may lose anything that you didn't back up.

chrishea 182 Nearly a Posting Virtuoso

Probably time to visit your local tech and see if it can be salvaged.

chrishea 182 Nearly a Posting Virtuoso

You can do a session_start at the beginning of the module and then add to a session counter (e.g. $_SESSION++;).You can check the value of the counter and if it is over the limit, you can print an error message and exit.

chrishea 182 Nearly a Posting Virtuoso

Something like
<input name="item_price_1" type="hidden" value=$due />

should work.

chrishea 182 Nearly a Posting Virtuoso

You can only retrieve the value from the database once you have stored it there. The way your question is stated, it isn't clear if you are asking how to save the value or how to retrieve it.

The value of the checkbox (whatever you defined for the value if it was checked) will be a $_POST variable (assuming you use method=post on your form) in the module which is defined in the action for the form (default is the same module as the one that defines the form). You can access these in PHP (e.g. $a = $_POST ). You will need to define MySQL statements to write these values to database fields. Once they are in the database you can then read them back using a MySQL query.

All of this is straightforward html, php and mysql. If any of that isn't already familiar to you, then you probably need to do some tutorials or look up the info on the individual pieces as you go. W3C Schools is a good place to start:
http://www.w3schools.com/

chrishea 182 Nearly a Posting Virtuoso

If this is a Java question then it is posted in the wrong forum.

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

You cannot have any output prior to the session start. Thus, you can't echo anything or have any text coming from any html. If you haven't done this intentionally, it can sometimes be the result of a blank line (e.g. an empty line before the intial <?PHP)

chrishea 182 Nearly a Posting Virtuoso

If the echo on line 22 isn't writing anything to the output then it probably means that your If statement on line 19 isn't working. Please read my previous post again.

chrishea 182 Nearly a Posting Virtuoso

Still not an answer. Is this a Word file or an Excel file or PowerPoint or ???

chrishea 182 Nearly a Posting Virtuoso

For starters, you are opening the file with an 'a' which is write only then you are trying to read it and that should fail. It seems that you are trying to insert into the file rather than append. If that is the case, you could try another option like r+ or a+ but I don't know if that will do it. It might overwrite (for an r+). You may need to read the file and rebuild it to a string and then re-write the whole thing. I also wonder if your if (trim($line) == "<messages>") { will work because the line is actually terminated by a new line character. You may have to check for a substring.

chrishea 182 Nearly a Posting Virtuoso

In this format it would normally be trying to execute the index module in the folder called 120. I don't believe that this has anything to do with passing variables.

chrishea 182 Nearly a Posting Virtuoso

The first thing to check is how you saved the module. If it doesn't have a .php suffix (xxxx.php) then it won't be recognized as a php module and your php code won't be executed.

chrishea 182 Nearly a Posting Virtuoso

The most straightforward way is to use a table:

1. Define the table before the foreach statement (e.g. $results .= "<table width=95%>")

2. You may want to define a header row (e.g. $results .= "<tr><th>xxxx<th>yyyy...)

3. Keep a count of what column you are processing. When you get to column 4 reset it to one and generate a new line (<tr>)

4. For each field you can put a <td> ahead of it to make it a separate column.

You will need to consider the amount of data in each column and if three columns will actually fit across the page. You can use the same approach for just two columns if three is too many.

chrishea 182 Nearly a Posting Virtuoso

You won't see the php when you view the source. The php executes on the server and all you see in the browser is the html and javascript if there is any. In this case, the "Hello World" string should appear after the <Body> statement.

There are lots of things that could be wrong but for starters, your module has to be recognized as a PHP module by the (WAMP) server. Thus, it has to have a .php suffix. If that is correct, I would verify that the content of the module is what you have shown above. If not, I would take Eclipse out of the equation initially and just use a text editor to save the module and try to run it in WAMP. If that works, then WAMP is ok and you have some sort of problem in what you are doing with Eclipse. If WAMP has a problem, then I'd fix that first and then sort out Eclipse.

chrishea 182 Nearly a Posting Virtuoso

Most questions aren't new. You can often find an answer by searching this site or by doing a web search.

Here is one thread that provides some references:
http://www.daniweb.com/forums/thread212322.html

chrishea 182 Nearly a Posting Virtuoso

Some might say that there are no new questions!

You need to look at the source of the page. Somewhere along the way, some <p> or <br> commands have probably been inserted. If it's not that, then something else has been done to position the top of the page.