Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Running PHP On Windows XP


I installed Apache/MySQL/PHP on Windows XP. There was one problem. Microsoft IIS 4 or higher was defaultly selected for MySQL. It did not work. When I double-click a PHP file, a lightning-fast MS-DOS window opens and closes. When I go to start, then go to run, then type "cmd", then type the PHP file path, I take a long time to see what happened.

I want my PHP file to work on my browser offline just like uploading and visiting my PHP file on a web host with my browser online. In other words, I want the interactivity of my site to happen in my computer. How can I do that?




View Complete Forum Thread with Replies

Related Forum Messages:
Is It Possible To Authenticate Users Running Apache On MacOS X (with PHP 4) And An Active Directory On Windows 2000 Or Windows XP?
From a PHP webpage, is it possible to authenticate users running Apache on MacOS X (with PHP 4) and an active directory on Windows 2000 or Windows XP?

View Replies !
Set Php Up On Apache Running On Windows.
Has anybody wrote a script or coded anything to set php up on apache running on windows.

View Replies !
Mcrypt Lib Running Under Windows
I need to use encryption functions with php, such as mcrypt_generic(), mcrypt_decrypt(), etc I have placed libmcrypt.dll in my windows/system32 directory. I can now encrypt, but not decrypt. The code I use to encrypt / decrypt functions under Mac OSX + Linux, but not Windows.

View Replies !
Possible To Check To See If Windows Process Is Running From PHP?
I need to check the state of a processes from within a PHP script on a
Windows machine. All I need to know is whether or not the process
exists (i.e., is running). Anyone have any ideas?

I searched the archives and found proc_open(), but if it can do what
I'm trying to do, I can't figure out how.

View Replies !
Running PHP Scripts From The Command Line Under Windows
I was wondering if anyone has ever tried running PHP scripts from the DOS command prompt. Any insight would be appreciated.

View Replies !
Running A Windows Command Line From A Web Page
I have a web page on an intranet, i need to run a command in the local windows run from the webpage. for example when you press a button button on a webpage it has the same effect as running cmd from the run prompt on the local machine. Anyone know how to do this?

View Replies !
Having Problems Running Some Files On Apache For Windows
I am running Apache 2 for windows and have PHP installed and working fine on the server. However, some of the php scripts and programs i have do not use the <?php starting tag, the use <? instead, and as a result of this, the script does not execute.

Can anyone tell me how i can configure apache to allow both <?php tag and <? aswell?

View Replies !
PHP Running Exec() Windows Program Very Slow In Comparison To UNIX Equivalent Program
Does anyone have an explanation or solution for the following.
I have a PHP script that uses exec() to call a program to do certain
calculations.

The UNIX version of this program I call runs in about 4 to 5 seconds.
When I run the same PHP script using exec() to call the Windows equivalent
of this same program on my Windows desktop, it takes about 32 seconds....

View Replies !
Warning: Invalid Argument Supplied For Foreach() Running On A OS X Machine Running Apache 1.x And PHP 4.x.
The following script was running on a OS X machine running Apache 1.x and PHP 4.x. I just moved the script over to a Linux machine running Apache 2.0.51 and PHP 4.3.8, and now the foreach line does not work. It says Warning: Invalid argument supplied for foreach()

in /var/www/localhost/htdocs/warehouse/whse_order_submit.php on line 39

Here is the script:

<?php
//get the variables from the other page
$id=$_POST['id_no'];
$sku=$_POST['sku'];
$description=$_POST['description'];
$order=($_POST['order_qty']);
$store=$_POST['store'];
$comment=$_POST['comment'];

$ip=$REMOTE_ADDR;

//check if store is empty
if(empty($store)) {
die("Store is required. Please press the back button and enter in your store.");
}

//connect to the database
require('../inc/database_conn.php');

//$month=getdate(mon);
//$day=getdate(mday);
//$year=getdate(year);
//$today=$year . "-" . $month . "-" . $day
$today=date('Y-m-d');

// create the unique order number

$headerqry = "INSERT INTO misc_order_header (order_date, store, comment, ip) VALUES ('$today', '$store', '$comment', '$ip')";

mysql_query($headerqry, $conn) or die(mysql_error());
$order_no=mysql_insert_id();
foreach($order_qty as $id_no => $val) {
if($order_qty[$id_no] > 0) {
$detailqry = "INSERT INTO misc_order_detail (order_no, id_no, sku, order_qty, order_date, store) VALUES ('$order_no', '$id_no', '$sku', '".$order_qty[$id_no]."', '$today', '$store')";
mysql_query($detailqry, $conn) or die(mysql_error() . "<BR>" . $detailqry);
}
}

View Replies !
Php Is Not Running
I am using CentOS 4. When requesting /blah.php from a browser, I always get blank page "<html><body></body></html>". What's wrong?

#rpm -qa php
php-4.3.9-3.8

# /usr/sbin/httpd -V
Server version: Apache/2.0.52
Server built: Jul 25 2005 05:37:19
Server's Module Magic Number: 20020903:9
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

View Replies !
How Do I Know That PHP Is Running
I'm having a problem running a simple printer friendly script written in
PHP. I'm not sure whether the problem is with apache 1.3 or with the
scripts. I updated apache's config file httpd.conf to include the
directives for running PHP as a loaded module and as CGI as noted in the
documentation at php.net

# Add to the end of the LoadModule section
LoadModule php4_module "c:/php/sapi/php4apache.dll"

# Add to the end of the AddModule section
AddModule mod_php4.c

I did both and Apache doesn't like it. It can't compile it. It says that
the php4apache.dll cannot be loaded because it cannot be found.

I have adjusted the windows directory conventions to include forward
slashes and such but no luck.

I'm running XP with IIS off (naturally of course) and apache 1.3. Apache
works nicely on the XP. But I can't seem to get a simple php file to
work. Where do you think is the problem?

View Replies !
Running PGP
Hi, I'm trying to run the PGP thourgh the PHP, I'm useing this:
passthru("/usr/pgp-6.5.8/pgp -kv");

what it displays is that it can't find the key files. And it is because pgp sets up the keys per user but PHP runs as Nobody (I think).

View Replies !
Running PHP Via CLI
I made a php script with a HTML form (POST) which takes many options
and based on the options, it connects to a database file and create
some files from the results. This works fine when using a browser.
Now, I am being asked if it can run via CLI. My first reaction was
"no", but that was before I even had looked into the matter....

View Replies !
Running 2 Ifs At Once
How do I run 2 ifs at once , but have the same else... for example If post password and if post email do query. if both of these or none of these are posted . echo "Invalid"

View Replies !
Running IIS
Running IIS I simply can't run a basic php page. What are the basic instructions?

View Replies !
Running A .exe
I am trying to create effectively an online desktop for a computer. How can I get php to open up .exe files, such as word etc. I've tried a few things that others have suggested, just wondered if anyone had any ideas.

View Replies !
Keep On Running Php
I want to show user live result of some calculations. It includes solving 10 different problems and i want to show user thru ajax that problem number (1,2,3..) is being solved so that user feel easy. I have coded ajax file and everything is ok and working.

But problem is that i am not able to find the way that how to put ajax file in middle of first php (from where after submitting form calculations started) file and second php (where all results will be shown) file. Please help me that i can redirect user to ajax file after submission of form from first php and then after calculations are completed it would be redirected to second php file (from middle ajax file).

View Replies !
Not Running On IIS
I can't seem to get PHP to run and have a problem with MySql.

I'm new to PHP and never used IIS, never done any real web work and never used SQL.

Before starting, the server was stable and I haven't installed anything specific that uses SQL. The server is just used for file serving and as a print server (and now IIS was installed.) It's also running FileMaker Advanced Server which shouldn't be part of this problem. Code:

View Replies !
Running Php On IIS
Im just wondering if anyone can tell me if there are any benifits of running php on IIS>? Are there any major setbacks and/or disadvantages fro running it on apache.

View Replies !
Running XML
i know how to run one php as an xml file.

My problem now is running one xml file as php.
Or returning info from mysql db with xml.

i'm really stuck here.

Is it possible with .htaccess ?

the file must have xml extention.

View Replies !
Running Background Job...
Is it possible to get a php3 script to check what day it is, and then do some stuff, If it’s let’s say Monday?
This without you doing anything. Like a background - or cronjob…
I guess you would use perl or something to do this, but that is not an option I have.

View Replies !
Running PHP As CGI On Apache
I'm having what you could call a bad day, now I'm not an experienced user of PHP but I know enough to install scripts and get them looking how i want them to.

I'm trying to install Gallery 1.2.5, unfortunatly my new virtual host runs PHP in safe mode which renders the script useless, after reading their FAQ I found that i can run PHP as CGI and place the script in there.

Now I have a problem I cannot compile this on the server as i don't have the permissions or access to do so, is there anywher i can get a pre-compiled version of php.cgi with newbie type instructions?

View Replies !
Cron Running PHP
what would a cron command look like that runs a specific PHP script every hour?

View Replies !
Running PHP On A Pocket PC?
I have a long, boring train ride in the morning to work.

Is there anyway to get PHP to run on my Pocket PC without being connected to the internet?

I wasn't sure if there was a mini webserver type app out there. I haven't been able to find anything. I'd like to mess around and code during that time.

View Replies !
Advice On Running PHP As A DSO, CGI, Or Both...
I am currently running Apache 1.3.27 under darwin (Mac OSX 10.2.6 BSD kernal), with PHP 4.30 as a DSO module.

I recently discovered I need to run some PHP scripts outside of the Web server as batch jobs by utilizing CRON since their execution time would typically time-out a Web session.

My question is three part:

1) Is there any difference in PHP running as a DSO vs. a CGI under Apache? Meaning, is there any difference in performance, features, access to databases, etc.
2) Should I run PHP as a CGI instead of DSO? Would this allow me to run my scripts under Apache without modification AND allow me to run PHP as a stand-alone language for command-line and CRON scheduled execution, etc.
3) If there is a performance difference with PHP as a DSO versus CGI can both be run on the same machine without conflict?

View Replies !
Running SCP Command
Is it possible for me to use PHP to run SCP? I know that I can use exec() or system() or shell_exec() to run a command, but when running SCP you have to run the command, and then enter a password, so is it possible to do that? If so, how would I do it?

View Replies !
Running PHP From A Different Server.
Hopefully my question can be easily resolved. I need to design an
autoresponder script in PHP for a organization that I am leading. My
issue is that the server where my page must reside on uses Lotus and I
am completely unfamiliar with that system. Is it possible for me to
execute a PHP script from another server? I could use server access
that I have on a PHP-friendly server to run this script if that is the
case.

View Replies !
Problems Running PHP As CGI
I have PHP Version 4.3.9 on my local machine I have till date no problems running many different application Today I was trying to run net2ftp from www.net2ftp.com
This errors out stating:
---
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means
that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive
----
I did try to set the redirect_status cgi variable and now I get this the page gets redirected to http://localhost/php4/php.exe And I can see the whole .exe in binary format in the FF browser with heading with errors as This program cannot be run in DOS mode.
...and at the bottom of the page...same errror again...

This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive Can there be any workaround apart from installing PHP 5+?

View Replies !
PHP Running With ASP - Any Problems?
My site currently uses PHP on an Apache Web server (running LINUX) and works beautifully.
I am interested in installing PHP with Microsoft IIS on another site which I understand you can do with PHP4 - 2 questions:

1) Are there any bugs/performance issues with running PHP on this type of (Microsoft) configuration?

2) If this site is currently utilising ASP as a scripting language - is there any problem with installing and running PHP concurrently?

View Replies !
Running PHP On A Client Only...
I was wondering if it is possible to run a PHP program on a web browser
on a local PC without having a server, such as Apache, installed
locally? I am thinking about creating an application the will configure
Linux config files based on input from webpages.

I have seen this done on the CUPS setup/admin pages: http://localhost:631/

....do these pages use php, perl or what?

View Replies !
Running PL/SQL Scripts From PHP
Is there a way to execute PL/SQL scripts from PHP? I have PL/SQL scripts
that utilizes the DBMS_xxx packages. Is it possible to shell out a command
that will run the PL/SQL?

View Replies !
Running PHP 4 & PHP 5 Together As Modules
We would like to upgrade our servers to PHP 5 and PHP 4
together as modules on the same server (not as cgi, not passing
requests to another server). I did some extensive searching on
this and we ran some tests over a year ago and did not find a
solution (other than proxy forwarding to a PHP 5 configured server).

When PHP went to version 4 from version 3, it was possible
to run both at the same time, and have users select by file
extension, i.e. .php4,.php5. It seems a naming conflict within
the code itself prevents that from working with PHP 5. Has anyone
discovered a way to do this?

We are running apache 1.3.x on RHEL 4.

View Replies !
Running Php On Apache
I just installed apache 1.3.11 and php3 on my linux (red hat) system. Both files were rpm. My server works but when I load a php3 file netscape displays the source of the
file in stead of the results. Whats wrong with my server? How can I configure my server so php3 files are interpreted correctly? I don't know very much about linux.

View Replies !
Running Php Script In Different Dir
I am on a Linux system, currently php script executes normally on this dir: /var/www/html but if I place my php scripts (the same script which executes cleanly in /var/www/html) on a different dir structure, I get an error. Does any one have any idea how to get this working?

View Replies !
Php Running In The Background?
In order to run a php script - do I need to access it via a browser? Is there a way to write a php script and let it run from the shell in the background?

View Replies !
Running Php In The Background
I am trying to run a php executable (GTK) from a browser... now exec() does the job, but the browser hangs waiting for the .exe I have just called to finish, I assume so it can 'report back' to exec(),

any ideas how I can get around this ? - I have tried backticks,passthru,system,exec - all with the same results, i.e. they all expect a returned value and sit around waiting for it. This is a windows app so /dev/null wont help & it is not a CGI with output I can dump anyway.

View Replies !
Variable Running When It Shouldn't
I have my site 'news-and-press.php' page with this code:

<?php 
$page_name = 'News & Press';
$page_ID = 'newsandpress';
$heading = 'News & Press';
$content = include("news-and-press2.php");
include ('template.php');
?>

When I run 'news-and-press.php' the code runs through the list of variables then it runs the include ('template.php'); (this is the page that runs the site template, it asks for the variables above).

My problem is when 'news-and-press.php' is run the $content variables' output displays before the include ('template.php'); is displayed but it is meant to run the include ('template.php'); and then call $content into the template. Code:

View Replies !
Background Running
I have a php script. It basically fetches data from MySql DB, processes it, and updates the results back in the Database. There are some 18k rows in the DB. The processing involves querying some remote servers.

What is the MOST efficient method to run the script in background ?

View Replies !
Getting The GD Library Running
I have php 4.3.10 installed on WinXP/IIS. I am able to run php without any problems but now I am wanting to explore using the GD Library. I uncommented 'extension=php_gd2.dll' from the php.ini file but when I run php I get the error:

"PHP Warning: Unknown(): Unable to load dynamic library './php_gd2.dll' - The specified module could not be found."

I have already made sure all the dll files from my php directory are copied over to windows/system32. What am I missing?

View Replies !
Running Queries
I have NO basic knowledge of PHP MySQL - Im good at dreamweaver and designing but im no good with this - I have to build a database for a Hotel that allows people to register and book rooms etc,

however I can type it all in, Its just the connection from 'getting' the information from the Database to the HTML side.

View Replies !
PHP Running Way To Slow T_T
About an hour ago my pages were taking around 0.01 seconds to load. Now those same pages are taking like 5.00 seconds to load. CPU usage is 1%

Why are they going so slow all of a sudden? Even pages that I have not edited at all whatsoever in any way are suddenly slow as poop when they used to be loading instantly an hour ago! Code:

View Replies !
Running PHP System()
How can I run a PHP system()/exec() command with root privileges? As stated in my earlier posts, I would like to run the following in php file:

[code]
<?php
$output = shell_exec('lsof -i :<port_no>);
echo $output;
?>
[code]

running as http://<mysite.com>/phptest.php doese not allow me to execute this command which requires root access..

Can I run some command that will provide root privelegs to the user httpd ??
Code would be something like:
[code]
<?php
exec('set root priveleges'); // may be sudo
$output = shell_exec('lsof -i :<port_no>);
echo $output;
?>
[code]

View Replies !
Running An Executable?
I am using a program called jhead.exe.

It cleans up the headers from a jpg image file.

Does anyone use it ?

Is this the correct method to call the program ?:

exec("jhead -purejpg ".$source); // cleans up jpg headers

The jhead.exe file is in the same directory ans all my php scripts so I am not sure if I need to put a path in the statement or not.

View Replies !
Any Downsides To Running PHP As CGI
I was setting up a test machine with PHP4 as CGI and PHP5 as normal, but are there any downsides to CGI or known bugs or things I need to look out for?

If so I'll use my little bat file switch instead and not run it as CGI and just have to switch between PHP versions when needed.

View Replies !
Running Total
I would like to keep a running total of miles used on a truck. The user will be allowed to enter the total miles on the truck after every use but I want to be able to keep the total miles updating after every user submits their total how would I go about doing this.

View Replies !
Guide For Running Php
I'm just starting to familiarise myself on FC5. Can anyone be so kind as to teach me what are the steps needed, (and checks needed) to get all these up and running on my local machine for me to start coding my website in php?

View Replies !
Exec() Not Running
I just installed ImageMagick on my development machine (OS X 10.4.7, Apache 1.3, PHP 4). I am trying to use exec() to call it. I have created a command via PHP:

PHP Code:

$cmd = "/usr/local/ImageMagick-6.3.0/bin/convert /Library/WebServer/Documents/one.jpg -resize 250x /Library/WebServer/Documents/photos/two.jpg"
exec($cmd, $output, $retVal);

I know ImageMagick is correctly installed because when I run the command via the console, it works perfectly. The "photos" directory is chmod'ed to 777. The paths are correct. I have tested a simple "ls -l ." as the command, that outputs everything just fine.

Is there somehing I'm not doing right? Someting I need to disable or enable? I've gotten this exact code to work on a different server (GoDaddy of all places) so I'm quite certain it's not the code itself.

View Replies !
Keep A Script Running
I'm looking to throttle a data analysis tool to process xKB of data at a time, followed by a rest before re-cycling. Right now the process is being handled by browser refreshes. I've been running through some ideas like cron, but it's not something on a regular schedule and I'd rather not deal with it.

For some reason I keep thinking that I can sleep without using up any cpu cycles. Basically, I want to tell the script to start on demand, and have it run at a throttled pace until it is complete, without browser interaction.

View Replies !
Running Script Twice??
For some reason this script runs twice, the reason I can tell is because it runs the insert query but the output is that the event was saved?? I can't figure out why the script would run twice. Here is the whole script: Code:

View Replies !
How Can I Install 5 When 4 Is Running In One
I have a doubt can i install php5 when php4 is running. Can i run both with localhost:80 as php4 version and localhost:81 for php5.

View Replies !
Query Not Running
I have a setup script to setup member accounts, and for some reason, it won't run multiple queries for me.

$conn1 = mysql_connect($dbhost1, $dbuser1, $dbpass1) or die ('Error connecting to mysql');
mysql_select_db($dbname1);

mysql_query("INSERT INTO user (forumid, username, joindate) VALUES ('$forumid', '$username', '$joindate')") or

die(mysql_error());

mysql_query("INSERT INTO attunement (forumid) VALUES ('$forumid')") or die(mysql_error());

mysql_close($conn1);

The first one runs just fine, but the second one doesn't at all and I simply can't figure out why.

View Replies !
Running Xml_parse
I have the following problem when parsing a xml document. xml_parse returns this error: junk after document element. The xml document is properly formatted and the error si returned when the cursor reaches the last character ( ">") . Did anybody else encounter this problem?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved