Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 2nd, 2000, 07:55 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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?

Reply With Quote
  #2  
Old December 5th, 2000, 12:18 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #3  
Old December 6th, 2000, 01:24 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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/

Reply With Quote
  #4  
Old December 11th, 2000, 05:19 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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.

Reply With Quote
  #5  
Old December 12th, 2000, 10:51 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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.

Reply With Quote
  #6  
Old December 21st, 2000, 04:00 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #7  
Old March 5th, 2001, 12:18 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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?

Reply With Quote
  #8  
Old March 5th, 2001, 12:19 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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.

Reply With Quote
  #9  
Old May 28th, 2001, 03:17 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
File Type problem in the example...

<p><pre><font color=#008000><xmp>if(($type =

Reply With Quote
  #10  
Old June 13th, 2001, 11:11 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
usernames

Is there any way to get PHP to grab a linux/unix username?

Reply With Quote
  #11  
Old September 4th, 2001, 03:34 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #12  
Old January 28th, 2002, 06:34 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #13  
Old February 22nd, 2002, 04:03 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #14  
Old May 13th, 2003, 06:15 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #15  
Old May 27th, 2003, 01:58 PM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
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 .

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Stream Me Up, Scotty (part 2)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap