NYCPHP Meetup

NYPHP.org

[nycphp-talk] question:upload picture to the server

Nasir Zubair nasir81 at gmail.com
Thu Dec 13 22:24:32 EST 2007


Hi,

The easiest way I can think of is to upload a PHP document with the
following line:

<?php  echo $_SERVER["SCRIPT_FILENAME"]; ?>

Then access that file from a browser. It will tell you the actual path top
the file on the server. something like "/home/user/public_html/file.php"

You can work out path to your photo directory from there.



On Dec 13, 2007 10:19 PM, chad qian <nynj.tech at hotmail.com> wrote:

>  I use "godaddy" as web hosting.I access web files through FTP and I
> access mysql database through phpMyAdmin(through IE).
> Now,I want to upload  pictures to the server side.
> My problem is: how to define the picture path when I do php coding?I
> access the mysql database through phpMyAdmin(IE).Mysql is not on my local
> computer.I can't define "c:\...." or "d:\..." as where pictures are
> saved.I access MySql through phpMyadmin(IE).What's the correct path?I'm
> completely lost.
>
> Thanks!
>
> chad
>
> ------------------------------
> i'm is proud to present Cause Effect, a series about real people making a
> difference. Learn more<http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>



-- 
Nasir Zubair
http://www.nasir.us/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20071213/ea7731b6/attachment.html>


More information about the talk mailing list