PHP+ Networking Doubt

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
harsha
Forum Contributor
Posts: 103
Joined: Thu Jul 11, 2002 1:35 am
Location: Bengaluru (Bangalore) > Karnataka > India

PHP+ Networking Doubt

Post by harsha »

I have three systems (windows)

1. One is mysql server

2. another is webserver

3. and another is where I have stored all the resumes.

the path in the database is stoored as
/ipaddress/path/to/resume.doc (which is the path of system 3)

now i fetch this value from the Db in system 3,
and this path value is fetched from a PHP script in system 1.


now this path is an absolute path or relative path

should i have to use \\ipaddress\
or
file://ipaddress
or what should i use

I am not able to attach doc file to email and send it using this method.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

This normally works for connecting to a remote system.
$file = fopen ("ftp://ipaddress/path/to/resume.doc", "r");
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

the easiest (imho) just share the resume directory? And then mount it, and approach it like Z://whatever :)
Post Reply