php-windows Digest 30 Jan 2001 12:16:46 -0000 Issue 419
Topics (messages 5244 through 5261):
PHP vs JSP ?
5244 by: Antonio Lopez
5246 by: Toby Butzon
5250 by: Michael Stearne
Re: About Error Message
5245 by: Ryan Grove
Install question
5247 by: RichInRI.aol.com
5251 by: Johannes Janson
Re: undesired header in all my php pages
5248 by: Zeev Suraski
5260 by: patrik.lindstrom.spectronic.se
A question
5249 by: ATU
5253 by: Gonzalo Vera
Re: Error in a remote computer with IIS and windows 200 0
5252 by: Bikes
Variable problems
5254 by: Diverge
PHP on NT4 Enterprise w/ MS Cluster Service & WLBS
5255 by: Sean.Rector.compass.net
Installation configuration
5256 by: gerard garcia
Text area
5257 by: Mangiola Nunzio Datavia
5258 by: David Harrison
5259 by: Mangiola Nunzio Datavia
difference ftp_fget() in cgi- and module-mode
5261 by: DATURA
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]
----------------------------------------------------------------------
PHP or JSP ?
I need to know what language is better to develop powerful dinamic web pages.
Thankyou!!
===================================================
Antonio López Luna
Ingeniería e Integración Avanzadas (Ingenia), S.A.
Parque Tecnológico de Andalucía
29590 - Málaga (Spain)
Tel. 34-952029300 Ext. 386
Fax. 34-952029309
Web: http://www.ingenia.es
There are all kinds of comparisons out there on this. A search on any
popular search engine should turn something up. Also, I believe there
was an article on CNET comparing ASP, PHP, and JSP.
The general word seems to be that JSP is a little slower in execution
time and in development time, but in some cases can be more powerful
(although I personally have never run into anything that PHP couldn't do
for me; even so, if it really came down to it, I could write a PHP
module in C to do whatever I need it to do). PHP on the other hand has a
quicker development time in general and runs faster.
Like I said, that's just a basic run-down; if you're interested, go do
some searches for comparisons - they're out there.
--toby
Antonio Lopez wrote:
>
> PHP or JSP ?
>
> I need to know what language is better to develop powerful dinamic web pages.
>
> Thankyou!!
>
> ===================================================
> Antonio López Luna
> Ingeniería e Integración Avanzadas (Ingenia), S.A.
> Parque Tecnológico de Andalucía
> 29590 - Málaga (Spain)
>
> Tel. 34-952029300 Ext. 386
> Fax. 34-952029309
> Web: http://www.ingenia.es
>
> --
> 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]
Which is better Coke or Pepsi?
I'm kidding, but there was just a really long discussion on this a couple of weeks
ago. Go to http://phpbuilder.com and do a search on this topic, you'll find a lot.
Michael
On Monday, January 29, 2001, at 06:08 AM, Antonio Lopez wrote:
>
> PHP or JSP ?
>
> I need to know what language is better to develop powerful dinamic web pages.
>
>
> Thankyou!!
>
>
>
> ===================================================
> Antonio López Luna
> Ingeniería e Integración Avanzadas (Ingenia), S.A.
> Parque Tecnológico de Andalucía
> 29590 - Málaga (Spain)
>
> Tel. 34-952029300 Ext. 386
> Fax. 34-952029309
> Web: http://www.ingenia.es
>
>
> --
> 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]
>
>
>
Try moving php_yaz.dll to your Windows system directory (i.e.,
c:\winnt\system32\). This seems to fix the problem most of the time.
--
Ryan Grove
[EMAIL PROTECTED]
http://wonko.com/
---------------------------------------------------------------------
If you declare love, what identifier scope does it have?
[M.Riadul]
> Hi there
> I have configured Apache and Php successfully. But i want to use YAZ support from
>PHP. I have
> changed the extension_dir = and uncomment the extension = php_yaz.dll in the
>php.ini file.
> And put the .ini file in the windows dir.
> But I am getting the following Error message
> Fatal error: Call to undefined function: yaz_connect() in f:\myphp\try.php
> on line 175
> Its may be cause of failing to load the php_yaz.dll or any other possibility.
> Could you pls help me out to fix this error msg.
Win98, Apache 1.3.12, PHP 4.04 [win32]
NOTHING I do can get PHP code to show up in my browser. Is there some
problem that I don't know about?
I even tried the install tutorial at thickbook.com. STILL nothing.
Richard
any error-messages? do you have the "AddType application"-bit set?
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Win98, Apache 1.3.12, PHP 4.04 [win32]
> NOTHING I do can get PHP code to show up in my browser. Is there some
> problem that I don't know about?
> I even tried the install tutorial at thickbook.com. STILL nothing.
>
> Richard
>
> --
> 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]
>
At 04:11 28/1/2001, Alkis Doulgeris wrote:
>Dear sirs,
>
> About a month ago, I downloaded and installed the php binaries, on My
>Apache 1.3.14 server under windows 2000.
>
> I work with Dreamweaver 4, And untill last 2 days, I was able to test
>and run my scripts without any problem. Not that there is a problem now, the
>scripts are still working perfect, but tha last 2 days, when I test the page
>on the Apache, before every content to be shown, a text message appears at
>the top of the borwser's page (and is before even the <html> tag) which
>says:
>
>"X-Powered-By: PHP/4.0.0 Content-type: text/html"
>
>why is this happening? Is it somehow a shareware release? And when it
>expires, it shows this message at the very top of every php page? And if it
>is a shareware release, how can I purchase? I hope it is not a shareware,
>cause it is under the public license as you say so.
>
>I have to tell you that I test the scripts locally (the known "localhost")
>
>PLease tell me what I should do, to stop this message from apearing to every
>php page.
Apparently, parts of the HTTP header are somehow being sent as a part of
the document body. The text you specified is indeed sent on every request,
but it's supposed to be a part of the HTTP header, and shouldn't be seen on
the browser.
Are you using a CGI? If you do, try to run the script from the command
line, using php.exe, and see if any errors are emitted. It's possible that
due to a start-up error, the HTTP header is being clobbered, and this text
makes it into the browser.
Zeev
At 04:11 28/1/2001, Alkis Doulgeris wrote:
>Dear sirs,
>
> About a month ago, I downloaded and installed the php binaries, on My
>Apache 1.3.14 server under windows 2000.
>
> I work with Dreamweaver 4, And untill last 2 days, I was able to test
>and run my scripts without any problem. Not that there is a problem now, the
>scripts are still working perfect, but tha last 2 days, when I test the page
>on the Apache, before every content to be shown, a text message appears at
>the top of the borwser's page (and is before even the <html> tag) which
>says:
>
>"X-Powered-By: PHP/4.0.0 Content-type: text/html"
>
>why is this happening? Is it somehow a shareware release? And when it
>expires, it shows this message at the very top of every php page? And if it
>is a shareware release, how can I purchase? I hope it is not a shareware,
>cause it is under the public license as you say so.
>
>I have to tell you that I test the scripts locally (the known "localhost")
>
>PLease tell me what I should do, to stop this message from apearing to every
>php page.
As Zeev wrote: "Are you using a CGI?"
If you do, maybe you're adding a header that ends with two <CRLF>? That means
you're terminating the http header, and everything after that will end up on
your web-page. *****************************************************
Patrik Lindström
Spectronic Research AB
Tel: +46 42 25 20 00
Fax: +46 42 15 68 32
Internet Address: [EMAIL PROTECTED]
Home Page: http://www.spectronic.se
*****************************************************
I am now learning PHP,I have already installed it,and have modified
the 'httped.conf'in Apache.But when I run 'apache.exe',it didn't work.I checked it in
Ms-dos,it said:
'APACHE.EXE:cannot determine local host name.
Use the SeverName directive to set it manually.'
I think i shouldn't do some local area network setup, and I have
checked the directory: 'c:\windows\hosts.sam' ,it was all
right.'localhost 127.0.0.1',<--is that right? Do I have to install
'Dcom95.exe'?
So I need some help.Can you help me? Thank you very much!
A PC fan from Shanghai China.
ATU
[EMAIL PROTECTED]
I'm afraid you're still short in having php running: yours is an
apache configuration problem, which is off topic for this list. I'll
mail you directly with some pointers to get your setup running.
Gonzalo.
> I am now learning PHP,I have already installed it,and have modified
> the 'httped.conf'in Apache.But when I run 'apache.exe',it didn't work.I checked it
>in Ms-dos,it said:
> 'APACHE.EXE:cannot determine local host name.
> Use the SeverName directive to set it manually.'
> I think i shouldn't do some local area network setup, and I have
> checked the directory: 'c:\windows\hosts.sam' ,it was all
> right.'localhost 127.0.0.1',<--is that right? Do I have to install
> 'Dcom95.exe'?
> So I need some help.Can you help me? Thank you very much!
> A PC fan from Shanghai China.
> ATU
> [EMAIL PROTECTED]
That is the actual error I get whenever I do not point my script to the
correct location, or when my script is not under the home directory of my
webserver.
To make sure you are in the correct home directory, save a simple "Hello
world" in the same folder where you saved the php file, give it the
extension .html, if it runs, them you are in the correct home directory.
Also, make sure the URL you are pointing to is correct. Eg.
http://localhost/index.html might be stored physically in c:\program
files\Apache\htdocs\index.html
Get it?
Bikes
-------------
Knowledge is Limited, Imagination encompasses it all
-------------
-----Original Message-----
From: Ryan Grove
To: [EMAIL PROTECTED]
Sent: 1/28/01 2:57 AM
Subject: Re: [PHP-WIN] Error in a remote computer with IIS and windows 2000
This is the error that the PHP CGI module returns under IIS when it
can't find the page you requested. Make sure the page you're trying to
access actually exists at the location you're requesting it from.
Of course, it could be that PHP doesn't handle remote scripts
properly...
--
Ryan Grove
[EMAIL PROTECTED]
http://wonko.com/
---------------------------------------------------------------------
If we weren't meant to eat animals, then why are they made of meat?
[Gaspar]
> I'm configuring a webserver with IIS 5.0 and PHP 4.0 and when I did
> test with a local disk I don't have problems but when I try to
> execute remote scripts this send me a error the error is "CGI Error
> The specified CGI application misbehaved by not returning a complete
> set of HTTP headers. The headers it did return are:" and I don't
> found nothing in manuals
> could someone help me?
--
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've sort of programmed myself into a corner on a recent projekt i've been working on.
This is the last part of the projekt, and i sure hope someone can help me on this one.
Scenario is:
I want to read a HTML file containing PHP variables into a string, then replace the
variables with text from another array.
I.e a simple str_replace() would do the trick, unless it was a variable i would want
to change.
The strings i'm trying to replace is
<?=$output[?]?>
Where ? can be anything from 0 to whatever..
Anyone know a solution to this?
/Micke
I'm investigating the possibility of installing PHP onto a pair of Win NT4
Enterprise Servers, running Windows Load Balance Service. Does anyone have
any information on how PHP performs/would perform in this environment? Are
there any "gotcha's" that I need to look for? I'll want PHP to run within
several websites on the server, all of which have their own IP.
Sean Rector - Network Integration Group
Voice: 757-226-3398 Pager: 757-552-2127 Cell: 757-288-1025
Let every nation know, whether it wishes us well or ill, that we shall pay
any price, bear any burden, meet any hardship, support any friend, oppose
any foe to assure the survival and the success of liberty.
~ John
<http://www.cybernation.com/victory/quotations/authors/quotes_kennedy_johnf.
html> F. Kennedy ~
Hello,
I have Windows 98 running Personal Web Server 4.0
and downloaded the version 4.0.4. pl1 installer number 1.04.
I ran the installation.
I basically want to 'compile' the PHP coding i do (in html)
and 'check it' on the home page that Personal web server
created for me.
Am i doing something wrong? i believe it was suppose
to automatically configure my PWS to view my php code.
Please excuse my unfamiliarity with this application
I wont ask many novice questions..
sorry
The other email address listed on PHP.net that dealt
with installation kept bouncing my messages back.
Thanks in advance
Gerard
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
Hi
I'm trying to or half succeeded in creating
a guestbook on my intranet site.
Now my problem is this:
When creating the form I have
trouble creating a text area larger
than one line.
I use at the moment <input type="text" blah blah
That gives me one line and it appears in
MySQL database. But if I try to add rows="6"
cols="70" it still gives me one line.
Any suggestions?
Try using the TEXTAREA tag instead:
<TEXTAREA ROWS="5" COLS="55" NAME="boop">
--dave
> -----Original Message-----
> From: Mangiola Nunzio Datavia [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 30 January 2001 4:13 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Text area
>
>
> Hi
>
> I'm trying to or half succeeded in creating
> a guestbook on my intranet site.
>
> Now my problem is this:
> When creating the form I have
> trouble creating a text area larger
> than one line.
> I use at the moment <input type="text" blah blah
> That gives me one line and it appears in
> MySQL database. But if I try to add rows="6"
> cols="70" it still gives me one line.
>
> Any suggestions?
>
>
> --
> 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]
>
It does work on the face of it. But when you
query the database the field is empty even if you filled
it in.
> ----------
> From: David Harrison[SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, January 30, 2001 8:22 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Text area
>
> Try using the TEXTAREA tag instead:
>
> <TEXTAREA ROWS="5" COLS="55" NAME="boop">
>
> --dave
>
> > -----Original Message-----
> > From: Mangiola Nunzio Datavia [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 30 January 2001 4:13 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Text area
> >
> >
> > Hi
> >
> > I'm trying to or half succeeded in creating
> > a guestbook on my intranet site.
> >
> > Now my problem is this:
> > When creating the form I have
> > trouble creating a text area larger
> > than one line.
> > I use at the moment <input type="text" blah blah
> > That gives me one line and it appears in
> > MySQL database. But if I try to add rows="6"
> > cols="70" it still gives me one line.
> >
> > Any suggestions?
> >
> >
> > --
> > 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]
>
Until now I was using PHP4 in CGI-Mode. Now I want to change to Apache
Module. So I made the nessecary changes in httpd.conf and rebotted the
Windows 2000 server.
Since PHP is running as an Apache Module, the function ftp_fget()
doesn't work correctly anymore.
I read a jpg from a FTP Server and display it with the <img> tag.
In Module Mode the file is transferred and the width and height is
correct, but the content is wrong (wrong colors in the completely wrong
places). When PHP is running in cgi mode, everything is correct.
Thanks for any help, Rolf.
Code Sample:
class Foto_class
{
var $fotoname;
function Foto_class( $verwender )
{
global $const_ftp_host, $const_ftp_user, $const_ftp_passwd,
$const_ftp_dir;
$select_file = "foto.jpg";
$ftp = ftp_connect( $const_ftp_host );
if ( $ftp )
{
ftp_login( $ftp, $const_ftp_user, urldecode( $const_ftp_passwd )
);
}
if ( $const_ftp_dir == "" )
{
$const_ftp_dir = FTP_DIRROOT;
}
$const_ftp_dir = $const_ftp_dir . FTP_DIRROOT . $verwender;
if ( ( ! $ftp ) || ( ! @ftp_chdir( $ftp, $const_ftp_dir ) ) )
{
@ftp_quit( $ftp );
}
else
{
srand( ( double ) microtime() * 1000000 );
$randval = rand();
$tmpfile = $select_file . "." . $randval;
$showfile = $this->filename( $tmpfile );
$fp = fopen( $showfile, "w" );
if ( ! @ftp_fget( $ftp, $fp, $select_file, FTP_BINARY ) )
{
ftp_quit( $ftp );
}
else
{
ftp_quit( $ftp );
$this->fotoname = $showfile;
}
@fclose( $fp );
}
}
function filename($f_name)
{
$dir = "./temp/sess_".session_id();
if (!file_exists($dir)) mkdir($dir,0700);
return $dir."/".$f_name;
}
function out()
{
return $this->fotoname;
}
}