CGI-bin and php files
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- CGI-bin and php files
CGI-bin and php files
31-03-2008 5:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: CGI-bin and php files
31-03-2008 5:27 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: CGI-bin and php files
31-03-2008 5:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator

Re: CGI-bin and php files
31-03-2008 6:14 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: chillypenguin PHP should not be in the cgi-bin folder.
Do I need to place a script in the cgi-bin to send an email to me with the information collected in the form?
Re: CGI-bin and php files
31-03-2008 7:21 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: CGI-bin and php files
31-03-2008 8:03 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Peter Just use what you have set-up but put the php file somewhere else like in it's own directory within the root directory and change the flash file to know about the new php location.
Thank you, I have tried this, but it hasn't worked. The script in the php file works because I had already tested it on a completely different server and I received emails. I'm not sure why it isn't working on a PlusNet server
Re: CGI-bin and php files
31-03-2008 10:51 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You could also post the php code (masking any email addresses) and we may be able to tell you why it does not work.
Re: CGI-bin and php files
01-04-2008 7:49 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: chillypenguin PHP should not be in the cgi-bin folder.
Thanks for this...very helpful!
Re: CGI-bin and php files
01-04-2008 9:37 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Peter Do you specify a from address when sending as that is a requirement when sending email on PNs web servers.
You could also post the php code (masking any email addresses) and we may be able to tell you why it does not work.
I hadn't specified a from address, maybe this is what the problem is.
In the actionscript within the flash file I have a get URL which points to the php file, and the code for this is below,
<?
$destination="xxxx@xxxx.xxx";
$name=$_POST['name1'];
$email=$_POST['email'];
$company=$_POST['company'];
$number=$_POST['number'];
$comments=$_POST['message1'];
$subject="Message from website" ;
$mes="Name : $name\n
Email: $email\n
Company: $company\n
Phone: $number\n
Comments: $comments\n";
mail($destination,$subject,$mes);
?>
This has worked on other servers, do I need to add script to make it work on a PN server?
Thank you in advance for your help
Re: CGI-bin and php files
01-04-2008 9:49 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
$headers = "From: mailaddr@username.plus.com\r\n";
mail($destination,$subject,$mes,$headers);
See if that helps.
Re: CGI-bin and php files
01-04-2008 3:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Any further help would be appreciated!
Thank you
Re: CGI-bin and php files
01-04-2008 4:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I don't use flash but a quick look at the getURL() function means...
If you are using the POST option in getURL() then the parameters are passed via the $_POST[] array.
If you are using the GET option in getURL() and pass the parameters as part of the url (file.php?param1=aaa¶m2=bbb) then they will be passed in the $_GET[] array.
Re: CGI-bin and php files
01-04-2008 6:24 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
} else {
_parent.loadVariables("http://www.xxxxxxxxxxxxxx.co.uk/xxxxx.php", "POST");
_parent.gotoAndStop(2);
}
}
The php that I quoted earlier sits in the xxxx.php file, exactly as it is written below(with the $headers addition) without any other code in there.
Any ideas?
Thanks
Re: CGI-bin and php files
01-04-2008 9:24 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: chillypenguin PHP should not be in the cgi-bin folder.
Please, what should be in the cgi.bin folder?
Re: CGI-bin and php files
01-04-2008 10:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page