Re: [PHP-DB] Reg Exp to change c:\dir\dir\pic.jpg to dir/pic.jpg - to upload image path

2005-02-10 Thread J R
now if you must have the local path of your file here's a rough code to give you an idea using javascript, then just have it php control it on the server side. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Reg Exp to change c:\dir\dir\pic.jpg to dir/pic.jpg-to upload image path

2005-02-10 Thread Martin Norland
ioannes wrote: OK. Makes sense, since I needed to change the form tag to upload files. Clearly, then it was not uploading the path. Thanks If by local, in your example, you mean it gives you "pic1.jpg" - then I will agree. No browser I've ever seen sends "C:\pics\subdir\pic1.jpg". It will *di

Re: [PHP-DB] Reg Exp to change c:\dir\dir\pic.jpg to dir/pic.jpg- to upload image path

2005-02-10 Thread Martin Norland
ioannes wrote: I am trying to upload images - in fact an image path - from a PC. I use the tag: which nicely gives an input textfield and Browse button! This gives me, in the input box, eg: c:\pics\subdir\pic1.jpg a web browser doesn't even give you this information! The input tag does give t

Re: [PHP-DB] Reg Exp to change c:\dir\dir\pic.jpg to dir/pic.jpg - to upload image path

2005-02-10 Thread Martin Norland
ioannes wrote: I am trying to upload images - in fact an image path - from a PC. I use the tag: which nicely gives an input textfield and Browse button! This gives me, in the input box, eg: c:\pics\subdir\pic1.jpg The relative path on the server is something like: subdir/pics1.jpg thus I need t

[suspicious - maybe spam] [PHP-DB] [suspicious - maybe spam] Re: [PHP-DB] Reg Exp to change c:\dir\dir\pic.jpg to dir/pic.jpg - to upload image path

2005-02-09 Thread J R
hi you don't have to bother your self of such things. html does it all for you. All you have to do is manage the uploaded file which is put as a temporary file on the server temporary folder. Here's some tip: temporary file in your server: $_FILES["file"]["tmp_name"] name of your file (the upload

RE: [PHP-DB] Reg Exp to change c:\dir\dir\pic.jpg to dir/pic.jpg - to upload image path

2005-02-09 Thread Bastien Koert
Whats the reason to keep the image path from the host pc? The server will dump the uploaded file into a temp area fro which you can either move it to a permanent dir or load it into a db. The only path that you really need to worry about the one on the server, which you can handle by 1. leaving