Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 00:57
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Recent Tutorial Support
| |-+  Flash Ecards (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis)
| | |-+  Help with installation
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Help with installation  (Read 3199 times)
Alysia
Server what's that
*
Posts: 4



View Profile Email
« on: 04/15/02, 15:24 »

Help! I am trying to install this application on our website. I am following the instructions and I get this error when trying to go to the selectcard.php file in the browser window:
Warning: Undefined variable: ENum in E:\wwwroot\ecards\selectcard.php on line 8

Any suggestions?
Thanks
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 04/18/02, 19:05 »

I am not entirely sure what could be causing that error on that line or any part of the selectEcard.php file.  Sometimes their are small difference's between an IIS/Apache and MS/Unix platforms but they usually deal with file permsissions and directory paths.  In that file however their is not to much that can go wrong.

I assume you are using IIS - do you have PHP installed (I assume you do or else you would not even get that error).   Have you made any headway since the post - and if so the more details you can provide the better.  
Logged

-Jeff.
Alysia
Server what's that
*
Posts: 4



View Profile Email
« Reply #2 on: 04/19/02, 08:21 »

Our web server is Windows NT. Our server administrator installed the php extensions for me the other day. Is there a good source on the web for instructions on installing php extensions? I still have not solved the problem. The way the error read, are you sure it is not in the script itself? Thanks for your assistance.
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #3 on: 04/19/02, 15:09 »

I would have to see the script - in some cases you get errors because of syntax mistake - other times you get them on a certain line because it's using a function or include file that does not exist or work.

Anyways If you could post the first 10-20 lines of that script here - i'll try to look it over for syntax errors.
Logged

-Jeff.
Alysia
Server what's that
*
Posts: 4



View Profile Email
« Reply #4 on: 04/23/02, 12:10 »

Here is the code


<HTML>
<HEAD>

<TITLE>Here's your Flash Ecard - from the Flash-dB.com Tutorial</TITLE>

<?

switch ($ENum) {

   case '1':
   $goto = "Ecard1.swf?EcardText=".$EcardText;
   $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=1";
   $Dimensions = "WIDTH=700 HEIGHT=525";
   $DimensionsFooter = "WIDTH=700 HEIGHT=250";
   break;

   case '2':
   $goto = "Ecard2.swf?EcardText=".$EcardText;
   $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=2";
   $Dimensions = "WIDTH=700 HEIGHT=525";
   $DimensionsFooter = "WIDTH=700 HEIGHT=250";
   break;

   case '3':
   $goto = "Ecard3.swf?EcardText=".$EcardText;
   $gotoFooter = "EcardFooter.swf?EcardText=".$EcardText."&EcardSelect=3";
   $Dimensions = "WIDTH=700 HEIGHT=525";
   $DimensionsFooter = "WIDTH=700 HEIGHT=250";
   break;
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #5 on: 04/23/02, 13:52 »

Hey What version of PHP are you using.

Do you have Register Globals Turned on or OFF.  You can check this in the PHP.ini file or by creating a script like

<?
phpinfo();
?>

I really wasn't that careful when i did the guestbook script and with the newer versions of PHP 4.1+ I think Register Globals is turned OFF by default.  

When register globals is turned off you have to be a lot more careful about declaring variables and where their from, for example:

$Submit = $HTTP_POST_VARS[Submit];

Would make sure it's coming from POST.  You need to use something like this for each of your variables if Register globals is turned off - Probably easier if you just turn register globals on for now though.
Logged

-Jeff.
Alysia
Server what's that
*
Posts: 4



View Profile Email
« Reply #6 on: 04/24/02, 13:59 »

I checked: the globals are turned on. I ran the check php script on our server. The script results are at:
http://www.hillsdale.edu/ecards/check.php

Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything