Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Viewing files.


    Is it possible to view the files on the servers of sites like yahoo.com, msn.com?
  2. #2
  3. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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
  4. #3
  5. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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/
  6. #4
  7. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Bug in script


    i found a bug in the script, but replacing if (!$submit) { ... } with if (!$location) { ... } on Line 9. would fix the problem.
  8. #5
  9. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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.
  10. #6
  11. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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
  12. #7
  13. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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?
  14. #8
  15. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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.
  16. #9
  17. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    File Type problem in the example...


    <p><pre><font color=#008000><xmp>if(($type =
  18. #10
  19. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    usernames


    Is there any way to get PHP to grab a linux/unix username?
  20. #11
  21. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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
  22. #12
  23. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)
  24. #13
  25. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)
  26. #14
  27. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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
  28. #15
  29. No Profile Picture
    Ducani
    Guest
    Devshed Newbie (0 - 499 posts)

    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 .
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo