Re: [PHP] Error with php

2004-09-28 Thread Jason Davidson
Can you show me an example.. 
wild guess without knowing what your doing, but, ?> is the escape code
to exit php.. so its possible thats what is happening.. but please post
some code that cuases this problem.

Jason

Timothy Johnson <[EMAIL PROTECTED]> wrote: 
> 
> This is my first time using php on a gentoo system. I seem to be having
> a problem everytime I use a > it exits out of the code and prints
> everything after that like as if it was pure text. So I am assuming the
> php engine doesnt even seen anything after that. Maybe I have something
> configured wrong also.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Error with php

2004-09-28 Thread Timothy Johnson
This is my first time using php on a gentoo system. I seem to be having
a problem everytime I use a > it exits out of the code and prints
everything after that like as if it was pure text. So I am assuming the
php engine doesnt even seen anything after that. Maybe I have something
configured wrong also.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] error with PHP MySQL extension

2004-06-22 Thread John Nichel
Nguyen, Long P (Mission Systems) wrote:
I didn't see a phpinfo, I do see mysql as below in the Configure Command section.  So if I run "up2date php-mysql", it will update mysql extension?  Where do I run this from, like the path?  Sorry - I'm new to this.
At the command prompt (and as root), run this
$> rpm -qa | grep httpd
If it responds with something like...
httpd-2.x
Then Apache was installed via RPM
You can then do this at the command prompt
$> up2date php-mysql
And that will install the RPM for php/mysql.  Restart Apache, and all 
should be fine and dandy.

--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] error with PHP MySQL extension

2004-06-22 Thread Nguyen, Long P (Mission Systems)
I didn't see a phpinfo, I do see mysql as below in the Configure Command section.  So 
if I run "up2date php-mysql", it will update mysql extension?  Where do I run this 
from, like the path?  Sorry - I'm new to this.

System: Linux daffy.perf.redhat.com 2.4.18-11smp #1 SMP Thu Aug 15 06:41:59 EDT 2002 
i686 i686 i386 GNU/Linux 
Build Date: Sep 3 2002 05:25:09 
Configure Command: './configure' '--host=i686-pc-linux-gnu' 
'--build=i686-pc-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' 
'--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' 
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' 
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' 
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' 
'--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' 
'--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' 
'--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' 
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' 
'--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' 
'--with-iconv' '--with-jpeg-dir=/usr'
'--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' 
'--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' 
'--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' 
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' 
'--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' 
'--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' 
'--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' 
'--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' 
'--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' 
'--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' 
'--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs' 


-Original Message-
From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 10:04 AM
To: Nguyen, Long P (Mission Systems)
Cc: John Nichel; php-general Mailing List
Subject: RE: [PHP] error with PHP MySQL extension


Quoting "Nguyen, Long P (Mission Systems)" <[EMAIL PROTECTED]>:

> I was task with this...  Unfortunately the person that installed it is not
> here anymore.  Is there a way to find out, like any commands or files to look
> for?  I do see _SERVER["SERVER_SOFTWARE"] Apache/2.0.40 (Red Hat Linux) show
> up on the test.php
> 
> Thanks for your help.

What does phpinfo() say? It should tell you how it's configured (look for
configure section at the top). Also it should tell you wheather mysql extension
is installed or not.

If its a redhat linux machine, then most probably its installed with an rpm and
so "up2date php-mysql"  should install mysql extension. You need to restart
apache after this.

HTH
R'twick


This message was sent using IMP, the Internet Messaging Program.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] error with PHP MySQL extension

2004-06-22 Thread R'twick Niceorgaw
Quoting "Nguyen, Long P (Mission Systems)" <[EMAIL PROTECTED]>:

> I was task with this...  Unfortunately the person that installed it is not
> here anymore.  Is there a way to find out, like any commands or files to look
> for?  I do see _SERVER["SERVER_SOFTWARE"] Apache/2.0.40 (Red Hat Linux) show
> up on the test.php
> 
> Thanks for your help.

What does phpinfo() say? It should tell you how it's configured (look for
configure section at the top). Also it should tell you wheather mysql extension
is installed or not.

If its a redhat linux machine, then most probably its installed with an rpm and
so "up2date php-mysql"  should install mysql extension. You need to restart
apache after this.

HTH
R'twick


This message was sent using IMP, the Internet Messaging Program.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] error with PHP MySQL extension

2004-06-22 Thread Nguyen, Long P (Mission Systems)
I was task with this...  Unfortunately the person that installed it is not here 
anymore.  Is there a way to find out, like any commands or files to look for?  I do 
see _SERVER["SERVER_SOFTWARE"] Apache/2.0.40 (Red Hat Linux) show up on the test.php

Thanks for your help.



-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 22, 2004 10:33 AM
To: php-general Mailing List
Subject: Re: [PHP] error with PHP MySQL extension


Nguyen, Long P (Mission Systems) wrote:
> This is where I am stuck at with this DRES installation, it's complaining about the 
> mysql extension.  I tried ./configure --with-mysql=/usr/local/mysql; make; make 
> install and still the same error:
> 
> 
> Checking PHP configuration settings
> 
> PHP version... success [4.2.2]
> DOMXML extension... success [2.4.23]
> MySQL extension failure [required-extension not installed] 
> 
> recompile your PHP installation with --with-mysql option 
> 
> 

You need to find out how php was originally installed on your system, 
and how your web server (Apache?) was installed.  Depending on how your 
web server was installed, you will need to (re)install php in one of a 
few ways.  So, how was your web server installed?  RPM?  Source?  How 
was it configured?  Does it support apxs?

-- 
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] error with PHP MySQL extension

2004-06-22 Thread John Nichel
Nguyen, Long P (Mission Systems) wrote:
This is where I am stuck at with this DRES installation, it's complaining about the 
mysql extension.  I tried ./configure --with-mysql=/usr/local/mysql; make; make 
install and still the same error:

Checking PHP configuration settings
PHP version... success [4.2.2]
DOMXML extension... success [2.4.23]
MySQL extension failure [required-extension not installed] 

recompile your PHP installation with --with-mysql option 


You need to find out how php was originally installed on your system, 
and how your web server (Apache?) was installed.  Depending on how your 
web server was installed, you will need to (re)install php in one of a 
few ways.  So, how was your web server installed?  RPM?  Source?  How 
was it configured?  Does it support apxs?

--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] error with PHP MySQL extension

2004-06-22 Thread Nguyen, Long P (Mission Systems)
This is where I am stuck at with this DRES installation, it's complaining about the 
mysql extension.  I tried ./configure --with-mysql=/usr/local/mysql; make; make 
install and still the same error:


Checking PHP configuration settings

PHP version... success [4.2.2]
DOMXML extension... success [2.4.23]
MySQL extension failure [required-extension not installed] 

recompile your PHP installation with --with-mysql option 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] error with php and pdflib

2002-09-22 Thread Thoenen, Peter Mr. EPS

Hello everybody,

Getting the following error when trying to generate a pdf file.

Fatal error: PDFlib error: function 'PDF_set_info' must not be called in
'object' scope in E:\php\pdf.php on line 6

>From what I can tell (google and php manual online) this error is caused
when your webserver (IIS 5 in this case) doesn't have write permissions to
the directory.

This is NOT the case here as far as I can tell.  Other scripts I run write
just fine and as seen in the below code, 'abc.txt' is written with no
problems before the script dies with the above error.

Any ideas?

-Peter

finished";
?>

##
Peter Thoenen - Systems Programmer
Commercial Communications
Camp Bondsteel, Kosovo
##

"Stumbled Upon"...heh (Score:5, Funny) /.
by $carab on 23:00 23 August 2002 (#4131637)

"ForensicTec officials said they stumbled upon the military networks about
two months ago, while checking on network security for a private-sector
client."

Someone new to a Dvorak probably tried to type in "lynx
http://www.google.com"; but instead got "nmap -v -p 1-1024 -sS -P0 army.mil
-T paranoid".

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] error with php 4.1

2001-12-11 Thread Jan Grafström

Hi!
My webhost has just updated to PHP 4.1 and now this loggin script does not
work.
 I get "page can´t be found..."
---
if ( (!isset($PHP_AUTH_USER)) || ! (($PHP_AUTH_USER == $st_LOGIN) &&
($PHP_AUTH_PW == "$st_PASSWORD" )) )
{
  header("WWW-Authenticate: Basic entrer=\"Admin Basta\"");
  header("HTTP/1.0 401 Unauthorized");
  echo "Access in-autorizado...";
  exit;
}
It worked well under PHP 4.04.
Anbody knows why?

Thanks in advance for any help.
Regards,
Jan


--
Jan Grafström
Lillemans Hus AB
Sweden
46 (0)611-60920
46 (0)70-6409073


-- 
PHP General 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]