SunQuest
 
           PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 5th, 2003, 03:51 PM
vincentms vincentms is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 1 vincentms User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Calling the PHP Gurus - Internet Explorer issues

Hello all,

Why does this work with NETSCAPE and not IE? In NETSCAPE the PHP is translated to HTML and the "Start the EXAM" button is displayed.

But, in Internet Explorer 6 I get this error:

Parse error: parse error, unexpected '}' in /home/public_html/ExamCabinet/SourceCode/QZ_Engine.php on line 68

I really am at a loss!

Also, I am very new to WEB development and any thoughts would be very welcome.

Any thoughts?

Kind regards,
Vincent




<html>
<head>
<script language="JavaScript" src="http://www.exam.com/ExamCabinet/SourceCode/QZ_Engine.php" > </script>
</head>
<body scroll=yes bgcolor="#ffffff" text="#000000" link="#0000ff">
<form NAME="QForm">
<div ID="divn">
<input type="button" value=" Start the EXAM " onClick=" getNext()">
</div>
</form>
</body>
</html>

Reply With Quote
  #2  
Old May 5th, 2003, 05:41 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to fakker
hey vincentms!

firstly, welcome to the devarticles forum!!!

secondly, about your query....

what does that PHP script actually do? I am not sure about this, but it looks like you are calling the PHP script, but telling the browser that it's a javascript.... I dont think that works? I am not sure... someone may need to back me up on that one!

The javascript part of IE is reading the PHP file, and finding a '{' which might be PHP code, and it is expecting javascript......

As for web development, I personally write most things in PHP nowadays.... another good site which is run by the same people whom run this site is www.devscripts.com which is full of useful nick nacks!!
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #3  
Old May 5th, 2003, 06:05 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Hi Vincent,
You don't pass a PHP page to a script tag. To run your PHP page, simply type it's URL into your web browser. In your case this would be http://www.exam.com/ExamCabinet/Sou...e/QZ_Engine.php

Make sure your web server has Apache/IIS and PHP installed and configured correctly so that the PHP will be parsed and the correct result spat out.

A good day to do this is to create a test.php page containing this code:

<?php phpinfo(); ?>

Run the page in your browser, and if PHP is setup successfully then you will see your PHP configuration options.


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > Calling the PHP Gurus - Internet Explorer issues


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway