Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 9th, 2003, 03:07 AM
ckb ckb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 60 ckb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
switch works on localhost, not webhost...

switch works on localhost, not webhost...
switch works on localhost, not webhost...

Hello all. I have problem with switch statement in version PHP 4.2.2 on linux

server. My error page is not coming (which used switch) instead i am getting the

code of the entire page ....which is working perfectly on windows 2000.
pls help
thanx in advance
ckb

pls check part of my code:

<?php // these code used to diplay message if there is any Unathiora
include("connection.php");
// $ec=$_GET['ec'];
//switch($ec)
if(isset($_GET['ec']) ) {
switch($_GET['ec'])
{
case 0:

$message="<font color='black'><b>
Your user name or password is incorrect!
<a href=index.php>Please try again.</a></b></font>";
break;
case 1:
$message="<font color='darkgreen'><b>
There was an authentication error.
Please<a href=index.php>Log in </a>correctly.</b>";


}
}
?>

Reply With Quote
  #2  
Old August 10th, 2003, 01:56 PM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,401 Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)Sepodati User rank is General 16th Grade (Above 100000 Reputation Level)  Folding Points: 79571 Folding Title: Intermediate FolderFolding Points: 79571 Folding Title: Intermediate FolderFolding Points: 79571 Folding Title: Intermediate FolderFolding Points: 79571 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 4 Weeks 1 Day 14 h 32 m 22 sec
Reputation Power: 2089
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
If you're seeing PHP code, then your host does not have PHP installed correctly.

---John Holmes...

Reply With Quote
  #3  
Old August 10th, 2003, 11:55 PM
ckb ckb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 60 ckb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
hi all..
now i am not geting the code of the page.....
in my error page i am not getting the value of error code ec passed which is working perfectly on windows 2000.
That means echo $_GET['ec']; is empty ....
in the url i am getting the value of ec as 0...
like this


http://191.5.2.23/admin/ERROR.PHP?ec=0
.the main problem is i am not getting the value of $_GET['ec'] in the error page.

pls help
thanx in advance
ckb

Reply With Quote
  #4  
Old August 11th, 2003, 01:27 AM
ckb ckb is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 60 ckb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Smile working now

hi all,


now it's working fine......it was php version 4.2.2 only and my code also was correct....but a small mistake....i saved my file as ERROR.PHP IT WAS THE CAUSE OF MY PBM.....since it was linux it is not recognising my php file at all when i saved in capital letter....now everything i s ok.....


thanx a ot for all....
ckb

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > switch works on localhost, not webhost...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT