php-install Digest 11 May 2001 17:30:06 -0000 Issue 303

Topics (messages 3110 through 3124):

Php Not Working in NT Server
        3110 by: Jack

Can't get php work in NT4.0 server
        3111 by: Jack
        3114 by: Phil Driscoll

PHP4.0.5 Apache and Informix.
        3112 by: Tse Wai Kan
        3113 by: Tse Wai Kan
        3120 by: Paul Gardiner

abot the weird file upload problems: code
        3115 by: Revista Electrónica de Visión por Computador

Unknown vars and constants
        3116 by: Ian Pawson
        3119 by: Johannes Janson
        3122 by: Ian Pawson
        3123 by: Johannes Janson

Is there any Windows Setup for Php?
        3117 by: Jack
        3118 by: Johannes Janson
        3121 by: Phil Driscoll

freeBSD4.3+PHP4.0.5+GD1.8.4
        3124 by: Slick

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


I had installed the php in NT Server 4.0, i'm trying to write a simple
script in HTML format, but the script doesn't work!
I add the path to the System Environment alreday, what else i got to check??

Please help!

Jack
[EMAIL PROTECTED]






Dear all

I had install the php4.0.4 for win32 into my Member server NT 4.0, i had
copy the file php.ini into the \winnt directory, then i add a path to the
system environment of NT, also i'm using the IIS 4.0 which i had add the
ISAPI filter into it as well.
After all the above had done, then i read the php book and follow one of the
simple example of it to write a simple script in HTML format, but the script
doesn't work at all, not getting the result as the book do!!

I need to start the php programming for my company, but now i got problem to
get it work!!
Could you guys please give me a hand on this??

Thx

Jack
[EMAIL PROTECTED]






>From your description of what you've done, I think you must have been
reading some very strange instructions!

The easiest way to install on IIS is to download the Windows installer from
the downloads page on www.php.net - run it and let the Wizard do everything
for you.

Alternatively, follow the instructions for installing on IIS 4.0+ (CGI) in
the install.txt file which comes with the full Windows zip distribution.

Don't bother using the ISAPI module - it will go wrong!

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org





I'm stuck. Anyone seen this problem and know how to solve this?
 
I configured PHP4.0.5 on HP-UX 10.20 with the following options;
 
./configure  --prefix=/opt/php --with-apxs=/opt/apache/bin/apxs
--with-informi
x=/var/informix_work --with-config-file-path=/opt/apache/lib/php
--enable-libgcc
 --enable-debug     
 
The server has Informix Dynamic Server Version 7.31 installed.

Regards, 
Tse-Wai Kan. 
RSL COM Deutschland GmbH. 
Tel     :       +49 (0)611 9888820 
Fax     :       +49 (0)611 9888821 / +49 (0)611 9888878 
GSM     :       +49 (0)172 9420888 / +44 (0)705 0028870 
E-mail  :       [EMAIL PROTECTED] 

 




 
I'm stuck. Anyone seen this problem and know how to solve this?
 
apachectl configtest
 
 /usr/lib/dld.sl: Unresolved symbol: ifx_checkAPI (code)  from
/var/informix_work
/lib/esql/libifsql.sl
Syntax error on line 240 of /opt/apache/etc/httpd.conf:
Cannot load /opt/apache/lib/modules/libphp4.so into server: No such file or
dire
ctory  

 
I configured PHP4.0.5 on HP-UX 10.20 with the following options;
 
./configure  --prefix=/opt/php --with-apxs=/opt/apache/bin/apxs
--with-informi
x=/var/informix_work --with-config-file-path=/opt/apache/lib/php
--enable-libgcc
 --enable-debug     
 
The server has Informix Dynamic Server Version 7.31 installed.

Regards, 
Tse-Wai Kan. 
RSL COM Deutschland GmbH. 
Tel     :       +49 (0)611 9888820 
Fax     :       +49 (0)611 9888821 / +49 (0)611 9888878 
GSM     :       +49 (0)172 9420888 / +44 (0)705 0028870 
E-mail  :       [EMAIL PROTECTED] 

 




Hi,

I run on SCO unix but I know there is an issue when trying to compile in
Informix.

Below were some instructions I gave to another SCO'er but they may help you
get on the right track. I built with Apache as static and not dynamic
though. You may want to start with static and then try the dynamic one
afterwards. You'll have to change the build script I've sent you to apply to
your platform.

Regards,
- Paul -

----8<-----

I've attached one of the build scripts that I have used. Basically I have
this script, apache and php tar files in /usr/src. The script un-tars,
configures and builds everything. Run it with    ./b4.0.4pl1gd.sh n n
which means it will pause at each major point(remember to set it as
executable). Have a look through it and play about - it's nothing fancy,
just functional. You'll have to delete some bits as I also have zilib & gd
support compiled in. If your versions are different then alter them
appropriately. Pay attention to where it builds apache at the end and where
the Informix libs are set. You get these from running    esql -libs    at
the command line. Yours maybe different to mine. I have the Informix CSDK
installed with an Informix SE ver 7.2x. When everything is built, remember
to set the Informix environment vars and the LD_LIBRARY_PATH as well within
your apache start script.


----8<-----


----- Original Message -----
From: "Tse Wai Kan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 11, 2001 9:19 AM
Subject: [PHP-INST] PHP4.0.5 Apache and Informix.


>
> I'm stuck. Anyone seen this problem and know how to solve this?
>
> apachectl configtest
>
>  /usr/lib/dld.sl: Unresolved symbol: ifx_checkAPI (code)  from
> /var/informix_work
> /lib/esql/libifsql.sl
> Syntax error on line 240 of /opt/apache/etc/httpd.conf:
> Cannot load /opt/apache/lib/modules/libphp4.so into server: No such file
or
> dire
> ctory
>
>
> I configured PHP4.0.5 on HP-UX 10.20 with the following options;
>
> ./configure  --prefix=/opt/php --with-apxs=/opt/apache/bin/apxs
> --with-informi
> x=/var/informix_work --with-config-file-path=/opt/apache/lib/php
> --enable-libgcc
>  --enable-debug
>
> The server has Informix Dynamic Server Version 7.31 installed.
>
> Regards,
> Tse-Wai Kan.
> RSL COM Deutschland GmbH.
> Tel     :       +49 (0)611 9888820
> Fax     :       +49 (0)611 9888821 / +49 (0)611 9888878
> GSM     :       +49 (0)172 9420888 / +44 (0)705 0028870
> E-mail  :       [EMAIL PROTECTED]
>
>
>
> --
> 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]
>
>




html form:
<form action="file-upload.php" method="post" enctype="multipart/form-data">
       <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="15000000">
       <input type="hidden" name="advisor2" value="oak">
       <input type="hidden" name="article2" value="test">
       Send these files:<br>
       <input name="userfile[]" type="file">
       <br>
       <input name="userfile[]" type="file">
       <br>
       <input type="submit" value="Send files" name="submit">
     </form>

php code:
for($i=0; $i<2; $i++){
  if ($userfile_name[$i]){
      if (is_uploaded_file($userfile[$i])) {
          copy($userfile[$i], "./$userfile_name[$i]");
          if(!$entrega){ $entrega = 1; }
      } else {
          echo "Possible file upload attack: filename 
'$userfile_name[$i]'.";
      }
  }
}

any ideas? Please, I'm very new in PHP so I need a LOT of constructive 
criticism

Jordi





I have just installed 4.0.5 inot IIS5 under w2k and all went well. I can cun
single scripts, connect to MySQL ok. However, when I tru to run a script
that calls another one, I get lost of warnings about 'undefined variables'
and 'unknown constats'. I have look through the php.ini file in the c:\winnt
folder but I can't see anything that would cure this.

Can anybody please tell me what I have done wrong, and how I can correct the
problem?

Cheers, Ian

--
Ian Pawson






Hi,

> I get lost of warnings about 'undefined variables'
> and 'unknown constats'.

post some code. That's probably where the errors
come from.

johannes






This is just the start of a program:-

<?
include ('dumptable.php');
session_start();
# Config
 if (isset($EasyLogOut)){
  session_unregister("EasyPASS");
  session_unregister("EasyUSER");
  session_unregister("EasySERVER");
  session_unregister("EasyDB");
  unset($EasyPASS);
  unset($EasyUSER);
  unset($EasySERVER);
  unset($EasyDB);

#  session_destroy();
 }
 elseif (isset($login[username])) {
  #encrypt password
  for ($i=0;$i<strlen($login[password]);$i++)
$login[password][$i]=$login[password][$i] ^ '*';

  session_register("EasyUSER"); $EasyUSER=$login[username];
  session_register("EasyPASS");$EasyPASS=$login[password];
  session_register("EasySERVER");$EasySERVER=$login[db_server];
  session_register("EasyDB");$EasyDB=$login[db_name];

 }

  define ("DB_SERVER",$EasySERVER);   # Server Name
  define ("DB_USER",$EasyUSER);      # User Name
  define ("DB_NAME",$EasyDB);       # database name
  $pass=$EasyPASS ;                   # Encrypted password ( xor '*') :-)

  #decrypt password

 for ($i=0;$i<strlen($pass);$i++) $pass[$i]=$pass[$i] ^ '*';

 define ("DB_PASS", $pass);
 define ("QUERY_STR",stripslashes($q));

Running this gives the following errors:-

Warning: Use of undefined constant username - assumed 'username' in
c:\inetpub\wwwroot\index.php on line 17
Warning: Undefined variable: EasySERVER in c:\inetpub\wwwroot\index.php on
line 28
Warning: Undefined variable: EasyUSER in c:\inetpub\wwwroot\index.php on
line 29
Warning: Undefined variable: EasyDB in c:\inetpub\wwwroot\index.php on line
30
Warning: Undefined variable: EasyPASS in c:\inetpub\wwwroot\index.php on
line 31


--
Ian Pawson
""Johannes Janson"" <[EMAIL PROTECTED]> wrote in message
9dghai$bu0$[EMAIL PROTECTED]">news:9dghai$bu0$[EMAIL PROTECTED]...
> Hi,
>
> > I get lost of warnings about 'undefined variables'
> > and 'unknown constats'.
>
> post some code. That's probably where the errors
> come from.
>
> johannes
>
>
>
> --
> 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]
>






Hi,

>   session_register("EasyUSER"); $EasyUSER=$login[username];
>   session_register("EasyPASS");$EasyPASS=$login[password];
>   session_register("EasySERVER");$EasySERVER=$login[db_server];
>   session_register("EasyDB");$EasyDB=$login[db_name];

I assume these are the lines which caused the error (counted just roughly).
Assign the value to the vars first then register the session.
This is a question of taste but isn't it eayier to register just one session
and put all the values into this session.

session_register("SESSION");
$SESSION["EasyUSER"]=$login["username"];
....

hope it helps (and works... ;-))

johannes






Dear all
Is there any Php which come with windows installer in it, so it will do all
the staff for me?

Jack







Hi,

> Is there any Php which come with windows installer in it, so it will do
all
> the staff for me?

go to http://www.php4win.de/ don't worry it is in english. They are down at
the moment but offer a link to sourceforge where a .exe can be downloaded.


johannes






See the downloads page at www.php.net
-- 
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org






Whats wrong?
./configure --with-apxs --with-mysql --enable-track-vars --enable-magic-quot
as --with-gd --with-jpeg-dir=/usr/local --with-xpm-dir=/usr/X11R6

<!--StartFragment-->checking whether to enable truetype string function in
gd... no
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for libXpm (needed by gd-1.8+)... yes
checking for XpmFreeXpmImage in -lXpm... (cached) no
no
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... (cached) no
checking for gdImagePaletteCopy in -lgd... (cached) no
checking for gdImageColorClosestHWB in -lgd... (cached) no
checking for compress in -lz... (cached) no
checking for png_info_init in -lpng... (cached) no
checking for gdImageColorResolve in -lgd... (cached) no
checking for gdImageCreateFromPng in -lgd... (cached) no
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) no
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for gdImageCreateFromXpm in -lgd... (cached) no
checking whether to include FreeType 1.x support... yes
checking for T1lib support... no





Reply via email to