php-general Digest 25 Sep 2004 23:12:54 -0000 Issue 3017
Topics (messages 197816 through 197845):
how to retrieve path to web server files
197816 by: AMC
197817 by: M. Sokolewicz
197832 by: Jasper Howard
197833 by: Jasper Howard
Re: interesting behavior of ob_end_flush() in __destruct()
197818 by: Daniel Schierbeck
197821 by: aRZed
Re: mailing to hotmail
197819 by: -{ Rene Brehmer }-
197820 by: -{ Rene Brehmer }-
New PHP tutorial - suggestions welcome
197822 by: Paul Hudson
197823 by: Daniel Schierbeck
197826 by: Chris Shiflett
Re: php upload script problems
197824 by: Jim Grill
redirecting to another page
197825 by: AMC
197827 by: Jason Davidson
197828 by: Chris Shiflett
Re: simple templateing
197829 by: Matthew Weier O'Phinney
Problems installing smarty on a shared host
197830 by: Pablo Gosse
197831 by: Marek Kilimajer
197834 by: Pablo Gosse
197836 by: Marek Kilimajer
197839 by: Pablo Gosse
197841 by: Pablo Gosse
197843 by: Marek Kilimajer
ftp_put Problems
197835 by: Julian
197837 by: Marek Kilimajer
197838 by: Julian
197840 by: Jason Wong
197842 by: Julian
197844 by: Marek Kilimajer
197845 by: Julian
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
How can I get the string that is the path to the directories on my web
server? I need to upload some files, but don't know what to supply for the
destination path. In asp I used server.mappath, but I'm new to php.
Thanks,
--- End Message ---
--- Begin Message ---
$path = getcwd();
Amc wrote:
Hi,
How can I get the string that is the path to the directories on my web
server? I need to upload some files, but don't know what to supply for the
destination path. In asp I used server.mappath, but I'm new to php.
Thanks,
--- End Message ---
--- Begin Message ---
On Sat, 25 Sep 2004 14:29:27 +0200, M. Sokolewicz <[EMAIL PROTECTED]> wrote:
> $path = getcwd();
>
>
> Amc wrote:
> > Hi,
> >
> > How can I get the string that is the path to the directories on my web
> > server? I need to upload some files, but don't know what to supply for the
> > destination path. In asp I used server.mappath, but I'm new to php.
> >
> > Thanks,
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
<<--------------------------------------------------------
Jasper Howard - Database Administration
ApexEleven.com
530 559 0107
------------------------------------------------------->>
--- End Message ---
--- Begin Message ---
$base_dir = $_SERVER['document_root']
On Sat, 25 Sep 2004 14:17:16 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote:
>
>
> On Sat, 25 Sep 2004 14:29:27 +0200, M. Sokolewicz <[EMAIL PROTECTED]> wrote:
> > $path = getcwd();
> >
> >
> > Amc wrote:
> > > Hi,
> > >
> > > How can I get the string that is the path to the directories on my web
> > > server? I need to upload some files, but don't know what to supply for the
> > > destination path. In asp I used server.mappath, but I'm new to php.
> > >
> > > Thanks,
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> <<--------------------------------------------------------
> Jasper Howard - Database Administration
> ApexEleven.com
> 530 559 0107
> ------------------------------------------------------->>
>
--
<<--------------------------------------------------------
Jasper Howard - Database Administration
ApexEleven.com
530 559 0107
------------------------------------------------------->>
--- End Message ---
--- Begin Message ---
Arzed wrote:
it seems that php first ends output buffering and then calls then
destrcuts the objects. so the output buffering is still ended when the
destructor is calles. one has to unset the object to reverse that order
manually.
I've encountered the same "problem". It would be nice if there was an
option to keep the buffered output, even after script termination.
--- End Message ---
--- Begin Message ---
Chris Dowell wrote:
I haven't searched through the archives to refresh my memory, but it's
something to bear in mind. I wonder whether error messages are also not
passed to the browser.
I have pointed out some more aspects of this issue:
Error messages and normal output are passed to the browser as expected.
(my first examlpe and the following)
<?php
class foo
{
public function __construct()
{
ob_start();
}
public function __destruct()
{
echo "Destructor";
}
}
$f = new foo();
// outputs "Destructor"
?>
still unclear is what happens when ob_start() is called in the
destructor. but it seems that this has no serious effect.
<?php
class foo
{
public function __construct()
{
ob_start();
}
public function __destruct()
{
ob_start();
echo "Destructor";
}
}
$f = new foo();
// no output - output is buffered
?>
it seems that the destructor is called when output buffering is still
deactivated but the connection to the client is active.
i consider it a bit strange that output buffering is deactivated when
there is still the possibility of passing something to the browser.
greets
aRZed
--- End Message ---
--- Begin Message ---
At 19:05 24-09-2004, you wrote:
Diana Castillo wrote:
for some reasons my mails I send to hotmail are never arriving, (using
mail($email,$subject_line,$msg,$headers);)
anyone ever heard of this?
Does the box that you're running php on have a dynamic address? Do you
have reverse DNS?
You can actually have a static IP and still be listed as dynamic in the
databases. That's the problem I have. My secondary MX, which is also my
workstation and thus test-bed, is on a privately leased static IP, but alot
of databases lists it as "dial-up pool" which is incorrect, and thus they
don't accept mail from my server. Luckily sofar all the mail that's been
refused because of this have been my server's auto-generated complaints to
spamhouses.
--
Rene Brehmer
aka Metalbunny
If your life was a dream, would you wake up from a nightmare, dripping of
sweat, hoping it was over? Or would you wake up happy and pleased, ready to
take on the day with a smile?
http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums at http://forums.metalbunny.net/
--- End Message ---
--- Begin Message ---
At 18:23 24-09-2004, Diana Castillo wrote:
for some reasons my mails I send to hotmail are never arriving, (using
mail($email,$subject_line,$msg,$headers);)
anyone ever heard of this?
Usually if mail is not accepted by hotmail you'll get a very long and
polite error message about it after some time, usually almost immediately
... (for some reason they can deliver error messages immediately, but
regular mail takes hours to days)...
Have you checked the junk folder??? ... atleast I assume you've tested with
your own hotmail account...
--
Rene Brehmer
aka Metalbunny
If your life was a dream, would you wake up from a nightmare, dripping of
sweat, hoping it was over? Or would you wake up happy and pleased, ready to
take on the day with a smile?
http://metalbunny.net/
References, tools, and other useful stuff...
Check out the new Metalbunny forums at http://forums.metalbunny.net/
--- End Message ---
--- Begin Message ---
Hi there,
I've written a short PHP tutorial and am looking for input - does it
cover enough ground? Is it hard to use as a reference? Does it get
too technical?
Anyway, if you have any ideas as to how it can be improved, I'd be
happy to hear from you. The URL is http://www.hudzilla.org/php and my
email address is [EMAIL PROTECTED]
Thanks for your time!
Paul
--
www.hudzilla.org
--- End Message ---
--- Begin Message ---
Paul Hudson wrote:
I've written a short PHP tutorial and am looking for input - does it
cover enough ground? Is it hard to use as a reference? Does it get
too technical?
Anyway, if you have any ideas as to how it can be improved, I'd be
happy to hear from you. The URL is http://www.hudzilla.org/php and my
email address is [EMAIL PROTECTED]
Looks nice :l
One thing: replace "weakly typed" with "loosely typed" in
http://www.hudzilla.org/php/3_1_0.php (after the first red box)
Good job, Scotty!
Daniel
--- End Message ---
--- Begin Message ---
--- Paul Hudson <[EMAIL PROTECTED]> wrote:
> I've written a short PHP tutorial and am looking for input -
> does it cover enough ground? Is it hard to use as a reference?
> Does it get too technical?
>
> Anyway, if you have any ideas as to how it can be improved, I'd
> be happy to hear from you.
Well done. It looks like you put a lot of work into it. One suggestion I
have is to leverage your medium - why not allow user comments on each page
or even make the entire thing a wiki?
I read a few pages and had a few comments to make, and this would be
convenient if I could type them in as I think of them. I think this is one
of the greatest things about the PHP manual. You could also try to point
people toward other resources - for some topics, there are already
numerous resources on the Web that are very good. These would be nice to
include at the end of a particular topic, because getting multiple
perspectives is always best for the reader.
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming December 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/
--- End Message ---
--- Begin Message ---
> Hi,
>
> I have the following php page. The page just opens up blank and I assume I
> made an error I cannot see. I'm new to php and any help would be greatly
> appreciated:
>
> <?php
>
> $extlimit = "yes"; //Do you want to limit the extensions of files uploaded
>
> $limitedext = array(".pdf"); //Extensions you want files uploaded limited
> to.
>
> $sizelimit = "no"; //Do you want a size limit, yes or no?
>
> $sizebytes = "200000"; //size limit in bytes
>
> $dl = "http://www.corrige2.bluehill.com/pdfs"; //url where files are
> uploaded
>
> $absolute_path = "http://www.corrige2.bluehill.com/pdfs"; //Absolute path
to
> where files are uploaded
>
Aside from what others have pointed out, your absolute path is not a file
path at all. This will cause some problems later on in the script when you
try to upload an image file to a URL instead of a file path.
Jim Grill
--- End Message ---
--- Begin Message ---
Hi,
What code do I use to redirect a user to a different page in php?
Thanks
--- End Message ---
--- Begin Message ---
eh hem,,, that is a great question to consult the manual... but as for a
hint, search for header()
Jason
"AMC" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> What code do I use to redirect a user to a different page in php?
>
> Thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
--- AMC <[EMAIL PROTECTED]> wrote:
> What code do I use to redirect a user to a different page in php?
There are several methods, but my favorite is to use a Location header
which also changes the response status code. This method is transparent to
the history mechanism, so users can still click the Back button.
header('Location: http://example.org/');
Another method is to use the Refresh header, which also allows you to set
a timer for the redirect. One disadvantage is that it can prevent a user
from using the Back button.
header('Refresh: 0; url=http://example.org/');
There are also client-side methods of redirecting the user, but this is a
PHP list. :-)
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming December 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/
--- End Message ---
--- Begin Message ---
* Mag <[EMAIL PROTECTED]>:
> I am searching for a REAL simple templateing
> class/package
>
> I have googled for this and basically SMARTY and PAT
> is too bulky, the people who will be using this script
> will be pretty dumb and all I can trust them to do
> would be something like this:
>
> <header>
> <category> ---- <contents>
> <footer>
>
> and the template should have a cacheing feature...
I use Smarty. The thing about Smarty is it can be as simple or as
complex as you want it. I personally feel you could do exactly as you
describe with it -- just tell your designers the bare minimum of what
you will allow in a template.
You might look into Savant as well -- but the idea behind Savant is that
a template is simply another PHP page, only you do code related to
display logic only. I don't believe it does caching, either (though I'm
unsure of that point).
PEAR also has a number of templating systems, and I'd be surprised if
they don't do caching; look under the HTTP or HTML categories on PEAR
for some possibilities.
--
Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED]
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
--- End Message ---
--- Begin Message ---
Hi folks. I've recently moved my site to a shared host, and this is the
first time I've had to set up my site in a really restrictive
environment, and I'm running into problems getting smarty installed.
Using the basic example set up from the Smarty docs, when I run the file
I get the following error:
Warning: main(Smarty.class.php): failed to open stream: No such file or
directory in /home/virtual/site357/fst/var/www/html/smarty.php on line 4
Fatal error: main(): Failed opening required 'Smarty.class.php'
(include_path='.:/php/includes:/usr/share/php:/home/pablogosse/smarty/')
in /home/virtual/site357/fst/var/www/html/smarty.php on line 4
Now, as you can see by the value of my include path, I've got the path
to smarty added, but it's still not finding the file even though
/home/pablogosse/smarty/Smarty.class.php does indeed exist.
Can anyone tell me why this is happening? As I said up until now I've
been lucky enough to always have access to dedicated servers where
setting this up was never a problem, but I know there's something I'm
missing in understanding why this isn't working.
Any help is appreciated.
Cheers and TIA.
Pablo
--- End Message ---
--- Begin Message ---
Pablo Gosse wrote:
Hi folks. I've recently moved my site to a shared host, and this is the
first time I've had to set up my site in a really restrictive
environment, and I'm running into problems getting smarty installed.
Using the basic example set up from the Smarty docs, when I run the file
I get the following error:
Warning: main(Smarty.class.php): failed to open stream: No such file or
directory in /home/virtual/site357/fst/var/www/html/smarty.php on line 4
Fatal error: main(): Failed opening required 'Smarty.class.php'
(include_path='.:/php/includes:/usr/share/php:/home/pablogosse/smarty/')
in /home/virtual/site357/fst/var/www/html/smarty.php on line 4
You are including from file that is located in
/home/virtual/site357/fst/var/www/html/, and the smarty class is in
/home/pablogosse/smarty/? The paths seems strange, what if you try
include_path = /home/virtual/site357/+ whatever is the relative path to
Smarty.class.php from smarty.php
--- End Message ---
--- Begin Message ---
I tried that and got the same error.
I'm trying to place the smarty directories outside my webroot to
minimize security risks, however given my experiences thus far, I don't
really see that being possible.
Would a viable solution perhaps to be to include the smarty directories
in the webroot such that my scripts can access them, but to protect the
directories via .htaccess to prevent direct execution of files from said
directories, since my scripts will be including them but are themselves
executed from valid locations?
Cheers and TIA,
Pablo
-----Original Message-----
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 25, 2004 1:52 PM
To: Pablo Gosse
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Problems installing smarty on a shared host
Pablo Gosse wrote:
> Hi folks. I've recently moved my site to a shared host, and this is
the
> first time I've had to set up my site in a really restrictive
> environment, and I'm running into problems getting smarty installed.
>
> Using the basic example set up from the Smarty docs, when I run the
file
> I get the following error:
>
> Warning: main(Smarty.class.php): failed to open stream: No such file
or
> directory in /home/virtual/site357/fst/var/www/html/smarty.php on line
4
>
> Fatal error: main(): Failed opening required 'Smarty.class.php'
>
(include_path='.:/php/includes:/usr/share/php:/home/pablogosse/smarty/')
> in /home/virtual/site357/fst/var/www/html/smarty.php on line 4
You are including from file that is located in
/home/virtual/site357/fst/var/www/html/, and the smarty class is in
/home/pablogosse/smarty/? The paths seems strange, what if you try
include_path = /home/virtual/site357/+ whatever is the relative path to
Smarty.class.php from smarty.php
--- End Message ---
--- Begin Message ---
Pablo Gosse wrote:
I tried that and got the same error.
I'm trying to place the smarty directories outside my webroot to
minimize security risks, however given my experiences thus far, I don't
really see that being possible.
It should not matter, unless open_basedir is in effect, but that would
be another error. I would check if the directories are right, you can
start by using relative path.
Would a viable solution perhaps to be to include the smarty directories
in the webroot such that my scripts can access them, but to protect the
directories via .htaccess to prevent direct execution of files from said
directories, since my scripts will be including them but are themselves
executed from valid locations?
Cheers and TIA,
Pablo
--- End Message ---
--- Begin Message ---
[snip]
> I'm trying to place the smarty directories outside my webroot to
> minimize security risks, however given my experiences thus far, I
don't
> really see that being possible.
It should not matter, unless open_basedir is in effect, but that would
be another error. I would check if the directories are right, you can
start by using relative path.
[/snip]
It appears I've found the problem.
I used passthru(ls -l [dirname],$ret) to start reading from /home all
the way up through the following:
/home/
/home/virtual/
/home/virtual/site357/
/home/virtual/site357/fst/
and all returned complete directory listings and a return code of 0.
Now, when I read through
/home/virtual/site357/fst/var/
/home/virtual/site357/fst/var/www/
/home/virtual/site357/fst/var/www/html/
I see the files that I would see when I SSH in and ls -l the following
paths:
/var/
/var/www/
/var/www/html/
HOWEVER, when I attempt the passthru call on
/home/virtual/site357/fst/home/
I get no results back, and the return code is 1. So it appears scripts
running under the apache user cannot access that folder or anything
beneath it
Any ideas?
Cheers and TIA.
Pablo
--- End Message ---
--- Begin Message ---
[snip]
It should not matter, unless open_basedir is in effect, but that would
be another error. I would check if the directories are right, you can
start by using relative path.
[/snip]
Just the relative path from smarty.php,
../../../home/pablogosse/smarty/Smarty.class.php
And I get a permission denied error. So it appears for sure that I
can't read anything inside my home directory, or outside the webroot it
would seem.
Any ideas?
Cheers and TIA,
Pablo
--- End Message ---
--- Begin Message ---
Pablo Gosse wrote:
[snip]
It should not matter, unless open_basedir is in effect, but that would
be another error. I would check if the directories are right, you can
start by using relative path.
[/snip]
Just the relative path from smarty.php,
../../../home/pablogosse/smarty/Smarty.class.php
And I get a permission denied error. So it appears for sure that I
can't read anything inside my home directory, or outside the webroot it
would seem.
Any ideas?
Then put it in webroot. You should protect template and compiled
template directories using .htaccess. Smarty.class.php does not really
matter, it only defines a class.
--- End Message ---
--- Begin Message ---
Hello,
I need to use FTP to upload a local file to a server. The uploads must be
done through FTP and not HTTP. Unfortunately, the example in the manual is
not working for me. If someone has any suggestions I would really appreciate
it.
Thanks,
Julian
--- End Message ---
--- Begin Message ---
Julian wrote:
Hello,
I need to use FTP to upload a local file to a server. The uploads must be
done through FTP and not HTTP. Unfortunately, the example in the manual is
not working for me. If someone has any suggestions I would really appreciate
it.
Not much information. There is not error checking in the example, try
this and tell us the output:
$file = 'somefile.txt';
$remote_file = 'readme.txt';
// set up basic connection
$conn_id = ftp_connect($ftp_server);
if(!$conn_id) die("Could not open connection to $ftp_server");
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if(!$login_result) die("Could not login as user $ftp_user_name");
// upload a file
if (ftp_put($conn_id, $remote_file, $file, FTP_ASCII)) {
echo "successfully uploaded $file\n";
} else {
echo "There was a problem while uploading $file\n";
}
// close the connection
ftp_close($conn_id);
--- End Message ---
--- Begin Message ---
Maybe I should be more specific about what I am trying to do. I may be way
off base in my approach.
I want to upload using ftp a file from my local c drive (c:\somefile.text)
to my server. I have been trying the ftp_put function example in the manual
and it is failing. It reports "There was a problem uploading the file."
Any suggestions would be greatly appreciated.
Thanks,
Julian
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Julian wrote:
>> Hello,
>>
>> I need to use FTP to upload a local file to a server. The uploads must be
>> done through FTP and not HTTP. Unfortunately, the example in the manual
>> is not working for me. If someone has any suggestions I would really
>> appreciate it.
>
> Not much information. There is not error checking in the example, try this
> and tell us the output:
>
> $file = 'somefile.txt';
> $remote_file = 'readme.txt';
>
> // set up basic connection
> $conn_id = ftp_connect($ftp_server);
>
> if(!$conn_id) die("Could not open connection to $ftp_server");
>
> // login with username and password
> $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
>
> if(!$login_result) die("Could not login as user $ftp_user_name");
>
> // upload a file
> if (ftp_put($conn_id, $remote_file, $file, FTP_ASCII)) {
> echo "successfully uploaded $file\n";
> } else {
> echo "There was a problem while uploading $file\n";
> }
>
> // close the connection
> ftp_close($conn_id);
--- End Message ---
--- Begin Message ---
On Sunday 26 September 2004 06:38, Julian wrote:
> Maybe I should be more specific about what I am trying to do. I may be way
> off base in my approach.
>
> I want to upload using ftp a file from my local c drive (c:\somefile.text)
> to my server. I have been trying the ftp_put function example in the manual
> and it is failing. It reports "There was a problem uploading the file."
If the script is running on the server then yes you're way off base. Remember
the ftp_*() functions operate relative to where the script is running.
What exactly is it you're trying to do?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Laughter is the closest distance between two people.
-- Victor Borge
*/
--- End Message ---
--- Begin Message ---
i am trying to get a file from my local c drive to my server using something
other than a form.
thanks,
julian
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sunday 26 September 2004 06:38, Julian wrote:
>> Maybe I should be more specific about what I am trying to do. I may be
>> way
>> off base in my approach.
>>
>> I want to upload using ftp a file from my local c drive
>> (c:\somefile.text)
>> to my server. I have been trying the ftp_put function example in the
>> manual
>> and it is failing. It reports "There was a problem uploading the file."
>
> If the script is running on the server then yes you're way off base.
> Remember
> the ftp_*() functions operate relative to where the script is running.
>
> What exactly is it you're trying to do?
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> Laughter is the closest distance between two people.
> -- Victor Borge
> */
--- End Message ---
--- Begin Message ---
Julian wrote:
i am trying to get a file from my local c drive to my server using something
other than a form.
Hmm, you can run an ftp server on your local machine and use php script
on the server to retrieve the files. http server will work just as well.
Is this what you want?
thanks,
julian
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On Sunday 26 September 2004 06:38, Julian wrote:
Maybe I should be more specific about what I am trying to do. I may be
way
off base in my approach.
I want to upload using ftp a file from my local c drive
(c:\somefile.text)
to my server. I have been trying the ftp_put function example in the
manual
and it is failing. It reports "There was a problem uploading the file."
If the script is running on the server then yes you're way off base.
Remember
the ftp_*() functions operate relative to where the script is running.
What exactly is it you're trying to do?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Laughter is the closest distance between two people.
-- Victor Borge
*/
--- End Message ---
--- Begin Message ---
well, i suspect i am at a dead end. here is the layout of things.
we want to put up an internet kiosk at certain thoroughbred auctions to
allow people to send ecards as well as contact associates. we have a web cam
on the kiosk and a partner came up with the idea of letting them send photos
of themselves as well. the problem is i cannot find a way to use the form
type FILE without giving the user access to everything on the kiosk
computer. try as i might i cannot get around that "browse" button. so i
thought i would try the ftp functions which i am totally unfamiliar with. i
do truly appreciate the time you and others took to look into this.
julian
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Julian wrote:
>> i am trying to get a file from my local c drive to my server using
>> something other than a form.
>
> Hmm, you can run an ftp server on your local machine and use php script on
> the server to retrieve the files. http server will work just as well. Is
> this what you want?
>
>>
>> thanks,
>> julian
>> "Jason Wong" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>
>>>On Sunday 26 September 2004 06:38, Julian wrote:
>>>
>>>>Maybe I should be more specific about what I am trying to do. I may be
>>>>way
>>>>off base in my approach.
>>>>
>>>>I want to upload using ftp a file from my local c drive
>>>>(c:\somefile.text)
>>>>to my server. I have been trying the ftp_put function example in the
>>>>manual
>>>>and it is failing. It reports "There was a problem uploading the file."
>>>
>>>If the script is running on the server then yes you're way off base.
>>>Remember
>>>the ftp_*() functions operate relative to where the script is running.
>>>
>>>What exactly is it you're trying to do?
>>>
>>>--
>>>Jason Wong -> Gremlins Associates -> www.gremlins.biz
>>>Open Source Software Systems Integrators
>>>* Web Design & Hosting * Internet & Intranet Applications Development *
>>>------------------------------------------
>>>Search the list archives before you post
>>>http://marc.theaimsgroup.com/?l=php-general
>>>------------------------------------------
>>>/*
>>>Laughter is the closest distance between two people.
>>>-- Victor Borge
>>>*/
>>
--- End Message ---