473,320 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Programming PHP offline

Hello friends,
I am trying to find something that must exist.
I am in Thailand right now and Internet is not very available in the
place I'm staying.
Is there a program that can emulate a server, apache, mysql without me
having to set up a server on my laptop.

I would imagine it to be like an archive where I just import the files
I want to test and can muck around with databases and brows the files
using different variables n so.
I am a novice programmer, so I do allot of trial and error, a simple
syntax check won't do though i would like to see the results and
progress.
is there a program like that out there?

Apr 30 '07 #1
25 2284
bl*************@gmail.com wrote:
Is there a program that can emulate a server, apache, mysql without me
having to set up a server on my laptop.
There is no such thing as a web server emulator. Installing apache + mysql
is not that difficult.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

http://acm.asoc.fi.upm.es/~mr/ ; http://acm.asoc.fi.upm.es/~ivan/
MSN:i_*************************@hotmail.com
Jabber:iv*********@jabber.org ; iv*********@kdetalk.net
Apr 30 '07 #2
On Apr 30, 9:43 am, blessblessbl...@gmail.com wrote:
Hello friends,
I am trying to find something that must exist.
I am in Thailand right now and Internet is not very available in the
place I'm staying.
Is there a program that can emulate a server, apache, mysql without me
having to set up a server on my laptop.

I would imagine it to be like an archive where I just import the files
I want to test and can muck around with databases and brows the files
using different variables n so.
I am a novice programmer, so I do allot of trial and error, a simple
syntax check won't do though i would like to see the results and
progress.
is there a program like that out there?
Yes, if your laptop can boot from a USB drive you can install the
server edition of Slax (a Linux distribution). Go to www.slax.org.
They have a discussion board with directions on how to install Slax
either on a hard drive or on an external USB drive. I'm doing this now
and it works.

Apr 30 '07 #3
bl*************@gmail.com wrote:
Hello friends,
I am trying to find something that must exist.
I am in Thailand right now and Internet is not very available in the
place I'm staying.
Is there a program that can emulate a server, apache, mysql without me
having to set up a server on my laptop.

I would imagine it to be like an archive where I just import the files
I want to test and can muck around with databases and brows the files
using different variables n so.
I am a novice programmer, so I do allot of trial and error, a simple
syntax check won't do though i would like to see the results and
progress.
is there a program like that out there?
http://sourceforge.net/projects/xampp
Apr 30 '07 #4
blessblessbless wrote:
Is there a program that can emulate a server, apache, mysql without me
having to set up a server on my laptop.
If something is doing the same job as Apache, then it is serving web
pages, thus it is a server! So what you're asking for is a contradiction:
a server that you can run without having to run a server!

Just download Apache. It's not that big.

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Apr 30 '07 #5
what i meant is i didn't want the services running and stuff. i tried
setting appache up once a while back , but i did not get it to run and
it caused some freaky problems with my old pc.
i think i will try the flash drive server idea even though it sounds
more complicated :D
thanks anyways @ all

Apr 30 '07 #6

<bl*************@gmail.comschreef in bericht
news:11*********************@y80g2000hsf.googlegro ups.com...
what i meant is i didn't want the services running and stuff. i tried
setting appache up once a while back , but i did not get it to run and
it caused some freaky problems with my old pc.
i think i will try the flash drive server idea even though it sounds
more complicated :D
thanks anyways @ all
As far as I know, Apache + PHP + MySQL is the smoothest running combination.
You could try a prepackaged product, like http://www.wampserver.com/en/ or
some other WAMP installation.

Regards

Michael.
Apr 30 '07 #7
On Apr 30, 1:40 pm, blessblessbl...@gmail.com wrote:
what i meant is i didn't want the services running and stuff. i tried
setting appache up once a while back , but i did not get it to run and
it caused some freaky problems with my old pc.
i think i will try the flash drive server idea even though it sounds
more complicated :D
thanks anyways @ all
Then I second the suggestion above for xampp. No services (unless you
want them). In it's purest form, you open up a little program and
tell it to start apache and mysql, which then shut down when you close
the program. Very clean and couldn't be simpler to use. It's there
when you want it and gone when you don't.

Apr 30 '07 #8
Then I second the suggestion above for xampp. No services (unless you
want them). In it's purest form, you open up a little program and
tell it to start apache and mysql, which then shut down when you close
the program. Very clean and couldn't be simpler to use. It's there
when you want it and gone when you don't.
Yes, I'm using xampp for exactly what's described: a local development
environment. There's even a "lite" version of xampp. Easy.
Definitely the solution to your question.

Aerik

Apr 30 '07 #9
On Apr 30, 10:06 pm, Aerik <asyl...@gmail.comwrote:
Then I second the suggestion above for xampp. No services (unless you
want them). In it's purest form, you open up a little program and
tell it to start apache and mysql, which then shut down when you close
the program. Very clean and couldn't be simpler to use. It's there
when you want it and gone when you don't.

Yes, I'm using xampp for exactly what's described: a local development
environment. There's even a "lite" version of xampp. Easy.
Definitely the solution to your question.

Aerik

I agree. The latest version is also incredibly easy to install.

Apr 30 '07 #10
what i meant is i didn't want the services running and stuff. i tried
setting appache up once a while back , but i did not get it to run and
it caused some freaky problems with my old pc.

I don't use apache on my old pc, because apache mainly gives me suicidal
tendencies when I try to configure something. But The Abyss (webserver),
php5 and mysql 5 run just fine on a pentium II with Windows 98. Is your
PC even older than that?
Apr 30 '07 #11
If you are just trying to develop offline, Zend Studio has a built in
debugger and will run scripts right in itself, giving you the output
(including an HTML view mode) and any warnings/errors. It does let you
include files into your scripts and do most things normally. It's just
a pain when you don't include files from relative paths, because it is
unlikely that the target server's file system will be organized
exactly the same. (Zend should be paying me...this is the third time
I've mentioned them in this newsgroup and I will probably end up
mentioning it again some time).

Anyway, I wouldn't swear by it, but it is a nice feature.

-Mike PII

Apr 30 '07 #12
I don't use apache on my old pc, because apache mainly gives me suicidal
tendencies when I try to configure something. But The Abyss (webserver),
php5 and mysql 5 run just fine on a pentium II with Windows 98. Is your
PC even older than that?
no my pc was windows xp, i think i just messed it up because i chose
the wrong configurations and was trying to set it up as a LAN server.
Now i am running xampp on my Vista laptop and all's running smooth,
thank you everyone for your help
bless

May 1 '07 #13
On Apr 30, 7:43 am, blessblessbl...@gmail.com wrote:
Hello friends,
I am trying to find something that must exist.
I am in Thailand right now and Internet is not very available in the
place I'm staying.
Is there a program that can emulate a server, apache, mysql without me
having to set up a server on my laptop.
[...]
is there a program like that out there?
Yeah! In fact, there are several packages designed to install on a USB
drive
and as such are portable. I'm using "Uniform Server". It has Apache,
PHP,
MySQL, and some other stuff... I haven't tried any of the other
packages,
because this one works so well. Easiest setup I've ever had, updating
PHP
was a matter of copying a couple files into a directory.

Like someone else pointed out, it isn't "emulation", it's actually
serving
pages (configured to only accept from localhost by default in this
case).

Before that, I was using a remotely located text editor of my own.
Pretty
crude, it just posted the content of a textarea, and PHP saved the
file.
But it did the job.
May 1 '07 #14
On Apr 30, 11:40 am, blessblessbl...@gmail.com wrote:
what i meant is i didn't want the services running and stuff. i tried
setting appache up once a while back , but i did not get it to run and
it caused some freaky problems with my old pc.
i think i will try the flash drive server idea even though it sounds
more complicated :D
The one I mentioned in an earlier post took me a good 5 or 10 minutes
to download, install and configure. Really.

May 1 '07 #15
On May 1, 5:58 pm, Razzbar <g...@potatoradio.f2s.comwrote:
On Apr 30, 11:40 am, blessblessbl...@gmail.com wrote:
what i meant is i didn't want the services running and stuff. i tried
setting appache up once a while back , but i did not get it to run and
it caused some freaky problems with my old pc.
i think i will try the flash drive server idea even though it sounds
more complicated :D

The one I mentioned in an earlier post took me a good 5 or 10 minutes
to download, install and configure. Really.
Then you want...
> Webserver On a Stick <<
I got this through word of mouth and I was well impressed !
WOS Portable basically allows you to choose all the free web services
you could want like: apache, mysql, php, phpmyadmin, plus loads more.
(haha I sound just like spam)

You choose your package on the site and it compiles the zip file to
download. then you just unzip then use one executable to load
everything up. There is small config to do I think but thats it?
Anyway .. its easy to set up 5-10 mins and allowed me to work 100%
offline including phpMyAdmin (not a big deal but it took considerate
thinking to include)

Anyway.. It sounds just like what you want .. DL it and good luck

May 1 '07 #16
Speaking of running a web server on a PC ... I manually installed
Apache, Php and MySQL on my Windows XP PC a couple of years ago and have
written many server/browser based apps in Php. Now I would like to
install some form of WAMP (perhaps one of the integrated packages) on a
friends machine so he can use apps I have created for him on his home
office PC.

I can not remember what prevents his (or my) server from being reachable
by others on the Internet, and I want to be sure exactly how that
security works before I install a server on his machine. What is it that
prevents (how do I prevent) outside access? (He and I are both on
comcast, btw - always on).

Thanks in Advance,

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*****************************
May 1 '07 #17
bl*************@gmail.com a écrit :
Hello friends,
I am trying to find something that must exist.
I am in Thailand right now and Internet is not very available in the
place I'm staying.
Is there a program that can emulate a server, apache, mysql without me
having to set up a server on my laptop.

I would imagine it to be like an archive where I just import the files
I want to test and can muck around with databases and brows the files
using different variables n so.
I am a novice programmer, so I do allot of trial and error, a simple
syntax check won't do though i would like to see the results and
progress.
is there a program like that out there?
Hi, For Macintosh users you can use an EasyPhp like called "MAMP", no
installation was need for use this and you can add a Dashboard Widgets
for start and stop Apache and Sql Service and you can dynamicly restart
servers with PHP 5 or PHP 4 just by one click, here the link :

http://www.living-e.de/en/products/MAMP-PRO/index.php

http://www.living-e.de/de/produkte/M...iversal_Binary
May 1 '07 #18
Chuck Anderson wrote:
I can not remember what prevents his (or my) server from being reachable
by others on the Internet, and I want to be sure exactly how that
security works before I install a server on his machine. What is it that
prevents (how do I prevent) outside access? (He and I are both on
comcast, btw - always on).
With Apache, you can configure it to listen for requests only on
particular IP addresses. If you configure it to listen for requests only
on 127.0.0.1, then nobody should be able to access it non-locally.

A good firewall wouldn't go amiss either.

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
May 2 '07 #19
Sebosac wrote:
For Macintosh users you can use an EasyPhp like called "MAMP"
Yep -- I've got this on my laptop. It's a very nicely put together package.

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
May 2 '07 #20
Toby A Inkster wrote:
Chuck Anderson wrote:

>I can not remember what prevents his (or my) server from being reachable
by others on the Internet, and I want to be sure exactly how that
security works before I install a server on his machine. What is it that
prevents (how do I prevent) outside access? (He and I are both on
comcast, btw - always on).

With Apache, you can configure it to listen for requests only on
particular IP addresses. If you configure it to listen for requests only
on 127.0.0.1, then nobody should be able to access it non-locally.

A good firewall wouldn't go amiss either.

Hey, .... I sure do appreciate the help.

I just set
Listen 127.0.0.1:80
Listen 80
in my http.conf and Apache would not Start (I know ... ... this will
very soon have nothing at all to do with Php, but ..... ??)

I used the the port number (:80) because the example in my httpd.conf
did. Listen 80 was already there.

My friend does have a router with a hardware firewall, so I suppose that
will be enough.

--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*****************************
May 3 '07 #21
On May 2, 10:53 pm, Chuck Anderson <websiteaddr...@seemy.sigwrote:
My friend does have a router with a hardware firewall, so I suppose that
will be enough.
Yeah, that'll be enough. And besides, what good was the Maginot Line?

:^)

I mean, what could you possibly do with .htaccess and
httpd.conf ???
?("... and my laptop has an iron firewall...."?)

May 3 '07 #22
/joins the salesman bandwagon
wow!
this looks awesome, I am downloading it right now and i can't wait to
see it run
http://www.chsoftware.net/en/useware/wos/wos.htm
open source and you can choose what features you want installed before
downloading

May 4 '07 #23
I believe it worth to try NuSphere PhpED. It comes with its own light
web server with pre-configured php and phpdebugger, although you can
work with IIS and/or Apache too.

May 8 '07 #24
If you are on a Mac, check out MAMP too. It's probably the fastest way
I've ever tied mySQL to PHP to Apache out of the box (obviously OSX
comes with them, but I like the easy button =)

http://www.versiontracker.com/dyn/moreinfo/macosx/24852
May 8 '07 #25
frugalprogrammer wrote:
If you are on a Mac, check out MAMP too. It's probably the fastest way
I've ever tied mySQL to PHP to Apache out of the box (obviously OSX
comes with them, but I like the easy button =)

http://www.versiontracker.com/dyn/moreinfo/macosx/24852
Too bad it won't run on my Mac. :( I think I am still using 10.1.x.

I should have gotten the free upgrades when I could. Now it's too late.

Sucks when you don't use your Mac for a couple years, then want to hop
back on it again.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
May 12 '07 #26

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: qwweeeit | last post by:
Hi all, with my last initiative (logging by intercepting open calls) I succeded (with the essential help of Fredrik Lundh), but I must confess that the method is too complicated... I think that...
0
by: moko | last post by:
This is a bit long-winded. Can somebody read thru these 2 use cases, and tell me if it is feasible ? :- Use Case : Replication before Offline Synch Scenario 1 : Oracle Server , MSDE client ...
3
by: Robert Scheer | last post by:
Hi. When IE is offline and I try to create a new web application, I receive an error that says that I need IE online in order to create the new application. What is the relationship of IE and...
2
by: John | last post by:
Hi I need to develop an app in vb 2005 which can work in both offline and online modes and will be running on client laptops. I have listened to the following web cast; ...
2
by: John | last post by:
Hi I need to write a vb2005/sql server2005 app running over a LAN. Some users who use laptop need to have the app to have an offline mode for when they are away. I am new to net and would like...
4
by: manwiththeaxe.70 | last post by:
I have recently begun to migrate our DB2 UDB v7.2 enterprise databases up to DB2 UDB v8.2. One question I can't seem to understand is why would I want to run an offline backup for a database now...
3
by: Alex | last post by:
Hello, I am running an Access 2003 database, quite modest in size, that is used by upwards of 5 users. I need to modify the database such that these users can work simultaneously and, in some...
2
by: ericthered | last post by:
Hi, I am trying to create an offline database in VB.NET 2005, both the online and offline database use SQL Server 2005. The code I am using seems to run OK with out an exception the DATASET has the...
10
by: Michael Hoffmann | last post by:
Hello, I hope this doesn't come across as totally newbieish, but I've been searching the web and the IBM docs until smoke is coming out of my head. Scenario: We are trying to take primitive...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.