You may also need to enable short tags (ie full tag
Cheers,
Brad
[EMAIL PROTECTED] wrote:
Yuo need to add the following to httpd.conf to tell Apache
to sent files ending with .php to the php apache server
module.
AddType application/x-httpd-php .php
then if you write a testpage called 'get
Vadim Bendebury wrote:
- Original Message - From: <[EMAIL PROTECTED]>
To:
Sent: Friday, March 17, 2006 11:44 PM
Subject: Re: [PHP-INSTALL] Q: apache 2.2 and php 5.1.2 don't interact
properly.
It very well might be (even though if we establish that files with
extension .php are
e way off here and probably am, seems too obvious, I
have never had to deal with a tomcat setup before.
Cheers,
Brad Kowalczyk
Jim Douglas wrote:
When I try this,
DocumentRoot /usr/opt/tomcat/webapps
Alias /myJSPapp /usr/opt/tomcat/webapps/myJSPapp/
Alias /PHPapp1 /usr/opt/tomcat/webapps/PHPapp1/
I can browse www.xxx.org/myJSPapp, no problem
When I browse www.xxx.org/PHPapp1 I get a blank screen, "view sourse"
logged??
I presume that you are properly restarting the right apache binary?
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
02 63796642
hi,
while searching the archives for a solution to my prob installing php5
on apache2 as a DSO i came across a mail with a similar prob. ie no
libphp5.so being created
I found this solution and thought I'd share it here for the interested:
after running ./configure edit the libtool file and look
en
configuring php.
--
|^ Brad Kowalczyk
|^ Web Developer
|^ [EMAIL PROTECTED]
|^ www.ibiscode.com
smime.p7s
Description: S/MIME Cryptographic Signature
this line in your configure script:
--with-apxs=/path/to/apxs
if not then you wont get libphp5.so built and installed into the apache
directory.
--
|^ Brad Kowalczyk
|^ Web Developer
|^ [EMAIL PROTECTED]
|^ www.ibiscode.com
smime.p7s
Description: S/MIME Cryptographic Signature
d
your new php5 DSO and replace reference to 'libphp4.so' in httpd.conf
with 'libphp5.so'. I like to build php from source so i can configure it
the way i like and include the modules i want.
--
|> Brad Kowalczyk
|> Web Developer
|> [EMAIL PROTECTED]
|>
solution:
after running ./configure edit the libtool file looking for this line:
deplibs_check_method="unknown"
if it exists change it to :
deplibs_check_method="pass_all"
then run make install, it worked for me.
--
|> Brad Kowalczyk
|> Web Developer
|> [EMAIL PROTE
= true;
}
echo $body_contents;
Solution 2
// should extract all text between body tags even if on same line
// I'm far from a regex guru so there may well be a better pattern than
this :)
$file_string = file_get_contents($filename);
$file_string = preg_replace("/.+?(.+?)<\/body>.+/
seem like a really stupid question; but you are naming the file
with a .php extension and not .html?
--
|> Brad Kowalczyk
|> Web Developer
|> [EMAIL PROTECTED]
|> www.ibiscode.com
smime.p7s
Description: S/MIME Cryptographic Signature
recompile. I have a feeling you
can even just build the CLI on its own.
--
|> Brad Kowalczyk
|> Web Developer
|> [EMAIL PROTECTED]
|> www.ibiscode.com
smime.p7s
Description: S/MIME Cryptographic Signature
'include_path' setting in
php.ini to find the files. If the php.ini file was replaced with the
upgrade you may need to re-add the path to you include files to the
'include_path' setting or make sure all your includes use relative paths
(if not already).
I hope this helps...
Che
_
Additional Information: $add_info
_
";
CALL TO FUNCTION THAT SENDS THE MAIL
I HAVE IT COMMENTED OUT SO IT DOESNT SEND ONE ACCIDENTALLY
sendmail($to, $from,
you have this line in your httpd.conf?
AddType application/x-httpd-php .php
--
|> Brad Kowalczyk
|> Web Developer
|> [EMAIL PROTECTED]
|> www.ibiscode.com
smime.p7s
Description: S/MIME Cryptographic Signature
nt the timestamp for January 21st, 2004 at 12:30pm
and 20 seconds you would do this:
Hope this helps...
Cheers,
Brad
--
|> Brad Kowalczyk
|> Web Developer
|> [EMAIL PROTECTED]
|> www.ibiscode.com
smime.p7s
Description: S/MIME Cryptographic Signature
Database: 530 - Release Date: 10/27/2004
Sounds suspiciously like there are php errors occuring. Check the PHP
error log or enable error reporting in php.ini
--
|> Brad Kowalczyk
|> Web Developer
|> [EMAIL PROTECTED]
|> www.ibiscode.com
smime.p7s
Description: S/MIME Cryptographic Signature
scripts _before_ you try to use any DB
functions.
All PEAR packages need to be included or required into your script for
you to use their functions, they are not automatically available.
Cheers,
--
Brad Kowalczyk
Web Developer
[EMAIL PROTECTED]
http://ibiscode.com
--
No virus found in this out
=
4. edit it to read: deplibs_check_method="pass_all"
5. run make
I'm almost 100% sure that solved my problem, give it a go anyhow.
Cheers,
Brad Kowalczyk
Web Developer
[EMAIL PROTECTED]
http://www.ibiscode.com
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version
p you might say, but it is part of a larger installation,
which calls these extentionless files, so that is no option.
Any hints?
Thanks
-Patrick
try :
DefaultType application/x-httpd-php
AddType application/x-httpd-php .php .phtml
Cheers,
Brad Kowalczyk
Web Developer
[EMAIL PROTECTED]
Patrick Donker wrote:
Brad Kowalczyk wrote:
Patrick Donker wrote:
Hi list,
Yes I've searched the archive ;)
I have a strange thing, which must be a something trivial.
My .php files run as expected, but as soon as I try to run a script
from an extentionless file, it shows up as text; the sour
Vincent Dean wrote:
Hello,
I'm sure this is pretty easy but I'm somewhat new to PHP. I would like
to place includes in an html doc and have them display via the
browser. I understand that this can be done via the **.htaccess file.**
Is this the best approach? If so can someone tell me the
0 on Windows XP
Open php.ini and edit it to make sure that the "display_errors" setting
is "On"
display_errors = On
Then restart apache
Cheers,
Brad Kowalczyk
www.ibiscode.com
you would probably know
it already.
I'd sure love to know how to fix the problem properly though - I don't like
mysteries.
I'm just guessing but it may simply require updating the db3 libs.
Cheers,
Brad Kowalczyk
Web Developer
www.ibiscode.com
articipate. Something is
very, very wrong.
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
ay to do this?
Ed
I'm not 100% certain but I dont think you can build the apache module
and the cgi at the same time (I've never tried it), its generally one or
the other. Building the cli and the cgi together is not an issue.
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
yeah, if your apache has apxs just include the line:
--with-apxs=/path/to/apxs
when you run configure and php will be built as an apache module.
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
perhaps put a professional on staff, but if you want the
free ride you might just have to be patient from time to time...
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
)
In the example above you should have:
Cheers,
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
tried putting double
quotes around c:/php/php5apache.dll. No luck.
Any thoughts (other than switch to Linux)?
Thanks,
Pat Moore
the php files are not being parsed by php, try commenting out the line:
AddModule mod_php5.c
I don't have it in my httpd.conf on my Windows box
Cheers,
--
Brad Kow
configure it to send mail through
a smtp server without having to rebuild php? if so, how? any help is
greatly appreciated.
thanks in advance!
As far as i know you will need sendmail installed to use the mail()
function().
Correct me if I am wrong.
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
so use $_REQUEST['variable_name'] to access variables in
either $_GET, $_POST or $_COOKIE arrays.
(of course you replace 'variable_name' with the name of the variable you
want to use)
Cheers,
Brad
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
anything when I run the
server and load a simple page that contains...
No need for the "echo" in there
Cheers,
Brad
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
to the browser, headers must be sent before any other output,
including whitespace. So you could fix this by removing Notices from
PHP's error reporting. In php.ini edit the error_reporting directive to be:
error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Cheers,
Brad
--
computer, it just displayed this original text
file, not "hello" in a browser.
Is it an installation problem? How can I check it?
Thanks,
Joe
Hi Joe,
you need to make sure the following line is in httpd.conf:
AddType application/x-httpd-php .php
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
ver (which ?) on this operating system.
Just download and install the Apache webserver for windows, just what
you want :)
Cheers,
Brad
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
it is now turned off by default. If you REALLY MUST do it then find
register_globals = Off in php.ini and change it to 'On' and restart
Apache. Again, this really isnt such a good idea.
(it works fine on my hosting companies server)
EEIIK!!!
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
run 2 instances of apache listening
on different ports, one for each php version.
e.g.
http://localhost:80 (php4)
http://localhost:8080 (php5)
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
stalling both php4 and php5 from
source, I have done it plenty of times with no problems, just remember
of course to specify a different PREFIX for each version when you run
configure.
Cheers,
Brad Kowalczyk
www.ibiscode.com
ode will run as expected on php5 (but not the the other way
around) and the benefits of php5 are many.
Cheers,
Brad Kowalczyk
www.ibiscode.com
Jochem Maas wrote:
Brad Kowalczyk wrote:
Grae Wolfe - PHP wrote:
Hey there... I am setting up a new test server for one of my clients
to use, and I am curious if there is a reason to go with php4.xx over
php5.xx, or the other way around. I would think that I would want to
go with the
a valid variable name and both '\$' and '$' print
as '$' (though I suppose \$ should print as \$ given my next sentence).
And \ followed by no special characters is treated as a literal \ and \\
is the same; as the first \ escapes the second \ which leaves you with
\.
Ruprecht Helms wrote:
Hi,
I still have problems with the jpegsupport within the gdlib.
I use php 4.4.2, freetype-2.1.10, jpeg-6b and gd-2.0.33.
I configured my php like this:
./configure --with-mysql --with-apxs=/www/bin/apxs --with-gd
--with-freetype-dir=/usr/local/lib --with-jpeg-dir=/usr/l
44 matches
Mail list logo