|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 1 Jan 2004 03:45:05 -0000 Issue 2505
php-general-digest-help
lists.php.net
Date: Wed Dec 31 2003 - 21:45:05 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 1 Jan 2004 03:45:05 -0000 Issue 2505
Topics (messages 173541 through 173588):
How to compile unixiODBC with PHP and Apache???
173541 by: Scott Fletcher
Generating PDF
173542 by: Yann Larrivee
173543 by: Jyry Kuukkanen
173574 by: Evan Nemerson
Another Session Question
173544 by: Al
173549 by: Matt Matijevich
173563 by: Al
Rename generates level 2 warning but works
173545 by: Roger Spears
173547 by: Lowell Allen
173561 by: Roger Spears
173568 by: Lowell Allen
Re: PHP and MSSQL (and Access????)
173546 by: Raditha Dissanayake
173553 by: Hunter, Jess
Re: Help with PNG creation script
173548 by: Ashley M. Kirchner
4.2.2 doesn't have mysql_real_esacpe_string()
173550 by: Danny Anderson
missing java.so
173551 by: Brian V Bonini
173582 by: Raditha Dissanayake
173587 by: Brian V Bonini
Cannot send session cache limiter
173552 by: john.johnallsopp.co.uk
173559 by: john.johnallsopp.co.uk
173560 by: Vail, Warren
173564 by: john.johnallsopp.co.uk
173565 by: Brad Pauly
173566 by: Brad Pauly
173576 by: Vail, Warren
urlencoding.
173554 by: Chris W
173556 by: Matt Matijevich
173577 by: Chris W
173588 by: Tom Rogers
returning early from a function.
173555 by: Chris W
173557 by: Vail, Warren
173558 by: Matt Matijevich
Performance Issue (Bug ?)
173562 by: Jochen Boedeker
Email verification
173567 by: Cesar Aracena
173570 by: Brad Pauly
173571 by: Cesar Aracena
Export MySQL
173569 by: Sheawh
173572 by: Jay Blanchard
173573 by: Brad Pauly
173579 by: Alex
173581 by: Chris Shiflett
Singleton pattern question
173575 by: Hardik Doshi
173585 by: Raditha Dissanayake
pure PHP implementation of GNU diff/patch functionality
173578 by: Jeremy Johnstone
SOLVED: [PHP] Rename generates level 2 warning but works
173580 by: Roger Spears
PHP New Year
173583 by: Larry Brown
173584 by: Philip J. Newman
will not build shared library
173586 by: Brian V Bonini
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Hi!
I saw the example on how to configure and compile PHP with unixiODBC and
Apache but it only refer to PHP version 3. So, can someone give me a better
example with the latest PHP version somewhere?
Thanks,
FletchSOD
attached mail follows:
Hi i am trying to generate a PDF with PHP5 (latest cvs) and PDFLib 5.0.2
I have this very basic example that i took from php.net and saw the same
code on http://www.sitepoint.com/article/1225/1
<?php
$pdf = pdf_new();
pdf_open_file($pdf, "philosophy.pdf");
pdf_begin_page($pdf, 595, 842);
$arial = pdf_findfont($pdf, "Arial", "host", 1);
pdf_setfont($pdf, $arial, 10);
pdf_show_xy($pdf, "There are more things in heaven and earth, Horatio,",
50, 750);
pdf_end_page($pdf);
pdf_close($pdf);
?>
But the function pdf_begin_page always return this error messsage.
Fatal error: PDFlib error [2100] PDF_begin_page: Function must not be
called in 'object' scope in
/home/yann/public_html/test/pdf/OrderPdf.class on line 4
To me this example seems right, and the function calls seems alright
according to the docummentation.
Anybody else have seen this probleme befor ?
Thanks
Yann
attached mail follows:
The code looks pritty much fine to me.
Have you tested your piece of code with PHP 4.x?
--jq
On Wed, 31 Dec 2003, Yann Larrivee wrote:
> Hi i am trying to generate a PDF with PHP5 (latest cvs) and PDFLib 5.0.2
>
> I have this very basic example that i took from php.net and saw the same
> code on http://www.sitepoint.com/article/1225/1
>
> <?php
> $pdf = pdf_new();
> pdf_open_file($pdf, "philosophy.pdf");
> pdf_begin_page($pdf, 595, 842);
> $arial = pdf_findfont($pdf, "Arial", "host", 1);
> pdf_setfont($pdf, $arial, 10);
> pdf_show_xy($pdf, "There are more things in heaven and earth, Horatio,",
> 50, 750);
> pdf_end_page($pdf);
> pdf_close($pdf);
> ?>
>
> But the function pdf_begin_page always return this error messsage.
>
>
> Fatal error: PDFlib error [2100] PDF_begin_page: Function must not be
> called in 'object' scope in
> /home/yann/public_html/test/pdf/OrderPdf.class on line 4
>
>
> To me this example seems right, and the function calls seems alright
> according to the docummentation.
>
>
> Anybody else have seen this probleme befor ?
>
>
> Thanks
>
> Yann
>
>
--
--Jyry
C|:-( C|:-/ C|========8-O C|8-/ C|:-(
attached mail follows:
On Wednesday 31 December 2003 09:29 am, Yann Larrivee wrote:
> Hi i am trying to generate a PDF with PHP5 (latest cvs) and PDFLib 5.0.2
>
> I have this very basic example that i took from php.net and saw the same
> code on http://www.sitepoint.com/article/1225/1
>
> <?php
> $pdf = pdf_new();
> pdf_open_file($pdf, "philosophy.pdf");
> pdf_begin_page($pdf, 595, 842);
> $arial = pdf_findfont($pdf, "Arial", "host", 1);
> pdf_setfont($pdf, $arial, 10);
> pdf_show_xy($pdf, "There are more things in heaven and earth, Horatio,",
> 50, 750);
> pdf_end_page($pdf);
> pdf_close($pdf);
> ?>
>
> But the function pdf_begin_page always return this error messsage.
>
>
> Fatal error: PDFlib error [2100] PDF_begin_page: Function must not be
> called in 'object' scope in
> /home/yann/public_html/test/pdf/OrderPdf.class on line 4
>
Do you have permissions to write to/create philosophy.pdf? Does pdf_begin_page
return TRUE or FALSE? What happens when you use "" for filename (ie create
the file in memory)?
>
> To me this example seems right, and the function calls seems alright
> according to the docummentation.
>
>
> Anybody else have seen this probleme befor ?
>
>
> Thanks
>
> Yann
--
Evan Nemerson
evan
coeus-group.com
http://coeusgroup.com/en
--
"He who fights too long against dragons becomes a dragon himself; and if you
gaze too long into the abyss, the abyss will gaze into you."
-Nietzche
attached mail follows:
There is a little code that worked before my virtual host before they
updated to 4.3.1.
First time the function is called session should be set, subsequent
calls should be skipped.
session_start();
if($_SESSION['counter_file'] !==$counterFile) //See if
visitor has already been counted for this page
{$num += 1;
$_SESSION['counter_file'] = $counterFile;
}
echo $_SESSION['counterFile'] . ' testxxxxxxxxx ' . $counterFile;
$_SESSION['counterFile'] shows nothing, even the first time through
$counterFile shows just fine.
Al..........
attached mail follows:
[snip]
session_start();
if($_SESSION['counter_file'] !==$counterFile) //See if
visitor has already been counted for this page
{$num += 1;
$_SESSION['counter_file'] = $counterFile;
}
echo $_SESSION['counterFile'] . ' testxxxxxxxxx ' . $counterFile;
[/snip]
might just be a typeo but do you mean: echo $_SESSION['counter_file'] .
' testxxxxxxxxx ' . $counterFile;
instead of this: echo $_SESSION['counterFile'] . ' testxxxxxxxxx ' .
$counterFile;
?
attached mail follows:
Your'e right, that's a typo.
If I put a
echo $_SESSION['counter_file'] .
' testxxxxxxxxx ' . $counterFile;
Before and after the conditional, $_SESSION['counter_file'] is set after the conditional, as it should be. But, it is gone from the before echo when the function is recalled.
The Session buffer looses the value.
session_start() is called again before returning to the function; but, I thought repeated session_starts() were ignored and thus should not restart the session.
I use the session buffer extensively in other places without any problem.
Matt Matijevich wrote:
>[snip]
>session_start();
>
> if($_SESSION['counter_file'] !==$counterFile) //See if
>visitor has already been counted for this page
> {$num += 1;
> $_SESSION['counter_file'] = $counterFile;
> }
>
>echo $_SESSION['counterFile'] . ' testxxxxxxxxx ' . $counterFile;
>[/snip]
>
>might just be a typeo but do you mean: echo $_SESSION['counter_file'] .
>' testxxxxxxxxx ' . $counterFile;
>instead of this: echo $_SESSION['counterFile'] . ' testxxxxxxxxx ' .
>$counterFile;
>?
>
>
attached mail follows:
Hello,
I have this magical script which uses rename. A visitor to the site
uploads a file and I want to rename it to a timestamp. Oddly enough,
the rename() function actually works, it renames the file AND then
generates a level 2 warning:
Error code: 2
Error message: rename() failed (No such file or directory)
Why does it work AND create a warning?
Here's the snippet of code:
$rename = time();
$old_name = $_FILES['uploadedFile']['name'];
$read_extension = explode(".", $old_name);
$ext = $read_extension[1];
$new_name = $rename.".".$ext;
rename($old_name, $new_name);
I know I can suppress the the warning with
, but I'm more interested in
WHY this warning gets generated. I'm using PHP 4.2.2 on a Linux box.
Any hints or suggestions are greatly appreciated...
Thanks,
Roger
attached mail follows:
> I have this magical script which uses rename. A visitor to the site
> uploads a file and I want to rename it to a timestamp. Oddly enough,
> the rename() function actually works, it renames the file AND then
> generates a level 2 warning:
>
> Error code: 2
> Error message: rename() failed (No such file or directory)
>
> Why does it work AND create a warning?
>
> Here's the snippet of code:
> $rename = time();
> $old_name = $_FILES['uploadedFile']['name'];
> $read_extension = explode(".", $old_name);
> $ext = $read_extension[1];
> $new_name = $rename.".".$ext;
> rename($old_name, $new_name);
>
> I know I can suppress the the warning with
, but I'm more interested in
> WHY this warning gets generated. I'm using PHP 4.2.2 on a Linux box.
> Any hints or suggestions are greatly appreciated...
Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch
of time yesterday with an upload script that did not recognize files when
using "$_FILES", but worked fine with "$HTTP_POST_FILES" -- PHP 4.3.4 on
Linux.
--
Lowell Allen
attached mail follows:
Lowell Allen wrote:
>
>Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch
>of time yesterday with an upload script that did not recognize files when
>using "$_FILES", but worked fine with "$HTTP_POST_FILES" -- PHP 4.3.4 on
>Linux.
>
Thank you for the suggestion. Unfortunately, it didn't resolve the
issue. Still getting the warning AND the rename function works. Odd
indeed...
Thanks,
Roger
attached mail follows:
> Lowell Allen wrote:
>
>>
>> Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch
>> of time yesterday with an upload script that did not recognize files when
>> using "$_FILES", but worked fine with "$HTTP_POST_FILES" -- PHP 4.3.4 on
>> Linux.
>>
> Thank you for the suggestion. Unfortunately, it didn't resolve the
> issue. Still getting the warning AND the rename function works. Odd
> indeed...
>
> Thanks,
> Roger
>
OK, well how about this -- you said your code is:
$rename = time();
$old_name = $_FILES['uploadedFile']['name'];
$read_extension = explode(".", $old_name);
$ext = $read_extension[1];
$new_name = $rename.".".$ext;
rename($old_name, $new_name);
And your error message is "rename() failed (No such file or directory)", but
isn't $_FILES['uploadedFile']['name'] the original file name before
uploading, whereas $_FILES['uploadedFile']['tmp_name'] is where the file was
uploaded to on the server. So the first is just a name, and the second is
the file location.
Also, you're defining what $new_name is before you even use rename(), so
even if rename() fails, you've set the desired value for $new_name. But what
you have not done is actually move the uploaded file. If it's being uploaded
to /tmp, it will be deleted when your script ends.
So, I think you need to pass rename parameters that are file locations.
HTH
--
Lowell Allen
attached mail follows:
This is a php group.
However why do you want to spend so much money when mysql is free and so
much better?
DragonEye WebDesign wrote:
>hi,
>
>I have been learning PHP and MySQL from a book that I have bought. I am
>really pleased with the way these 2 systems work, but I was wondering if
>MSSQL wouldn't be easier to use, more specifically I was wondering wether I
>could make an Access Database and connect it to my php website using MSSQL.
>
>I heard it would be possible
>
>And now I ask the experts... :-)
>
>grtz
>
>DragonEye
>
>
>
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
attached mail follows:
Well, with using the MyODBC drivers you could create and maintain a MySQL
database through MsAccess.
That way you could have the best of all worlds (please don't flame me for
saying that). Using MySQL as the database backend, PHP for a web front end
and MsAccess as an administrative GUI for your use.
Just my 2 cents here
Jess
> -----Original Message-----
> From: Raditha Dissanayake [SMTP:jabber
raditha.com]
> Sent: Wednesday, December 31, 2003 9:42 AM
> To: DragonEye WebDesign
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] PHP and MSSQL (and Access????)
>
> This is a php group.
>
> However why do you want to spend so much money when mysql is free and so
> much better?
>
> DragonEye WebDesign wrote:
>
> >hi,
> >
> >I have been learning PHP and MySQL from a book that I have bought. I am
> >really pleased with the way these 2 systems work, but I was wondering if
> >MSSQL wouldn't be easier to use, more specifically I was wondering wether
> I
> >could make an Access Database and connect it to my php website using
> MSSQL.
> >
> >I heard it would be possible
> >
> >And now I ask the experts... :-)
> >
> >grtz
> >
> >DragonEye
> >
> >
> >
>
>
> --
> Raditha Dissanayake.
> ------------------------------------------------------------------------
> http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
> Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> Graphical User Inteface. Just 150 KB | with progress bar.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.556 / Virus Database: 348 - Release Date: 12/26/03
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.556 / Virus Database: 348 - Release Date: 12/26/03
attached mail follows:
Marcus Wendt wrote:
>I'd definitivly suggest you NOT to use this database-pointer approach!
>
Any particular reason you'd not use a database to hold pointers,
which might become helpful later on when it comes to searching for
"expired" headers to be deleted (as opposed to searching the physical
disk for headers that are n+days old)?
>Instead of simply sending that .png-header once
>you could store the image in a physical file by using an unique ID based
>on the functions arguments.
>Later on just check if a file with this ID exists and return its URL
>instead of calling that function again.
>
This is what I want to do.
>I have recently written such a script (to be used as smarty-plugin) tell
>me if you want to have a look at it.
>
>
If you don't mind, I'd appreciate it.
--
W | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley
pcraft.com> . 303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
attached mail follows:
Hola, PHP folk!
I am learning about PHP from a book (MySQL/PHP Database Applications).
I have been following the examples in the book, modifying them to suit
my purpose and experiment, etc.
I am using an old work machine my webserver. I did a Redhat 9 install,
adding MySQL version 4. The 'stock' Redhat installation of PHP was
version 4.2.2. Having this older version had presented no problems
until now. The example I am currently working on uses a function
mysql_real_escape_string(), which is only in php 4.3.0 and higher. An
example of the how the function is used:
[code]
$query = sprintf($query
, mysql_real_escape_string($name)
, mysql_real_escape_string($location)
, mysql_real_escape_string($email)
, mysql_real_escape_string($url)
, mysql_real_escape_string($comments)
, mysql_real_escape_string($_SERVER['REMOTE_ADDR'])
);
safe_mysql_query($query);
[/code]
I am looking for recommendations on what I should do. I can upgrade to
the latest version of PHP if need be, though I am not particulary eager
to do so, since everything else has been playing nice with each other.
The lazy person inside of me is looking for a painless answer, something
along the lines of "just use mysql_foo() instead, it does the same
thing as that function that isn't in 4.2.2"
Thanks,
Danny
attached mail follows:
Compiling PHP (CLI) with java on mdk9.1 and java.so is simply not there.
What am I missing?
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/lib/php/extensions/java.so' - /usr/lib/php/extensions/java.so:
cannot open shared object file: No such file or directory in Unknown on
line 0
[root
home etc]# locate java.so
/usr/lib/libkjava.so.1
/usr/lib/libkjava.so.1.0.0
/usr/java/j2re1.4.2_02/lib/i386/libjava.so
/usr/java/j2sdk1.4.2_03/jre/lib/i386/libjava.so
[root
home etc]# locate libphp_java.so
[root
home etc]# cat /usr/src/php-4.3.4/phpconfig.txt
./configure
--prefix=/usr
--libdir=/usr/lib
--enable-shared
--disable-static
--enable-debug
--with-config-file-path=/etc
--with-config-file-scan-dir=/etc/php
--with-pear=/usr/share/pear
--enable-magic-quotes
--enable-debugger
--enable-track-vars
--with-exec-dir=/usr/bin
--with-versioning
--with-mod_charset
--with-regex=php
--enable-track-vars
--enable-trans-sid
--enable-safe-mode
--enable-ctype
--enable-ftp
--with-gettext=/usr
--enable-posix
--enable-session
--enable-sysvsem
--enable-sysvshm
--with-openssl=/usr
--without-kerberos
--with-ttf
--with-freetype-dir=/usr
--with-zlib=/usr
--with-zlib-dir=/usr
--with-java=/usr/java/j2sdk1.4.2_03
--disable-cgi
--
Brian GnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQA/8wCFLDUBEASk8NwRApoaAJ43ys2mEh8C/2Yf/hbZc6TRA6+KzwCdE3ht
Nh8iQWOMcRbSZqsr4SJwfFw=
=WZiX
-----END PGP SIGNATURE-----
attached mail follows:
There was an alternative approach posted yesterday.
Brian V Bonini wrote:
>Compiling PHP (CLI) with java on mdk9.1 and java.so is simply not there.
>What am I missing?
>
>PHP Warning: Unknown(): Unable to load dynamic library
>'/usr/lib/php/extensions/java.so' - /usr/lib/php/extensions/java.so:
>cannot open shared object file: No such file or directory in Unknown on
>line 0
>
>[root
home etc]# locate java.so
>/usr/lib/libkjava.so.1
>/usr/lib/libkjava.so.1.0.0
>/usr/java/j2re1.4.2_02/lib/i386/libjava.so
>/usr/java/j2sdk1.4.2_03/jre/lib/i386/libjava.so
>
>[root
home etc]# locate libphp_java.so
>
>[root
home etc]# cat /usr/src/php-4.3.4/phpconfig.txt
>./configure
>--prefix=/usr
>--libdir=/usr/lib
>--enable-shared
>--disable-static
>--enable-debug
>--with-config-file-path=/etc
>--with-config-file-scan-dir=/etc/php
>--with-pear=/usr/share/pear
>--enable-magic-quotes
>--enable-debugger
>--enable-track-vars
>--with-exec-dir=/usr/bin
>--with-versioning
>--with-mod_charset
>--with-regex=php
>--enable-track-vars
>--enable-trans-sid
>--enable-safe-mode
>--enable-ctype
>--enable-ftp
>--with-gettext=/usr
>--enable-posix
>--enable-session
>--enable-sysvsem
>--enable-sysvshm
>--with-openssl=/usr
>--without-kerberos
>--with-ttf
>--with-freetype-dir=/usr
>--with-zlib=/usr
>--with-zlib-dir=/usr
>--with-java=/usr/java/j2sdk1.4.2_03
>--disable-cgi
>
>
>
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
attached mail follows:
On Wed, 2003-12-31 at 19:49, Raditha Dissanayake wrote:
> There was an alternative approach posted yesterday.
I saw it. Still need to have a java sdk and a shared library.
>
> Brian V Bonini wrote:
>
> >Compiling PHP (CLI) with java on mdk9.1 and java.so is simply not there.
> >What am I missing?
> >
> >PHP Warning: Unknown(): Unable to load dynamic library
> >'/usr/lib/php/extensions/java.so' - /usr/lib/php/extensions/java.so:
> >cannot open shared object file: No such file or directory in Unknown on
> >line 0
> >
> >[root
home etc]# locate java.so
> >/usr/lib/libkjava.so.1
> >/usr/lib/libkjava.so.1.0.0
> >/usr/java/j2re1.4.2_02/lib/i386/libjava.so
> >/usr/java/j2sdk1.4.2_03/jre/lib/i386/libjava.so
> >
> >[root
home etc]# locate libphp_java.so
> >
> >[root
home etc]# cat /usr/src/php-4.3.4/phpconfig.txt
> >./configure
> >--prefix=/usr
> >--libdir=/usr/lib
> >--enable-shared
> >--disable-static
> >--enable-debug
> >--with-config-file-path=/etc
> >--with-config-file-scan-dir=/etc/php
> >--with-pear=/usr/share/pear
> >--enable-magic-quotes
> >--enable-debugger
> >--enable-track-vars
> >--with-exec-dir=/usr/bin
> >--with-versioning
> >--with-mod_charset
> >--with-regex=php
> >--enable-track-vars
> >--enable-trans-sid
> >--enable-safe-mode
> >--enable-ctype
> >--enable-ftp
> >--with-gettext=/usr
> >--enable-posix
> >--enable-session
> >--enable-sysvsem
> >--enable-sysvshm
> >--with-openssl=/usr
> >--without-kerberos
> >--with-ttf
> >--with-freetype-dir=/usr
> >--with-zlib=/usr
> >--with-zlib-dir=/usr
> >--with-java=/usr/java/j2sdk1.4.2_03
> >--disable-cgi
> >
> >
> >
--
Brian GnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQA/83dfLDUBEASk8NwRArC6AJ9h1JfcxdrunYY1i95Ks8nK6aCSgQCdHjBV
K2Ax3adDeDbKD3jUxx6me04=
=ueW9
-----END PGP SIGNATURE-----
attached mail follows:
Hi
I'm new to the list, but I've been PHP programming for almost 2 years now,
hard to believe.
Anyway, I have a program that's giving me a "Cannot send session cache
limiter", yet the very first thing the program does is session_start();
The only thing I can think that's different about this program to others
is that it calls itself. For instance, it outputs a form, the user hits
'submit' and the form action is the same prog .. there are two or three
stages handled like this. I think that's pretty standard, right?
The error only occurs second time around, not when I arrive at the program
from another.
It feels like something at the back end is saying "well, your next program
is the same as your current one, so I won't bother resetting anything",
leading to the error when session_start(); is called the second time
around .. as if I'd issued session_start() halfway through a program.
I'd look it up, but, err, what under? Can anyone shed some light?
Cheers
J
attached mail follows:
Hi
(apologies if you've seen this, but I sent it and it both came back from
the list server, and it bounced back as a failed email, so I'm going to
try again)
I'm new to the list, but I've been PHP programming for almost 2 years
now, hard to believe.
Anyway, I have a program that's giving me a "Cannot send session cache
limiter", yet the very first thing the program does is session_start();
The only thing I can think that's different about this program to others
is that it calls itself. For instance, it outputs a form, the user hits
'submit' and the form action is the same prog .. there are two or three
stages handled like this. I think that's pretty standard, right?
The error only occurs second time around, not when I arrive at the
program from another.
It feels like something at the back end is saying "well, your next
program is the same as your current one, so I won't bother resetting
anything", leading to the error when session_start(); is called the
second time around .. as if I'd issued session_start() halfway through a
program.
I'd look it up, but, err, what under? Can anyone shed some light?
Cheers
J
attached mail follows:
have you placed echo's on both sides of the session_start to make sure that
is where your error message is coming from;
echo "point 1<br>";
session_start();
echo "point 2<br>";
I am assuming that your send entry is in via the <form action="url">
Is there any thing different about that URL like appended get parameters as
in
url?parm=value&parm2=value2
perhaps you could show some code snippets.
Warren Vail
-----Original Message-----
From: john
johnallsopp.co.uk [mailto:john
johnallsopp.co.uk]
Sent: Wednesday, December 31, 2003 10:00 AM
To: php-general
lists.php.net
Subject: [PHP] Cannot send session cache limiter
Hi
(apologies if you've seen this, but I sent it and it both came back from
the list server, and it bounced back as a failed email, so I'm going to
try again)
I'm new to the list, but I've been PHP programming for almost 2 years
now, hard to believe.
Anyway, I have a program that's giving me a "Cannot send session cache
limiter", yet the very first thing the program does is session_start();
The only thing I can think that's different about this program to others
is that it calls itself. For instance, it outputs a form, the user hits
'submit' and the form action is the same prog .. there are two or three
stages handled like this. I think that's pretty standard, right?
The error only occurs second time around, not when I arrive at the
program from another.
It feels like something at the back end is saying "well, your next
program is the same as your current one, so I won't bother resetting
anything", leading to the error when session_start(); is called the
second time around .. as if I'd issued session_start() halfway through a
program.
I'd look it up, but, err, what under? Can anyone shed some light?
Cheers
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> perhaps you could show some code snippets.
Thanks Warren, at least I know my message is getting through :-)
Well, I just got this:
Warning: Cannot send session cookie - headers already sent by (output
started at /home/sites/site191/web/test2/changeAlertDetails3.php4:1) in
/home/sites/site191/web/test2/navigationStart3.php4 on line 4
Warning: Cannot send session cache limiter - headers already sent (output
started at /home/sites/site191/web/test2/changeAlertDetails3.php4:1) in
/home/sites/site191/web/test2/navigationStart3.php4 on line 4
Just after session_start()
from the code:
<?php
include 'navigationStart3.php4';
where the first lines of navigationStart3.php4 are:
<?php
// session management stuff
// creates a session or resumes one based on current session id that's
being passed through get, post or cookie.
session_start();
echo ("<p>Just after session_start()</p>");
And that was on first running of a test program with lots of other stuff
stripped out. So it's no longer about the 'second and subsequent times
around', it seems to happen first time too. I'm closing IE6 each time, and
I've 'removed cookies' too.
I think my head's full, so I'm going to leave it now, but I'll be back to
work on it at the weekend. Any clues would be appreciated.
Happy new year,
J
attached mail follows:
On Wed, 2003-12-31 at 10:59, john
johnallsopp.co.uk wrote:
> Hi
>
> (apologies if you've seen this, but I sent it and it both came back from
> the list server, and it bounced back as a failed email, so I'm going to
> try again)
>
> I'm new to the list, but I've been PHP programming for almost 2 years
> now, hard to believe.
>
> Anyway, I have a program that's giving me a "Cannot send session cache
> limiter", yet the very first thing the program does is session_start();
>
> The only thing I can think that's different about this program to others
> is that it calls itself. For instance, it outputs a form, the user hits
> 'submit' and the form action is the same prog .. there are two or three
> stages handled like this. I think that's pretty standard, right?
>
> The error only occurs second time around, not when I arrive at the
> program from another.
>
> It feels like something at the back end is saying "well, your next
> program is the same as your current one, so I won't bother resetting
> anything", leading to the error when session_start(); is called the
> second time around .. as if I'd issued session_start() halfway through a
> program.
>
> I'd look it up, but, err, what under? Can anyone shed some light?
What is the exact error message? It usually tells you where the guilty
line is.
- Brad
attached mail follows:
On Wed, 2003-12-31 at 11:24, john
johnallsopp.co.uk wrote:
> > perhaps you could show some code snippets.
>
> Thanks Warren, at least I know my message is getting through :-)
>
> Well, I just got this:
>
> Warning: Cannot send session cookie - headers already sent by (output
> started at /home/sites/site191/web/test2/changeAlertDetails3.php4:1) in
> /home/sites/site191/web/test2/navigationStart3.php4 on line 4
>
> Warning: Cannot send session cache limiter - headers already sent (output
> started at /home/sites/site191/web/test2/changeAlertDetails3.php4:1) in
> /home/sites/site191/web/test2/navigationStart3.php4 on line 4
>
> Just after session_start()
>
>
> from the code:
>
> <?php
> include 'navigationStart3.php4';
Are these indents in the code (changeAlertDetails3.php4 I think)? You
can't have anything before the <?php.
- Brad
attached mail follows:
OK, I have seen some of these messages before, now to figure out how you are
triggering them. Some of these suggestions may be specific to previous
releases of PHP and may no longer apply but here goes;
1. Make sure you have no stray or blank characters in your PHP file prior
to the "<?php" tag. Any characters found outside the tags are sent to the
browser and may be causing PHP to give you the message that it can't send
headers, since it's already sent those characters.
2. The message may actually be startup logic of PHP, and you need to do an
echo before the session_start(), to see if the error message is before your
echo. You may also notice that the echo will actually trigger the message.
3. Are you using any session_handler routines (say to store your session
data in a database). Sometimes those routines can generate output before
the cookies have been sent.
4. Curious about your error message which cites your url as "xxxxx.php4:1",
don't think I've ever seen the ":1" notation before. If that :1 is a line
number reference as to where output was started, it could mean that the
first line of that file contains your offending characters (see #1 above).
hope this helps,
Warren Vail
-----Original Message-----
From: john
johnallsopp.co.uk [mailto:john
johnallsopp.co.uk]
Sent: Wednesday, December 31, 2003 10:25 AM
To: Vail, Warren; php-general
lists.php.net
Subject: RE: [PHP] Cannot send session cache limiter
> perhaps you could show some code snippets.
Thanks Warren, at least I know my message is getting through :-)
Well, I just got this:
Warning: Cannot send session cookie - headers already sent by (output
started at /home/sites/site191/web/test2/changeAlertDetails3.php4:1) in
/home/sites/site191/web/test2/navigationStart3.php4 on line 4
Warning: Cannot send session cache limiter - headers already sent (output
started at /home/sites/site191/web/test2/changeAlertDetails3.php4:1) in
/home/sites/site191/web/test2/navigationStart3.php4 on line 4
Just after session_start()
from the code:
<?php
include 'navigationStart3.php4';
where the first lines of navigationStart3.php4 are:
<?php
// session management stuff
// creates a session or resumes one based on current session id that's
being passed through get, post or cookie.
session_start();
echo ("<p>Just after session_start()</p>");
And that was on first running of a test program with lots of other stuff
stripped out. So it's no longer about the 'second and subsequent times
around', it seems to happen first time too. I'm closing IE6 each time, and
I've 'removed cookies' too.
I think my head's full, so I'm going to leave it now, but I'll be back to
work on it at the weekend. Any clues would be appreciated.
Happy new year,
J
attached mail follows:
Let me give a quick background. I am a very experienced programmer but
I haven't done much php and only a little web development in perl. I am
now creating a web site with Apache, php and MySQL.
I am having the user fill out a form and then save the data in MySQL.
Before I save the data I do a few checks and if there is a problem I do
a redirect back to the form and send all the data back so they don't
have to fill out the whole form again. Here is some sample code I use
to build my redirect url....
$UserID = $_POST['UserID'];
$Password1 = $_POST['Password1'];
$Password2 = $_POST['Password2'];
$Email = $_POST['Email'];
$FName = $_POST['FName'];
$LName = $_POST['LName'];
do checking of data here.
if(there is a problem with the data){
$ErrorMsg = "some error";
$redirectStr = "$httpHost/CreateAccount.php?";
$redirectStr .= "UserID=" . urlencode(stripslashes($UserID));
$redirectStr .= "&Password=" . urlencode(stripslashes($Password));
$redirectStr .= "&Email=" . urlencode(stripslashes($Email));
$redirectStr .= "&FName=" . urlencode(stripslashes($FName));
$redirectStr .= "&LName=" . urlencode(stripslashes($LName));
$redirectStr .= "&ErrorMsg=" . urlencode($ErrorMsg);
header("Location: $redirectStr");
exit;
}
My problem is that any field that contains a double quote, all data
after the first double quote is missing from the form field. When I
look at the long URL I do see a %22 where the " are supposed to be, and
all other data is there too.
Any Ideas? If there is a better way to do this feel free to suggest a
change in my whole method here. Just as a note validation of the UserID
has to be done on the server side, to check for duplicates in the MySQL db.
I would also welcome insight on standard techniques to make sure the
user isn't trying to break the code by sending bogus data. I am already
checking that the data isn't longer than I am expecting.
Chris W
attached mail follows:
[snip]
My problem is that any field that contains a double quote, all data
after the first double quote is missing from the form field. When I
look at the long URL I do see a %22 where the " are supposed to be, and
all other data is there too.
[/snip]
Take a look at the html source. What is printed out in the form field
in the source?
I think you might want to take a look at sessions so you dont have to
pass all the info back to the page in the url http://www.php.net/session
attached mail follows:
I don't know why I didn't look at the html source before I posted that
question. The source looks like this
VALUE=""jhgfhjf""
which tells why the field is showing blank. So now the question is what
to do about it. I guess htmlspecialchars will take care of that?
Thanks for hint on sessions, I have a feeling that is exactly what I
want to use for this type of thing.
Matt Matijevich wrote:
> [snip]
> My problem is that any field that contains a double quote, all data
> after the first double quote is missing from the form field. When I
> look at the long URL I do see a %22 where the " are supposed to be, and
>
> all other data is there too.
> [/snip]
>
> Take a look at the html source. What is printed out in the form field
> in the source?
>
> I think you might want to take a look at sessions so you dont have to
> pass all the info back to the page in the url http://www.php.net/session
>
attached mail follows:
Hi,
Tuesday, December 30, 2003, 3:02:24 AM, you wrote:
CW> Let me give a quick background. I am a very experienced programmer but
CW> I haven't done much php and only a little web development in perl. I am
CW> now creating a web site with Apache, php and MySQL.
CW> I am having the user fill out a form and then save the data in MySQL.
CW> Before I save the data I do a few checks and if there is a problem I do
CW> a redirect back to the form and send all the data back so they don't
CW> have to fill out the whole form again. Here is some sample code I use
CW> to build my redirect url....
CW> $UserID = $_POST['UserID'];
CW> $Password1 = $_POST['Password1'];
CW> $Password2 = $_POST['Password2'];
CW> $Email = $_POST['Email'];
CW> $FName = $_POST['FName'];
CW> $LName = $_POST['LName'];
CW> do checking of data here.
CW> if(there is a problem with the data){
CW> $ErrorMsg = "some error";
CW> $redirectStr = "$httpHost/CreateAccount.php?";
CW> $redirectStr .= "UserID=" . urlencode(stripslashes($UserID));
CW> $redirectStr .= "&Password=" .
CW> urlencode(stripslashes($Password));
CW> $redirectStr .= "&Email=" . urlencode(stripslashes($Email));
CW> $redirectStr .= "&FName=" . urlencode(stripslashes($FName));
CW> $redirectStr .= "&LName=" . urlencode(stripslashes($LName));
CW> $redirectStr .= "&ErrorMsg=" . urlencode($ErrorMsg);
CW> header("Location: $redirectStr");
CW> exit;
CW> }
CW> My problem is that any field that contains a double quote, all data
CW> after the first double quote is missing from the form field. When I
CW> look at the long URL I do see a %22 where the " are supposed to be, and
CW> all other data is there too.
CW> Any Ideas? If there is a better way to do this feel free to suggest a
CW> change in my whole method here. Just as a note validation of the UserID
CW> has to be done on the server side, to check for duplicates in the MySQL db.
CW> I would also welcome insight on standard techniques to make sure the
CW> user isn't trying to break the code by sending bogus data. I am already
CW> checking that the data isn't longer than I am expecting.
CW> Chris W
Build the query string then url encode the whole thing in one go and then
add it after the ?
So I would do like this:
$ErrorMsg = "some error";
$redirectStr = "$httpHost/CreateAccount.php?";
$query_string = 'UserID='.$UserID;
$query_string .= '&Password=.stripslashes($Password);
$query_string .= '&Email=.stripslashes($Email);
$query_string .= '&FName='.stripslashes($FName);
$query_string .= '&LName='.stripslashes($LName);
$query_string .= '&ErrorMsg='.$ErrorMsg;
$redirectStr .= urlencode($query_string);
header("Location: $redirectStr");
--
regards,
Tom
attached mail follows:
I have a function that does several tests and if any are true it needs
to return false but I get an error about unexpected return for all
returns except for the last one.
function test($s)
{
if($s = 'this') return false;
if($s = 'that') return false;
return true;
}
any ideas on how to make this work or why it doesn't work?
Chris W
attached mail follows:
Try;
if($s == 'this') return false;
A
*----------------- single = is an assignment.
Warren Vail
-----Original Message-----
From: Chris W [mailto:1qazse4
cox.net]
Sent: Monday, December 29, 2003 9:07 AM
To: php-general
lists.php.net
Subject: [PHP] returning early from a function.
I have a function that does several tests and if any are true it needs
to return false but I get an error about unexpected return for all
returns except for the last one.
function test($s)
{
if($s = 'this') return false;
if($s = 'that') return false;
return true;
}
any ideas on how to make this work or why it doesn't work?
Chris W
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
[snip]
function test($s)
{
if($s = 'this') return false;
if($s = 'that') return false;
return true;
}
[/snip]
try this:
function test($s)
{
if($s == 'this') return false;
if($s == 'that') return false;
return true;
}
attached mail follows:
Hi,
I'm using a set of (self-written) scripts to do some db-interactions (eg.
reading recordsets from a DB2 (AS/400), converting
them and inserting them in a MySQL-DB). These scripts where written on my
office-workstation where they run very well.
When i put them on our intranet-server the script performance dropped to a
point where it was not even possible to import
all of the data because of the massive runtime (around 6-7 records/sec
compared to 400-500 on my workstation).
I did some research and stumbled across some benchmark-scripts written by
Sebastian Bergmann ( http://www.sebastian-bergmann.de/PHP_Benchmark/ ) which
i used to benchmark the two systems.
My office-workstation: AthlonXP 2400+ / 512 / 5400rpm HDD IDE / Win2k Pro /
PHP 4.3.4
Intranet Server: 2x 2.8GHz Xeon / 2048 / 5x 15.000rpm Raid5 / WinNT4
Server-SP6a / PHP 4.3.4
Nearly the same php.ini is used on both systems (except for error-reporting
and stuff like that).
One should expect to see all of the above tests run faster on the server.
That is true for all but one test:
No5 (Array Index Access) shows terrible results (~740.000 on my workstation
/ ~10.000 on the server). Even if I don't use
this type of access in my scripts I think it is the explanation for the
terrible performance.
I tried older versions of PHP and found the "bug"(?) existing since 4.1.0
No Apache was involved while the scripts where run (cmd-line).
Does anyone have an idea what might cause this type of problem ?
Greetings and a happy new year
Jochen Boedeker
attached mail follows:
Hi all,
I'm trying to create a script to check for errors in submitted forms. I want
the visitor to enter two times the email address and then check for it...
This is what I have so far. The scripts checks if the email was entered in
both fields, but not if they are equal to each other... ???
if (!trim($email1))
{
echo "<BR>El <B>E-mail</B> es requerido.";
$errors++;
if (!trim($email2))
{
echo "<BR>El <B>E-mail</B> es requerido en ambos campos.";
$errors++;
if ($email1 != $email2)
{
echo "<BR>Las <B>direcciones de E-mail</B> no concuerdan.";
$errors++;
}
}
}
What is wrong? Thanks in advanced and happy new year to all.
Cesar Aracena
attached mail follows:
On Wed, 2003-12-31 at 11:18, Cesar Aracena wrote:
> Hi all,
>
> I'm trying to create a script to check for errors in submitted forms. I want
> the visitor to enter two times the email address and then check for it...
> This is what I have so far. The scripts checks if the email was entered in
> both fields, but not if they are equal to each other... ???
>
> if (!trim($email1))
> {
> echo "<BR>El <B>E-mail</B> es requerido.";
> $errors++;
> if (!trim($email2))
> {
> echo "<BR>El <B>E-mail</B> es requerido en ambos campos.";
> $errors++;
> if ($email1 != $email2)
> {
> echo "<BR>Las <B>direcciones de E-mail</B> no concuerdan.";
> $errors++;
> }
> }
> }
>
> What is wrong? Thanks in advanced and happy new year to all.
The check to see if they are the same needs to be outside of the checks
for being blank. If they are both not blank, you will never get to the
last check. You could check for both in the first if, then do the
comparison. Something like (untested):
if (!trim($email1) || !trim($email2)) {
echo "<BR>El <B>E-mail</B> es requerido en ambos campos.";
$errors++;
} elseif ($email1 != $email2) {
echo "<BR>Las <B>direcciones de E-mail</B> no concuerdan.";
$errors++;
}
- Brad
attached mail follows:
Well Brad... it worked. Guess I forgot to use well the IF statements.
Thanks.
"Brad Pauly" <brad
robinsontech.com> escribió en el mensaje
news:1072895954.2848.146.camel
earth...
> On Wed, 2003-12-31 at 11:18, Cesar Aracena wrote:
> > Hi all,
> >
> > I'm trying to create a script to check for errors in submitted forms. I
want
> > the visitor to enter two times the email address and then check for
it...
> > This is what I have so far. The scripts checks if the email was entered
in
> > both fields, but not if they are equal to each other... ???
> >
> > if (!trim($email1))
> > {
> > echo "<BR>El <B>E-mail</B> es requerido.";
> > $errors++;
> > if (!trim($email2))
> > {
> > echo "<BR>El <B>E-mail</B> es requerido en ambos campos.";
> > $errors++;
> > if ($email1 != $email2)
> > {
> > echo "<BR>Las <B>direcciones de E-mail</B> no concuerdan.";
> > $errors++;
> > }
> > }
> > }
> >
> > What is wrong? Thanks in advanced and happy new year to all.
>
> The check to see if they are the same needs to be outside of the checks
> for being blank. If they are both not blank, you will never get to the
> last check. You could check for both in the first if, then do the
> comparison. Something like (untested):
>
> if (!trim($email1) || !trim($email2)) {
> echo "<BR>El <B>E-mail</B> es requerido en ambos campos.";
> $errors++;
> } elseif ($email1 != $email2) {
> echo "<BR>Las <B>direcciones de E-mail</B> no concuerdan.";
> $errors++;
> }
>
> - Brad
attached mail follows:
it may be a bit out of topic,
but can anyone teach me how to export a MySQL database?
attached mail follows:
[snip]
it may be a bit out of topic,
but can anyone teach me how to export a MySQL database?
[/snip]
Google? A search on the MySQL web site? http://www.mysql.net/mysqldump
attached mail follows:
On Wed, 2003-12-31 at 11:34, Sheawh wrote:
> it may be a bit out of topic,
> but can anyone teach me how to export a MySQL database?
If you mean in general, it is a bit OT, but check out mysqldump.
http://www.mysql.com/doc/en/mysqldump.html
If you mean with PHP, you could use the exec() command
(http://us2.php.net/exec) with something like this:
$dbname = 'mydb';
$password = 'secret';
$username = 'myusername';
$filename = '/path/to/file';
exec("mysqldump --opt $dbname -u $username --password='$password' >
$filename");
- Brad
attached mail follows:
Sheawh wrote:
> it may be a bit out of topic,
> but can anyone teach me how to export a MySQL database?
phpmyadmin does a very nice job of dumping a mySQL database. in
phpmyadmin, go to the database you want to dump and click on Export
(that's what it's called in 2.5.4 anyway)
attached mail follows:
--- Alex <anthron
anthron.com> wrote:
> Sheawh wrote:
> > it may be a bit out of topic,
> > but can anyone teach me how to export a MySQL database?
>
> phpmyadmin does a very nice job of dumping a mySQL database. in
> phpmyadmin, go to the database you want to dump and click on Export
> (that's what it's called in 2.5.4 anyway)
You can just use mysqldump; there's no need to install anything.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/
attached mail follows:
Hi Group,
Currently i am using the singleton design pattern in
one of my projects. I was under impression that by
using the singleton pattern i need to initialize
system configuration only one time (At the time of
login) but once i implemented the system, i came to
know that system initializes an instance on every
request of the webpage (On every request, singleton
class reads the system configuration and returns the
new instance).
Is that the normal nature of using the singleton
pattern in the web environment?
Please let me know.
Thanks
Hardik
__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003
attached mail follows:
Hi,.
Unfortunately in PHP this may be true, however in j2ee if you use the
singleton pattern the result would be what you expect.
happy new year.
Hardik Doshi wrote:
>Hi Group,
>
>Currently i am using the singleton design pattern in
>one of my projects. I was under impression that by
>using the singleton pattern i need to initialize
>system configuration only one time (At the time of
>login) but once i implemented the system, i came to
>know that system initializes an instance on every
>request of the webpage (On every request, singleton
>class reads the system configuration and returns the
>new instance).
>
>Is that the normal nature of using the singleton
>pattern in the web environment?
>
>Please let me know.
>
>Thanks
>Hardik
>
>__________________________________
>Do you Yahoo!?
>Find out what made the Top Yahoo! Searches of 2003
>http://search.yahoo.com/top2003
>
>
>
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
attached mail follows:
Has anyone ever seen a class which will allow most (if not all) the
functionality of the diff/patch unix tools purely in PHP? I am looking
for the ability to create a standard unified diff of the difference
between two files, and also the ability to take a diff and apply it to a
file. As mentioned previously, I am looking to do this purely in PHP
(and without any custom extensions). If anyone has any sources, I would
greatly appreciate it.
-Jeremy
attached mail follows:
Lowell Allen wrote
>So, I think you need to pass rename parameters that are file locations.
>
>HTH
>
>--
>Lowell Allen
>
>
Thank you!!!
I was not in tune to what was happening. You are correct. You must
pass file locations and not just file names....once I passed the
locations, the warning went away.
Thanks,
Roger
attached mail follows:
Happy New year all!
Looking forward to bigger better things this year.
Larry
attached mail follows:
yes HNY to you too
----- Original Message -----
From: "Larry Brown" <>
To: "PHP List" <php-general
lists.php.net>
Sent: Thursday, January 01, 2004 1:37 PM
Subject: [PHP] PHP New Year
> Happy New year all!
>
> Looking forward to bigger better things this year.
>
> Larry
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Any ideas why this would not build a shared library?
[root
home no-debug-non-zts-20020429]# pwd
/usr/lib/extensions/no-debug-non-zts-20020429
[root
home no-debug-non-zts-20020429]# ls -l
total 96
-rwxr-xr-x 1 root root 93000 Dec 31 20:03 libjava.a*
[root
home no-debug-non-zts-20020429]#
[root
home php-4.3.4]# cat phpconfig.txt
./configure
--prefix=/usr
--libdir=/usr/lib
--enable-shared
--disable-static
--disable-debug
--with-config-file-path=/etc
--with-pear=/usr/share/pear
--enable-magic-quotes
--enable-memory-limit
--enable-track-vars
--with-exec-dir=/usr/bin
--enable-versioning
--with-regex=php
--enable-track-vars
--enable-trans-sid
--enable-safe-mode
--enable-posix
--enable-sysvsem
--enable-sysvshm
--with-openssl=/usr
--without-kerberos
--with-ttf
--with-freetype-dir=/usr
--with-zlib=/usr
--with-zlib-dir=/usr
--with-mysql
--with-java=/usr/java/IBMJava2-141
--
Brian GnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQA/83SsLDUBEASk8NwRAhT8AJ0X3DVM1YOPSN6xpcDZFB9o+kaUcgCeMtS9
hCsNaGrIJpdSK9DsK/L+ZTQ=
=LzgV
-----END PGP SIGNATURE-----
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]