You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.avc.edu)
Date: June 30, 2014 11:15PM

Windows 8.1
WampServer 2.5
Apache 2.4.9
PHP 5.5.12
MySQL 5.6.17
Firefox 30.0

When I run the following HTML file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[www.w3.org];
<html xmlns="[www.w3.org]; xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Contact Blackjack Trainer</title>
<link type="text/css" rel="stylesheet" href="css/blackjack.css" />
</head>
<body>
<?php
function spamcheck($field)
{
echo "so far so good";
// Sanitize e-mail address
$field=filter_var($field, FILTER_SANITIZE_EMAIL);
// Validate e-mail address
if(filter_var($field, FILTER_VALIDATE_EMAIL))
{
return TRUE;
}
else
{
return FALSE;
}
}
?>
<h1>Blackjack Trainer Contact</h1>
<?php
// display form if user has not clicked submit
if (!isset($_POST["submit"]))
{
?>
<form method="post" action="<?php echo $_SERVER["PHP_SELF"];?>">
<fieldset>
<legend>Your Contact Details</legend>
<p>
<label for="from">Name: <em>(required)</em></label>
<input name="from" id="from" type="test" size="80" />
</p>
<p>
<label for="subject">Subject:</label>
<input name="subject" id="subject" type="text" size="80" />
</p>
</fieldset>
<p>For defect reporting, please state dealer's hand, player's hand, options, and expected and actual outcomes.</p>
<fieldset>
<legend>Comments, Suggestions or Defect Reporting</legend>
<p>
<label for="message">Message: <em>(required)</em></label>
<textarea name="message" id="message" cols="75" rows="20"></textarea>
</p>
</fieldset>
<input type="submit" name="submit" value="Submit" />
</form>
<?php
}
else
// the user has submitted the form
{
// Check if the "from" input field is filled out
if (isset($_POST["from"]))
{
// Check if "from" email address is valid
$mailcheck = spamcheck($_POST["from"]);
if ($mailcheck==FALSE)
{
echo "Invalid input";
}
else
{
$from = $_POST["from"]; // sender
$subject = $_POST["subject"];
$message = $_POST["message"];
// message lines should not exceed 70 characters (PHP rule), so wrap it
$message = wordwrap($message, 70);
// send mail
mail("normhines@hotmail.com",$subject,$message,"From: $from\n"winking smiley;
echo "Thank you for sending us feedback";
}
}
}
?>
</body>
</html>

I see my email form, but when I click on Submit, I get

403 Forbidden
You don't have permission to access /< on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at blackjack Port 80

How do I get permission to execute my PHP code?

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.socal.res.rr.com)
Date: July 02, 2014 05:24AM

Latest errors from Apache error log:

[Tue Jul 01 19:52:51.704122 2014] [authz_core:error] [pid 8008:tid 924] [client ::1:55760] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]
[Tue Jul 01 19:52:51.704122 2014] [authz_core:error] [pid 8008:tid 924] [client ::1:55760] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]
[Tue Jul 01 19:52:51.704122 2014] [authz_core:error] [pid 8008:tid 940] [client ::1:55761] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]
[Tue Jul 01 19:52:51.704122 2014] [authz_core:error] [pid 8008:tid 960] [client ::1:55763] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]
[Tue Jul 01 19:52:51.719747 2014] [authz_core:error] [pid 8008:tid 956] [client ::1:55762] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]
[Tue Jul 01 19:53:07.935417 2014] [core:error] [pid 8008:tid 924] (20024)The given path is misformatted or contained invalid characters: [client ::1:55765] AH00127: Cannot map POST /%3C?php%20echo%20$_SERVER[ HTTP/1.1 to file, referer: [blackjack]

This appears to refer to the line in my code:

<form method="post" action="<?php echo $_SERVER["PHP_SELF"];?>">

I changed it to

<form method="post" action="<?php echo $_SERVER[&quot;PHP_SELF&quot;];?>">

to no effect. Any suggestions?

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 02, 2014 10:22AM

This part of the error message makes me think you have tried in the past to install Apache as a stand alone i.e. not via WAMPServer or you have massed with the WAMPServer config files using another dodgy tutorial.


So you have another Apache service running, wamps service names are 'wampapache' and 'wampmysqld' so if you see a service called Apache then you do and yo need to get rid of it.

Alternatively yo may have a httpd.conf file somewhere on Apache's search path.
Do a search for httpd.conf, you will likely find one in C:\windows. If so delete it.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.socal.res.rr.com)
Date: July 03, 2014 10:43PM

Thanks

I have 2 version of httpd.conf, one in C:\wamp\bin\apache\apache2.4.9\conf\, and one in C:\wamp\bin\apache\apache2.4.9\conf\original\. I also have a number of httpd-xxx.conf in the extra subfolders of those two folders, where xxx is autoindex, dav, default, info, languages, manual, mpm, multilan-errordoc, ssl, userdir, and vhosts. I also have a file names httpd.conf.build in C:\wamp\bin\apache\apache2.4.9\conf\.

I'll check for extraneous Apache services later today.

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.socal.res.rr.com)
Date: July 04, 2014 06:09PM

I've searched through the services, and didn't find any Apache services other than 'wampapache(64)' and 'wampmysqld(64)', but searching through my files, there are apache plugins associated with Eclipse and Modelio, and Apache-named files associated with Adobe CS5 (Flash and Dreamweaver). Do I need to uninstall these things?

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 05, 2014 12:47AM

Some tools come with APache Eclipse does not but I dont know Modelio.

Something is causing it this error

client denied by server configuration: C:/Apache24, referer: [blackjack]

So somehow your gettiing the wrong config i.e. its looking for C:/Apache and not \wamp\nin\apache\apache2.4.9

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.socal.res.rr.com)
Date: July 05, 2014 09:19PM

Thanks.

How do I fix this? Where to I look for this bogus reference to C:/Apach24, and how do I make it refer to \wamp\bin\apache\apache2.4.9? I've set up Notepad++ to search for "apache24" on all files on my hard drive, but I don't think that will work.

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.socal.res.rr.com)
Date: July 05, 2014 09:41PM

Notepad++ found 206 hits of the string "Apache24" in 24 files in c:\wamp and its subfolders.
I narrowed down my search the string "c:/Apach24" and Notepad++ found 191 hits in 16 files, all in subfolders of c:\wamp\bin\apache\apache2.4.9. For consistency's sake, I also searched for the string "c:\Apache24" but got no hits in any file.

This is very surprising. Should I change every occurrence of "c:/Apach24" to "c:/wamp/bin/apache/apache2.4.9"? Since it wasn't already done in the installation package, I don't think I should do such a drastic change.

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 07, 2014 10:05AM

Have you changed the httpd.conf file in any way? For example removed a comment in an #include line and then not checked the file that is being included?

WampServer changes file paths only on files that are activated by default!

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.socal.res.rr.com)
Date: July 07, 2014 04:59PM

The only includes that don't have # in front of them are

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

and

# Configure mod_proxy_html to understand HTML4/XHTML1
<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>

and

#IncludeOptional "c:/wamp/vhosts/*"
Include "c:/wamp/alias/*"

The only change I made is the first one, following instructions to set up a virtual host for my project.

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 07, 2014 05:58PM

Did you throw away all the rubbish from the /wamp/bin/apache/apache2.4.9/conf/extra/httpd-vhosts.conf

I am guessing you left it all in, which is the reason for the problems as that is the default file delivered with a base apache before it is WAMPServer'ized

Thought you might have looked in there when you made the changes and or first found this problem, predumable directly after adding your Virtual Host

Tidy the crap out of that file.



This could have taken an hour using TeamViewer and I could have talked you through all the changes and the reasons for the changes.
As it is its probably taken 4-5 hours of my time and who knows how many hours of yours.


---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.avc.edu)
Date: July 07, 2014 09:55PM

Thank you for your time. This is the contents of my /wamp/bin/apache/apache2.4.9/conf/extra/httpd-vhosts.conf file. I thought I set it up according to the instructions for setting a virtual host. What did I do wrong?

# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/blackjack"
ServerName blackjack
<Directory "c:/wamp/www/blackjack">
AllowOverride All
Require local
</Directory>
</VirtualHost>

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 08, 2014 12:25AM

OK so its not that file. Are you sure you have not uncommented another #Include from the httpd.conf file?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.avc.edu)
Date: July 09, 2014 11:32PM

All other include lines still have their #'s.

I tried the problem from another angle. My very simplified code is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[www.w3.org];
<html xmlns="[www.w3.org]; xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>PHP School</title>
<link type="text/css" rel="stylesheet" href="css/blackjack.css" />
</head>
<body>
<h1>PHP School</h1>
<p>
<?php
echo "my first line of PHP!";
?>
</p>
</body>
</html>

My Apache access log reads;

::1 - - [09/Jul/2014:13:09:41 -0700] "GET / HTTP/1.1" 200 4831
::1 - - [09/Jul/2014:13:09:41 -0700] "GET /index.php?img=favicon HTTP/1.1" 200 1429
::1 - - [09/Jul/2014:13:09:41 -0700] "GET /index.php?img=pngFolder HTTP/1.1" 200 850
::1 - - [09/Jul/2014:13:09:41 -0700] "GET /index.php?img=pngWrench HTTP/1.1" 200 741
::1 - - [09/Jul/2014:13:09:41 -0700] "GET /index.php?img=pngPlugin HTTP/1.1" 200 548
::1 - - [09/Jul/2014:13:09:41 -0700] "GET /index.php?img=gifLogo HTTP/1.1" 200 4549
::1 - - [09/Jul/2014:13:09:41 -0700] "GET /index.php?img=pngFolderGo HTTP/1.1" 200 694
::1 - - [09/Jul/2014:13:09:41 -0700] "GET /index.php?img=favicon HTTP/1.1" 200 1429
::1 - - [09/Jul/2014:13:19:57 -0700] "GET / HTTP/1.1" 200 6787
::1 - - [09/Jul/2014:13:19:57 -0700] "GET /icons/blank.gif HTTP/1.1" 403 301
::1 - - [09/Jul/2014:13:19:57 -0700] "GET /icons/a.gif HTTP/1.1" 403 297
::1 - - [09/Jul/2014:13:19:57 -0700] "GET /icons/unknown.gif HTTP/1.1" 403 303
::1 - - [09/Jul/2014:13:19:57 -0700] "GET /icons/text.gif HTTP/1.1" 403 300
::1 - - [09/Jul/2014:13:19:57 -0700] "GET /icons/folder.gif HTTP/1.1" 403 302
::1 - - [09/Jul/2014:13:19:57 -0700] "GET /favicon.ico HTTP/1.1" 404 293
::1 - - [09/Jul/2014:13:19:57 -0700] "GET /favicon.ico HTTP/1.1" 404 293
::1 - - [09/Jul/2014:13:20:02 -0700] "GET /school.html HTTP/1.1" 200 494
::1 - - [09/Jul/2014:13:21:45 -0700] "GET /index.php?img=favicon HTTP/1.1" 200 1429
::1 - - [09/Jul/2014:13:21:45 -0700] "GET /index.php?img=favicon HTTP/1.1" 200 1429

My Apache error log reads;

[Wed Jul 09 13:09:24.668930 2014] [mpm_winnt:notice] [pid 1308:tid 528] AH00455: Apache/2.4.9 (Win64) PHP/5.5.12 configured -- resuming normal operations
[Wed Jul 09 13:09:24.684576 2014] [mpm_winnt:notice] [pid 1308:tid 528] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59
[Wed Jul 09 13:09:24.684576 2014] [core:notice] [pid 1308:tid 528] AH00094: Command line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d C:/wamp/bin/apache/apache2.4.9'
[Wed Jul 09 13:09:24.684576 2014] [mpm_winnt:notice] [pid 1308:tid 528] AH00418: Parent: Created child process 8756
[Wed Jul 09 13:09:25.200208 2014] [mpm_winnt:notice] [pid 8756:tid 452] AH00354: Child: Starting 64 worker threads.
[Wed Jul 09 13:19:57.265480 2014] [authz_core:error] [pid 8756:tid 972] [client ::1:50751] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]
[Wed Jul 09 13:19:57.265480 2014] [authz_core:error] [pid 8756:tid 988] [client ::1:50752] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]
[Wed Jul 09 13:19:57.265480 2014] [authz_core:error] [pid 8756:tid 976] [client ::1:50753] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]
[Wed Jul 09 13:19:57.266483 2014] [authz_core:error] [pid 8756:tid 984] [client ::1:50754] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]
[Wed Jul 09 13:19:57.266483 2014] [authz_core:error] [pid 8756:tid 972] [client ::1:50751] AH01630: client denied by server configuration: C:/Apache24, referer: [blackjack]

My PHP error log reads;

[09-Jul-2014 20:09:23 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

in Unknown on line 0

[09-Jul-2014 20:09:23 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

in Unknown on line 0

[09-Jul-2014 20:09:25 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll' - The specified module could not be found.

in Unknown on line 0

[09-Jul-2014 20:09:25 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_ldap.dll' - The specified module could not be found.

in Unknown on line 0

And my MySQL log is empty.
Does any of this help?

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 10, 2014 10:17AM

Look Norman,

Get TeamViewer and let me have a look at the problem, othrewise this could go on for another 2 weeks.


Install TV, then run it.

Send me a Private Message containing the TV ID and PASSWORD so I can connect.
Leave TV running as it will change the password each time you restart it.

I am on UK time and am normally available 09:00 - 16:00 and normally later into the evening.

Its a good idea to suggest a time thats good for you, and I will see if I can make myself available at that time.

I have done this for many others and never had any complaints, I never do anything unless someone is there watching and can kill the connection if I appear to do something odd. If you have SKYPE I can even talk you through what needs doing as we do it.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.socal.res.rr.com)
Date: July 10, 2014 04:25PM

All right. I'll post another message after I check my schedule. UK is 8 hours ahead of my time zone (California). What is your schedule/preference?

I teach Mondays and Wednesdays from 10:15 AM-4:40 PM, and Tuesdays and Thursdays 10:15 AM-12:20 PM. This Friday I to take the wife to a doctor's appointment.



Edited 1 time(s). Last edit at 07/10/2014 04:36PM by norman.hines@ieee.org.

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 10, 2014 06:36PM

Just sent you a Private Message!

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: n6530q (---.hsd1.nj.comcast.net)
Date: November 15, 2014 01:24AM

Hello Norman, and RiggsFolly,
I am having the exact same problem as RiggsFolly and wonder if you could take the time to post the fix to his problem?
Thanks!

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: funkyfrank (---.226.133.43.179.swissinet.com)
Date: November 15, 2014 03:21PM

Just trying to help. Recently I did a small learning project site where a form needed to be submitted and the entered data sent to an email address.

After some research I came across PHPMailer [phpmailer.worxware.com] what seems to be the de facto standard for emailing form data, though do not quote me on that please!

Check out the repo for that here [github.com] and this tutorial really got me going and started [www.inmotionhosting.com]

Inside the downloaded PHPMailer-master folder you will find a file called code_generator.phps in ..\PHPMailer Synchro Branch\PHPMailer-master\examples\.

Rename it to .php and run it locally, it will set up all your email settings, you just need to enter them and it will give you the ready PHP code to just copy and paste into your web project.

I am a complete novice regarding PHP, never wrote a single like of PHP so far and the code_generator.php did the trick for me. Worked out of the box straight away.

Hope this helps a bit.

Best Regards
Frank

Version of Operating system? Windows 7 Ultimate 64bit
Version of Wamp Server installed? 2.5 32bit
Version of Apache you are running? 2.4.9
Version of MySQL you are running? 5.6.17
Version of PHP you are running? 5.5.12
What colour is your WampManager icon? Green
Host file localhost 127.0.0.1

New to WAMP?
Read this please: [forum.wampserver.com]

Options: ReplyQuote
Re: You don't have permission to access /< on this server.
Posted by: norman.hines@ieee.org (---.socal.res.rr.com)
Date: November 15, 2014 06:10PM

I discovered the cause of my problem some time ago. Even though a .html file can have css or javascript code imbedded in it, it can still be called a n.html file. However, if it has any php code imbedded in it, it must be renamed to .php.

It had been my custom to put all my css code in .css file and all my javascript code in .js files. I had wanted to reserve the .php extension for pure php code, but I haven't learned how to make a pure php code file.

After learning that WampServer doesn't support mail sufficiently for my test bench development, I've put everything on a back burner.

Thank you for all your help.

Options: ReplyQuote


Sorry, only registered users may post in this forum.