coolcat50
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. |
Comment/Reply (w/o sign-up)
jlhaslip
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.
Comment/Reply (w/o sign-up)
truefusion
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.
Comment/Reply (w/o sign-up)
Dsavi_X4
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.
Comment/Reply (w/o sign-up)
gogoily
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
Comment/Reply (w/o sign-up)
anachro
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
Comment/Reply (w/o sign-up)
khuongcomputer
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.
Comment/Reply (w/o sign-up)
nika201
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/
Comment/Reply (w/o sign-up)
mahesh2k
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.
Comment/Reply (w/o sign-up)
shadowx
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.
Comment/Reply (w/o sign-up)
magiccode9
Oct 28 2009, 08:01 PM
Although this a bit trouble method to do for testing script. But this should work if you are not testing too complex scripts. Why don't you just call the cgi version of php on localhost machine. And redirecting the output to a file. Then open it in a web browser. or there is a very small web server that could run ISAPI version of php and it has a web interface for config settings. When I back home I will update the post for the link.
Comment/Reply (w/o sign-up)
moundsofcash
Oct 27 2009, 02:54 AM
I recently started using easyphp. Its a very simple to use, and it has all of the features of server php. It comes with a folder called "www" that you place php files in, and they will run in your web browser.
Comment/Reply (w/o sign-up)
TheDarkHacker
Oct 26 2009, 05:09 PM
I don't know why but XAMPP server for me very much times stops because my Skype port usually is the same like xampp's so i don't know how to change xampp's port.I tried with Skype port changing but,Skype is not the problem xampp is.The most annoying for me is that it sometimes slows my computer and i need to end some processes.Very much times it is stopping,like server is going down  I tried to install php on localhost but it is too complicate+you need to edit lots of files...I would try easyPHP but if i need to be disconnected from Internet that is not good for me.I am user which uploads and downloads files every second  and i can't live without Internet.
Comment/Reply (w/o sign-up)
networker
Oct 26 2009, 04:55 PM
I had the same problem as you before. I downloaded easy php, a localhost server : http://www.easyphp.org/ and quite simply disconnected from the internet when using it. It worked fine that way.
Comment/Reply (w/o sign-up)
mahesh2k
Oct 26 2009, 10:54 AM
Ah, thanks for the correction. I'll take a look at Mongoose webserver now.
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : php, server
- Dohwow
4 my private server (2)
Php Pages Permission On Apache Server
PHP pages permission on Apache Server (1) Hello, I want to know what permissions for PHP pages should be given on Apache web server so that
PHP pages can be executed. If PHP pages are in a folder, what permissions should be given for that
folder? ....
Can Php Interact With A Visual Basic App On A Server
(10) I am currently making a game. And I want to use a command through php to ineract with a visual
basic app on my server. Is it possible? and how?....
Wappyftp V1.00
upload to server via ftp from your mobile phone :-) (8) wappyFTP v1.00 by wappy --- site: http://cult.trap17.com mail: admin@cult.trap17.com --- -Welcome
to wappyFTP, with this wap script your users can upload files directly to their server via FTP from
a mobile phone! --- -Its extremley easy to install, open index.php and put the name of your site
instead of YOURSITE.COM -Upload the folder wappyFTP_v1.00 to the root directory of your web server
-Link to it like wappyFTP_v1.00/index.php -Its all done ENJOY --- YOU MAY DISTRIBUTE AND/OR EDIT
THIS SCRIPT BUT DO NOT REMOVE THE AUTHORS NAME! --- ©2006-2007 wappyCULT /tongue.g....
I Need Webmail On My Server
(so admins on my site can access it) (0) Right now, if i go to the cpanel of my site, I can access webmail of any of the email addresses I
have. Unfortunatly, I would prefer it if the administrators did not know the password to the
cpanel. I want them to be able to access mail from 1 of the email accounts. I have tried letting
all the admins access the account through their own cliants, but it became a mess, not knowing wich
admins have responded to which emails, because most emails are hosted localy when received by
cliants such as outlook. Then I had the idea of making one page, with webmail on it. Where....
Php Server Time
(4) i think i may asked this question awhile back but i never really got it solved. ok..i had a block
that told me the server time info or whatever. and the GMT wus at 00:00 i wanted to change it to
-5:00 but i didnt know how, so how can i change it? im not sure of the codes in the php to change it
to the right GMT time becuase im always gettn the wrong times n day....
Logging Dowload Files From Your Server Onto A Html File
(1) Well, i had the idea of logging the downloads from my web in a html file few weeks ago, and i solved
it with a lil php page included in my homepage. You could name the links with a name like
"download.php?file=filename.ext" and then, in the download.php put the next code: (well you put
the html and head and body tags if u want, i only write the php here) CODE if (isset($_GET ))
$file=$_GET ; //so it gets the GET data from url (file=filename.ext); $ip=$_SERVER ;
$file=fopen('download_log.html','a'); $date=date('d-m-y H:i:s'); $text="
".$....
Parsing Html As Php
and XAMPP as the server version on Windows (7) On my Trap17 account here, I have an .htaccess file with the following declaration which (I think)
forces all html files to be parsed by the PHP Parsing engine and therefore I can insert snippets of
php scripts into html files. CODE AddType application/x-httpd-php .html .htm However, when I
add an .htaccess file to the local directory of the version of XAMPP on my local machine, it fails.
I have tried to add the .htaccess file to the htdocs folder and elsewhere, but it still doesn't
work to parse html through the php parser. Any ideas on how to get these htm....
Email Server Help Please
I need noob detailed help on setting up a email server on windows XP (0) Hello I would like to say thank you for any help you might give me. I'm new to Apache / PHP and
MySQL I have all them up and running propertly I think. I want to make a PHP online game and I need
to set up an email server so I can have and authincation system. When the player creates an account
I want the computer to email the player a link the have to click on to make there account active.
I have a Comcast 8mbits broadband connection My server is running at http://192.168.1.105 My
PHPinfo file is http://192.168.1.105/phpinfo.php My FormMail File http://192....
Does Gd Use Much Server Ressources?
(0) Well, my topic title is pretty descriptive. Does GD use much server ressources, is it heavy to run,
or is it light and flawless just like a normal PHP script? If I use GD much, should the images be
cached? And by the way, I don't know how to cache images. I know how to create them, but I
can't manage to store them in a folder, and then check that folder to see if the file is already
cached. If it's not, the PHP script will create it.....
Server Time Help
(4) My Webpage If you check here in my site in my Login block called "user info" at the bottom it
tells u the "server time". Well that server time for me is wrong. This is what is displayed QUOTE
Server Time · Time 14:06:53 · Date 19 Feb 2006 · Timezone +0000 The Date is right but the
Timezone and Time are just way off. My Timezone should be -500. What do i have to do to fix this? Is
it in my cpanel or do i have to go edit this block itself??....
Php And Asp.net Form
server control html component (6) does this sort of feature can be done in php. http://www.w3schools.com/aspnet/aspnet_forms.asp or
how and what are the differences.. thanks /huh.gif' border='0' style='vertical-align:middle'
alt='huh.gif' /> ....
Php & Apache Server
PHP & Apache Server (7) I want to install PHP. For this I have downloaded Apache Server. But I am not able to configure it.
If anybody knows how to configure it, please let me know. Without Apache Server I am not able to
configure PHP. I have also tried one of the installation file available on internet which
automatically performs all installation tasks, but it also does not solve my problem.....
I'm setting up punBB
Why won't the db server work? (2) What is it?....
Looking for php, server
|
Searching Video's for php, server
See Also,
|
advertisement
|
|