Nov 23, 2009

View Php In Another Server

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

View Php In Another Server

lisha
Hi im using xampp to view my php files ( http://localhost/test.php). Now i want others to access my xampp folder. Means to view the php file from another machine by typing this (http://[ip]/test.php). how can i do that? tnx

Comment/Reply (w/o sign-up)

pyost
You might be able to do this without much trouble, but if that method does not work, you will probably have a lot problems getting it to work.

I am guessing that you have a dynamic IP address and a router? If I am right, access your router configuration - it is probably located at 192.168.1.1. What you will need to do is forward some random port to your computer, in order for other people to be able to access it. It is best to forward some rarely used port, such as 8342 smile.gif If everything is done properly, your computer should be available through http://[ip]:8342/. If it is, I am afraid there is nothing I can do - my server works just fine that way.

Comment/Reply (w/o sign-up)

Jimmy89
also, make sure you have your firewall configured to allow access to your computer on port 80.

The easiest way to find your IP address is to open Command Prompt (i.e. Start > Run > cmd > Enter) and type in 'ipconfig' (without quotes) and hit enter. This will display your current IP address. You should then be able to enter that into any other computer on your network, if that wont load your page, try the port forwarding for your router/modem as pyost suggested.

If that fails to help, check you have basic communication by pinging the server. If this doesn't work - you have a basic communication problem which you have to solve first!

Good Luck!

Comment/Reply (w/o sign-up)

magiccode9
Actually, if your computer is connected to the Internet behind router.
The only way to connect to your computer from outside world was port-forwarding.
After configured it. You may download a copy of utorrent.

It is used only for test case as it provides a test port function it will tell
you the connection work or not.

Comment/Reply (w/o sign-up)

yordan
Also something else make other people unable to connect.
usually, in your Apache settings, when you automatically install XAMPP, in the httpd.conf file, the Listen instruction is a line like :
Listen 127.0.0.1:80
That means that Apache will listen only on your localhost (The one attached to your keyboard).
This means that even other computers on your network will not be able to reach php program.
I would replace the Listen line by two other lines. Let's suppose that your computer local network name is "mylovedcomputer",
I would replace the Listen 127... line by the two following ones :
CODE
Listen 127.0.0.1:8080
Listen mylovedcomputer:80

This means that your php program will be reached internally at the address localhost:8080 (instead of the default 80 port) and your Apache will listen the other computers from your home network at the adress mylovedcomputer:80

Comment/Reply (w/o sign-up)

(G)Ben Maerkle
How to do port forwarding
View Php In Another Server

In the address bar of your internet browser, type in 192.168.1.1.  It should ask for a password, if you don't know it, look up the default password for your router.  Mine is no username and the password as admin.

There should be a link that looks like Applications & Gaming or like make a new server connection or even Port Forwarding.

Once you are there, enable a port, open ports 20 and 50000 (or whatever your server requires), and have those ports forward to a number that you will find out in this next step.

start -> Run... -> "cmd" -> OK -> "ipconfig"

One ip address that shows up should be 192.168.1.XXX.  That XXX number is what you need for the IP address that the port will forward to in the previous step.

Now for other people to view your site, they need to type in your IP address in their address bar.  You can go to ipchicken.Com to get your IP address.

Note: some IP addresses change (including the XXX number and the ipchicken number).

-reply by Ben Maerkle

 

 

 

 


Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : view, php, server

  1. Using Php With A Mail Server
    (2)
  2. User Authentication Session Handling Problems
    Authorization server variables not staying across pages (14)
    This is quite a bit of problem I am facing, and I cannot point exactly where I am going wrong. I
    have been lurking around here at the Asta Host forums with regard to login and user authentication
    scripts and I have got as far as this: - Starting a session - Registering a session variable -
    Using the variable to check if the user is authenticated or not. - Authenticating the user through
    MySQL database - Logging of the user, by setting the session variable to un-authenticated I have
    been able to achive the following things too that I think is not related to this proble....
  3. How To Reset The Server Variable Php_auth_user
    (9)
    Hi, i'm developing a web application which obviously requires a log in/log out script that i
    just implementing but i dont know why the log out script dont work fine. The problem is related
    with the server variable $_SERVER which remains set even when in the log out script i unset it with
    the unset() function. Does someone knows how can i reset or clear the server variable $_SERVER ???
    Best regards, ....
  4. Saving A Php Generated Image To The Server
    Help Needed Please (5)
    I'm trying to create a script that will generate an image and send it back to the browser while
    saving the same image to the server. I'm doing this because the image should be dynamically
    generated but because of the load that would place on a server if the image happened to be requested
    frequently, I've decided to build in a means to serve the static version of the image most of
    the time. What isn't included here is the function that will check the age of the file in cache
    directory and serve the static image if it is less than an hour old. This isn....
  5. Include Directives And Efficancey
    Server preformance, response time (4)
    Hello there. Most of my programming experiance has been with compiled languages. However, I am now
    working in PHP. In a compiled languages (or even a client-side scripting language), include
    directive only effect the preformance at compile-time. It has always been my style to make all
    global variables, functions, and data structures available to all source files by including a header
    file that would then in turn include all the project's headers in the correct sequence. Now, as
    I have said, I am working in PHP. The design of my page is that of a program, with the ....
  6. Server-friendly Php Scripts
    (5)
    Hi I'm relativly new to php... I'm interested in writing server-friendly php scripts and i
    was wandering in what cases php scripts are harmfull to server i runs on... i was thinking about
    issues like: * Which php functions are expensive from the point of view of server's
    performance and resources? * What is considered to be a long array in php context if ,say, each
    record is 100 bytes long? (100+ element ? a few thousands?) * Are there some assumptions that php
    programmer should avoid? (comes to mind this example: http://il.php.net/register_globals )....
  7. Mini Apache Server W/ Php
    Grab it right now ... (5)
    Hi,     Those who don't want to go into all the hassle of configuring Apache with PHP -
    here's a quick alternative. Grab MiniApache_PHP from http://213.106.116.50/james/ . It's
    a much downscaled version of the real Apache server but includes the PHP modules too - very little
    headache over installation and you can start hosting your own sites rightaway. Good alternative for
    testing your custom php codes too... This is what the site says about the software: QUOTE
    MiniApache_PHP is a cut-down version of the open-source Apache web server software for W....
  8. [PHP]fsockopen(): Timed_out
    fsockopen() on a Irc Server (7)
    I have create a script that open a connection on a irc server like a BnC; when i test it on my local
    machine it's all ok, but here i receive every time Timed_out, and i don't know why, Someone
    can me explaine why? /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />....
  9. All in 1 server
    PHP4,PHP5,ASP.Net (13)
    Hello, I'm hosting my own site web on my computer. I'm using IIS6 with ASP.NET and PHP4
    running on it and I would like to install also PHP5 to try it. Do you think it's possible ?....

    1. Looking for view, php, server

See Also,

*SIMILAR VIDEOS*
Searching Video's for view, php, server
advertisement



View Php In Another Server

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com