The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Other
> Development Articles
|
Stream Me Up, Scotty (part 2)
Discuss Stream Me Up, Scotty (part 2) in the Development Articles forum on Dev Shed. Stream Me Up, Scotty (part 2) Development Articles forum discussing articles and tutorials located at http://www.devshed.com. See what our authors have created for your viewing pleasure.
|
|
 |
|
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

December 2nd, 2000, 07:55 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Viewing files.
Is it possible to view the files on the servers of sites like yahoo.com, msn.com?
|

December 5th, 2000, 12:18 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Permissions Issue
The author failed to mention problems with permissions. Remember, all your PHP scripts run as the same user with same permissions set as the webserver. In most cases, this is user 'nobody'. So this really won't work especially if your running PHP as an apache module. You can of course have you're webserver run as user 'root' but that wouldn't be the best idea. (Actually it's a really sucky idea)
<br>
<br>
Jason
|

December 6th, 2000, 01:24 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
My Comment
I like to say a word of thanks.
Articels like these makes it for the non programmers like myself, who do a lot with webdesign possible to keep up with demands and learn to use PHP even better.
Special thanks,
Keep up the good work!!
Nico Kanters
http://www.kanters-design.com/
|

December 11th, 2000, 05:19 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Bug in script
i found a bug in the script, but replacing if (!$submit) { ... } with if (!$location) { ... } on Line 9. would fix the problem.
|

December 12th, 2000, 10:51 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: My Comment
I agree 110%. Articles like these can help keep people on top of things in an industry where keeping up to speed can be a serious issue. I would love to see a few articles where the beginners programs are built on to create something a little more advanced.
Excellent site.
|

December 21st, 2000, 04:00 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
safe mode workaround
Hey there, Some of us run in safe mode and here's one solution for allowing file uploads in this restrictive mode.
<!-- Code -->
<p><pre><font color=#008000><xmp></xmp></font></pre><p>
<!-- Code -->
First, you need a way to modify UID. This must be installed by the System Administrator, not the end user. Here's a script to do this :
<!-- Code -->
<p><pre><font color=#008000><xmp>
http://www.srparish.net/scripts/
</xmp></font></pre><p>
<!-- Code -->
It's called CHUID. The README has many useful details, read them. After installed, an example use is the following, in your upload processor script (in example, in form, name="file") :
<!-- Code -->
<p><pre><font color=#008000><xmp>
passthru ("chuid $file 1033");
copy("$file", "/path/to/uploads/$file_name")
or die ("could not copy file $file_name");
</xmp></font></pre><p>
<!-- Code -->
Where 1033 is the users UID. To find out your UID, in shell do this :
<!-- Code -->
<p><pre><font color=#008000><xmp>
echo $CHUID
</xmp></font></pre><p>
<!-- Code -->
This works nicely for me, have a great day. Philip
|

March 5th, 2001, 12:18 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Bug in script
I copied every script letter for letter and they all worked for me. Not sure where you are saying there is an error at?
|

March 5th, 2001, 12:19 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Viewing files.
No that would not be possible.
The only reason these scripts work is because they are running on the actual server. Your client isn't doing anything.
So unless you had acccess to load PHP onto yahoo.com and upload these scripts, there is no way for you to run them.
|

May 28th, 2001, 03:17 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
File Type problem in the example...
<p><pre><font color=#008000><xmp>if(($type =
|

June 13th, 2001, 11:11 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
usernames
Is there any way to get PHP to grab a linux/unix username?
|

September 4th, 2001, 03:34 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Large files upload
I do ot have access to the php.ini files on the host but I need to upload files up to 5megs.
I have used ini_set to temporarily change the values:
ini_set ("upload_max_filesize", "5M");
ini_set ("max_execution_time", "30000");
ini_set ("post_max_size", "5M");
ini_set ("memory_limit", "5M");
Problem is that the first two are changing the settings but post_max_size and memory_limit will not change even though PHP manual indicates that they should.
It still will not work for a 4,5M file.
Anyone have any ideas?
Duncan
|

January 28th, 2002, 06:34 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|

February 22nd, 2002, 04:03 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|

May 13th, 2003, 06:15 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Good Work
Hi There,
I am a Web developer who is an avid reader and keeps reading articles written by various people like you but then need to say havent found many people who understand how to put the content through so as to be helpfull to the reader. I have really liked the way you have compiled your article and would like to say keep the good work going and also pls send me the links of any other articles that you might have written. It will be pleasure reading them.
Looking forward to read your other articles.
Regards,
Manav
|

May 27th, 2003, 01:58 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Stream Me Up, Scotty (part 2)
Stream Me Up, Scotty \(part 2\)
You've already seen how PHP4's FTP functions can help you interact with files on a remote server. In this article, learn how to use PHP's other file and directory manipulation functions, and build an equivalent application that demonstrates the difference between the two approaches.
Please discuss this article in this thread. You can read the article here .
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|