techques
asked on
(20024)The given path misformatted or contained invalid characters: Cannot map GET /site/cal%3C?%20echo%20$t[ HTTP/1.1 to file
Hi
I can run php website with mysql on localhost. When I run another website on localhost, it shows
(20024)The given path misformatted or contained invalid characters: Cannot map GET /site/cal%3C?%20echo%20$t[ HTTP/1.1 to file
And, how should I fix it?
I changed httpd.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
Allow from all
</Directory>
but still not work.
Any idea?
I can run php website with mysql on localhost. When I run another website on localhost, it shows
(20024)The given path misformatted or contained invalid characters: Cannot map GET /site/cal%3C?%20echo%20$t[
And, how should I fix it?
I changed httpd.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
Allow from all
</Directory>
but still not work.
Any idea?
ASKER
it is in index.php page, it includes
<?php include("session.php"); ?>
<?php include ("language_pack.php");?>
It shows all variables declared
such as "; $lang_member_forgot_passwo rd_text2a
I can run the same site on windows 2000 server with the same version of apache, php and mysql.
What's the problem?
Also, I visit some website on the web and it has a blank page only. But, I can view it through another machine's IE. Do my browser setting has forbidden some client side code or others?
<?php include("session.php"); ?>
<?php include ("language_pack.php");?>
It shows all variables declared
such as "; $lang_member_forgot_passwo
I can run the same site on windows 2000 server with the same version of apache, php and mysql.
What's the problem?
Also, I visit some website on the web and it has a blank page only. But, I can view it through another machine's IE. Do my browser setting has forbidden some client side code or others?
Well, first of all - PHP is a server side language, so it only ever outputs pure HTML when you invoke the script on the server via a browser, so I doubt that it is caused by browser issues - unless you have JS in those include files that play a pivotal role in the outcome of your PHP code.
When you say: "I can run the same site on windows 2000 server with the same version of apache, php and mysql. " do you mean that you copied the website to another webserver, and it parses and displays correctly when you browse to that server, but NOT when you browse to the "original" webserver - or do you mean that when you browse to the site in question from another PC that it displays correctly, but not from the PC you are using now?
When you say: "I can run the same site on windows 2000 server with the same version of apache, php and mysql. " do you mean that you copied the website to another webserver, and it parses and displays correctly when you browse to that server, but NOT when you browse to the "original" webserver - or do you mean that when you browse to the site in question from another PC that it displays correctly, but not from the PC you are using now?
ASKER
The php website originally developed in windows 2000 server localhost with IE6. I deployed it on another windows 2003 server machine which uses IE7.
Yes, I copied the website under htdoc to another machine. Then, I cannot view it properly in localhost of the windows 2003 server.
Old server - 2000 server - IE6 localhost - ok
New server - 2003 server - IE7 localhost - not ok
Even on the net, I can view the website properly on windows XP browser. But not able to view on the IE7 of 2003 server.
Yes, I copied the website under htdoc to another machine. Then, I cannot view it properly in localhost of the windows 2003 server.
Old server - 2000 server - IE6 localhost - ok
New server - 2003 server - IE7 localhost - not ok
Even on the net, I can view the website properly on windows XP browser. But not able to view on the IE7 of 2003 server.
ASKER
I checked the session cookie on 2003 server, it is default setting.
I changed to allow it and restart apache. It still not works.
I changed to allow it and restart apache. It still not works.
OK, I'm still not sure this is a browser issue -
Old server - 2000 server - IE6 localhost - ok
New server - 2003 server - IE7 localhost - not ok
Don;t you mean:
Old server - 2000 server - IIS6 localhost - ok
New server - 2003 server - IIS7 localhost - not ok
? (Note IIS vs IE ) ?
Are you sure PHP isconfigured properly on the new server?
if you place this file on the new server (call it test.php)
<?php
phpinfo();
?>
What do you see when you go to "localhost/test.php"?
Old server - 2000 server - IE6 localhost - ok
New server - 2003 server - IE7 localhost - not ok
Don;t you mean:
Old server - 2000 server - IIS6 localhost - ok
New server - 2003 server - IIS7 localhost - not ok
? (Note IIS vs IE ) ?
Are you sure PHP isconfigured properly on the new server?
if you place this file on the new server (call it test.php)
<?php
phpinfo();
?>
What do you see when you go to "localhost/test.php"?
ASKER
1) 2003 server - localhost/test.php runs properly, it can show all php variables
2) It is not IIS issue, as I shutdown IIS. PHP5 is installed with Apache.
2) It is not IIS issue, as I shutdown IIS. PHP5 is installed with Apache.
ok, and if you browse to the 2003 server wit firefox or ie6 from another PC, does it work?
ASKER
I am not sure as I do not have it. Where can I download ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Firefox still not work. But, I can run it on windows 2000 server. The browser in windows 2003 seems cannot redirect and reload pages.
i have a similar problem about above message.
(20024)The given path is misformatted or contained invalid characters:
can you give solution please?
# Clean URLs [[[
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(payment|admin|provider |partner)/
RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|s wf|php|ico )$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ dispatcher.php [L]
# /Clean URLs ]]]
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F,L]
<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
</ifmodule>
it is my .hrraccess file
(20024)The given path is misformatted or contained invalid characters:
can you give solution please?
# Clean URLs [[[
Options +FollowSymLinks -MultiViews -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(payment|admin|provider
RewriteCond %{REQUEST_FILENAME} !\.(gif|jpe?g|png|js|css|s
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ dispatcher.php [L]
# /Clean URLs ]]]
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F,L]
<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
</ifmodule>
it is my .hrraccess file
It looks like your variables are not properly parsed, possibly due to wrong use of ' vs ".
echo%20$t[ HTTP/1.1 should not be there - it looks like your PHP code was inserted as "text" due to non-parsing.