[PHP] Handling Macintosh filenames in PHP
Greetings all, I'm currently in the middle of developing a rather large piece of software written in PHP. I'll spare you the details, but essentially it is a glorified FTP client. The goal here, of course, is to develop a client that will work on any platform. In theory, this SHOULD work, because PHP runs server-side, therefore eliminating any problems that would normally arise from differences between the various platforms. However, it occurred to me that there isn't really a way (that I know of) to directly address a specific filename on a Macintosh as there is in other operating systems. For example, in Windows I could type C:\WINDOWS\SYSTEM\BLAH.EXE or in Unix I could type /var/spool/mail/whatever ... but is there a way to do such a thing on a Mac? Can you directly address a file several levels deep in the filesystem without using the MacOS interface itself to do so? The project I'm doing relies on the ability to do just that, and it would appear that I've hit a bit of a snag. If anyone can offer any suggestions or advice, I'd really appreciate it. Thanks in advance. Sincerely, Shawn Reed Chief Technology Officer RBC Incorporated - home of "Remote Backup Center" [ [EMAIL PROTECTED] / www.remotebackupcenter.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] using zip from php4
Hello all, I am attempting to write a script which will compress a group of files on my server into a zip file, and then set a password on the zip file. The code below is what I have come up with: Now, the problem is... the script finishes fine, and I get the "Zip file creation complete" message in my browser... but when I check /tmp, there is no test.zip file there. Any ideas as to why? Any help you can offer would be appreciated. Sincerely, Shawn Reed Chief Technology Officer RBC Incorporated - home of "Remote Backup Center" [ [EMAIL PROTECTED] / www.remotebackupcenter.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Why is this not working
the user that the webserver runs as (usually "apache" or "nobody") must have write permissions to the file which htpasswd is attempting to write to, or else it won't be able to make the changes you are attempting to make. ~shawn YoBro <[EMAIL PROTECTED]> wrote in message news:<9e1h4j$8k5$[EMAIL PROTECTED]>... > That didn't seem to work. > I am beginning to pull my hair out now. > > ""Tolga "thorr" Orhon"" <[EMAIL PROTECTED]> wrote in message > 9e1gjb$u1q$[EMAIL PROTECTED]">news:9e1gjb$u1q$[EMAIL PROTECTED]... > > I mean the absolute path for executable. > > > > > passthru ("/usr/bin/htpasswd -b /users/domain/.htpasswd abc pass"); > > ?> > > > > thorr > > > > ""YoBro"" <[EMAIL PROTECTED]> wrote in message > > 9e1gb1$jnn$[EMAIL PROTECTED]">news:9e1gb1$jnn$[EMAIL PROTECTED]... > > > My message described the absolute path with the provider I use. > > > > > > I am able to download the .htpasswd file from > > > /users/domain/ > > > > > > Still not working though. > > > > > > ""Tolga "thorr" Orhon"" <[EMAIL PROTECTED]> wrote in message > > > 9e1fth$vi3$[EMAIL PROTECTED]">news:9e1fth$vi3$[EMAIL PROTECTED]... > > > > May be you need to use absolute path for htpasswd. eg. > /usr/bin/htpasswd > > > > Did u check for any error msgs? > > > > > > > > thorr > > > > > > > > ""YoBro"" <[EMAIL PROTECTED]> wrote in message > > > > 9e1fcd$pir$[EMAIL PROTECTED]">news:9e1fcd$pir$[EMAIL PROTECTED]... > > > > > After much investigation through many newsgroups and websites, I > found > > > out > > > > > that this is the way you can execute a unix apache command to add a > > user > > > > to > > > > > the htpasswd list with PHP. > > > > > > > > > > Problem is, it doesn't add any information to the htpasswd file. > > > > > Note: The example below is... > > > > > domain = my user name > > > > > abc = user name to add to htpasswd list > > > > > pass = password to add to htpasswd list > > > > > > > > > > > > > > passthru ("htpasswd -b /users/domain/.htpasswd abc pass"); > > > > > ?> > > > > > > > > > > Please Help if you can. > > > > > > > > > > Cheers, > > > > > YoBro > > > > > > > > > > > > > > > > > > > > -- > > > > > PHP General Mailing List (http://www.php.net/) > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] generating thumbnails
nahhh, if you're doing a lot of images on a page, doing a system call for each one would generate entirely too much overhead, imo. check out the built-in image manipulation functions in php. http://www.php.net/manual/en/ref.image.php there is a function called ImageCopyResized() which is probably what you would need to use. i used to have a thumbnailer written in php but alas, it's been so long ago, that i forgot how i wrote it. :) ~shawn - Original Message - From: George E. Papadakis <[EMAIL PROTECTED]> To: Samuel L?scher <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, May 21, 2001 8:31 AM Subject: Re: [PHP] generating thumbnails > Find a good command line programm that does resing and use exec or system to > do the thumbnailing > Fopen >> fwrite >> exec. > > If you are on linux I suggest using NetPBM. > > - Original Message - > From: "Samuel L?scher" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, May 21, 2001 3:21 PM > Subject: [PHP] generating thumbnails > > > > is there any way to resize images in php and save them to a new file? > > i want to write sort of a (db-powered) picture gallery that automatically > > creates thumbnails out of http-uploaded files. > > > > thanks for your advice > > venome > > > > -- > > GMX - Die Kommunikationsplattform im Internet. > > http://www.gmx.net > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >