On Mon, Feb 9, 2009 at 2:19 PM, Brad Freshour wrote:
> Apache: 2.2.8 threaded
> PHP: 5.2.4-2
> mySQL: 5.051.a
>
> Ubuntu 8.04 minimal with everything needed installed via apt-get.
>
> Using SMF forum, I'm having an issue with the strtr command... Here's
>
Apache: 2.2.8 threaded
PHP: 5.2.4-2
mySQL: 5.051.a
Ubuntu 8.04 minimal with everything needed installed via apt-get.
Using SMF forum, I'm having an issue with the strtr command... Here's
the code...
$ftp_file = strtr($filename, array ($_SESSION['pack_ftp']['root'] =>''));
The $_SESSION['pack_f
I'm getting stuck.Below is my debug.log.Any help would be appreciated.
CONFIGURE: './configure' '--prefix=/usr/local/php5' '--mandir=/usr/
share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc' '--with-
zlib' '--with-xml' '--with-zlib-dir=/usr' '--with-openssl' '--enable-
exif' '--enable
logged??
I presume that you are properly restarting the right apache binary?
--
Brad Kowalczyk
Web Developer
www.ibiscode.com
02 63796642
ourse"
has no code.
Any suggestions?
Thank,
Jim
Hey Jim,
Put an HTML or plain text file in /usr/opt/tomcat/webapps/PHPapp1/
and request that, see if you get any output. eg.
create /usr/opt/tomcat/webapps/PHPapp1/test.html
and go to www.xxx.org/PHPapp1/test.html
Cheers,
Brad
e way off here and probably am, seems too obvious, I
have never had to deal with a tomcat setup before.
Cheers,
Brad Kowalczyk
r
- this is somewhat unprofessional if I may say so.
years or so. AFAIK
Cheers,
Brad
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
gd module with jpeg support as
requested in configure.
Cheers,
Brad
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
\.
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
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
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
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
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
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
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
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
--
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
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
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
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
)
In the example above you should have:
Cheers,
--
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
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
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
articipate. Something is
very, very wrong.
--
Brad Kowalczyk
Web Developer
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
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
Google comes up empty on this one.
Thanks in advance
Brad Kittredge
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
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
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]
=
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
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
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
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
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
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
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
_
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,
'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
= 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>.+/
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
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]
|>
Lester,
Thanks for clearing this up on both counts (extensions and paths). I
will follow you advice.
Brad Bates
Systems Librarian
Polk County Library Cooperative
[EMAIL PROTECTED]
-Original Message-
From: Lester Caine [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 12:18 PM
t IIS to handle php code in a file
that is NOT listed in the ISAPI configuration. For example, how can I
get IIS to run php code that is contained in an HTML file that has an
extension of ".htm" or ".html"?
Thanks in advance for any help you can provide,
Brad Bates
Systems Librarian
Polk County Library Cooperative
[EMAIL PROTECTED]
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
en
configuring php.
--
|^ Brad Kowalczyk
|^ Web Developer
|^ [EMAIL PROTECTED]
|^ www.ibiscode.com
smime.p7s
Description: S/MIME Cryptographic Signature
e and look for this line:
deplibs_check_method="unknown"
change it to : deplibs_check_method="pass_all"
then continue with make, worked for me on FreeBSD system.
Cheers,
Brad
smime.p7s
Description: S/MIME Cryptographic Signature
Title: Message
first, run php as a module not cgi.
second, did u get the windows binaries, or the
linux tar.gz source. the uncompiled c file (mod_php4.c ) you are talking
about is in linux
source. you should be copying .dlls to run PHP
follow this step by step, and youll be
good
One of my variables "link1" that is storing a bunch of urls is having random
lines being duplicated on form submission. I just recently swithed servers
from a PHP 4.3.3 to a 4.2.2 version. This error has only started appearing
on the new machine. The script worked fine on the old server and still d
tical.
The code I have in my html file is:
Many thanks in advance for any assistance you might be able to provide,
Brad Bates
Polk County Library Cooperative
Polk County Florida
I set up a PHP4.3.3/mySQL4.0.14/Apache2.0.47 server and everythign is
configured and running properly. i tested php with some scripts and
functions and they all work. When i try and do any file editing/including in
scripts i get file not found errors all over the place when i open like
$DOCUMENT_RO
I installed redhat 8.0 just now. It install php4 and apache in a default
config. It supposedly runs php as a DSO. Everything appears to match redhats
online manual and I get no errors in the logs. But, php isn't working.
Anyone have this problem. I know I am just missing a small piece of the
puzzle
://dev.robotbattle.com/hello.php
-Brad
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
se to them. Hope you can help.
// Brad
__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The fact it
cant talk to MySQL seems to be a sideaffect of a greater issue that PHP is
being called somewhere else, instead of locally.
Im a novice, but a few gurus who've taken a quick look hve also scratched
their heads.
help!
brad
ps, what im trying to get working is
http://vsync1
I am unable to get php to install, mysql 3.2.32 installs, apache 1.3.12
installs. I have been unable to get php to work. Here is my debug.log,
see below. Thanks for any help you can give a newbie.
Sincerely, Brad Adams, Pasco High Schoo, Pasco, Washington
CONFIGURE: './configure'
I copied the dlls that came with the download to the directory. I'm
still getting the same error.
Brad
Stephano Mariani wrote:
> You have some older dlls being called. Do a search for the dll file in
> question (and any others giving a similar message) and replace them with
&g
page. How can I eliminate this
message?
Thanks in advance,
Brad
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
After commenting out the Action application line, I'm asked what application I
would like to open the file with.
Phil Driscoll wrote:
> On Tuesday 04 September 2001 4:49 pm, Brad Harriger wrote:
> > I was accessing the file directly.
> Well that won't ever work - you have
I was accessing the file directly. When I try requesting it via the webserver, I
get a 500 error with the following line in the error log:
[Tue Sep 04 11:46:30 2001] [error] [client 127.0.0.1] Premature end of script
headers: c:/php/php.exe
Brad
Phil Driscoll wrote:
> On Tuesday 04 Septem
httpd.conf contains
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
When I try to access a page, I'm asked if I want to open the file using php.exe
or save it to a disk.
Brad
Phil Driscoll wrote:
> On
I have installed php4 on an NT workstation running apache that
previously ran pws and php4. Everything worked fine under pws. Now,
the php executes from the command line, but not from the browser. I've
followed all the installation instructions. Any suggestions?
Thanks,
Brad
--
tatus
Anyone have any idea what that means?
Thanks,
Brad Atkins
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
66 matches
Mail list logo