Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 01:48
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)
| | |-+  Use this code if your Server is running php 4.1.0 or newer
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 2 [3] Print
Author Topic: Use this code if your Server is running php 4.1.0 or newer  (Read 29018 times)
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #30 on: 08/14/04, 03:02 »

Hi Christy,
what exactly does the browser output, if you enter the php file into the browsers addressline?
Logged

happy flashing
Cool
Ronald
christy
Server what's that
*
Posts: 3



View Profile Email
« Reply #31 on: 08/14/04, 08:43 »

Hello!    Cheesy

It gives me this:

Parse error: parse error, unexpected T_STRING, expecting T_CASE or T_DEFAULT or '}' in /home/spookee/public_html/Ecards/SelectCard.php on line 8

Christy
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #32 on: 08/14/04, 09:05 »

aha, this means you have a typo Wink

What I dont understand is:

why are you using two different kinds of quotes in your script?

Your function codes a checked against the string representation of the number.
This can be OK, but why dont you use double quotes, as you do on the other strings?

You have to test aroung, that there is no hidden code somewhere.

What editor yre you using for the php coding?
Logged

happy flashing
Cool
Ronald
christy
Server what's that
*
Posts: 3



View Profile Email
« Reply #33 on: 08/14/04, 10:35 »

Oh, I was just using the copied and pasted code in this thread. Smiley It didn't occur to me to make the quotes consistant. I did that and still got the line 8 error. I edited it in about a billion different ways and still seem to be getting the errors in either line 8 or 9. I have no idea what I'm doing when it comes to PHP, so that might explain that. I'm using text edit to edit it.

I started using the original php file in the tutorial (the one for the older versions of PHP) and while it works, no text shows up in the ecard.  Tongue

Logged
Cfaniak
Server what's that
*
Posts: 3


View Profile WWW Email
« Reply #34 on: 01/07/06, 06:28 »

My server is running php 4.4.1
but Ecards not working.
I checked the 'dbtext' folder and nothing is being written to it.
I have CHMOD to 777

I use sendecard.php code:
Code:
<?

$CreateEcard = date(U);

$filename = $CreateEcard.".txt";

$ToEmail = $_POST["ToEmail"];
$FromEmail = $_POST["FromEmail"];
$ToName = $_POST["ToName"];
$FromName = $_POST["FromName"];
$Greeting = $_POST["Greeting"];
$IntroMessage = $_POST["IntroMessage"];
$EndMessage = $_POST["EndMessage"];
$EcardSelect = $_POST["EcardSelect"];

$ToName = stripslashes($ToName);
$FromName = stripslashes($FromName);
$Greeting = stripslashes($Greeting);
$IntroMessage = stripslashes($IntroMessage);
$EndMessage = stripslashes($EndMessage);

$Today = (date ("l dS of F Y ( h:i:s A )",time()));

$Created="Ecard Created on $Today";

$EcardNum = $EcardSelect;

$EcardText = "ToName=$ToName&ToEmail=$ToEmail&FromName=$FromName&FromEmail=$FromEmail&Greeting=$Greeting&IntroMessage=$IntroMessage&Created=$Created";


$fp = fopen( "./dbtext/$filename","w");
fwrite($fp, $EcardText, 10000);
fclose( $fp );

######Email Card########
## You can change the subject and the message part around.
## Make sure to change the Link as stated in the Tutorial.
## (Change from 'someSite' to your actual site - leave the rest the same


$ToSubject = "You have recieved a Flash Ecard from $FromName";
$Message = "$ToName,\nYou have recieved a Flash card from $FromName. \nClick the following link to view your card:\n\n http://www.cfaniacy.com/testy/SelectCard.php?EcardText=$CreateEcard&ENum=$EcardNum\n\n-----------------------------------\nHere is the message that was sent:\n$ToName,\n$Greeting\n$IntroMessage\n\n-$FromName\n\n\n-----------------------------------\nThis card was sent from www.flash-db.com/Ecards/\n\nThe Flash-dB Team.";


###################
## This line actually sends the email - you should not have to change this.

mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FromName." <".$FromEmail.">");


## This next line returns a success message to the movie.
print "_root.Status=Success your Card Has Been Sent!";

#### End #########
## By: Jeffrey F. Hill
## www.flash-db.com

?>

anyone can help me ?

Thank's in advance
Best regards
Tom


PS. Sorry for my english - I'm from Poland
Logged
Pages: 1 2 [3] 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