Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 02:00
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)
| | |-+  sendecard.php not writing *.txt file
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: 1 [2] Print
Author Topic: sendecard.php not writing *.txt file  (Read 8127 times)
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #15 on: 02/29/04, 12:46 »

OK - now the next step.

Is it possible to send a simple email by the command mail?

BTW what was the Problem?
« Last Edit: 02/29/04, 12:47 by Ronald Wernecke » Logged

happy flashing
Cool
Ronald
Musicman
Administrator
Systems Administrator
*****
Posts: 2685



View Profile WWW Email
« Reply #16 on: 02/29/04, 17:10 »

Hi,

I tried to send a  card to my address, but it was all blank.
I believe your script is the version for old php that uses $varname right away, while your server runs new php and requires a line like
$varname = $_POST["varname"];
for every variable expected from flash

Musicman
Logged
alf
Server what's that
*
Posts: 22



View Profile WWW Email
« Reply #17 on: 02/29/04, 22:35 »

well there is some progress. Cheesy
the text file is written to dBText folder.
the email sends.
but, there is no link to the ecard.
I know there is an answer to this in the message board so I'll look for it.
if you could point me there it would help.
Thanks for all your help guys. Smiley
I'm almost there.

art
Logged
alf
Server what's that
*
Posts: 22



View Profile WWW Email
« Reply #18 on: 03/01/04, 03:24 »

 Smiley Smiley Smiley Grin Cheesy Wink it works!!!!

http://www.canyoncalvary.com/Ecards/ecards.swf

take a look!

Thanks Ronald for all the help Grin

thanks Mohsin for the reply Smiley
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #19 on: 03/01/04, 06:17 »

Uff - it was tough  Grin

what was the problem at the end?
Logged

happy flashing
Cool
Ronald
Eric Spotts
Server what's that
*
Posts: 10


I'm a motorcycle rider trying to build web skillz


View Profile WWW Email
« Reply #20 on: 03/17/04, 17:44 »


Smiley Smiley Smiley Grin Cheesy Wink it works!!!!

http://www.canyoncalvary.com/Ecards/ecards.swf

take a look!

Thanks Ronald for all the help Grin

thanks Mohsin for the reply Smiley


I congratulate you.  I haven't had very good luck with my attempt to get it to run.

Mine is at http://darkewebsites/ECards/ecards.swf  Perhaps you can advise me since you are fresh from the same battle...  Wink
Logged

It's not where you start that matters, it's where you end up.
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #21 on: 03/18/04, 04:21 »

Hi Eric,
did you read the whole thread?
There are lots of hints Wink

Anyway, what does not work. You have to go ther step by step.
Doesnt work is not enough to get to the problem.
In most cases its a lack of rights on the server.
Which scripting are you using? On which OS is the server running?
Is it your server, or are you using shared public server? Does your ISP support mail sent by scripts?
Logged

happy flashing
Cool
Ronald
Eric Spotts
Server what's that
*
Posts: 10


I'm a motorcycle rider trying to build web skillz


View Profile WWW Email
« Reply #22 on: 03/18/04, 10:02 »


Hi Eric,
did you read the whole thread?
There are lots of hints Wink

Anyway, what does not work. You have to go ther step by step.
Doesnt work is not enough to get to the problem.
In most cases its a lack of rights on the server.
Which scripting are you using? On which OS is the server running?
Is it your server, or are you using shared public server? Does your ISP support mail sent by scripts?


Thanks for the reply.  Step by step:  I downloaded the zip file.  I unzipped it and followed the tutorial.  I made the url changes to the php and the code in the swfs.  I uploaded the entire thing to the appropriate directories on-line.  It would run like it was GOING to do something but nothing would happen.  It would promt me to pick a card, I could fill out the input boxes, it would even tell me the card had been sent.  The txt file was getting written, no mail was getting sent.  I then read the threads and the only solution I could think of was to try to change the php to the 4.01 and newer version. I downloaded it, replaced the current php with that.  No change.  It pretends like it's working, but it doesn't.  
On this same server (different derectory) I have a form that people can fill out to order trial versions of software, well, these forms do work, they come back to me in an email, I ran them through asp and they seem to work so I assume that the email permissions must surely be turned on.  I've contacted tech suport about server settings.  They didn't know so they had thier boss send me an email walking me through the steps to change permissions, it's a windowsnt server so I had to follow prompts on the site to do this. I had this done 24 hours before they ever got around to emailing me.  first it said pending, then within a day the changes took effect.  I can type in the directory name in the address box, with no index, and it gives me a listing of the directory, which again has to do with permissions, in the beginning it wouldn't do that, it would send me to a default error message.  So I'm assuming I managed to get the permissions turned on.   So, from my limited resources, I'm assuming that I have the directories set up, the permissions turned on, and that mailto does indeed work for asp so I'm hoping I can extropolate that it should also work for php.  

With all the permissions turned off you can go to http://darkewebsites.com/ECards/ and view the files I'm sure.  or from http://darkewebsites.com/ECards/ecards.swf you can watch it act like it's going to work.    from http://darkewebsites.com/ECards/dBText ou can view that no txt file are being written to the directory.   I have very limited php, and my flash skills are only 9 weeks old, so this is over the top exciting for me.  Any advise you can give me on how to rip into this and debug it to make it run would be apreciated.

Again thanks for the reply, and thanks for any help you can give me.

Eric Spotts
Logged

It's not where you start that matters, it's where you end up.
alf
Server what's that
*
Posts: 22



View Profile WWW Email
« Reply #23 on: 03/18/04, 14:24 »

there were feww problems

1. like Ron said "server rights". Make sure you have the proper permissions.
2. The path for writing the *.txt must point to the proper directory on your server (the full path)
3. know your version of PHP installed on your server. (VERY IMPORTANT)
the latest version has a minor change in the SenEcards.php script.
4. everything is case sensitive. if you call "SendEcards.php" makesure it is not spelled "sendecards.php".

When you are in a hurry you can miss a lot of things. Also my sendmail was acting strange. I could send from the command prompt but not from the mail() function. another thing the script had no errors. Huh or at least I thought. the latest version of PHP has some minor changes so minute you can over look them.

if anyone needs some sample code I'd be happy to help. Smiley

ALF
Logged
Eric Spotts
Server what's that
*
Posts: 10


I'm a motorcycle rider trying to build web skillz


View Profile WWW Email
« Reply #24 on: 03/18/04, 18:12 »

Great reply. Yes I've double checked my uppercase/lower case issues and they all match up o.k.  I DID however just receive an email from tech suport saying the my server doesn't support php mail functions.  Nice to find that out NOW that I've played with it for days and days.  So I've emailed them back saying "o.k., how much more money is THAT going to cost me."  Unless one of you server guru's can host up my cards. ha ha!  

So now I'm waiting in the yard for another response from tech support to tell me how much more or if phpmail is even available.  Typical of me... buy it THEN learn about it... ha ha.

I should email them back and ask them which version of php they support huh?

Again thanks, and I'm going to keep plugging away on this. By the way has everybody noticed in the ECard software that received is spelled incorrectly?    It says "You have just recieved an ECard from..."  

E
Logged

It's not where you start that matters, it's where you end up.
alf
Server what's that
*
Posts: 22



View Profile WWW Email
« Reply #25 on: 03/18/04, 20:25 »

I use Sendmail it's a good program. (it works)  about the misspelling I changed the message completely. Smiley if you need good hosting check out www.usdn.net they support a lot of things. or you could do it with me www.alfdesigns.net/main.html send me a message through my contact page.
Logged
Eric Spotts
Server what's that
*
Posts: 10


I'm a motorcycle rider trying to build web skillz


View Profile WWW Email
« Reply #26 on: 03/18/04, 21:59 »


I use Sendmail it's a good program. (it works)  about the misspelling I changed the message completely. Smiley if you need good hosting check out www.usdn.net they support a lot of things. or you could do it with me www.alfdesigns.net/main.html send me a message through my contact page.


I've not heard of sendmail.  What type of program is this?

I'll check out your web site on Saturday.  Thanks for the heads up.

E
Logged

It's not where you start that matters, it's where you end up.
Pages: 1 [2] 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