php-windows Digest 13 Feb 2002 11:47:52 -0000 Issue 999

Topics (messages 12042 through 12051):

Remote PHP files bug?
        12042 by: Thomas Davis

Re: Form submit action type.
        12043 by: Mike
        12044 by: James Mclean

reading from an excel file..
        12045 by: Brian Feliciano
        12050 by: Piotr Pluciennik

Insert image into MySQL
        12046 by: Sichta Daniel

Re: Checking email
        12047 by: Nikolai Jeliazkov

URL Encryption
        12048 by: GreatKent

mail() on windows - problem
        12049 by: George Pitcher

Re: Searching MS Word Docs
        12051 by: Svensson, B.A.T. (HKG)

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 have searched the bug database to the best of my ability and not been able
to find any reference. Perhaps someone on the list knows of the problem
and/or the solution. I wanted to ask one more time before submitting a bug
report.

Platform: Windows 2000/ IIS 5.0/ PHP 4.0.6 CGI
Issue: If I store the document root on a remote server. Such us
\\server\share\htdocs\index.php
I get the ol':

CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:

Normally this would mean the file doesn't exist, but it does exist, the
permissions are fine cuz I can access the other files that are not PHP in
the same directory with the same permissions.

PHP acts normally under all other circumstances.

Anyone?

        Thomas Davis
        Web System Administrator
        TiVo Inc.



--- End Message ---
--- Begin Message ---
What server side script should I use, I was visiting hotscripts and they
don't really have anything that will work for me.



"Mike" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am creating a page with a form on it. I want it so that when people
click
> submit, I want the information from the form to be emailed to me. Is there
a
> way I can do this with normal JavaScripting or even plain HTML or would I
> have to use something like PHP.
>
> Thanks
>
>
>
> --
> -Mike Taekema
> Microsoft Certified Professional
> www.fvforces.net
>
>
>


--- End Message ---
--- Begin Message ---

Mike,

> What server side script should I use, I was visiting hotscripts and
> they
> don't really have anything that will work for me.

http://www.php.net/mail

Hotscripts should have *more* than you need...


Regards,

James Mclean

Microsoft Free Zone -
No PC was harmed during the creation of this e-mail.
--- End Message ---
--- Begin Message ---
how can i read data from an excel file??



--- End Message ---
--- Begin Message ---
Hi,

on Win platform easiest way is to use COM - read more
about it in Alain article:
http://www.phpbuilder.com/columns/alain20001003.php3

HTH

Piotr

 --- Brian Feliciano <[EMAIL PROTECTED]> wrote:
> how can i read data from an excel file??
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Hi,
 
cfg: w2k, Apache 1.3, php4.11, Mysql 3-23-40-max-nt
 
I'm using following code to insert images (gif, jpg) into table. Everything
worked fine until I switch to php4.11. Now this code is inserting only image
header or something similar.
BTW: pct_data  is   longblob !!!
 
Thank you for any help !!
 
Dan

<?
if ($submit) {
    mysql_connect( "****", "*****", "********");
    mysql_select_db( "****");
    $data = addslashes(fread(fopen($form_data,  "r"),
filesize($form_data)));
    $size = GetImageSize ($form_data);
    $result = mysql_query("INSERT INTO pictures VALUES
(0,'$data','$form_data_type','$size[0]','$size[1]')");
    $id = mysql_insert_id();
    print  "<p>this file has the following database id: <b>$id</b>";
    mysql_close();
} else {
?>
 <form method="POST" action="<?$PHP_SELF;?>" enctype="multipart/form-data">
 <input type="hidden" name="max_file_size" value="1000000">
 <br>Meno súboru :<br>
 <input type="file" name="form_data"  size="40">
 <p><input type="submit" name="submit" value="submit">
 </form>
<?
}
?>

--- End Message ---
--- Begin Message ---
Here is a many patterns for email checking
http://regxlib.com/

--- End Message ---
--- Begin Message ---
Dear all,
I wonder if it is possible to use PHP4 to encrypt my URL?

--
ftp://ftp.GreatKent.com/
http://www.GreatKent.com/



--- End Message ---
--- Begin Message ---
Hi all,

Doing a little testing in advance of doing the scripting next week, I
thought I'd try the mail() function.

In php.ini, I have filled in the details of my SMTP server (University
service) and the return address and I can't see anything else to configure.

A simple script, called as a web page, contains the following script:

<?php
mail("[EMAIL PROTECTED]","Mailtest from php","message");
?>

and when I run this, I get an 'unknown' error and i [fairly obviously] don't
get the email it should be sending.

Is there something else to configure?

I know that the smtp part is correct as I am mailing that way using both
Lasso (NT) and Frontier (Mac) with no problems.

HYCH,

George in Edinburgh

--- End Message ---
--- Begin Message ---
From: alain

>From the manual - Last thing to read ;)
>"Note: The mode may contain the letter 'b'. This is useful only on systems
>which differentiate between binary and text files (i.e. Windows. It's
>useless on Unix). If not needed, this will be ignored. "

If UNIX system doesn't difference between binary and text files, how are for
ex

'char *fgets()' respectively 'char *gets()'

supposed to be working then?

When opening a file in binary mode (b) Unix and MS Windows behaves more or
less the same, on the other hand when opening a file in text write mode (w
or a) then UNIX might differ from MS Windows. I've noticed that MS VC++
appends an ctrl-Z on the end of text files while writing to them. If Borland
C++ does the same, I don't know. But as far as my limited knowledge extends,
neither CC, cc, gcc or g++ does in this behavior.

Conclusion:

Opening a file in binary mode works more or less the same on UNIX and
Windows, but text mode works different on the both systems.
--- End Message ---

Reply via email to