<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Errore durante spedizione email in un form]]></title><description><![CDATA[<p dir="auto">Ciao a tutti cerco qualcuno che mi possa risolvere questo dannato problema che mi sta assillando, in poche parole è un banale form di inseriemento email, ossia un utente che visista in mio sito inserisce la mail e spedisce, per poi ricevere la newsletter, il problema è che ogni volta mi da un errore.<br />
Prova a postare tutto il php e il relativo problema:</p>
<pre><code class="language-php">&lt;?php
function RecordExists($email)
{
$data = fopen("emails.data.php", "r");
 
while($line = fgets($data))
{
$line = substr($line, 9);
$line = substr($line, 0, strpos($line, ','));
 
if ($line == $email) return true;
//echo '['.$line.']&lt;br/&gt;';
}
return false;
}
 
function RecordInsert($email, $name, $flag)
{
$data = fopen("emails.data.php", "a");
if ($data === false) return false;
 
$r = fwrite($data, "&lt;?php // $email, $name, $flag ?&gt;\n");
if ($r === false) return false;
 
$r = fclose($data);
if ($r === false) return false;
 
return true;
}
 
function RecordCount(&amp;$count0 = 0, &amp;$count1 = 0, &amp;$count2 = 0)
{
$data = fopen("emails.data.php", "r");
 
$count0 = 0; $count1 = 0; $count2 = 0; 
while($line = fgets($data))
{
$flag = substr($line, strrpos($line, ",")+2, 1);
if ($flag == 0) $count0++;
if ($flag == 1) $count1++;
if ($flag == 2) $count2++;
}
 
return $count0 + $count1 + $count2;
}
?&gt;
</code></pre>
<p dir="auto">Questo è l'errore che compare:<br />
<strong>Warning</strong>: fopen(emails.data.php) [function.open]: failed to open stream: Permission denied in <strong>/dsadas.func.php</strong> on line <strong>19</strong></p>
<p dir="auto">Attendo vostre informazioni se avete capito l'errore.</p>
<p dir="auto">A mio avviso l'errore è quì "a" perchè ho provato a mettere "r" solamente che il form me lo da ok, ma la email non si registra nella lista delle mail.</p>
]]></description><link>https://dev.connect.gt/topic/87196/errore-durante-spedizione-email-in-un-form</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 09:44:21 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/87196.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Nov 2008 16:55:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Errore durante spedizione email in un form on Fri, 07 Nov 2008 18:22:07 GMT]]></title><description><![CDATA[<p dir="auto">Devi impostare i permessi del file a 777</p>
]]></description><link>https://dev.connect.gt/post/780050</link><guid isPermaLink="true">https://dev.connect.gt/post/780050</guid><dc:creator><![CDATA[thedarkita]]></dc:creator><pubDate>Fri, 07 Nov 2008 18:22:07 GMT</pubDate></item></channel></rss>