★ wanayoo — archive 1999 http://www.devshed.com/Server_Side/PHP/Introduction/comments.html/c4201/Nouvelle recherche | Portail wanayoo

Developer Shed
Wednesday, 08.16.2000  
Introduction to PHP and web database interfacing with MySQL. PHP3 is an HTML-embedded scripting language allowing web developers to create dynamic, database-driven websites.

HOME > SERVER SIDE > PHP > ARTICLE > COMMENTS    PHP SOURCE

Power Search
Free Newsletter:


Client Side
DHTML
Flash
Graphics
JavaScript
XML

Server Side
Administration
JServ
MySQL
Perl
PHP
Python
Roxen
Zend
Zope

Tools
HTML Editors
Graphic Editors
FTP Programs

Dev Talk
Forums
Mailing List
Book Samples
Brain Dump
Developer News
Feedback

ClipScripts
Add script
Edit script

Other Stuff
DevShed RDF
Propaganda!


Advertise
on DevShed
.
PHP3 Introduction
Introduction to PHP and web database interfacing with MySQL. PHP3 is an HTML-embedded scripting language allowing web developers to create dynamic, database-driven websites.

Name: Simon Biddle
Subject: Access/permissions problems using PHP Filesystem functions...
Date: 04-14-2000 06:16AM

Anyone know how to tell the server your username and password to allow you to modify files through PHP3 Filesystem functions? I'm trying to run a PHP3 script on my ISPs server, which will create a couple of files there. The tutorials show how to make user/password type declarations for MySQL: [code] $db=mysql_connect("localhost", "username", "password"); [/code] ...but I can't see anything similar to allow you to tell your ISP that you have permission to create/modify files. I am uploading a PHP3 script which has the following call which should create dest.txt alongside source.txt in the same directory the script is (and is being run from): [code] copy('source.txt', 'dest.txt'); [/code] ...with the result being: [result] Warning: Unable to create 'dest.txt': Permission denied in /home/blah/test/testcopy.php3 on line 27 [/result] As far as I can tell, all the code is correct - just that I don't have permissions to write (I can ftp there - but the PHP3 can't write there). I have also tried using fopen/fwrite calls with similar response. Any ideas??? Simon.


Other posts in this thread:
 Top
 • Access/permissions problems using PHP Filesystem functions...  Simon Biddle  04-14-2000 06:16AM 


Reply to this post:
Name:

Preview Comment.
Notify me of replies to this message.
Email:
Subject:
Tip: Put any source code between [code][/code] tags to increase readability


Visit the PHP Forum!

New On DevShed:
• MySQL Developer Contests PostgreSQL Benchmarks
• PHP 101 (part 3) - Chocolate Fudge And Time Machines
• MaxSQL Announced
•  PHP 101 (Part 2) - Shakespeare's Rose
• PHP 101 (Part 1) - Secret Agent Man
• The Search For The Perfect Web Host
• Perl 101 (Part 5) - Sub-Zero Code
•  Submit Your News..

Hot Forum Topics:
• Installing old IE browsers
• Auction Site
• Have anyone games written in php?
• open new window
• Calling a C program
• Problem with refersh...


Adsmart Network ad
Copyright © 1997-2000 ngenuity. All rights reserved. Privacy Policy.