|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#1
Jan 6 2008, 07:36 PM
I have just recently bought a laptop and would like to use PHP for local reasons on it, but I am not allowed to setu p a local webserver because it would slow down our already crappy internet. Is there a way for me to run local PHP without using Apache or any other webserver for purely local uses.
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [MODERATOR]
Posts: 4,908 Joined: 24-July 05 From: Linux, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() myCENT:6.20 |
Post
#2
Jan 6 2008, 07:46 PM
Install a copy of XAMPP or WAMP or Easyphp onto your laptop to set up an Apache, mysql, etc that will not affect your Internet connection at all. It allows you to run php scripts on your localhost with no Internet connection at all. It also saves the Server at the Hosting account from getting messed up by your testing of Scripts... Google XAMPP, for example. XAMPPlite is also available as a Portable Application so you can run it from a Flash Drive, too. Again, no impact on your Internet connection. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [MODERATOR]
Posts: 2,672 Joined: 22-June 05 From: 127.0.0.1 — no place like it. Member No.: 8,528 myCENT:33.50 |
Post
#3
Jan 6 2008, 11:22 PM
The only way it'll affect your current internet connection is if someone tries to access your server with your IP address. You could tell any firewall you may have to prevent any outside traffic from coming in through ports 80 and 8080.
|
![]() Group: Members
Posts: 1 Joined: 8-January 08 Member No.: 55,951 |
Post
#4
Jan 8 2008, 06:38 PM
I have heard about something like this, except maybe a bit advanced and not what you're looking for. It lets you run .php files as standalone programs. And by the way, since when can't you run PHP on LocalHost? I've always thought that doing that was the only way to get it to work offline. I'll see what that thing was called again... *Gets out Ye Olde book of PHP* It's called Command Line PHP. I'll find something on it. Oh yes, I forgot, first post. |
![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 99 Joined: 30-October 05 Member No.: 13,571 |
Post
#5
Jan 10 2008, 02:08 AM
Register Envirement variables of Windows, then you can use command to run php code just like this: C:\php somephpfile.php |
![]() ![]() ![]() ![]() Group: Members
Posts: 68 Joined: 7-January 08 Member No.: 55,865 |
Post
#6
Jan 10 2008, 06:39 AM
thats pretty cool, I didn't know that you could localhost run scripts while offline. hmm... I wounder if my teacher will let me test the theory out on her PC for an assignment |
![]() Group: Members
Posts: 2 Joined: 12-January 08 Member No.: 56,115 |
Post
#7
Jan 12 2008, 05:49 AM
That's crap if you can't get a local webserver. I really suggest for something like Easy PHP, it's setup a webserver on your PC really fast. Then you can use it for your purpose (only your computer can use this localhost). If needed, can be removed later. |
![]() Group: Members
Posts: 1 Joined: 26-October 09 Member No.: 90,518 |
Post
#8
Oct 26 2009, 07:43 AM
Viewer for PHP is a single executable file that will run your PHP scripts in an embedded browser window and its open source! look here http://viewerforphp.sourceforge.net/ |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 1,016 Joined: 23-January 05 From: Valley of Darkness Member No.: 3,388 myCENT:31.80 |
Post
#9
Oct 26 2009, 08:02 AM
That;s nice find Nika. Viewerforphp looks good. It can let users view the results of php pages and applications without need to install the server. All they did is packaged apache server in it's own standalone base. And they bundled it as browser package. Very nice way to go anywhere with this small package as there is no need to install anything. You can call it portable. I'm going to try this, will review more about it soon.
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#10
Oct 26 2009, 09:26 AM
This is a *really* old thread, but nonetheless i feel nika's contribution is valid... But i would say that if you are going to be coding PHP seriously, or even for fun, you might as well get XAMPP (they do a light version too, and a portable USB version i think) you get your MYSQL databases etc... and even FTP and email server with the full version. It wont slow your internet connection at all, not one bit. It is all contained on your computer. Just make sure your firewall doesnt let people in to it (just get someone else to type your IP into firefox/IE if php pages come up your firewall is letting people in. If there is no page to display you're fairly safe.) This way you get to use MYSQL, FTP, various server settings etc... and you can run a real control panel etc... so it is just like your real webhost and so you can test things effectively. |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
0 | OpaQue | 17,185 | 9th September 2004 - 08:40 AM Last post by: OpaQue |
|||
![]() |
6 | outwarsecrets | 10,683 | 27th October 2009 - 08:09 AM Last post by: NxTGaming |
|||
![]() |
9 | Panzer | 2,655 | 4th January 2007 - 08:52 PM Last post by: fffanatics |
|||
![]() |
7 | Raptrex | 13,189 | 27th August 2004 - 11:16 PM Last post by: Spectre |
|||
![]() |
3 | NuHoaXuLa | 9,220 | 17th November 2006 - 08:33 AM Last post by: farsiscript |
|||
![]() |
0 | sekundar | 1,548 | 26th July 2006 - 07:35 AM Last post by: sekundar |
|||
![]() |
1 | truvu17 | 8,359 | 21st September 2004 - 09:12 AM Last post by: OpaQue |
|||
![]() |
0 | aoehq | 1,862 | 17th March 2007 - 06:20 AM Last post by: aoehq |
|||
![]() |
1 | BCD | 150 | 3rd September 2009 - 09:28 PM Last post by: truefusion |
|||
![]() |
2 | Bimboadmasministries | 9,597 | 9th July 2009 - 09:33 AM Last post by: iG-Chémi ichi |
|||
![]() |
0 | Bimboadmasministries | 6,397 | 8th October 2004 - 11:55 AM Last post by: Bimboadmasministries |
|||
![]() |
16 | newbie_dhkt | 20,102 | 9th February 2009 - 09:30 PM Last post by: Lightning73 |
|||
![]() |
4 | sithslayer | 3,937 | 14th December 2008 - 02:29 PM Last post by: sithslayer |
|||
![]() |
5 | DMA | 7,600 | 9th February 2009 - 10:05 AM Last post by: aloKNsh |
|||
![]() |
1 | Ungreezor | 731 | 25th July 2009 - 04:48 PM Last post by: chrismiller3404 |
|||
|
Open Discussion | Time is now: 8th November 2009 - 06:29 PM |
Web Hosting Powered by ComputingHost.com.