Installed XAMPP and the code below works when placed in C:\xampp\htdocs folder and accesssing via http://localhost/a.php
echo "Hello World";
/* echo("Hello World"); works as well, although echo isn't a
function (it's a language construct). In some cases, such
as when multiple parameters are passed to echo, parameters
cannot be enclosed in parentheses */
However, other files that i do have of PHP do not seem to work. Can someone help resolve this issue. The error i get is as below:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
6/17/2010 1:14:33 PM
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
The code is as below:
// We'll be outputting a PDF
// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="Franchisee_Application_Form.pdf"');
// The PDF source is in original.pdf
Trying to access the page as follows:https://127.0.0.1/down.php
Gives the same error of object not found. Kindly help.
Thank you for the help and time.