php-install Digest 11 Feb 2003 07:22:45 -0000 Issue 1242

Topics (messages 9998 through 10009):

How can I protect my images from being stolen?
        9998 by: Atif Jakupovic

Re: Problems with mail()
        9999 by: Vladimir Galkov

I get a "File Download" dialogue box
        10000 by: news
        10001 by: Stephen Edmonds
        10002 by: Frank S. Bernhardt

php backward compatibility
        10003 by: Yakov Cherkassky
        10004 by: Benjamin Tomhave
        10005 by: Roedel, Mark

php4-win32-STABLE-latest Installation Problems
        10006 by: Christian R. Ford

openSSL upgrade causing PHP and Apache to freak?
        10007 by: Justin Williams

PS
        10008 by: Justin Williams

PHP Fatal error:  Call to undefined function:  mail()
        10009 by: Kaan

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]


----------------------------------------------------------------------
--- Begin Message ---
I would like to protect my images from being stolen.

Does somebody know how I can do it?

Thank you

--- End Message ---
--- Begin Message ---
I feel the qweston become offtopick soon ;-)))))))

1. Look into permissions of the user you set to run web service
2. Use simple <? print phpinfo(); ?> code to look at real values your php
enviroment varibles have.
3. Check
[mail function]
; For Win32 only.
SMTP = < smtp.somewhere.go >

; For Win32 only.
sendmail_from = < [EMAIL PROTECTED] >

4. Write code to send mail threw socets, then you'll see targeted server
ansver on every your request.




""juan ant. martМnez"" <[EMAIL PROTECTED]> сообщил/сообщила в новостях
следующее: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm new to php. I have downloaded and installed PHP 4.3.0 on a Windows
> NT 4.0 server. I have tested the configuration and changed the
> parameters in php.ini to fit my environment.
> The basic code works fine, but one of the things I'd like to do is to
> send mails. I have found the sample code and tested the following :
>
> mail("[EMAIL PROTECTED]", "test", "This is a test!","From:
> [EMAIL PROTECTED]")
>
> But when I run this code, I get the following error:
>
> Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or
> custom "From:" header missing in d:\www\mail.php on line 9
>
> In fact, the sendmail_from is configured in the php.ini file (in the
> windows directory), and also forced in the line above (I have tried also
> without the "From:..." but it does neither work) .  The smtp server is
> in a remote machine, and in fact, no connection is made from the php
> script (I have looked through the logs and there has been no attempt to
> connect)
>
> Does anyone know where is the problem? Any suggestions will be welcomed.
>
> Thanks in advance,
>
> Juanan
>


--- End Message ---
--- Begin Message ---
I am trying to configure run PHP4 on Apache on Windows XP.

When I type http://localhost/ all I get is a "File Download" dialogue box,
instead of the normal Apache server page.

Does anyone know whats is going on here?

Please tell me if you need any more information.

-Nelson



--- End Message ---
--- Begin Message ---
Copy of message sent out last time someone had a similar problem:

Chances are you've not put the commands in the correct place, instead just
copy and pasted them into the config
file.

LoadModule php4_module C:\PHP\sapi\php4apache.dll
This has to be in the same place as all the other LoadModule commands. If
you look through your httpd.conf file for Apache, you will see a whole load
of LoadModules with #'s in front of them. You need to place the above line
at the end of that list.

If you then scroll down a bit the next section should be 'AddModule'. In
this section, you have to put the line
AddModule mod_php4.c
at the bottom of the list. Both commands are needed to properly load PHP.

Once that is done, you will need to run a search for
'# AddType allows you to tweak mime.types without actually editing it, or
to'
Below that line should be a series of AddType commands. Again, you need to
put
AddType application/x-httpd-php .php
at the end of the list.

AddType application/x-httpd-php-source .phps
is an optional feature, I personnally do not use it as I do not want people
to be able to view my source code. However it is up to you. If you do
include it, put it in the same section as the other file.

If that doesn't solve your problem, or you've done all that already, then
remember you need to restart Apache for it to take effect. Also check that
php is installed in the path you've set in httpd.conf (In this case
C:\PHP\). Also check that C:\PHP\sapi\php4apache.dll is present in the
correct folder, and that the following two files are in the SAME directory
as php4apache.dll :

php4ts.dll
php4ts.lib

Good Luck, let me know how it goes

Stephen

----- Original Message -----
From: "news" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 4:51 PM
Subject: [PHP-INST] I get a "File Download" dialogue box


> I am trying to configure run PHP4 on Apache on Windows XP.
>
> When I type http://localhost/ all I get is a "File Download" dialogue box,
> instead of the normal Apache server page.
>
> Does anyone know whats is going on here?
>
> Please tell me if you need any more information.
>
> -Nelson
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message --- I don't know if the windoze version is the same as the *NIX version but under *NIX if using PHP4 as a DSO you need to add the following to your httpd.conf file:

AddModule mod_php4.c

and

AddType application/x-httpd-php .php

Remember to restart Apache.

news wrote:
I am trying to configure run PHP4 on Apache on Windows XP.

When I type http://localhost/ all I get is a "File Download" dialogue box,
instead of the normal Apache server page.

Does anyone know whats is going on here?

Please tell me if you need any more information.

-Nelson




--

Regards

Frank S. Bernhardt
b.c.s.i.
14 Halton Court
Markham, ON.
L3P 6R3

905-471-1691 Voice
905-471-3016 FAX

[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Quick Question:

Is it possible to run PHP code written on php4.2.3 on php 4.0.1 without
major modification?  

My initial checks indicate no...   Any other ideas?

-Yakov.
--- End Message ---
--- Begin Message ---
You can re-enable global variables by revising the php.ini file from:
        "register_globals = Off"
to:
        "register_globals = On"

I had to do this for a couple sites that have not yet been migrated to PHP
4.2.x (or greater).

> -----Original Message-----
> From: Yakov Cherkassky [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 12:49 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] php backward compatibility
>
>
> Quick Question:
>
> Is it possible to run PHP code written on php4.2.3 on php 4.0.1 without
> major modification?
>
> My initial checks indicate no...   Any other ideas?
>
> -Yakov.
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Well, the basic language syntax hasn't changed.  The major hang-ups I'd
expect would be:

(1) If you're using the $_POST, $_GET, $_SERVER, etc. variables, they
didn't exist in that form back then -- you'd need to replace them with,
for example, $HTTP_POST_VARS, and

(2) You would, of course, want to avoid functions that have been added
since the release of v4.0.1 -- the manual should be a good guide as to
when a particular function or feature was added to the language.

Of course, if it's an option to do so, it would be advisable to get the
4.0.1 machine upgraded.  In addition to added features and
functionality, there have been a few security-related updates over the
past 2 1/2 years...


---
Mark Roedel           | "Blessed is he who has learned to laugh
Systems Programmer    |  at himself, for he shall never cease
LeTourneau University |  to be entertained."
Longview, Texas, USA  |                          -- John Powell


> -----Original Message-----
> From: Yakov Cherkassky [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 10, 2003 1:49 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-INST] php backward compatibility
> 
> 
> Is it possible to run PHP code written on php4.2.3 on php 
> 4.0.1 without major modification?  
> 
> My initial checks indicate no...   Any other ideas?
--- End Message ---
--- Begin Message ---
Oddly enough on the first build of this box 6 months or so ago, PHP
 installed perfectly onto the C: drive. I rebuilt the network, but
saved the C drive for later data retrieval and formatting, so
another drive was placed into the system and rebuilt under
the E: drive.

This installation of PHP has been a complete failure.
Win2k has been updated ONLY with all service packs from Microsoft.
So its a CLEAN OS. The server is the PDC running active directory and IIS.

My initial problems were similar to others on here, the php include files
would repeat over and over, and I would get an application error of
memory could not be read as defined in the current open issue that is still
waiting feedback for three days.

Your recommendation was to install the newer snapshot, and I did.
If I may say the installation instructions are a tad ''confusing'' but I
will define the steps I've followed upto now.

        Extracted all files to E:\PHP
        Copied php.ini-dist and renamed to php.ini
        modified extension_dir to extension_dir = e:\PHP
        Copied DLL's from the E:\PHP\DLLS to E:\WinNT\System32\
        TURNED NO EXTENTIONS ON (Want basic running first)
        modified cgi.force_redirect to cgi.force_redirect = 0


        In Internet Service Manager (ISM) made the following modifications
        to the master properties:
                Home > Configuration, added .php extension
                and utilized the e:\php\php.exe
                        Set All Verbs
                        Set Check for existence of file

                Set execute properties, as well as securities on
                the folder for the IUSR to have FULL control
                for the moment.



Current Behavior:
        PHP seems to return NO ERRORS...
        I'm not even noticing the PHP.exe in the processes.

        In the source of the outputted page, it SEEMS as if PHP is parsing out
        everything between the Tags '<??>' but not processing any of the code.
        All pages show up with HTML but no php execution
        not even a echo of 'THIS WORKS'.








Server Configuration:

        Win2k Advanced Server
        OS Installation: Second Drive installation Labeled E:\
        PHP Installation: E:\PHP
        Web server Installation: F:\


--- End Message ---
--- Begin Message ---
A little history first:
I installed CVS on a Mandrake system, to make a customer happy.  This meant I had to 
install openSSH-client and openSSH-server, which meant I had to upgrade my version of 
openSSH.  When I did this, everything went smoothly, except the SSHd was no in 
conflict with openSSL and would no longer start.  So, I upgraded openSSL, as well.

As soon as I did that, Apache died.  I tried to start Apache back up, and it went into 
conniptions over PHP (4.3.1 from Feb 6, so that I could get mcrypt in place).  Almost 
all the functions built in, it was saying I had already declared, and was basically 
being argumentative.  The very first line was also referencing a need to configure 
with -DEAPI.

So, I did this, and it would not compile with mcrypt.  I recompiled mcrypt, then 
re-configured PHP with -DEAPI (assuming that that request meant us --with-DEAPI; 
maybe, maybe not...)

When I finally got PHP recompiled, Apache freaked again when I used apachectl stop; 
apachectl start to get everything back up and running.  I disabled PHP (commented out 
PHP references from httpd.conf) and Apache started right up.  I re-enabled PHP, and 
clicked on "Apply Changes" from within WebMin, and Apache seems to be running happily.

Still, that sort of quirkiness *REALLY* makes me nervous...  Has anybody run into a 
similar issue?  If so, can you point me in a right direction to get this stuff figured 
out???

Thanks!!
Justin
--- End Message ---
--- Begin Message ---
My PHP configuration information can be found at 
http:/freesites.pshift.net/~jwilliams/phpinfo.php.

Thanks!
--- End Message ---
--- Begin Message ---
I can not send any mail using any PHP script.  I installed Sendmail after i
compiled PHP with Apache. I don't think that would be a problem???

Here is the error i get while trying to send a mail through command line
"PHP Fatal error:  Call to undefined function:  mail()"

What' wrong?

Thanks,

Kaan


--- End Message ---

Reply via email to