[RESOLVED] Help with installing php, and using the upload file function.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: [RESOLVED] Help with installing php, and using the upload file function.

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Location
    Kingston upon hull
    Posts
    9

    resolved [RESOLVED] Help with installing php, and using the upload file function.

    Well, im new to this forum, I need help with installing PHP and using it, i need to kow what server i can use on my pc to share the page over the network.

    I need a page that will allow me to upload a picture (or take a picture on the page) and then send it to my laptop over the WiFi and save it in a folder

    So i need help installing PHP
    Installing and setting up some server software and making the full page including the design for uploading pictures.

    If anyone could help with any of them it would be much appreciated

  2. #2
    Pedantic Curmudgeon Weedpacket's Avatar
    Join Date
    Aug 2002
    Location
    General Systems Vehicle "Thrilled To Be Here"
    Posts
    21,862
    You don't need PHP or any web server for that. Just make some directories on the respective computers visible on the local network and copy the files across.
    THERE IS AS YET INSUFFICIENT DATA FOR A MEANINGFUL ANSWER
    FAQs! FAQs! FAQs! Most forums have them!
    Search - Debugging 101 - Collected Solutions - General Guidelines - Getting help at all

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Location
    Kingston upon hull
    Posts
    9
    I want it to be a webpage so that mobile devices can connect, this is so people can upload there own photos to a slideshow, and i wouldn't have to collect them, if you know what i mean?

  4. #4
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,413
    Quote Originally Posted by hcaz View Post
    Well, im new to this forum
    Welcome to PHPBuilder!

    Quote Originally Posted by hcaz View Post
    I need help with installing PHP and using it
    First place I'd turn to for that would be the PHP manual. For example, if you're new to PHP altogether and are interested in a bit of background/introductory information about the programming language in general, take a look at the getting-started manual page.

    Otherwise, skip ahead to the install section if you know how you want to install PHP (e.g. which webserver you want to integrate it with).

    Quote Originally Posted by hcaz View Post
    i need to kow what server i can use on my pc to share the page over the network.
    Based on your recent reply, it sounds like a webserver would be the logical choice. As far as which webserver, well that's up to you. Apache is a very common choice, though.

    Quote Originally Posted by hcaz View Post
    I need a page that will allow me to upload a picture (or take a picture on the page) and then send it to my laptop over the WiFi and save it in a folder
    For uploading files, see the manual page features.file-upload to get started.

    As for the sending to the laptop, you'll have to figure out exactly how you want that file transfer to occur. For example, do you want to install an FTP server on your laptop and use the FTP protocol to transfer the files? Do you want to use a shared folder in Windows that gives others 'Write' access on your laptop?

  5. #5
    Junior Member
    Join Date
    Mar 2012
    Location
    Kingston upon hull
    Posts
    9
    From what i know about PHP (which is not allot) i can make a page on the laptop and the webserver will be on the laptop, connect to the ip from anover computer or phone, and click upload it would then same to the laptop, Does the server side script not save it on the servers local HDD?

  6. #6
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,413
    Quote Originally Posted by hcaz View Post
    Does the server side script not save it on the servers local HDD?
    Well yes, that is of course the place the file is first uploaded to when the form is POST'ed... but in your original post:

    Quote Originally Posted by hcaz View Post
    I need a page that will allow me to upload a picture (or take a picture on the page) and then send it to my laptop over the WiFi and save it in a folder
    you talk about uploading the picture "and then" sending it to your laptop, as if those two items were different processes (suggesting that the webserver is not on your laptop).

    If the webserver is on your laptop, then the application is reduced down to nothing more than a simple file upload script that accepts file uploads and moves them to the appropriate location on the hard drive.
    Last edited by bradgrafelman; 03-27-2012 at 02:03 PM. Reason: quote cleanup

  7. #7
    Junior Member
    Join Date
    Mar 2012
    Location
    Kingston upon hull
    Posts
    9
    Ahh sorry, yes i want the files uploaded to my laptop which is the webserver, i will install Apache on it, can you help me with the script, as if im right there will need to be a server side one as well as the client?

  8. #8
    Senior Member
    Join Date
    Apr 2003
    Location
    Silver Lake
    Posts
    4,851
    What operating system is your laptop running? If it's a Mac, you can use MAMP. If it's a PC, you can use WAMP. I myself bothered to learn how to install the things "from scratch" by compiling them, etc., but these packages are pretty user friendly and can get you started easily.

    As for accessing this laptop, I'm assuming you want these other computers and phones to access it using a browser. Please note that if these other computers/phones are not on your LAN then you will probably have to configure a router or firewall.

    For example, I have a LAN here at my office. All the computers connect via ethernet cable (or wifi) to a router. The router is connected to the cable modem which provides internet service for the entire network. My local computers can all "see" each other by accessing a local IP address like 192.168.1.2.

    If someone from Europe wants to connect to a computer on my network here in Los Angeles, I would need to configure my router to handle incoming HTTP requests (on port 80) by sending them to one of the machines on my network. How one does this depends entirely on one's router.

    Additionally, if you take your laptop to starbucks, you need an entirely different solution because your laptop's IP address would change when you went from the coffee bean to starbucks to pete's or whatever. Offhand, I'm not sure how you would handle this situation.
    IMPORTANT: STOP using the mysql extension. Use mysqli or pdo instead.
    World War One happened 100 years ago. Visit Old Grey Horror for the agony and irony.

  9. #9
    Junior Member
    Join Date
    Mar 2012
    Location
    Kingston upon hull
    Posts
    9
    I understand i am running windows 7, and the laptop is hosting a wireless network (Ad-Hoc) for the phones and computers to connect to, and yes through the browser, so that's why i thought of a webpage and using PHP to upload?

  10. #10
    Senior Member
    Join Date
    Apr 2003
    Location
    Silver Lake
    Posts
    4,851
    Consider WAMP then. It may require some configuration to get file uploads working correctly, but I expect we could help you figure that out.
    IMPORTANT: STOP using the mysql extension. Use mysqli or pdo instead.
    World War One happened 100 years ago. Visit Old Grey Horror for the agony and irony.

  11. #11
    Junior Member
    Join Date
    Mar 2012
    Location
    Kingston upon hull
    Posts
    9
    Im downloading that, will i need the PHP addon, or the Apache addon?

  12. #12
    Senior Member Derokorian's Avatar
    Join Date
    Apr 2011
    Location
    Denver
    Posts
    1,774
    WAMP stands for Windows Apache MySQL and PHP - it comes with everything but windows, which is what you will be installing it on.
    Sadly, nobody codes for anyone on this forum. People taste your dishes and tell you what is missing, but they don't cook for you. ~anoopmail
    I'd rather be a comma, then a full stop.
    User Authentication in PHP with MySQLi - Don't forget to mark threads resolved - MySQL(i) warning

  13. #13
    Junior Member
    Join Date
    Mar 2012
    Location
    Kingston upon hull
    Posts
    9
    Ahh right i understand, ive got it installed, and my laptop is now the host to the page that says WAMP, what next? will i have to make a page with an upload button and php behind it?

  14. #14
    Junior Member
    Join Date
    Mar 2012
    Location
    Kingston upon hull
    Posts
    9
    Thank you for all your help, i have got WAMP working and have a html page with a form and php script, which all works and uploads a file to my server, thank you for telling me about the software

  15. #15
    Settled 4 red convertible dalecosp's Avatar
    Join Date
    Jul 2002
    Location
    Accelerating Windows at 9.81 m/s....
    Posts
    7,697
    Yay! And, welcome to PHPBuilder!

    Do you mind now if we tell you about the "Mark Thread Resolved" option, up there under the "Thread Tools" pulldown menu above your first post?

    /!!\ mysql_ is deprecated --- don't use it! Tell your hosting company you will switch if they don't upgrade! /!!!\ ereg() is deprecated --- don't use it!

    dalecosp "God doesn't play dice." --- Einstein "Perl is hardly a paragon of beautiful syntax." --- Weedpacket

    Getting Help at All --- Collected Solutions to Common Problems --- Debugging 101 --- Unanswered Posts --- OMBE: Office Machines, Business Equipment

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •