Hello when I try to upload an attachment I get the following error:
Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 32006 is not allowed to access /home/energiei/public_html/faq/attachments owned by uid 99 in /home/energiei/public_html/faq/admin/attachment.php on line 167
Helaas is er een probleem opgetreden bij het toevoegen van de attachment.
And for the pdf the following:
when I try to open an answer in acrobat reader as pdf I get the following error messages:
Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 32006 is not allowed to access /home/energiei/public_html/faq/pdf owned by uid 99 in /home/energiei/public_html/faq/inc/fpdf.php on line 1044
Warning: fopen(pdf/1.pdf): failed to open stream: No such file or directory in /home/energiei/public_html/faq/inc/fpdf.php on line 1044
FPDF error: Unable to create output file: pdf/1.pdf.
Do you perhaps know a way how I can get this to work?
Thankz in advance
pdf error and Attachment errors
Moderator: Thorsten
Hi,
your PHP isn't configured very good.
You can try to change the chmod of the directories pdf/ and attachment/ t 0777.
bye
Thorsten
your PHP isn't configured very good.

You can try to change the chmod of the directories pdf/ and attachment/ t 0777.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Thorsten,
forgive me for being stupid if this is a dumb question.
The following script says it can be used for uploading files via PHP when safe mode is on. If I allow write to one folder and then this uses move_uploaded_file, then can this work?
From phpbuilder.com http://www.phpbuilder.com/manual/featur ... upload.php
forgive me for being stupid if this is a dumb question.
The following script says it can be used for uploading files via PHP when safe mode is on. If I allow write to one folder and then this uses move_uploaded_file, then can this work?
From phpbuilder.com http://www.phpbuilder.com/manual/featur ... upload.php
Code: Select all
<?php
$uploaddir = '/hsphere/local/home/user_name/your.com/images/';
$uploadfile = $uploaddir . $_FILES['userfile']['name'];
print "<div class=\"small\">";
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
print "File is valid, and was successfully uploaded. ";
print "Here's some more debugging info:\n";
print_r($_FILES);
$name = $_FILES['userfile']['name'];
print "\n<hr><br />This is the image you uploaded:<br /><br /><img src=\"http://www.your.com/images/$name\" alt=\"$the_file_name\" /><br /><br />";
print "\nThis is the address for the image you uploaded:<br /><br />http://www.your.com/images/$name<br /><hr><br />";
} else {
print "Possible file upload attack! Here's some debugging info:\n";
print_r($_FILES);
}
print "</div>";
?>
<form enctype="multipart/form-data" action="<?php $PHP_SELF = $_SERVER['PHP_SELF']; echo $PHP_SELF; ?>" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="102400" />
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Upload" />
</form></div>
<div class=\"center\">
Hi Andrew,
I have to check this. Thanks for the code esample.
bye
Thorsten
I have to check this. Thanks for the code esample.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist