[PHP] [PHP4.1.2-APACHE1.3.24-WIN32]: using $_SESSION

2002-03-29 Thread John Mpaliza








  
  I'm using Apache-win-php4.1.3 and can't create session variables by 
  using session_start() and $_SESSION['...']. I'm new to php, please 
  help.
  Next week I tried php4.1.1 and all was working well. Now, I'm using 
  php4.1.2, as an Apache module and with 
  session.use_trans_sid=1,register_globals=off in php.ini, I can't 
  redirect a page to another and access the $_SESSION['variables'] defined 
  in the 1st document. All codes that were working correctly first now do 
  not.
  es. pageone.php
  ?php
   session_start();
   $_SESSION['var']="testsession";
   header( "Location: anotherpage.php?".SID);
   exit;
  ?
  -
  anotherpage.php
  
  ?php
   session_start();
   print $_SESSION['var'];
   ..
  ?
  N.B: I got a warning: undefined index : var; and make some controls I 
  noticed that $_SESSION['var'] is not set in the anotherpage.php. And in 
  pageone.php, $_SESSION['var'] is set as a normal variable but not a 
  session variable because all files (sess_21ae6dg34) in the 
  temp directory are EMPTY.EMPTY..
  $_SESSION isset but $_SESSION['...'] exits in a page as a normal 
  variable but not a session variable.
  
  Please help me. Thank u.
  
  John







___ IncrediMail - il mondo della posta elettronica si 
รจ finalmente evoluto - Clicca 
Qui

[PHP] php4.1.2 compile error with-gd

2002-03-07 Thread Eric Persson

Hi,

I'm about to compile the 4.1.2 version found on php.net. I have the
following configure command:
./configure --with-apache=../apache_1.3.23 --with-mysql
--with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir
--with-freetype-dir --with-gd --enable-gd-native-ttf --with-tiff-dir
--with-dom --with-mnogosearch --with-pdflib --with-ftp
--enable-gd-imgstrttf --with-gettext

The configurepart runs fine. But when I get to the makepart i get the
following when its doing something with gd:
Making all in gd
make[2]: Entering directory `/opt/install/php-4.1.2/ext/gd'
make[3]: Entering directory `/opt/install/php-4.1.2/ext/gd'
gcc -I. -I/opt/install/php-4.1.2/ext/gd -I/opt/install/php-4.1.2/main
-I/opt/install/php-4.1.2 -I/opt/install/apache_1.3.23/src/include
-I/opt/install/apache_1.3.23/src/os/unix -I/opt/install/php-4.1.2/Zend
-I/usr/local/include/freetype2/freetype -I/usr/local/mnogosearch/include
-I/opt/install/php-4.1.2/ext/mysql/libmysql
-I/opt/install/php-4.1.2/ext/xml/expat  -I/opt/install/php-4.1.2/TSRM -g
-O2  -c gd.c  touch gd.lo
gd.c: In function `zm_startup_gd':
gd.c:271: `gdArc' undeclared (first use in this function)
gd.c:271: (Each undeclared identifier is reported only once
gd.c:271: for each function it appears in.)
gd.c:272: `gdPie' undeclared (first use in this function)
gd.c:273: `gdChord' undeclared (first use in this function)
gd.c:274: `gdNoFill' undeclared (first use in this function)
gd.c:275: `gdEdged' undeclared (first use in this function)
gd.c: In function `zif_imagecreatetruecolor':
gd.c:556: warning: assignment makes pointer from integer without a cast
gd.c: In function `zif_imagecolorat':
gd.c:1594: structure has no member named `tpixels'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/opt/install/php-4.1.2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/install/php-4.1.2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/install/php-4.1.2/ext'
make: *** [all-recursive] Error 1
[root@localhost php-4.1.2]#


The gdlib thats compiled is gd2.01 and is linked with freetype 2.0.5. It
might be worth to mention, if I try the same configure command on php
version 4.0.6 it makes fine.

I compared /ext/gd from the 4.1.2 and 4.0.6 and seems to be some
difference.

Does anyone know a soloution to this? Feel free to contact me if you
need more information to solve this.

Best regards,
Eric


-- 
[ eric persson | [EMAIL PROTECTED] | www.persson.tm ]


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




[PHP] PHP4.1.2

2002-03-02 Thread Thomas Holton


Hello,
I upgraded my PHP to 412 from 406

Now, twig, which uses imap, does not work just returns a popup that
says the document contained no data
I have checked other applications using php and they all seem fine Also,
pine, which uses the imap, is functioning normally as well

There was 1 difference in my configuration this time around from January
when i built the 406:

config:  --with-imap

this time: 412:

config  --with-imap-ssl

The configuration forced me to use this option instead of just imap I am
 running openssl-096b, but i was also running this last time and
apache's virtual host for the ssl is where twig is located and it worked
perfectly last time with just --with-imap

Anyone have any ideas or similar problems?

thanks in advance!



-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




Re: [PHP] PHP4.1.2

2002-03-02 Thread Rasmus Lerdorf

 Anyone have any ideas or similar problems?

I just built a server yesterday for IMP  My PHP configure line was:

'/configure' \
'--with-pdflib=/usr/local' \
'--with-gd=/home/rasmus/gd-201' \
'--with-jpeg-dir=/usr' \
'--with-freetype-dir=/usr' \
'--enable-gd-native-ttf' \
'--enable-gd-imgstrttf' \
'--with-jpeg-dir=/usr' \
'--with-png-dir=/usr' \
'--with-xpm-dir=/usr/X11R6' \
'--enable-exif' \
'--with-config-file-path=/etc' \
'--enable-debug' \
'--with-mysql=/usr' \
'--enable-inline-optimization' \
'--with-pgsql=/usr' \
'--with-zlib-dir=/usr' \
'--with-expat=/usr' \
'--enable-xslt' \
'--with-xslt-sablot=/usr' \
'--with-imap' \
'--with-gettext' \
'--with-kerberos' \
'--with-imap-ssl' \
'--with-mcrypt=/usr/local' \
'--with-ldap' \
'--with-pspell' \
'--with-apxs=/usr/sbin/apxs'

It worked fine  So imap-ssl here as well  So it definitely isn't a
general problem with it not working at all  Must be something subtle
You did a full rm configcache  make clean?  Or started with a fress
tarball?  Do you have SSL linked into your Apache server?  If so, is it
the same version of SSL linked in there?  You might be able to tell with
'ldd'

-Rasmus


-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




Re: [PHP] PHP4.1.2

2002-03-02 Thread Tom Holton


Thanks, I redid the configure with BOTH imap and imap-ssl
It now shows up in the phpinfo
I now have another problem when the login is being deneid because of a bad
password, but this is a different problem prob not to do with php
By the way, the system i am on is alpha OSF41
thanks for your help


On Sat, 2 Mar 2002, Rasmus Lerdorf wrote:

  Anyone have any ideas or similar problems?

 I just built a server yesterday for IMP  My PHP configure line was:

 '/configure' \
 '--with-pdflib=/usr/local' \
 '--with-gd=/home/rasmus/gd-201' \
 '--with-jpeg-dir=/usr' \
 '--with-freetype-dir=/usr' \
 '--enable-gd-native-ttf' \
 '--enable-gd-imgstrttf' \
 '--with-jpeg-dir=/usr' \
 '--with-png-dir=/usr' \
 '--with-xpm-dir=/usr/X11R6' \
 '--enable-exif' \
 '--with-config-file-path=/etc' \
 '--enable-debug' \
 '--with-mysql=/usr' \
 '--enable-inline-optimization' \
 '--with-pgsql=/usr' \
 '--with-zlib-dir=/usr' \
 '--with-expat=/usr' \
 '--enable-xslt' \
 '--with-xslt-sablot=/usr' \
 '--with-imap' \
 '--with-gettext' \
 '--with-kerberos' \
 '--with-imap-ssl' \
 '--with-mcrypt=/usr/local' \
 '--with-ldap' \
 '--with-pspell' \
 '--with-apxs=/usr/sbin/apxs'

 It worked fine  So imap-ssl here as well  So it definitely isn't a
 general problem with it not working at all  Must be something subtle
 You did a full rm configcache  make clean?  Or started with a fress
 tarball?  Do you have SSL linked into your Apache server?  If so, is it
 the same version of SSL linked in there?  You might be able to tell with
 'ldd'

 -Rasmus


 --
 PHP General Mailing List (http://wwwphpnet/)
 To unsubscribe, visit: http://wwwphpnet/unsubphp



-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp