[PHP-DB] permission...

2003-07-23 Thread Chris Mach
When I get a warning like below, is that something I can fix by modifying
the code? or is that some configuration that need to be changed on the
server?

Warning: unable to create file files/sked.html because Permission denied in
/server3/home/cjmach/public_html/newfile.php on line 14

I get this warning when I try to create or edit txt files with php.




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] Permission Denied; Upload

2003-04-04 Thread Gary . Every
Unable to open '' for reading: That means you're not actually sending a
filename to be read!

> 
> I get this error during test of the above page:  Warning: 
> Unable to open '' for reading: Permission denied in 
> C:\SammiWWW\entry.php on line 27 Couldn't copy the file!
> 
> 


RE: [PHP-DB] Permission Denied; Upload

2003-04-04 Thread Jennifer Goodie
Good job posting your username, password and server IP.  I just logged into
your database.  Change your password immediately.

> -Original Message-
> From: John [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 10:12 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Permission Denied; Upload
>
>
> Thanking in advance,
>
> Hi all- very new to php, and at the risk of being "spoon fed"
> here, I beg for your patience in advance.  I am trying to have an
> entry page for user input/ pic upload into MySQL/win2k
> (www.sammiesmodels.com/entry.php ).
>
> I get this error during test of the above page:  Warning: Unable
> to open '' for reading: Permission denied in
> C:\SammiWWW\entry.php on line 27 Couldn't copy the file!
>
> The upload folder, "Temp" sits in the root www dir, and the user
> has all permissions granted (or do i?) in the DB.  Below is the
> syntax to the "Entry" page:
>
> ***
> 
> 
> Portfolio Entry 
> 
> 
>
> 
>  if ($submit) {
>
>   $db=mysql_connect("66.220.69.20","admin","snoddy");
>   mysql_select_db("sammies models",$db);
>   $sql="INSERT INTO models (first, last, age, email, location,
> eye, hair, experience, aspirations, mtype, picname1, picname2,
> picname3, picname4, picname5, picname6, picname7, picname8)
>   VALUES
> ('$first','$last','$age','$email','$location','$eye','$hair','$exp
> erience','$aspirations','$mtype','$picname1','$picname2','$picname
> 3','$picname4','$picname5','$picname6','$picname7','$picname8')";
>   mysql_query($sql) or die(mysql_error());
>
> // if $_FILES['img1'] isn't empty, try to copy the file
> if ($_FILES['picname1'] != "") {
>
>  // copy the file to a directory or
>  //die and print an error message
>
>  // NOTE! if you're on a Windows machine,
>  // use Windows pathnames, like so:
>  // copy($_FILES[picname1][$first],
> "C:\\sammiwww\\directory\\path\\".$_POST[img1_name]);
>
>  copy($_FILES['picname1']['$first . temp'],
> "C:\\sammiwww\\upload\\".$_FILES['picname1']['$first'])
>   or die("Couldn't copy the file!");
>
> } else {
>
>  // if $_FILES['picname1'] was empty, die and let us know why
>  die("No input file specified");
>
> }
>
> ?>
>
>
> echo "First: $first\n";
> echo "Last: $last\n";
> echo "Age: $age\n";
> echo "Email: $email\n";
> echo "Location: $location\n";
>  echo "Eye color: $eye\n";
>  echo "Hair color: $hair\n";
>  echo "Experience: $experience\n";
>  echo "Aspirations: $aspirations\n";
>  echo "Media Type: $mtype\n";
>  echo "Photo 1: $picname1\n";
>  echo "\n";
>  echo "Photo 2: $picname2\n";
>  echo "\n";
> echo "Photo 3: $picname3\n";
>  echo "\n";
> echo "Photo 4: $picname4\n";
>  echo "\n";
> echo "Photo 5: $picname5\n";
>  echo "\n";
>  echo "Photo 6: $picname6\n";
>  echo "\n";
>  echo "Photo 7: $picname7\n";
>  echo "\n";
>  echo "Photo 8: $picname8\n";
> echo "\n";
>   echo  "Thank you for registering,  $first
> ";
>  ?>
>  
> 
> http://www.sammiesmodels.com"; target="_self">Return to
> Sammies Models
> Home
> // display form
> else {
>   ?>
> 
> 
> Submit Your Portfolio
> Here:
> 
>  action="">
>  
> 
> 
> First Name:
>  maxlength="45">
>  
> 
> 
> Last Name: 
> 
> *Last name shall
> not be used on the website, but
> 
> 
> Age:
> 
> for internal use
> only.
> 
> 
> Email:
> 
>  
> 
> 
> Location:
>  maxlength="60">
> *Location- please
> do not be specific, but only
> 
> 
> Eye Color
> 
> state or region.
> 
> 
> Hair Color:
>  maxlength="45">
>  
> 
> 
> Experience:
>  id="experience">
> *
> Any experience pertaining to your talent aspirations- school
> plays, photoshoots,
> etc..
> 
> 
> Aspirations:
>  id="aspirations">
>  
> 
> 
> Media Type:
> 
> *Media
> type includes specific types of jobs/ offers you are interested
> in. 
> 
> 
> 
> 
> Upload Picture 1:
> 
> 
> 
>  
> 
> 
> Upload Picture 2:
> 
> 
> 
> 
> 
> Upload Picture 3:
> 
> 
> 
> 
> 
> Upload Picture 4:
> 
> 
> 
> 
> 
> Upload Picture 5:
> 
> 
> 
> 
> 
> Upload Picture 6:
> 
> 
> 
> 
> 
> Upload Picture 7:
> 
> 
> 
> 
> 
> Upload Picture 8:
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>  }
>
> ?>
>
>
> 
> 
>
> 
>
> Sorry for the newbie question and the long-winded accompanying
> info here but I cannot pinpoint my error.  I hope there is an
> easily spotted culprit above.  Thanks again!  -John
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.467 / Virus Database: 266 - Release Date: 4/1/2003


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Permission Denied; Upload

2003-04-04 Thread John
Thanking in advance,

Hi all- very new to php, and at the risk of being "spoon fed" here, I beg for your 
patience in advance.  I am trying to have an entry page for user input/ pic upload 
into MySQL/win2k (www.sammiesmodels.com/entry.php ).

I get this error during test of the above page:  Warning: Unable to open '' for 
reading: Permission denied in C:\SammiWWW\entry.php on line 27 Couldn't copy the file!

The upload folder, "Temp" sits in the root www dir, and the user has all permissions 
granted (or do i?) in the DB.  Below is the syntax to the "Entry" page:

***


Portfolio Entry 







echo "First: $first\n"; 
echo "Last: $last\n"; 
echo "Age: $age\n"; 
echo "Email: $email\n"; 
echo "Location: $location\n";
 echo "Eye color: $eye\n";
 echo "Hair color: $hair\n";
 echo "Experience: $experience\n";
 echo "Aspirations: $aspirations\n";
 echo "Media Type: $mtype\n";
 echo "Photo 1: $picname1\n";
 echo "\n";
 echo "Photo 2: $picname2\n";
 echo "\n";
echo "Photo 3: $picname3\n";
 echo "\n";
echo "Photo 4: $picname4\n"; 
 echo "\n";
echo "Photo 5: $picname5\n"; 
 echo "\n";
 echo "Photo 6: $picname6\n";
 echo "\n";
 echo "Photo 7: $picname7\n";
 echo "\n";
 echo "Photo 8: $picname8\n";
echo "\n";
  echo  "Thank you for registering,  $first ";
 ?> 
 

http://www.sammiesmodels.com"; target="_self">Return to Sammies Models 
Home 



Submit Your Portfolio 
Here: 


 

 
First Name:

 

 
Last Name: 

*Last name shall 
not be used on the website, but

 
Age:

for internal use 
only.

 
Email:

 

 
Location:

*Location- please 
do not be specific, but only

 
Eye Color

state or 
region.

 
Hair Color:

 

 
Experience:

* 
Any experience pertaining to your talent aspirations- school plays, photoshoots, 
etc..

 
Aspirations:

 

 
Media Type:

*Media 
type includes specific types of jobs/ offers you are interested in. 




 
Upload Picture 1:
 


 

 
Upload Picture 2:
 



 
Upload Picture 3:
 



 
Upload Picture 4:
 



 
Upload Picture 5:
 



 
Upload Picture 6:
 



 
Upload Picture 7:
 



 
Upload Picture 8:
 

















Sorry for the newbie question and the long-winded accompanying info here but I cannot 
pinpoint my error.  I hope there is an easily spotted culprit above.  Thanks again!  
-John


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.467 / Virus Database: 266 - Release Date: 4/1/2003

RE: [PHP-DB] Permission denied! !"§$!"§$

2002-12-16 Thread Ruprecht Helms
Hi  Jim Hatridge,

> Warning: unlink() failed (Permission denied) in 
> /home/hatridge/public_html/Database/currency.php on line 12


> permissions and all are either 666 or 777.

The modification 777 means everyone can do everything. So there 
can't be any problem in writing or reading.

Insert a Errorhandling-Command for output what the database dislike.
If you are using mysql you do this with  mysql_error().

I will remember you to control the connectline. User must exist and
the position of user and host is important.

Regards,
Ruprecht

--
Ruprecht Helms IT-Service und Softwareentwicklung

Tel/Fax.:  +49[0]7621 16 99 16
Homepage:  http://www.rheyn.de
email:  [EMAIL PROTECTED]
--

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Permission denied! !"§$!"§$

2002-12-16 Thread Jim Hatridge
Hi all...

I've at last got "safe_mode" turned off (I think). But when I try to do an 
unlink I get this:
Warning: unlink() failed (Permission denied) in 
/home/hatridge/public_html/Database/currency.php on line 12

Also I'm trying to do exec() and it just ignore it. I've checked the 
permissions and all are either 666 or 777.

Any ideas?

Thanks

JIM

-- 
Vielfeind -- Viel Ehr'
Antiamerikanische Propaganda in der Philatelie des 20. Jahrhunderts
  http:/www.fecundswamp.net/~hatridge/stamps/index.html


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php