chrishea 182 Nearly a Posting Virtuoso

These are all free.

chrishea 182 Nearly a Posting Virtuoso

I believe that this sort of thing is purposely blocked for security reasons. If you search hard enough you may find something that works under IE (using ActiveX) but probably not in any other browser. The simple answer is to have your own login facility. If your intent was to only allow people to login from their own machine, then I think that it will be difficult, if not impossible, to control that with PHP and /or Javascript.

chrishea 182 Nearly a Posting Virtuoso

Seems that a Ping is the standard way to see if you are getting a response.

chrishea 182 Nearly a Posting Virtuoso

PHP is an interpreter not a compiler and I presume that what you want is an environment where you can develop PHP code and run it. There are some programs that can use PHP code and actually compile it into a Windows or Linux executeable file but I don't think that is what you want.

In order to use PHP (and MySQL) you need a LAMP "stack" (Linux, Apache, MySQL and PHP). There are packages that put all of this together for you and make it easy:

* EasyPHP (the one that I have been using for years)

* Wamp Server

* XAMPP

Any one of those can do the job.

chrishea 182 Nearly a Posting Virtuoso

I don't have an answer for you but I do have some questions and observations:
1. Is there a reason why all the content on the download page is compressed into a fairly narrow band at the top of the page (with a scroll bar) with the rest of the page just a dark gray blank space?

2. When I downloaded a file under Chrome and Firefox, the file downloads immediately. If you were expecting a pause or anything to display in a second window, that didn't happen.

3. When I downloaded a second time under Chrome and Firefox, it downloaded exactly the same as the first time.

4. Under IE, it did a countdown from 2 to 1 (maybe 5 - 10 seconds) and then displayed the Download button again. It didn't open a save panel and didn't seem to save the file.

Thus, I did some problems but not the one that you saw.

chrishea 182 Nearly a Posting Virtuoso

You are better off not using short tags (<?) but if you need to have them working then you will need to edit your php.ini file (in your Wampserver environment). Find the line that says:
short_open_tag=off and change it to
short_open_tag=on

then save php.ini

chrishea 182 Nearly a Posting Virtuoso

First thing: your statement Please solve it ASAP is not an appropriate way to state a request for help. No one here is under any obligation to help you, immediately or otherwise. If your first language isn't english, then it may just be an inappropriate use of the language so in that case take it as a free tip.

I don't think that there is anything wrong with your code. You could get this result however; if your module isn't defined as a php module (ie it must be called xxxx.php not xxxx.txt or xxxx.htm). When you execute it in your browser, you must have the module in your server's "document" library (e.g. the www directory or htdocs or whatever wamp server uses) and you must execute it from the "localhost" domain (e.g. http://localhost/yourdir/yourmodule.php).

If you are doing all those things then it should interpret the php module and act on the echo statement.

chrishea 182 Nearly a Posting Virtuoso

I developed my own Paypal IPN interface and it has been running successfully for quite a few years now. I discovered a Class that does pretty much the same thing that lets you avoid most of the research and experimentation. You can download a copy from:

http://www.micahcarrick.com/php-paypal-ipn-integration-class.html

You do still need some understanding of how Paypal works so you should still read the documentation from the Paypal site. You will want to set up a "sandbox" account so you can experiment with the interface. There is a program that is included in the download that uses the Class to do a payment but you will need to customize it with your account info. If you have difficulty making that work, do another post and we can probably help you to make it work.

chrishea 182 Nearly a Posting Virtuoso

As an example, this initial post took about a minute and half to complete. Even after it displayed the page that shows the new post, it was still waiting on zulu.tweetmeme.com for about 30 seconds.

chrishea 182 Nearly a Posting Virtuoso

The response time to refresh a page on Daniweb today is pretty poor. I have noticed that a lot recently. It is taking 5 seconds plus (in some cases maybe 30 sec or more) to submit a message / post or to refresh a page. I tested the download speed (using Speakeasy's test facility) from New York to my location (assuming that the Daniweb server is there) and I am getting between 4 and 5 mbps. I can reload a Google search page in less than 1 second and a busier page such as a Yahoo page in 2 -3 seconds. Is there a problem or a capacity issue at the Daniweb server?

chrishea 182 Nearly a Posting Virtuoso

First the mini-lecture: If you are going to be serious about writing code that works, then you need to be able to research and to debug. Not much evidence of either one here.

This may not be your only problem but one thing that I noticed is that you are using a table name of input table. It keeps things simpler if you use names with alpha-numeric characters and underscores (only). If you insist on using names with other characters, including blanks, then you must enclose them in back-tick characters (`xxxx yyyy`) wherever you use them. Start with that and if it still doesn't work then do some debugging and figure out exactly where it is failing.

chrishea 182 Nearly a Posting Virtuoso

It may be because it has the previous code cached (the generated html). If you reload / refresh the page, that usually clears it. If that doesn't do it, you may need to close and re-open your browser. Sometimes it is something stupid like saving the modified code somewhere other than where you are actually executing it from. Having been through this before, these probably explain 99% of these situations. If that doesn't do it, then you have to look at the code itself and see if that is the cause (I didn't go through the code above).

chrishea 182 Nearly a Posting Virtuoso

I don't know of a system that has quite that combination of project and payment management. I have been using a system called qdPM that handles the project and the Ticket part and it can be extended to add additional fields. You could, for example, add a rate of pay and the actual number of hours to a task. What it doesn't have is the reporting where those could be used to generate a the amount owing and maybe even generate an invoice. Something I may work on myself if I have a free moment.

chrishea 182 Nearly a Posting Virtuoso

I don't really understand what you are asking. At best you have defined a requirement. This is a programming forum (but it isn't a place to get your project coded for you). You don't have a programming issue yet because you haven't done any. Write the code and then if you have an issue, come back and ask a specific question. If you don't know how to write the php code (and don't care about learning it), then find a utility to do it or go to a site like Odesk and find someone to code it for you.

chrishea 182 Nearly a Posting Virtuoso

You can generate these files using Headers. This pretty simple module packages it together for various output formats. You need to generate the formatted output in HTML. Word and other programs can take that HTML input and then use it as if it was the native Excel or Word format.

http://innovationsdesign.net/wb_2.7/pages/tech-resources/downloads/desktop_write.php

chrishea 182 Nearly a Posting Virtuoso

It is actually the HTML that you need not PHP. In your link you add target=_blank. Depending on the browser and the settings, it may open in a new tab or a new window.

chrishea 182 Nearly a Posting Virtuoso

You probably need something like this:

http://php-java-bridge.sourceforge.net/pjb/index.php

chrishea 182 Nearly a Posting Virtuoso

Try enclosing line 6 in single quotes rather than double. Your line would then look something like:

$hc1 = ' <?php $site_status = \'';

Single quotes tell PHP not to interpret what is between the quotes whereas it does try to interpret what is between double quotes (finding $site_status to be an empty value in your case).

natchattack commented: Very helpful +3
chrishea 182 Nearly a Posting Virtuoso

Apparently .phtml is just an alternative suffix for .php. You can just rename the file or copy it and change the suffix. The content remains the same. It may be that on your free hosting, they treat them differently. You can get good hosting for less than $100. per year so if you have few dollars to spend you'll be better off.

chrishea 182 Nearly a Posting Virtuoso

We generally expect some work on your part to develop some code. If it's a programming course, then it makes sense that you would do the programming (and design) before you come here to ask a specific question. In this case you have basically defined a user requirement. Now you need to define how you are going to store it in the database (e.g. are you just storing the numbers or will you store a row or position for each number) and how you are going to generate the pyramid based on the number of rows that you need. If someone else were to hand you some code to create the pyramid, would you really deserve to get a passing mark for the assignment? I think that would normally be called cheating. You need to put some time in to do the work. If you aren't that comfortable with PHP syntax yet, then start with some pseudo-code to figure out the logic and then go from there.

chrishea 182 Nearly a Posting Virtuoso

Can't recommend any but try:

http://lmgtfy.com/?q=php+report+writer

chrishea 182 Nearly a Posting Virtuoso

The answer to your question has to be pretty general because you haven't provided much information.

If you are using a standard format / template, then you need a way of knowing if you require a specific block / component on any given page.

* For the simple situation that you have described, where it is just one component and it only shows on one page, then the answer could be as simple as a strategically placed IF statement to determine if you are on the home page and if so, show the links.

* If you may need more of these options in the future, then you may want to build an array in a config module or create a database table and define pages and optional components (and possibly placement information) there. In that case, your optional components could be defined in Include modules and you would include them wherever you need them.

chrishea 182 Nearly a Posting Virtuoso

You shouldn't be getting errors such as this if your WP environment has been set up correctly and if you have downloaded working themes and installed them correctly. Without understanding what you have done to reach this point, it may be difficult to understand exactly what is causing the errors.

I think that you need to start with what is working. Do you have themes that came with WP that work OK? If the answer is yes, then your WP system /install seems to be working correctly so then you need to look at what is "wrong" with these Themes or the way you installed them. I think that you should carefully read the install instructions (and any limitations)to make sure that you followed them exactly. Some themes only work with certain versions of the system so you have to check that what you have tried to install is compatible with the level of WP that you are using.

If it looks as if you did everything ok and everything should be compatible but things aren't working (or if you have questions about the install process) then I think that you need to go to the site where you got the themes or the WP site and then post your problem there.

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

you can use strtotime to convert your existing date to a time stamp. You can then use that time stamp in a date command to create whatever format you need.

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

This would be a better way to do it. It would need to become part of the setup for the CMS (a local ini file) or you may be able to use ini_set. ini_set can only disable certain functions (not fopen for example) so you may need to go the other way.

http://www.cyberciti.biz/faq/linux-unix-apache-lighttpd-phpini-disable-functions/

http://www.php.net/manual/en/ini.list.php

chrishea 182 Nearly a Posting Virtuoso

You read in the database record and then define values for each of the fields in the form as the variables that came from the database. This will work for text and textarea's. You have to do a bit more work if you are trying to put values in check boxes, radio buttons or drop-down lists.

chrishea 182 Nearly a Posting Virtuoso

Please note that the free SMS gateways both seem to be in India. way2sms appends advertising onto text messages that they send. 160by2 may do the same (that's why it's free). User beware.

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

If you were to do a search on Daniweb, you would find lots of previous posts on this topic. I have suggested HTML2PDF before so I will do it again. If you already have formatted output using well-written HTML (e.g. with closing tags), then this utility can use that to create a PDF. You don't need any special PDF commands (even though it does have a few that you can use). I find this a lot easier than having to specifically code something to construct a PDF.

chrishea 182 Nearly a Posting Virtuoso

Any reason that you wouldn't consult the XAMPP FAQ at:
XAMPP FAQ

Which says:
The DocumentRoot folder is "\xampp\htdocs". There is the index site (index.php) the real start page which is loaded after executing of "http://localhost/". Alternatively, this page can also be deleted and replaced by your own "index.php" or "index.html".

After changing the index page in DocumentRoot, you will still find the XAMPP demopage with the URI http://localhost/xampp/.

A web server has a root document folder as it says above. That is where you put your code and that is where you execute from (as http:/localhost...)

chrishea 182 Nearly a Posting Virtuoso

The important parts are in PHP. The website is in France but the link I gave you is for the english version.

chrishea 182 Nearly a Posting Virtuoso

Have a look at this. It works well.
http://html2pdf.fr/en/default

chrishea 182 Nearly a Posting Virtuoso

Uniform Server is recommeneded over WAMP and Xampp because it has better security.

If you still want to use XAMPP here is some more info on that:
http://www.astahost.com/info.php/xampp-wampp-questions_t18396.html

http://textpattern.net/wiki/index.php?title=Using_XAMPP_(Apache-MySQL-PHP-Perl)_for_Windows

chrishea 182 Nearly a Posting Virtuoso

If the variable names have a consistent format like item1, item2, item3 and so forth, you can process them as variable variables in the program that receives the form output. If all the variable names are different, then you could use a foreach statement to iterate through the POST variables.

chrishea 182 Nearly a Posting Virtuoso

Is this supposed to mean something that someone could actually reply to?

chrishea 182 Nearly a Posting Virtuoso

I suspect that you will need to use FTP. I could be wrong but I don't think that you will be able to do a cross-domain upload of a file the way you would on a single site.

chrishea 182 Nearly a Posting Virtuoso

You might want to consider some of the available software that does this sort of thing. It may not be PHP but if all you have to do is install it and configure it, then it might do the job. Have a look at the link below (Sitekiosk):

http://www.sitecafe.net/en-US/Downloads/Default.aspx?MGroup=1

chrishea 182 Nearly a Posting Virtuoso

You may want to download and use the Autoruns utility:
http://technet.microsoft.com/en-ca/sysinternals/default.aspx

chrishea 182 Nearly a Posting Virtuoso

This is more like "why PHP is better":
http://www.netconcepts.com/php-versus-asp/

This has some pro's and con's of each:
http://www.me-u.com/php-asp/phpvsasp.htm

chrishea 182 Nearly a Posting Virtuoso

I would think that the best way would be to use a form with hidden variables for the parameters. The other option would be a link with the variables as parameters (<a href=xxx.pyt?a=xxx&b=yyyy...). I'm not able to advise you on how to access these in the Python script but it should be pretty straightforward. If you need advice on that, I suggest that you go over to the Python forum. The other option would be to convert this short python script to php and make it less complicated.

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

When you say 'selected' do you mean that the file type is being specified in a form or where is that selection happening? If the file actually has the jpg specified as upper case in the file name, then that's the way you will want to use it rather than arbitrarily make it lower case. Windows doesn't normally care whether you make it upper or lower case (for the upload part) but other operating systems may. I'd look first at the actual upload part of the process and see if the file is actually getting uploaded or if it can't find the file because the extension is seen to be different. If the file was uploaded OK, then I would do a few echo's at key points in the code shown above to double-check that what is being provided remains consistent (if it started out as upper case that it stays that way).

chrishea 182 Nearly a Posting Virtuoso

I did some experimenting with Exec.

I had no problem starting a local program with Exec with one exception. If the path name contains a blank, I wasn't able to get it to work. Even if the actual program name contains a blank, it works. One simple example that worked was:

$addr = "c:/Temp/TSP/TSP2.exe";
exec ($addr,$output, $return);

$output has the display output from the program if it is writing to the current window. If it opens in its own window then you see the output there. An example of getting the output from the current window is as follows:

exec("ping google.com", $output, $return);
    echo "The command returned $return, and output:\n";
    echo "<br><br><b>PING </b><br><pre>";
    echo "<pre>";
    var_dump($output);
    echo "</pre>";
chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso
chrishea 182 Nearly a Posting Virtuoso

It seems that the main thing that you need is a standard htm link associated with the icon on each sponsor site pointing back to a page on your site (a href=yourpage.php?sponsor=xxx>icon.jpg</a>). This will get them back to your site and tell you which sponsor they came from. That allows you to keep count.

With respect to saving their favorite sites, you will know where they have come from so you could theoretically save that to a database on your site along with their ID information if you wanted to do this through your site. If what you wanted to do was to let them bookmark the sponsors site in their browser, I'm not sure how you can do that. There is javascript available to bookmark the page that you are currently on but it is too late to do that once they link to your page. You can also use ctrl-d (or ctrl-t in Opera) to initiate the bookmarking process. Depending how free you are to add code to their pages, you could implement the javascript on their page along with your link or you could just prompt them to use ctrl-d / ctrl-t to bookmark that page. Probably a little bit of overkill since they can choose to bookmark it themselves if they want it.

chrishea 182 Nearly a Posting Virtuoso

Or make it a hidden variable in the form (<input type=hidden...)

chrishea 182 Nearly a Posting Virtuoso

For starters, why do you want to create it because it probably already exists. There are many many image galleries out there so why re-invent that wheel. Almost every CMS probably has a version of this (and I mean the hundreds of CMS's not just the three that you named). There are some very nice javascript enabled galleries that are probably fancier than anything you would build for yourself. Some CMS's have a wrapper feature where you can embed another application (such as a picture gallery) into a CMS page. Joomla can do that, so can Website Baker (that I use) and there are probably many others.

In terms of selecting a CMS, I don't think you would want to do it based solely on being able to build a new picture gallery for it. Even if you start looking at what picture galleries are available in each CMS, there are other things you would want to consider. If this is the only thing that you ever expect to do with the CMS, then you might want to look for something light-weight rather than using a sledgehammer to kill a fly. You also want to look at the learning curve involved in setting up each one and the ease of maintenance. If you are going to maintain this on your own, it is just your learning curve. If you will be involving anyone else, then you have to consider their abilities as well.

I have used Website Baker …