JadWS Posted February 14, 2015 Share Posted February 14, 2015 Hey there guys. I want first to thank you for helping me in my previous topic : http://forums.phpfreaks.com/topic/294511-not-saving-session-data-after-log-in/ But now i did not run throw a code problem yet throw a diff type of problems. After reading the "posting rules" or forgot what it name was i realize that this post is probably a bad idea. But here is the problem. I am working on a system that can read the files of a my server witch i have in my home. Yet after searching for days litterly i couldn't find any way or functions or even a hint to build a php function in order to read the files in the directory of the server. So all i ask for is not for you to write any bit of code or any thing just if you know even a small bit of what im looking for to post it as a reply so i can finish my project . Or if you know any tutorials on it. After all i don't just want it to work but to also understand what is going on. Thanks for reading. Quote Link to comment https://forums.phpfreaks.com/topic/294618-need-php-help/ Share on other sites More sharing options...
wright67uk Posted February 14, 2015 Share Posted February 14, 2015 http://php.net/manual/en/features.remote-files.php Quote Link to comment https://forums.phpfreaks.com/topic/294618-need-php-help/#findComment-1505712 Share on other sites More sharing options...
JadWS Posted February 15, 2015 Author Share Posted February 15, 2015 http://php.net/manual/en/features.remote-files.php hey ye thanks for your reply im afraid i already saw that page and it didnt help ... What im trying to do is to read files from the server witch it ip is : 192.168.3.250 not a link. Quote Link to comment https://forums.phpfreaks.com/topic/294618-need-php-help/#findComment-1505733 Share on other sites More sharing options...
mac_gyver Posted February 15, 2015 Share Posted February 15, 2015 a) you can use an ip address in a url (a domain name in a url is resolved to it's ip address by the requesting client anyways and http/ftp requests are actually performed using the ip address.) b) the ip address you have listed is the local network ip of your computer. it's not the public ip address, which would be the ip address of your dsl/cable modem/router. in order to make your computer on your local network accessible over the internet, you would need to set up port forwarding on your router. why exactly are you trying to do this, since most isp's don't allow public servers to setup on their networks? Quote Link to comment https://forums.phpfreaks.com/topic/294618-need-php-help/#findComment-1505736 Share on other sites More sharing options...
JadWS Posted February 15, 2015 Author Share Posted February 15, 2015 im retying to do this because im working on like a panel to access my server and read it files and edit them etc ... Quote Link to comment https://forums.phpfreaks.com/topic/294618-need-php-help/#findComment-1505739 Share on other sites More sharing options...
NotionCommotion Posted February 15, 2015 Share Posted February 15, 2015 ... since most isp's don't allow public servers to setup on their networks? I actually contacted my provider (Comcast), and they said while it is not officially allowed, it is okay as long as it is not abused (i.e. has much bandwidth, obviously serving inappropriate content, etc). For my case, it is a development server which is only accessed by me, and sometimes I wish to view the site remotely. For the OP, I would expect he only will be accessing it, so it is probably find. In regards to the OP's question, I agree with mac_gver. What do you wish to accomplish? What is "reading" the files on your local machine? If you wish to access files on your local machine via a web browser, consider hosing a simple website on that machine. You still need to deal with public/local IPs as mac_gyver indicated. Quote Link to comment https://forums.phpfreaks.com/topic/294618-need-php-help/#findComment-1505740 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.