php-windows Digest 19 Mar 2001 23:51:22 -0000 Issue 500

Topics (messages 6133 through 6155):

Re: POST Problems
        6133 by: Fernando Madruga

Re: Need help bad, select element of form using time
        6134 by: Tom Mathews

Re: save as _> unable to retrieve the file_name of the image
        6135 by: Fernando Madruga

Problem with PHP4.04 installation
        6136 by: John
        6137 by: Fernando Madruga

Re: How to use COM
        6138 by: Thomas Häger

Looking for Samples
        6139 by: samsom, debra

Problems with MySQL, & DCL
        6140 by: Schollnick, Benjamin
        6142 by: Robin Bolton

resolution problems in dinamic .gif
        6141 by: Praying Mantis

php_fdf.dll ?
        6143 by: Chris Leesch
        6146 by: Alain Samoun

Re: Web Servers
        6144 by: Giro

Re: Showing source code with .phps extension
        6145 by: Anders Pettersson
        6147 by: Fernando Madruga

Windows and Linux
        6148 by: Mujahid
        6150 by: Chris Leesch
        6153 by: Phil Driscoll

Re: apache + php + system()  = error :(
        6149 by: Joe Brown

Help!!  Problem with system()
        6151 by: Patrick O'Shea

Re: Download Prompt Problem
        6152 by: Joe Brown

PHP, MySQL, Apache Set Up (Windows)
        6154 by: OneFish

class and dynamic includes (IIS)
        6155 by: Joe Brown

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]


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


Extract from the included php.ini:

[mail function]
SMTP            =       localhost                       ;for win32 only
sendmail_from   =       [EMAIL PROTECTED]         ;for win32 only
;sendmail_path  =                                       ;for unix only, may
supply arguments 

Do you have an SMTP server on the machine running PHP?
If not, you should change 'SMPTP=localhost'...
If you do, try using the IP address instead...

HTH,
  Fernando Madruga

-----Original Message-----
From: Ricardo Perazzo [mailto:[EMAIL PROTECTED]]
Sent: sábado, 17 de Março de 2001 11:17
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] POST Problems


Sorry my english
I have some problems
My solutions is
compare a linux php.ini with windows php.ini and so  ok!!!
I attach my php.ini.win

"Ralph Alberti" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I am using Win2000 and POST doesn't work. I have tried using Xitami
> server on two different machines with no success. I am using the most
> current version of PHP and have also tried it with IIS 5. GET works
> fine. I am now starting to think it has to do with my configuration of
> PHP.
>
> Any help you could provide would be much appreciated.
>
>   --Ralph
>
> --
> PHP Windows 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]
>




-- 
PHP Windows 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]




Don't know what your problem is?
You can get the current time using the time() function - loads of formatting
options to output it as you require. To get 15 minute intervals, just put
the SELECT for your form element in a while loop.

If your problem is which locale you are in, then that's another story - look
in the archives of this list over the last couple of weeks for some answers
on that one,

Tom

Zachary Harris wrote:

> I have a project that a I am working on and have come across a major
> snafu.  It is my first time using PHP for a project and I have been
> asked for a form element wherein the user can select a time based on 15
> minute increments for the next 6 hours.  Unfortunately, it doesn't seem
> like the time parts of PHP are as robust as VBScript/ASP (don't hit me)
> and this thing has me stumped.
>
> Any and all help would be greatly appreciated.
>
> Please email me at my address.
>
> --
> PHP Windows 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]





Have you tried to add a name='whatever' attribute on the <img> tag?

If that does not work, what is the .php code you're using?

HTH,
  Fernando Madruga

-----Original Message-----
From: Lars Eirik Rønning [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 19 de Março de 2001 10:26
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] save as _> unable to retrieve the file_name of the
image


Hi there. I wonder if anyone know why i cannot retrieve the file name of an
image file when i get the image from a datbase. I have an image stored in
the database(mysql) and i also store its filename when uploaded. However
when i ouput the file on the website and somone wants to save this image ---
It says filename: outputting the .php file name as the name for all the
pictures.

I hope you understand me .
Eg. When i click on save image as ---> The file seems to be given a default
name of "whatever the outputted .php file is called " eg. onearticle.php
becomes onearticle

Lars Eirik


-- 
PHP Windows 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]




Dear All,

I tried to install PHP using PHP4.04 installer and I ran into this error
message "One of the library files needed to run this application cannot
be found".

I encountered the same error message earlier when I used tried to
install PHP4.04 manually.

I am using Win98 SE with PWS.


Can someone help me out.

Thanks.

Best wishes,




The easiest way to get everything setup and running, is using OpenSA which
contains:
Apache 1.3.14 & mod_ssl 2.7.2 & OpenSSL 0.9.6 & PHP 4.0.4

Free download from: www.opensa.org;

Dump PWS and use Apache instead! There's no reason why not to do it: all the
software mentioned above is free, comes with source, runs on multiple OS
from linux to windows, and can be used even for profit! Besides, Apache is
MUCH more powerfull than PWS...

HTH,
  Fernando Madruga

-----Original Message-----
From: John [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 19 de Março de 2001 13:59
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Problem with PHP4.04 installation


Dear All,

I tried to install PHP using PHP4.04 installer and I ran into this error
message "One of the library files needed to run this application cannot
be found".

I encountered the same error message earlier when I used tried to
install PHP4.04 manually.

I am using Win98 SE with PWS.


Can someone help me out.

Thanks.

Best wishes,

-- 
PHP Windows 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]




Thanks for all to all.

Thomas




"Thomas" <[EMAIL PROTECTED]> schrieb in im Newsbeitrag:
98omg2$2n4$[EMAIL PROTECTED]
> Hi all again,
>
> i' am a very bloody greenhorne with php and maybe i have  many questions.
> Heres one another:
>
>     Who can exlpain to use com in php.
> How can i execute methods and read attributes?
> I only know how i can craete an object:
>
>     $object = new ("adodb.recordset") for exsample, is it not so?
> But how can i get the attributes and execute the methods?
> And why  the Documentation speaks from com_load,com_invoke and so on.
> No once of them are working. I only get the message:
>
>     Call to undefined function.... and so on..
>
> Thanks for Help,
>
> Thomas
>
>
>
>
> --
> PHP Windows 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]
>






I would like to write an entire Work Flow (or form flow) system using PHP,
complete with database (read, writes and inserts) and email. The form will
flow starting with the originator through a series of approval processes to
the end.

Are there any samples out there that would point me in the right direction
for this type project.

Currently I am running PHP4, Apache and MySql.

Any help is welcome :)

Debra Samsom
Business Systems Analyst 
Bristol Aerospace Ltd.
(204) 775-8331 3402
[EMAIL PROTECTED] 






I just rebooted my NT box today, running MYSQL v3.23.33....

I've been running DCL (Double Choco Latte) w/PHP v4.04 PL 1, for
about a week or so without any problems.

Now, after rebooting once the desktop has appeared, and the WinMySQLAdmin
tool loads, I get repeated errors:

"3887879912" is not a valid integer value.

I can't seem to get MySQL to run, so that I can try to poll the SQL tables
to find out if that value is in a particular table and void it.  It seems
that MySQL is refusing connections...PHP/DCL is reporting that the localhost
connection is being refused.

And how do you backup (& Restore) a database with MySql?  I did not find
anything particularly helpful in the documentation in regards to that.

Does anyone have some suggestions on a next step?

                - Benjamin




I found I get this error message if I roll back my clock while MySQL is
running, perhaps check the time on your computer and see if it's set
incorrectly.

> -----Original Message-----
> From: Schollnick, Benjamin [mailto:[EMAIL PROTECTED]]
> Sent: March 19, 2001 8:56 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Problems with MySQL, & DCL
> Importance: High
>
>
>
> I just rebooted my NT box today, running MYSQL v3.23.33....
>
> I've been running DCL (Double Choco Latte) w/PHP v4.04 PL 1, for
> about a week or so without any problems.
>
> Now, after rebooting once the desktop has appeared, and the
WinMySQLAdmin
> tool loads, I get repeated errors:
>
> "3887879912" is not a valid integer value.
>
> I can't seem to get MySQL to run, so that I can try to poll the SQL
tables
> to find out if that value is in a particular table and void it.  It
seems
> that MySQL is refusing connections...PHP/DCL is reporting that
> the localhost
> connection is being refused.
>
> And how do you backup (& Restore) a database with MySql?  I did not find
> anything particularly helpful in the documentation in regards to that.
>
> Does anyone have some suggestions on a next step?
>
>               - Benjamin
>
> --
> PHP Windows 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]
>
>

smime.p7s





I'm using version 3 of PHP to build a .gif image file dinamicly.
I don't know what's happening, but the letters are being displayed a little
bit blurry or spotty like if it had built with a low resolution. This
happens just when I print the image through browser (IE 5, 5.5, NC 4.7,
etc). On the screen, the letter in the image are displayed perfectly.

The dinamic .gif is built from a blank .gif file that act just a template.
This 'blank' .gif has a resolution of 70 dpi. I've tryed with resolutions of
100 and 300 dpi, but i've got the same problem.

Anyone could help me?

thank in advance.






hi!
I am required to install FDF support for PHP on a Win2K server. i've seen in
the php.ini file that PHP needs php_fdf.dll which i have been unable to
find. i have even downloaded the FDF Tool Kit from
http://partners.adobe.com/asn/developer/acrosdk/forms.html but this one
contains librairies for ActiveX, Perl, C and Java. PHP is not mentioned
anywhere...
thanks for helping...
chris.






Check www.php4win.de. The last package should have the fdf module included.
Alain

On Mon, Mar 19, 2001 at 06:27:31PM +0100, Chris Leesch wrote:
> hi!
> I am required to install FDF support for PHP on a Win2K server. i've seen in
> the php.ini file that PHP needs php_fdf.dll which i have been unable to
> find. i have even downloaded the FDF Tool Kit from
> http://partners.adobe.com/asn/developer/acrosdk/forms.html but this one
> contains librairies for ActiveX, Perl, C and Java. PHP is not mentioned
> anywhere...
> thanks for helping...
> chris.
> 
> 
> 
> -- 
> PHP Windows 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]




Yes indeed,

I have tested apache under 98 se, me and win95 sr1 and it works fine, on
win95 sr1 you have to get winsock2 but that's all. good luck.

giro

Ralph Alberti <[EMAIL PROTECTED]> wrote in article
<[EMAIL PROTECTED]>...
> Check out the following link.
> 
> http://www.php.net/manual/en/install.iis.php
> 
>   --Ralph
> 
> 
> Jim Ray wrote:
> > 
> > I am new with PHP and I have a question about Web Servers. I am running
> > Windows ME and PWS is not supported.  Will PHP run under Apache for
windows?
> > 
> > Also, does anyone know will Windows MySQL run under Apache for windows
as
> > well?
> > 
> > Thank you for the help.
> > 
> > Jim Ray
> > 
> > --
> > PHP Windows 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]
> 
> -- 
> PHP Windows 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]
> 
> 




Thanks for your answer, but I don't run PHP as a module, but rather as CGI.

If I follow your advise, my phps files get parsed as usual, they don't show
the source code.

At the moment I'm solving it with the highlight() command, but that is not
an optimal solution...

Regards
Anders Pettersson






You can try adding a new handler to 'take care' of .phps:

     Action show-code /whatever/sourcify.php
     AddHandler show-code .phps

The sourcify.php would be something like this:

<HTML>
  <HEAD>
    <TITLE>
      Source Display
    </TITLE>
  </HEAD>
  <BODY BGCOLOR="white">
<?php
  $script = getenv( "PATH_TRANSLATED" );
  if(!$script) {
    echo "<BR><B>ERROR: Script Name needed</B><BR>";
  } else {
    if (ereg("(\.php|\.phps|\.inc)$",$script)) {
      echo "<H1>Source of: $PATH_INFO</H1>\n<HR>\n";
      highlight_file($script);
    } else {
      echo "<H1>ERROR: Only PHP or include script names are allowed</H1>";
    }
  }
  echo "<HR>Processed: ".date("Y/M/d H:i:s",time());
?>
  </BODY>
</HTML>

For more information, check out 'Action' and 'AddHandler' on your Apache
documentation.

This has the advantage that you can add your own header/footer information
so that the page does not look so 'detached' from your site... In fact, this
is how I'm going to do it from now on!!

HTH,
  Fernando Madruga

-----Original Message-----
From: Anders Pettersson [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 19 de Março de 2001 18:12
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Showing source code with .phps extension


Thanks for your answer, but I don't run PHP as a module, but rather as CGI.

If I follow your advise, my phps files get parsed as usual, they don't show
the source code.

At the moment I'm solving it with the highlight() command, but that is not
an optimal solution...

Regards
Anders Pettersson



-- 
PHP Windows 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 everyone,

I built a small requirement using  PHP and mySQL and using Win'98 and PWS as
my production server. I followed the default instructions in setting this
up.
After the phase was completed we copied the site and the db script on a
Linux machine with Apache Web Server.
However some of our mySQL code is not working. Are there any known issues
and differences while porting ?

I get errors like:
Warning: Supplied argument is not a valid MySQL result resource in
/usr/local/etc/httpd/htdocs/shrunkenplanet/demo/content/index.php on line 12

line 12 has the following code:
$row_array = mysql_fetch_row($rsRef);

I know my connection to the db is being established. Command like $rsRef =
mysql_query($Query); are working (since they occur before mysql_fetch_row()

Can anybody point me in the right direction. I am at my wit end trying to
figure this out. Unfortunatly I have absolutly no knowledge of Linux and
Apache. I guess it as to do with the mySQL library installed or some
configuration settings ?
Any help will be really appreciated.

TIA
-Mujahid











hi,
check your sql query, especially the table and column names.
mysql for windows is not case sensitive, whereas mysql for linux is.
so under linux, not only the spelling must match but also the used case.
chris.

-----Original Message-----
From: Mujahid [mailto:[EMAIL PROTECTED]]
Sent: lundi 19 mars 2001 20:31
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Windows and Linux


Hi everyone,

I built a small requirement using  PHP and mySQL and using Win'98 and PWS as
my production server. I followed the default instructions in setting this
up.
After the phase was completed we copied the site and the db script on a
Linux machine with Apache Web Server.
However some of our mySQL code is not working. Are there any known issues
and differences while porting ?

I get errors like:
Warning: Supplied argument is not a valid MySQL result resource in
/usr/local/etc/httpd/htdocs/shrunkenplanet/demo/content/index.php on line 12

line 12 has the following code:
$row_array = mysql_fetch_row($rsRef);

I know my connection to the db is being established. Command like $rsRef =
mysql_query($Query); are working (since they occur before mysql_fetch_row()

Can anybody point me in the right direction. I am at my wit end trying to
figure this out. Unfortunatly I have absolutly no knowledge of Linux and
Apache. I guess it as to do with the mySQL library installed or some
configuration settings ?
Any help will be really appreciated.

TIA
-Mujahid








--
PHP Windows 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]






Whenever you get a warning like 'Supplied argument is not a valid MySQL
result resource...' there is an error in your code - somewhere you have
failed to check that the return value from a mysql call has not returned
zero. In your case, one has, and if you do the check, and then print out
mysql_error() afterwards, you'll find out what went wrong.

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






Forking is a unix thing...  What happens when a process comes to a fork in
the road, it splits and continues in two directions.

You can't execute a batch file, you need the command intrepreter to handle
that one, so the previous suggestion should be accurate.  If you're on NT or
2000, maybe cmd.exe would be more apropriate.

If you don't like this comment, go to the kitchen, open the silverware
drawer, grab a fork and and see how far along you get with it on your
keyboard.

<jyrgen [@] [EMAIL PROTECTED] ("Jürgen Lasn")> wrote in message
98qdfq$2t9$[EMAIL PROTECTED]">news:98qdfq$2t9$[EMAIL PROTECTED]...
> Hi!
>
> No the error is not generated while exec'ing external program but while it
> attemts to call the system() command ... it's like the system() and exec()
> are malfuncioning ... using backticks (`) made the script to hang ....
there
> is something very fundamental that i do wrong but ... where? what?
>
> whoknows? :)
>
> Jürgen.
>
> "Fernando Madruga" <[EMAIL PROTECTED]> wrote in message
> 3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR...
> You could try replacing "batch.bat" with "c:\windows\command.com /c
> batch.bat" for windows 9x or "C:\winnt\cmd.exe /c batch.bat" or something
> like that.
>
>
>
>
> --
> PHP Windows 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]
>






Hello,
        I've done work with php, perl and the like on linux, but am having
a problem attempting to execute a program from my php under windows.  I'm
trying to call
sendmail from my page, but when the window pops up, my harddrive spins for
a sec then the window closes, with no execution.  here's the call I have 
system("C:\\program files\\apache group\\apache\\cgi-bin\\sendmail 
poshea\@antioch-college.edu < mail");

Could someone please let me in on what I'm doing wrong?  I'd really
appreciate it.  THanks.
Patrick O'Shea





Cute...

I think you've got a couple of things to do now.  Your computer now has the
file type .php associated with php.exe.  If that was what you really wanted
great!  But I think it's not what you were looking for.

Under IIS on my box, I have properties for the computer a section called
Computer MIME Map.  I suspect you do to.  Remove .php from there.  That is
for your computer, not specifically for the web server.

After it's removed from there OK out of File Types if you haven't already.

Ok out of the the computer properties also.

Now select "Default Web Site" listed under your computer's name and edit the
properties of it.

Go to the Home Directory tab, select configuration and add the .php
extension there.  (this is how to do it for IIS4 on NT)

Read the instructions more carefully, perhaps you'll see where you veered to
the left, instead of the right.

good luck,
-joe
""Daniel"" <[EMAIL PROTECTED]> wrote in message
98p78q$8r7$[EMAIL PROTECTED]">news:98p78q$8r7$[EMAIL PROTECTED]...
> I am very new to php, but i tried to install it and i followed the
> directions i think... But everytime i try to view a .php document in IE it
> prompts me to download the file instead of viewing it in the browser. And
> when I do download the file and run it, it opens it up in a "Command
Prompt"
> and runs a bunch of html syntax really fast, I am thinking that is my php
> configuration that i am supposed to see in my browser. Is there an
extension
> problem or something? .php extensions are set to run the /php/php.exe file
> but I cant figure anything out. I am running apache on windows 2000.
>
>
>
> --
> PHP Windows 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, I'm a newbie...

Trying to set up these 3 on my windows 98 machine.  PHP and Apache set up is
OK.  They can talk to each other.  Have also installed MySQL.  But I'm not
sure how to make it accessible from PHP.  Appreciate any help....  :-)

Ricky






This appears to be an IIS specific issue.

Using IIS and Manuel Lemos' Metabase, I'm getting errors in
metabase_interface.php.

Fatal error: Cannot instantiate non-existent class: metabase_oci_class in
metabase/metabase_interface.php on line 99

It's quite inconsistent.  After recieving this error, the next refresh, the
error does not appear.

I'm suspecting the root of the problem is class instantiation, within a
class where the subordinate class is instantiated immediately after an
include($class_file) within the parent class.  Heh, if you can follow that,
please advise...




Reply via email to