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.





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 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 !
Problems Uploading Files Using Apache And Php On A Local Windows PC.
I've got some problems uploading files using apache and php on a local
Windows PC. I'm using the file upload example from the manual, but i
can't get it to work. I don't get an error message, it's asif nothing
happens. I can't find the file that should be uploaded on my harddisk.

Has anyone a working example for file-uploads on a local server with
the settings for the php.ini file? Any tips?


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 !
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 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 !
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 !
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 !
Which Apache Is Running?
My server is stopped all of sudden. I tried to start it. I am unable to start it as it have 2 instances of apache. Now my problem is to find the correct instance to start..

I tried "/etc/rc.d/init.d/httpd restart" its giving message its started but not working. Code:

View Replies !
Apache And Tux Running Together
I'm wondering if anyone has tried a scenario that I'm thinking of. At
my job we've got a web based product provided by Apache running PHP
that accesses MySQL.

This web application is hosted by multiple servers
behind a load balancer because of the user load on the system. However,
we've still had times when the servers got over run and Apache maxes
out on the number of httpd processes (257) and falls behind to the
point of timing out.

When this happens and I look at the servers with
top, they aren't particulary busy, but with 257 big httpd process (PHP
and MySQL totalling 15 Megs of ram), the server is bound up. Code:

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 4 And PHP 5 Together As Modules, Same Apache
I work for a web provider and we would really like
to start allowing people to experiment with php 5 on their websites
without forcing an overall upgrade and potential code problems.

Did some extensive searches and have seen ideas about
running php 5 via cgi or using mod_proxy so that if folks access
their site as php5.sitename.com -- we pass it through to an
apache server configured for php5. Code:

View Replies !
ODBC - Running FC6 With Apache And PHP
i've got this server running a Progress DB. I need to connect to it using PHP to pull customer/product data. My web server is running FC6 with Apache and PHP. I got iODBC installed and connecting to the database and created a simple page to create a connection:

<?php
      $conn = odbc_connect(DSN, NAME, PASS) or die ("error connecting");
?>

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 !
Virus Sent Via Webmail Running On Apache
I currently use a simple php webmail form with php's mail() function
doing the work to send messages to the site owner.

However, viruses are being sent via the form.

I tried adding a basic colaboration of amavis-new, ClamAV and
spamassasin, but that filter does not seem to catch them. I assume they
are injected into the Postfix process too late.

View Replies !
Running PHP 4 And PHP 5 Together As Modules, Linux, Apache 1.3.x
We have been running PHP 4.x on Apache 1.3.x with
no problems. After the first upgrade from php3 -> php4 were
were able to load both modules for php 3 and php 4 with no
problem. With an AddType directive we forced php 3 execution
for just those files ending in php3.

Thought we could do the same with php 5. We have a
lot of folks on 4 who may not be ready to upgrade yet, so
we were planning on letting php 4 handle anything ending in
..php or .php4 -- and use php 5 for just php5 extensions.

Did the same thing as before in our Apache Config,
we are running on Redhat 9 -- but can't get both 4 and 5
running together. It seems we can run one or the other, but
not both -- when we start apache we get ONE server process
that just sits there, nothing in the log files?

After some web searching could not find much, one
guy said there was a conflict in memory management and
you can't run the two together?

Anyone got this to work and how? Had posted this to
the alt..php group and still looking for a solution?

View Replies !
Running Php Programs On Apache Server
I am using Apache web server and i am trying to run php programs over it My problem is that the php programs aren't running at all. Instead i am receiving messages "BAD REQUEST ERROR 400".

View Replies !
Can't Link Gd Library To 4.3.4 Running On Apache And Linux.
It installed the files by default in /usr/local/lib and /usr/local/includes.

I'm using a debian based distribution called Knoppmyth that installs php and apache automatically. When I run phpinfo(), it tells me that it was compiled with gd support like so --with-gd=shared,/usr.

I'm not exactly sure what "shared, /usr" means though. I'm assuming it means its looking for the gd library files in the /usr directory but I don't know why the word "shared" is there. Code:

View Replies !
Installing And Running Apache 2.0.46 / Php5.0.0b1 / Suse Linux 8.2
I did the following as instructed in the docs. (see below)
everything seemed to install ok
and I started apache with no complaints, but,

1)I do not see a process for apache using ps -ef
2) In yast I see that the new apache2 version is installed but not
php5, its still on php4

any ideas ?

1. gzip -d httpd-2_0_NN.tar.gz
2. tar xvf httpd-2_0_NN.tar
3. gunzip php-NN.tar.gz
4. tar -xvf php-NN.tar
5. cd httpd-2_0_NN
6. ./configure --enable-so
7. make
8. make install

Now you have Apache 2.0.NN available under /usr/local/apache2,
configured with loadable module support and the standard MPM
prefork.
To test the installation use your normal procedure for starting
the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start
and stop the server to go on with the configuration for PHP:
/usr/local/apache2/bin/apachectl stop.

9. cd ../php4-NN
10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs
11. make
12. make install
13. cp php.ini-dist /usr/local/lib/php.ini

Edit your php.ini file to set PHP options. If
you prefer this file in another location, use
--with-config-file-path=/path in step 10.

14. Edit your httpd.conf file and check that these lines are
present:

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php

The path on the right hand side of the LoadModule statement must
point
to the path of the PHP module on your system. The above statement is
correct for the steps shown above.

15. Use your normal procedure for starting the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start

View Replies !
Install Php5 On A SuSE 9.3 Linux System Running Apache 2.0.49
I am trying to install php5 on a SuSE 9.3 Linux system running apache 2.0.49. For some reason,when attempting to restart the server,I get the following error:

"Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf:

Cannot load /usr/lib64/apache2-prefork/libphp5.so into server: /usr/lib64/apache2-prefork/libphp5.so: undefined symbol: php_session_create_id"

Does anyone know what is causing this error,or what I can do to correct it?


View Replies !
Remote Database - Windoze Box Set Up As A Server Running Apache/MySQL/PHP.
a MySQL server. I've got a windoze box set up as a server running Apache/MySQL/PHP. Everything works fine locally run. But, when I try to access the MySQL from a remote server's web page, it times out and says "Lost connection to MySQL server during query".

View Replies !
Running PHP/Apache On A User Mode Linux Machine, Where To Stick Mysql?
I hope no one minds me running this past them.

I'm running a linux machine with with apache, php and mysql. This is not
accessable from the internet. I want a server that is visable to the
internet. For that purpose I am running a user mode linux machine and using
apache on that as the external looking web server. This means that stuff I
want to see on the outside is on a copy of apache that is doing little and
does not get messed around with as much as my main copy of apache.

I am not using mysql with it at the moment. If I do am I better running
mysql on the user mode machine or running a second copy of mysql on a
different port on the 'main' machine. I'm beginning to think the latter
has advantages.

View Replies !
How To Set Up Apache And Php On Windows XP.
Just wonder if there are any sites with a guide on how to set up apache and
php on windows XP. Would like to test my php-pages locally.


View Replies !
PHP/Apache/Windows
I am running a Win 2000 professional machine on my desk
(unfortunately). I use Apache/PHP for test purposes, for running a
little intranet server, and I am going to have a student help me with
some coding.

Is there anything like the "nobody" id in UNIX where I can set apache
to run where it can't do too much damage?

View Replies !
Apache On Windows Xp Pro
I have installed apache and php on windows xp pro according to the directions in the blog design solutions book. I did all the changes in the php.ini file as well as the http.conf file. Restarted my computer.

When I try to start apache with the windows services it tells me that this is not a ms program and I can't run it.

If I try to start it with the apache start I get the following error: Cannot load the c:/php5/php5apache2.dll

(there are still other things to install, however I need to get this working first before I proceed any further)

I have went over this numerous times and checked all the code on the files and all appear to be ok. If anyone has any suggestiosn I would sure appreciate some guidance on this.

View Replies !
Apache+php On Windows
I just installed apache (latest good version) for Windows in:

C:Program FilesApache Software FoundationApache2.2htdocs

therein, in that directory, I have test.php.

In C:Program FilesApache Software FoundationApache2.2confhttpd.conf, at
the end of the file, I have:

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

I restart the apache server, but when I go to look at localhost est.php, I
get:

You don't have permission to access /php/php.exe/test.php on this server.

View Replies !
Need Help Uploading To Windows XP With Apache And PHP
I am currently trying to upload images to a Windows XP box running PHP and Apache. I have gone through
every possible scenario in the forums but with no luck I just can't get it to upload. Here is the basics
in the script that I am using.

$dir = "C:wwwrootwebsitedb".addslashes($property_id)."photos";

if (!file_exists($dir))
mkdir($dir, 0777);

if (($thumbnail == "image/pjpeg") || ($thumbnail == "image/jpeg"))
@copy($thumbnail, "$dir/$thumbnail");

<form method="post" action="/listings/upload/?pictures/0272-2JH/" enctype="multipart/form-data" />
<input type="hidden" name="property_id" id="property_id" value="0272-2JH" />
<input type="file" class="formupload" name="thumbnail" id="thumbnail" size="32" />
<input type="submit" class="formbutton" name="upload" id="upload" value="Upload" />

I have checked permissions, file sharing, registered globals off and on, directory structure
and so on.. Now I am able to create the folder photos if it doesn't exist, but it just doesn't
allow for me to upload the picture itself..

HELP

View Replies !
Php From Windows To Linux/Apache
I want to write php3-files in windows and then transfer them to a Linux-machine to run them on an Apache. Is it possible?

View Replies !
Windows/Apache And Virtuelhosts
I still haven't been able to configure Apache (latest release) so that it handles virtuelhosts proberly. I want Apache to server files from /contra and /tekk depending on what server is called. How do I do that? I have looked at the Apache documentation and applied the changes to my httpd.conf that it suggests. Didn't work.

View Replies !
Installing PHP 5.05 On WIndows XP, Apache 2.0.54 -
Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54

Apache is running fine and ive made all the changes to the pnp.ini file
and Apache config file, restarted Apache but all I get when trying to
call my test.php file is a 404 error?

http.config file:
LoadModule php5_module "C:/php/php5apache2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

set my php.ini doc-root file to :
doc_root = "C:Program FilesApache GroupApache2htdocs"

Ive followed all the FAQs on php.net , added c:/php to the Path etc

View Replies !
IIS Vs Apache On Windows 2003
I would like to request more information for the installation and
configuration of Apache in windows 2003 and I would like to know which
is better IIS or apache in Windows 2003 Server

View Replies !
Php Module For Apache (windows):
How can I get PHP working under windows, with Apache web server?
Where can I find the module? I suppose that I need to install a module like
in Linux...

View Replies !
Windows Apache Mysql
I have to extract 3 tables out of a .db (previously bzip2'ed). I am on a windows machine with apache php and mysql.

How can I import / create a database on my pc out of the .db file i have. Can I import / create through mysql query browser?Or how should I do this?

View Replies !
Apache 2.0.54, Windows 2k, And 5.0.5 - Do The Work Together
I have installed apache 2.0.54 and php 5.0.5 on my win2k box. However, it does not appear the php is working properly. I base this on the following code(which I got from a book): Code:

View Replies !
Newline And Tab Not Working In PHP 5.0.3 | Apache 2.0.52 | Windows XP Pro
The following examples (see PHP 5 for Dummies, p. 82)
do not produce the expected results:

$string = "Hello
World";
echo $string;

and

$string = "Line 1
Line 2";
echo $string;

The first instance is for a line break such that the words are stacked:

Hello
World

The second instance is for a line break with a tabbed second line:

Line 1
Line 2

Do I need to change or add something in one of the configuration files?
Otherwise, is there a known fix for this?

View Replies !
Apache,MySql,PHP On Windows Vs. Linux
Crazy (possibly dumb) question here...
I have a site running apache, mysql, php in a Win2K environment.
Primary development is that env also. I also am setting up a linux box
(old laptop), to begin playing with Linux. I'd like to set it up
similiary with apache,mysql, php.
If I do that, and start doing some development there (Linux box) - can
I expect that when I move the php code to the windows box that it will
behave similarly as it did on Linux?
Anything to watch out for? I'm completely new to Linux...

View Replies !
Why I Cant Setup Apache In Windows 2000
i can install apache in windows 2000 professional
but when i was to install it in a LAN it cant run correctly
when i type http://localhost/ in browser i recieve The page can not find
why?

View Replies !
FTP Doesn't Work - Windows / Apache
I am stumped after trying to invoke a variety of FTP commands and getting nowhere.

First off: I am using PHP 5.2.3 with Windows and Apache 2.2. I checked phpinfo and the following parameters apply:

- allow_url_fopen is "on"
- ftp support is "enabled"

I have tried a range of scripts including those using the FTP extension and have also tried using filesystem commands and the FTP wrapper. Either way, I haven't been able to make a connection or retrieve any data ... either my browser hangs, or the server simply returns an empty page.

I've begun to wonder if there's some parameter in my Apache httpd.ini file that is blocking connectvity. Any thoughts?

View Replies !
Error Reporting; 4, Apache 1.3, Windows XP
i recently upgraded from Windows 2000 to Windows XP and now i can't seem to get error reporting to work in PHP.

i don't know if i've simply forgotten how to do it, or if there's a bug associated with XP, but i absolutely cannot get PHP to display any errors in my browser. it's driving me nuts. Code:

View Replies !
Trouble With MySQL/Apache On Windows
I've just picked up the most recent versions:PHP - 5.2.0RC6-devMySQL - 5.0.26Apache - 2.2.3but I appear to be unable to get the mysql/mysqli extension to work.

After ensuring that the path is correctly set, and all the relevant configuration lines are in place, I am able to restart apache cleanly, however the mysql/mysqli extensions are NOT being loaded.

I've noticed that certain other extensions do not load mcyrpt and mhash being two notable ones I regularly use, however gd2 and gettext both load correctly. Code:

View Replies !
Running PHP Files
I have a html file with some php snippets inside. I saved it as index.php and now I want to run it. When I open it with a web browser it just displays the code I typed in.

View Replies !
Is It Possible To Restart Windows Apache (service) On A PHP Script?
Is it possible to restart Windows Apache (service) on a PHP script?
i have installed PHP/Apache on a Windows machine. Added the ext windows32
service. But could not find any how to or information online.

View Replies !
PHP 5.0.4 With Windows XP - Trying To Do File Zip Utility Causes Apache 2.0.53 To Crash
Has anyone had any luck with file zipping utilities for PHP 4-5 and Windows XP with Apache 2.0.53?

Following is my code snippet: ....

View Replies !
Incomplete Output Using Apache, MyAdmin In Windows
I'm running PHP 4.3.9, Apache 2.0.52 (running PHP as a module, not CGI), and MySQL 4.0.20 in Windows XP Professional.

It's been running great. I noticed something with PHPMyAdmin though. As part of the instructions for installing PHP as an Apache module, you need to add/edit the http.conf file Code:

View Replies !
How To Enable Apache Server And Disable Iis In Windows XP
i have installed php and mysql in my system.now i want to install apache server.Can any one tell me whether i have to disable iis and then enable apcahe server.

View Replies !
Running Remote Files
My shared web hosting account does not support cron tabs. So what ive done is asked a friend who has an account that does to run a local file on his server called "mikescron.php".

I need that file to somehow open or run a file on my host. Ive seen this done with headers and also with file functions before, but i cant find any documentation on it. WOuld anyone have any suggestions or sample code. On another note does anyone have a better idea about the cron.

View Replies !
Running Encoded Files
Is there a way to encode php files and have them run without a loader? I want my script to be available to anyone but without having to install additional software.

View Replies !
Running Executable Files
Is it possble to run an executable file using php? I made a quick search a found the exec() function but i didn't quite understand it??

View Replies !
Mhash Functions For My Windows Apache Development Server
I'm trying to set up a web page for credit card transactions and baffled
trying to find a download for mhash functions for my windows apache
development server. The real server supports mhash but I can't test it
on my localhost system. php.net points me to
http://pecl.php.net/packages.php where I don't see it in plain english,
googling around it looks like this may be it:
http://sourceforge.net/forum/forum.php?forum_id=585348 but it's short on
giving me a clue.

View Replies !
PHP5.05, Mysql4.1, Apache On Windows XP - Cant Get Php To Talk To Mysql
I have read all (ok most) of the posts relating to "Call to undefined
function mysql_connect()", read the manual on PHP.net and done
eveything thats ive been asked to do but cant get PHP to talk to MySQL,
PHP is working fine but I dont get any mysql info when running <?
phpinfo() ?> and get the "Call to undefined function mysql_connect()"
when trying to connect to mysql through php in browser, please help.

1. I have added C:php; to the end of the environment variable path
2. I have edited my php.ini file to :
extension_dir = "c:phpext"
extension=php_mysql.dll - removed the ";"
... ive checked i only have 1 php.ini file!
3. The dll "libmysql.dll" is in the folder C:php
4. The dll "php_mysql.dll" is in the folder c:phpext

View Replies !
Php Java Bridge Dont Work With Windows Xp And Apache 2.0.5
I have the java bridge library working fine on a windows 2000 and
running apache 1.3 but cannot for whatever reason get it to work on
windows xp and apache 2.0.5

Ive included the following in php.ini:

[java]
java.class.path = "c:PHPextJavaBridge.jar;"
java.home = "c:SunAppServerjdkin"
java.library.path = "c:PHPext"

Ive installed j2ee 1.4 and jdk 5. I have installed the latest pecl
package. The JavaBridge.jar and php_java.dll is in ext folder. I look
in the apache error log file and always see this error:

Unable to load dynamic library 'c:/php/extphp_java.dll' - The
specified procedure could not be found.
in Unknown on line 0

What is going on?

View Replies !

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