+ Reply to Thread
Results 1 to 8 of 8

Thread: [PHP] Uploading files

  1. #1
    gerwim is offline x10Hosting Member gerwim is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    6

    [PHP] Uploading files

    Hi there,

    I'd like to know if it's possible to upload images to a x10hosting package. I'm building a website for a client, which has webhosting here. I'm using the exact same script on my own server, and then the image is uploaded. phpinfo() is also blocked here so I'm not able to look for anything which may cause this.

    TL;DR: Am I able to upload files using PHP?

    Thanks in advance.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: [PHP] Uploading files

    Yes. But any images you upload must be part of the site. This is not imageshack or photobucket.
    Nothing is always absolutely so.

  3. #3
    gerwim is offline x10Hosting Member gerwim is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    6

    Re: [PHP] Uploading files

    Thanks.

    Yes, it is a part of the site. But how will this be done? Do I need to contact x10hosting to enable uploading of my domain?

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: [PHP] Uploading files

    There is nothing blocking uploads. Nothing has to be enabled.

    If your script is not working, it is because it has an error in it when run here. You didn't say if there were error messages. Many scripts turn off error messages, which makes debugging hard, if not impossible.
    Nothing is always absolutely so.

  5. #5
    gerwim is offline x10Hosting Member gerwim is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    6

    Re: [PHP] Uploading files

    Hi,

    That's correct, although I have stated that the very same script works on my own server though.

    I'm trying to upload into an SQL database.

    With
    <?php
    print_r($_FILES);
    ?>
    I'm not getting any output. According to php.net (commentary) this is because due to a blocked server configuration.

  6. #6
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: [PHP] Uploading files

    I don't show a hosting account linked to your Forum username, so I don't know what server you are on.

    But I have a test account on Chopin. Running Drupal. And it uploads images fine.

    Due to the load balancing and multi-user set up here, many things that run on home computers, or even on other hosts, do not work here without adjustment to the script.
    Nothing is always absolutely so.

  7. #7
    bidzey75's Avatar
    bidzey75 is offline x10Hosting Member bidzey75 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    51

    Re: [PHP] Uploading files

    always check the error log files it will tell you what's going on. If the same script works on another server my best guess is it's a permission issue
    Last edited by bidzey75; 05-10-2011 at 06:57 PM.

  8. #8
    gerwim is offline x10Hosting Member gerwim is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    6

    Re: [PHP] Uploading files

    I'm on Starka.

+ Reply to Thread

Similar Threads

  1. Uploading files
    By k-duncan41 in forum Free Hosting
    Replies: 1
    Last Post: 12-03-2010, 03:16 PM
  2. Uploading files...
    By gcastelli in forum Free Hosting
    Replies: 4
    Last Post: 01-26-2010, 02:21 PM
  3. Uploading files?
    By ImpactCrewh in forum Free Hosting
    Replies: 1
    Last Post: 04-07-2008, 03:34 AM
  4. uploading files...
    By Betchy in forum Scripts & 3rd Party Apps
    Replies: 6
    Last Post: 11-11-2007, 09:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers