IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
2 Pages V   1 2 >  
Reply to this topicStart new topic

Php Without Server


coolcat50
no avatar
Super Member
*********
Group: Members
Posts: 303
Joined: 5-October 07
From: Random Places
Member No.: 51,171
Spam Patrol
myCENT:65.80



Post #1 post 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.
Go to the top of the page
+Quote Post
jlhaslip
no avatar
Insert Custom Title Here
*******************
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
Spam Patrol
myCENT:6.20



Post #2 post 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.
Go to the top of the page
+Quote Post
truefusion
no avatar
Do you want to know?
****************
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 post 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.
Go to the top of the page
+Quote Post
Dsavi_X4
no avatar
Newbie
*
Group: Members
Posts: 1
Joined: 8-January 08
Member No.: 55,951



Post #4 post 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.
Go to the top of the page
+Quote Post
gogoily
no avatar
Member [Level 3]
******
Group: Members
Posts: 99
Joined: 30-October 05
Member No.: 13,571



Post #5 post 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
Go to the top of the page
+Quote Post
anachro
no avatar
Member [Level 1]
****
Group: Members
Posts: 68
Joined: 7-January 08
Member No.: 55,865



Post #6 post Jan 10 2008, 06:39 AM
thats pretty cool, I didn't know that you could localhost run scripts while offline. blink.gif

hmm... I wounder if my teacher will let me test the theory out on her PC for an assignment laugh.gif
Go to the top of the page
+Quote Post
khuongcomputer
no avatar
Newbie
*
Group: Members
Posts: 2
Joined: 12-January 08
Member No.: 56,115



Post #7 post 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.
Go to the top of the page
+Quote Post
nika201
no avatar
Newbie
*
Group: Members
Posts: 1
Joined: 26-October 09
Member No.: 90,518



Post #8 post 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/
Go to the top of the page
+Quote Post
mahesh2k
no avatar
Trap Grand Marshal Member
***********
Group: Members
Posts: 1,016
Joined: 23-January 05
From: Valley of Darkness
Member No.: 3,388
myCENT:31.80



Post #9 post 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.
Go to the top of the page
+Quote Post
shadowx
no avatar
Look around, what do you see? Incorrect.
***********
Group: [HOSTED]
Posts: 1,324
Joined: 12-April 06
From: Essex, UK
Member No.: 21,719
Spam Patrol
myCENT:32.70



Post #10 post 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.

Go to the top of the page
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 OpaQue 17,185 9th September 2004 - 08:40 AM
Last post by: OpaQue
No New Posts   6 outwarsecrets 10,683 27th October 2009 - 08:09 AM
Last post by: NxTGaming
No New Posts   9 Panzer 2,655 4th January 2007 - 08:52 PM
Last post by: fffanatics
No New Posts   7 Raptrex 13,189 27th August 2004 - 11:16 PM
Last post by: Spectre
No New Posts 3 NuHoaXuLa 9,220 17th November 2006 - 08:33 AM
Last post by: farsiscript
No New Posts   0 sekundar 1,548 26th July 2006 - 07:35 AM
Last post by: sekundar
No New Posts   1 truvu17 8,359 21st September 2004 - 09:12 AM
Last post by: OpaQue
No New Posts   0 aoehq 1,862 17th March 2007 - 06:20 AM
Last post by: aoehq
No New Posts   1 BCD 150 3rd September 2009 - 09:28 PM
Last post by: truefusion
No New Posts   2 Bimboadmasministries 9,597 9th July 2009 - 09:33 AM
Last post by: iG-Chémi ichi
No New Posts   0 Bimboadmasministries 6,397 8th October 2004 - 11:55 AM
Last post by: Bimboadmasministries
No new   16 newbie_dhkt 20,102 9th February 2009 - 09:30 PM
Last post by: Lightning73
No New Posts   4 sithslayer 3,937 14th December 2008 - 02:29 PM
Last post by: sithslayer
No New Posts   5 DMA 7,600 9th February 2009 - 10:05 AM
Last post by: aloKNsh
No New Posts   1 Ungreezor 731 25th July 2009 - 04:48 PM
Last post by: chrismiller3404


 



RSS Open Discussion Time is now: 8th November 2009 - 06:29 PM

Web Hosting Powered by ComputingHost.com.