473,911 Members | 6,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mozilla Firefox and PHP

I apologize for such an elementary question but I am new to PHP.
If there is an FAQ that addresses this please let me know.

I have some PHP that works fine on my Dell Win2K XP when I use "php.exe"
and "php-cgi.exe"; not sure how these executeables got there but
someone must have installed them. But what I need to do is have PHP
scripts run in my Mozilla Firefox 1.5.0.4 browser. Currently they don't.

Do I need to install some plugin for my browser? If so can someone
provide a URL? Or if not maybe you could advise me on what needs to be done.

Thank you.

Andrew M. Neiderer
ne******@arl.ar my.mil
US Army Research Laboratory
Jul 31 '06 #1
6 12431
Andrew Neiderer wrote:
But what I need to do is have PHP
scripts run in my Mozilla Firefox 1.5.0.4 browser. Currently they don't.
You need to save the files in your web server, in the appropriate
folder.

eg I'm using phpdev (bundled apache web server + php + mysql) so would
save them in c:/phpdev/www

d.

Jul 31 '06 #2
Rik
Andrew Neiderer wrote:
I apologize for such an elementary question but I am new to PHP.
If there is an FAQ that addresses this please let me know.

I have some PHP that works fine on my Dell Win2K XP when I use
"php.exe"
and "php-cgi.exe"; not sure how these executeables got there but
someone must have installed them. But what I need to do is have PHP
scripts run in my Mozilla Firefox 1.5.0.4 browser. Currently they
don't.

Do I need to install some plugin for my browser? If so can someone
provide a URL? Or if not maybe you could advise me on what needs to
be done.
Run a local webserver (like Apache), and open the pages in your browser. It
isn;t actually the browser that's running them, but the webserver offcourse.
To my knowledge browsers cannot run PHP.

XAMP is a nice package that will install Apache, PHP & MySQL in one go
without much hassle for testing at home.

Grtz,
--
Rik Wasmus
Jul 31 '06 #3

Rik wrote:
Andrew Neiderer wrote:
I apologize for such an elementary question but I am new to PHP.
If there is an FAQ that addresses this please let me know.

I have some PHP that works fine on my Dell Win2K XP when I use
"php.exe"
and "php-cgi.exe"; not sure how these executeables got there but
someone must have installed them. But what I need to do is have PHP
scripts run in my Mozilla Firefox 1.5.0.4 browser. Currently they
don't.

Do I need to install some plugin for my browser? If so can someone
provide a URL? Or if not maybe you could advise me on what needs to
be done.

Run a local webserver (like Apache), and open the pages in your browser. It
isn;t actually the browser that's running them, but the webserver offcourse.
To my knowledge browsers cannot run PHP.

XAMP is a nice package that will install Apache, PHP & MySQL in one go
without much hassle for testing at home.

Grtz,
--
Rik Wasmus
Actually, that could be a useful plugin for FF. Have it invoke php.exe
if you were accessing the PHP file locally. Sure, the ideas is riddled
with potential security holes, but it might be handy. In fact, it'd be
really nifty to make it an integrated debugger, so while the page is
loading it'll break out and let you play with things as the page loads.

Jul 31 '06 #4
Andrew Neiderer wrote:
>
I apologize for such an elementary question but I am new to PHP.
If there is an FAQ that addresses this please let me know.

I have some PHP that works fine on my Dell Win2K XP when I use "php.exe"
and "php-cgi.exe"; not sure how these executeables got there but
someone must have installed them. But what I need to do is have PHP
scripts run in my Mozilla Firefox 1.5.0.4 browser. Currently they don't.
And they never will. ;-)

PHP isn't run by browsers, like Javascript. It's run on the webserver.

You need a local webserver with PHP support and then point your browser
to 'localhost'.
>
Do I need to install some plugin for my browser? If so can someone
provide a URL? Or if not maybe you could advise me on what needs to be done.
Install and configure a local webserver. If you don't want the hassle of
installing and configuring all the needed parts yourself (You are going
to need at least Apache and PHP, most likely also a database server like
MySQL, if the scripts use databases.) you can go for one of the
preconfigured all-in-one packages like XAMPP, which you can find here:
http://www.apachefriends.org/en/xampp.html

These are perfectly ok, if you just want to test some scripts by other
people. However, if you get into serious developing yourself I would
advise you to install all packages yourself from scratch. That way you
will learn how everything works together and you can also choose which
version of which packages you want to run.
Jul 31 '06 #5
*** Richard Levasseur escribió/wrote (31 Jul 2006 10:25:12 -0700):
Actually, that could be a useful plugin for FF. Have it invoke php.exe
if you were accessing the PHP file locally. Sure, the ideas is riddled
with potential security holes, but it might be handy.
I haven't written many web apps that can run out of the server context:
most of then depend on $_SERVER or $_POST.

It maight be useful for shell scripts but... once again, I write scripts to
run in console :)
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Aug 1 '06 #6
Anonymous wrote:
Andrew Neiderer wrote:
>I apologize for such an elementary question but I am new to PHP.
If there is an FAQ that addresses this please let me know.

I have some PHP that works fine on my Dell Win2K XP when I use "php.exe"
and "php-cgi.exe"; not sure how these executeables got there but
someone must have installed them. But what I need to do is have PHP
scripts run in my Mozilla Firefox 1.5.0.4 browser. Currently they don't.

And they never will. ;-)

PHP isn't run by browsers, like Javascript. It's run on the webserver.
PHP is a general purpose scripting language as is JavaScript. PHP is
*usually* run on server side and JS in the browser.

PHP for Windows supports ActiveScript and that makes it possible to host
it in browser supporting this interface (e.g. IE). On the other hand
JavaScript has been used as server side scripting (ASP, GoAhead embedded
server, etc.)

Back to original question, it will require certain development effort to
plug PHP as alternative scripting engine into Firefox. Source code for
both is available ...

Roman
Aug 2 '06 #7

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

Similar topics

4
1810
by: ekimnosnews | last post by:
I'm programming a JS tile map editor for my friend's game. The map editor has different "sections" that contain different tiles. The way that it works is when you select a section it calls a JS function that changes the src of a script tag that contains the array of tiles for that section, then reloads the tile selection table. This works great in IE, but Mozilla/Firefox doesn't update the array when I switch JS files. I've tried putting a...
1
2137
by: Sergey Ilinsky | last post by:
Well, while working on a rich ui with DHTML I discovered the following problem: Mozilla/Firefox seems to be wrong when rendered elements with sizes given in percents and that are placed into another elements with percentage sizes, if the content overflows them (of course, overflow is set to the value of "scroll") To check the written above please use the given below code <table style="" height="50%" width="100%">
2
4586
by: Eli | last post by:
Hi, Since using IFRAMEs in my page, I want to disable the F5 and BackSpace keys. I got this working on IE but not on Mozilla Firefox: function CheckKey(evt) { evt=(evt)?evt:window.event; switch (evt.keyCode)
0
1440
by: BACON | last post by:
I'm just starting the process of reorganising my modest little website and cleaning up all the HTML, and the logical place to begin was with the homepage. I made a simple little ASP.NET control that I can drop into the beginning of any page and it will generate HTML to display my logo, a link, and (optionally) a quote of the day, all of which will be horizontally centered at the top of the page by my default stylesheet. For the main page,...
8
7781
by: Clément | last post by:
Hi! I am currently developping a user interface with Ajax/C#/.net. And I am facing a problem with Mozilla, and Firefox. I use the function innerHTML to load a Web UserControl into a div, this way the main page never gets refreshed. It works perfectly under IE, but with Mozilla and Firefox I got a problem : there is a space before the thing I want to display everytime I use ".innerHTML".
2
2031
by: StephenM | last post by:
I am looking for an answer to what might either be a very common problem or something specific to Mozilla Firefox users. Let me explain... A few days ago I noticed an interesting anomoly: Preceding everything on the page is the three characters as indicated in this w3 forum thread: -- http://lists.w3.org/Archives/Public/www-validator/2004Dec/0044 They only occur when I open the page with Mozilla Firefox - but Internet Explorer does not...
5
10776
by: Prasad | last post by:
Hi all, I wanted to know whether my page is connecting to server or not using xmlHttp request. For that , I am using one condition in onreadystatechange function as.. function xxx() { if(xmlhttp.readyState==4) {
2
1220
by: sajithamol | last post by:
How can i migrate one application from IE to Mozilla Firefox. while working in IE , javascript was working perfectly . But when i used Mozilla firefox , javascript not working. How can i make one application that can work in both browswers( IE and Mozilla Firefox )
3
2921
by: carolinevdp | last post by:
Hi all, I wrote a program that grabs the url of the IE windows that are opened by iterating with FindWindowEx until I find the window with FindWindowEx(ComboBoxChild, 0, "toolbarwindow32", NULL). It works but not for firefox. Does anyone know how to do it for Mozilla/Firefox? Thanks a lot
0
10037
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9879
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10921
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8099
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7250
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5939
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4337
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3360
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.