php-general Digest 5 May 2001 05:42:34 -0000 Issue 667

Topics (messages 51451 through 51502):

Re: hdml simulator?
        51451 by: Jon Rosenberg

problem with PHP and .htaccess
        51452 by: Tom Carter

PHP on PWS not working!
        51453 by: Thomas Edison Jr.
        51458 by: Data Driven Design
        51459 by: Thomas Edison Jr.
        51461 by: Data Driven Design
        51502 by: Thomas Edison Jr.

Cant add new Header
        51454 by: Andy
        51476 by: Dan Lowe
        51483 by: Miles Thompson

Finding out the date on the client machine
        51455 by: Andy
        51499 by: vv

Can not send new Header
        51456 by: Andy
        51457 by: Altunergil, Oktay

Re: Array Assignment
        51460 by: Christian Reiniger

Re: Need to know this
        51462 by: John Monfort
        51463 by: John Monfort

Re: BET News
        51464 by: John Monfort

Script invocation similar to ASP <%=  %>
        51465 by: Bjoern Werkmann
        51466 by: Hoover, Josh
        51468 by: Renzi, Sebastian

PHP Flat File Support--Where,How?
        51467 by: John Monfort

session_register() behavior
        51469 by: Jon Peccarelli

Re: how?
        51470 by: heinisch.creaction.de

Even more dynamic page
        51471 by: Martin Skjöldebrand
        51472 by: Steve Werby
        51478 by: Philip Olson

nslookup function ?
        51473 by: Matthew Luchak

trying to activate php4 module
        51474 by: Jeff Orrok
        51475 by: Andrew Hill

Vanishing files.
        51477 by: Andrzej Swedrzynski

Couldn't run PHP script from CGI-BIN
        51479 by: Nguyen, David M
        51481 by: Martín Marqués
        51492 by: ddogbruce.home.com

Apache/PHP4/SSL, downloads fail with IE 5.5 only when using sessions
        51480 by: Bill Rausch
        51482 by: Martín Marqués
        51485 by: Bill Rausch

php installed as cgi with mysql support
        51484 by: Northwesthost
        51486 by: Richard Kurth

Extracting Array value as variable
        51487 by: John McConnell
        51493 by: Philip Olson
        51495 by: John McConnell

passing variables + if case
        51488 by: Andras Kende

zlib problem
        51489 by: Jeroen Geusebroek

sprintf()'s in if()'s
        51490 by: Chris Cameron
        51491 by: Jason Brooke

Search
        51494 by: Manesh

mosxs build error
        51496 by: Jeff Orrok

mosxs build error -- more detail
        51497 by: Jeff Orrok
        51501 by: Jeff Orrok

Netscape and post
        51498 by: Richard Kurth

Re: apache toolbox
        51500 by: Chris Schneck

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]


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


The up.sdk phone sim works for me with both wml and hdml as well.  You just
have to make sure you are sending the correct headers, etc...

Jon


----- Original Message -----
From: "Data Driven Design" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 1:39 PM
Subject: [PHP] hdml simulator?


> I'm writing some wireless content in PHP and I've found several wml
> simulators but none for hdml. The up.sdk says it works for hdml but
displays
> my wml content. Anybody know where to find a hdml simulator?
>
> Data Driven Design
> P.O. Box 1084
> Holly Hill, Florida 32125-1084
>
> http://www.datadrivendesign.com
> http://www.rossidesigns.net
>
>
> --
> PHP General 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 have a quite complex site organised into a series of subdirectories, all
referrencing one single include directory, specified by a global variable
required on each page. This file has sym links to all the directories, and
I've done a test output so that is not the cause of the problem.

What I'm trying to do is this, put a .htaccess over the whole lot so that
only users who are part of the pilot can get in.The site already uses
authentication for certain areas, and since this is a pilot I don't want
to put any code in just for that, a .htaccess should be able to do
everthing I want in theory.

my include line loks like this

include($includedir."header.inc");

however when I create the .htaccess file (see below) then the page fails
to include the file and prints the following error message

Warning: Failed opening 'http://www.mydomain.com/pilot/include/header.inc'
for inclusion (include_path='') in /home/sites/site4/web/pilot/index.php
on line 7

and then loads the rest of the page.

The .htaccess file I've been using is as follows.

Authname pilot
Authtype Basic
order allow,deny
allow from all
require group site4

I'm not very comfortable wit h.htaccess, not something I've used very
much. I am fairly sure that it isn't the last line....the exact same file
worked fine doing, say phpMyAdmin, with the only difference being that
phpMyAdmin has all its files in one directory.

I hope this email makes sense+please help!!

Eternally grateful

Tom Carter
Web Architect
roundcorners ltd.






don't know why still my PHP 4.0.5 is NOT working on my
PWS 4.0!! the PHP module is now working perfectly on
my Apache server (At Last)!! but what is wrong with
PWS??? 

I have left the doc_root field blank in php.ini 
And the extension_dir points to C:\php4 which actually
contains php.exe and only 1 dll file, that is,
php4ts.dll 
Do i have to point extension_dir to some other
location? like the "extension" folder in my php4
folder?
Should i replace the old browscap.ini with this new
one that i got with php4?

any other suggestions? please help...

Cheers,
T. Edison jr.


=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




I use PWS what errors are you getting?

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
----- Original Message ----- 
From: Thomas Edison Jr. <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 2:00 PM
Subject: [PHP] PHP on PWS not working!


> don't know why still my PHP 4.0.5 is NOT working on my
> PWS 4.0!! the PHP module is now working perfectly on
> my Apache server (At Last)!! but what is wrong with
> PWS??? 
> 
> I have left the doc_root field blank in php.ini 
> And the extension_dir points to C:\php4 which actually
> contains php.exe and only 1 dll file, that is,
> php4ts.dll 
> Do i have to point extension_dir to some other
> location? like the "extension" folder in my php4
> folder?
> Should i replace the old browscap.ini with this new
> one that i got with php4?
> 
> any other suggestions? please help...
> 
> Cheers,
> T. Edison jr.
> 
> 
> =====
> Rahul S. Johari (Director)
> ******************************************
> Abraxas Technologies Inc.
> Homepage : http://www.abraxastech.com
> Email : [EMAIL PROTECTED]
> Tel : 91-4546512/4522124
> *******************************************
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 
> -- 
> PHP General 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'm not getting errors, when i do open my page
(http://localhost/test.php3) or any php3 page on my
PWS, i get an "HTTP 500 - Internal server error". All
the HTML files and stuff are running on my PWS. Only
php3 is not!! 
i did not make any changes to my PWS while installing
this new php4.0.5 file today. had to make some changed
in registry for new paths and give the same stuff in
php.ini, but i didn't do anything in PWS. the earlier
PHP4 was running fine on my PWS till yesterday. This
new one is not!!
and like i wrote before :
 
 PWS 4.0!! the PHP module is now working perfectly
 on my Apache server (At Last)!! but what is wrong
 with PWS??? 
 I have left the doc_root field blank in php.ini 
 And the extension_dir points to C:\php4 which
 actually contains php.exe and only 1 dll file, that
is, php4ts.dll 
 Do i have to point extension_dir to some other
 location? like the "extension" folder in my php4
 folder?
 Should i replace the old browscap.ini with this
 new one that i got with php4?

tell me what do i do?
T. Edison jr.




=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




Did you check the execute box uder the home directory properties? I think
that's when I got that error.  Also you need to reboot after you make the
registry entries, even though the instructions don't say so.

Data Driven Design
P.O. Box 1084
Holly Hill, Florida 32125-1084

http://www.datadrivendesign.com
http://www.rossidesigns.net
----- Original Message -----
From: Thomas Edison Jr. <[EMAIL PROTECTED]>
To: Data Driven Design <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 2:21 PM
Subject: Re: [PHP] PHP on PWS not working!


> i'm not getting errors, when i do open my page
> (http://localhost/test.php3) or any php3 page on my
> PWS, i get an "HTTP 500 - Internal server error". All
> the HTML files and stuff are running on my PWS. Only
> php3 is not!!
> i did not make any changes to my PWS while installing
> this new php4.0.5 file today. had to make some changed
> in registry for new paths and give the same stuff in
> php.ini, but i didn't do anything in PWS. the earlier
> PHP4 was running fine on my PWS till yesterday. This
> new one is not!!
> and like i wrote before :
>
>  PWS 4.0!! the PHP module is now working perfectly
>  on my Apache server (At Last)!! but what is wrong
>  with PWS???
>  I have left the doc_root field blank in php.ini
>  And the extension_dir points to C:\php4 which
>  actually contains php.exe and only 1 dll file, that
> is, php4ts.dll
>  Do i have to point extension_dir to some other
>  location? like the "extension" folder in my php4
>  folder?
>  Should i replace the old browscap.ini with this
>  new one that i got with php4?
>
> tell me what do i do?
> T. Edison jr.
>
>
>
>
> =====
> Rahul S. Johari (Director)
> ******************************************
> Abraxas Technologies Inc.
> Homepage : http://www.abraxastech.com
> Email : [EMAIL PROTECTED]
> Tel : 91-4546512/4522124
> *******************************************
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> --
> PHP General 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]
>
>





Ummm...you could be onto something my dear friend..

> know when I set it up once I had not taken into
> account that the .dll files
> are in the /sapi/ folder.

they in fact are in the /sapi/ folder..do i have to
declare this somewhere? in php.ini or something?
because i have not referenced to this anywhere!!! in
the "extension_dir =" in the php.ini, i have given
"C:\php4" only, which has only php.exe & php4ts.dll
among some other few files. Should i change this to
c:\php4\sapi ?

cheers,
T. Edison jr.

--- Data Driven Design <[EMAIL PROTECTED]>
wrote:
> Sometimes windows just breaks, I've done clean
> installs lately. Reinstalling
> might fix your problems, who knows. Is the path in
> you regedit correct. I
> 
> Data Driven Design
> P.O. Box 1084
> Holly Hill, Florida 32125-1084
> 
> http://www.datadrivendesign.com
> http://www.rossidesigns.net
> ----- Original Message -----
> From: Thomas Edison Jr. <[EMAIL PROTECTED]>
> To: Data Driven Design <[EMAIL PROTECTED]>
> Sent: Friday, May 04, 2001 2:33 PM
> Subject: Re: [PHP] PHP on PWS not working!
> 
> 
> > Did both Sir. checked the execute box and
> rebooted. i
> > don't know where it is going wrong. suddenly i did
> > find out that none of my ASP scripts are working
> > either. Do you think my PWS has developed an
> internal
> > problem? i'm thinking of re-installing it.
> > suggestions?
> >
> > T. Edison jr.
> >
> > --- Data Driven Design <[EMAIL PROTECTED]>
> > wrote:
> > > Did you check the execute box uder the home
> > > directory properties? I think
> > > that's when I got that error.  Also you need to
> > > reboot after you make the
> > > registry entries, even though the instructions
> don't
> > > say so.
> > >
> > > Data Driven Design
> > > P.O. Box 1084
> > > Holly Hill, Florida 32125-1084
> > >
> > > http://www.datadrivendesign.com
> > > http://www.rossidesigns.net
> > > ----- Original Message -----
> > > From: Thomas Edison Jr.
> <[EMAIL PROTECTED]>
> > > To: Data Driven Design
> <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Friday, May 04, 2001 2:21 PM
> > > Subject: Re: [PHP] PHP on PWS not working!
> > >
> > >
> > > > i'm not getting errors, when i do open my page
> > > > (http://localhost/test.php3) or any php3 page
> on
> > > my
> > > > PWS, i get an "HTTP 500 - Internal server
> error".
> > > All
> > > > the HTML files and stuff are running on my
> PWS.
> > > Only
> > > > php3 is not!!
> > > > i did not make any changes to my PWS while
> > > installing
> > > > this new php4.0.5 file today. had to make some
> > > changed
> > > > in registry for new paths and give the same
> stuff
> > > in
> > > > php.ini, but i didn't do anything in PWS. the
> > > earlier
> > > > PHP4 was running fine on my PWS till
> yesterday.
> > > This
> > > > new one is not!!
> > > > and like i wrote before :
> > > >
> > > >  PWS 4.0!! the PHP module is now working
> perfectly
> > > >  on my Apache server (At Last)!! but what is
> wrong
> > > >  with PWS???
> > > >  I have left the doc_root field blank in
> php.ini
> > > >  And the extension_dir points to C:\php4 which
> > > >  actually contains php.exe and only 1 dll
> file,
> > > that
> > > > is, php4ts.dll
> > > >  Do i have to point extension_dir to some
> other
> > > >  location? like the "extension" folder in my
> php4
> > > >  folder?
> > > >  Should i replace the old browscap.ini with
> this
> > > >  new one that i got with php4?
> > > >
> > > > tell me what do i do?
> > > > T. Edison jr.
> > > >
> > > >
> > > >
> > > >
> > > > =====
> > > > Rahul S. Johari (Director)
> > > > ******************************************
> > > > Abraxas Technologies Inc.
> > > > Homepage : http://www.abraxastech.com
> > > > Email : [EMAIL PROTECTED]
> > > > Tel : 91-4546512/4522124
> > > > *******************************************
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Yahoo! Auctions - buy the things you want at
> great
> > > prices
> > > > http://auctions.yahoo.com/
> > > >
> > > > --
> > > > PHP General 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 General 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]
> > >
> >
> >
> > =====
> > Rahul S. Johari (Director)
> > ******************************************
> > Abraxas Technologies Inc.
> > Homepage : http://www.abraxastech.com
> > Email : [EMAIL PROTECTED]
> > Tel : 91-4546512/4522124
> > *******************************************
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great
> prices
> > http://auctions.yahoo.com/
> >
> 


=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : [EMAIL PROTECTED]
Tel : 91-4546512/4522124
*******************************************

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




Hello,

I am a newi.

Currently I try to relocate the viewed page after entering successful a
form.

I tryed it like that:
HEADER("Location:http://$HTTP_HOST/admin/admin.php?content=upload";);

But I did get an errormessage which said that I already have sent a header
( which was a body tag).

Can anybody please help me in that case??

Thanx

Andy






See ob_start().

    http://php.net/manual/en/function.ob-start.php

Previously, Andy said:
> 
> I tryed it like that:
> HEADER("Location:http://$HTTP_HOST/admin/admin.php?content=upload";);
> 
> But I did get an errormessage which said that I already have sent a header
> ( which was a body tag).

-- 
If it happens once, it's a bug.  If it happens twice, it's a feature.
If it happens more than twice, it's a design philosophy.




Right - you can't send anything, even a blank line, before a header. You 
will have to do some restructuring/rearrangement of your code
Miles

At 11:00 AM 5/4/01 -0700, Andy wrote:
>Hello,
>
>I am a newi.
>
>Currently I try to relocate the viewed page after entering successful a
>form.
>
>I tryed it like that:
>HEADER("Location:http://$HTTP_HOST/admin/admin.php?content=upload";);
>
>But I did get an errormessage which said that I already have sent a header
>( which was a body tag).
>
>Can anybody please help me in that case??
>
>Thanx
>
>Andy
>
>
>
>--
>PHP General 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 am trying to find out the date via PHP of the clients machine, or from the
server to store it to a mysql database.

Does anybody know the syntax?

Cheers Andy






hi,
   the date from the server side  can be taken  using php DATE functions..
on the client side u have to us JAVA SRIPT .
senthil

Andy wrote:

> Hi,
>
> I am trying to find out the date via PHP of the clients machine, or from the
> server to store it to a mysql database.
>
> Does anybody know the syntax?
>
> Cheers Andy
>
> --
> PHP General 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 am a newbi.

Currently I try to relocate the viewed page after entering successful a

form.

I tryed it like that:

HEADER("Location:http://$HTTP_HOST/admin/admin.php?content=upload";);

But I did get an errormessage which said that I already have sent a header

( which was a body tag).

Can anybody please help me in that case??

Thanx

Andy







You have to send the HEADER before anything is sent to the browser. If you
have sent html tags like <HTML>,<BODY> etc or anything else the browser will
parse, subsequent calls to HEADER stuff will not work. (that is unless you
do output buffering of some sort)

oktay

-----Original Message-----
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 2:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can not send new Header


Hello,

I am a newbi.

Currently I try to relocate the viewed page after entering successful a

form.

I tryed it like that:

HEADER("Location:http://$HTTP_HOST/admin/admin.php?content=upload";);

But I did get an errormessage which said that I already have sent a header

( which was a body tag).

Can anybody please help me in that case??

Thanx

Andy




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




On Saturday 05 May 2001 16:55, Mark Cain wrote:

> In Perl I can assign dynamic keys ad infinitum to an array such as:
>
> $sku{$id}{$line}{$price} = 99;

Same in PHP:

$sku [$id] [$line] [$price] = 99;

if $sku is an array. If unsure, initialize it as one:
$sku = array ();

> Here is the test code:
>
> $first = "Elementary";
> $second = "Middle";

> $first[$second] = "pass";

> echo "After Assignment:<BR>";
> echo "first = $first<BR>";    // prints: first = plementary   ---  what
> is this ????!!

$first is a string, i.e. $first [$n] accesses the $n'th character in the 
string "Elementary".
$second is a string as well. You use it as index in the string, so it is 
automatically converted to an integer: "Middle" -> 0

So you assign "pass" to the first character of $first.
And as you can only assign other single characters to a single char, the 
first char of "pass" is used.

> echo "$first[$second]";    // prints: P

That should be a lowercase 'p' (see above)


Summary: You thought too complex and thus stumbled over another feature 
of PHP :)

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

What luck for the rulers that men do not think.

- Adolf Hitler






   www.php.net



__________John Monfort_________________
_+-----------------------------------+_
     P E P I E  D E S I G N S
       www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___________________________________+-

On Fri, 4 May 2001, YoBro wrote:

> Hello,
>
> I need to find out what PHP stands for.
>
> Also what is better,
> ASP or PHP and who has the biggest market share.
>
> Any help would be really great.
>
> Thanks,
>
> Chris
>
>
>
> --
> PHP General 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 Stands for
  Hypertext Pre-Processor (PHP)

  You can more info at www.php.net

  The battle between ASP and PHP is ongoing. Same thing for Perl.

   www.UDzone.com has an article on this, it's called 'Seven Reasons Why
   PHP is better than ASP".



__________John Monfort_________________
_+-----------------------------------+_
     P E P I E  D E S I G N S
       www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___________________________________+-

On Thu, 3 May 2001, [EMAIL PROTECTED] wrote:

> Parsed Hypertext Processing, AFAIK.
>
> YoBro wrote:
>
> > Hello,
> >
> > I need to find out what PHP stands for.
> >
> > Also what is better,
> > ASP or PHP and who has the biggest market share.
> >
> > Any help would be really great.
> >
> > Thanks,
> >
> > Chris
> >
> > --
> > PHP General 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 General 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]
>
>







     **Ouch !! **


__________John Monfort_________________
_+-----------------------------------+_
     P E P I E  D E S I G N S
       www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___________________________________+-

On Fri, 4 May 2001, Hrishi wrote:

> <posted & mailed>
>
> MTV Jams wrote:
>
> > http://www.mp3.com/mcpedro     from [EMAIL PROTECTED]
> >
> > The question is this, If you placed a Jamaican born MC on a Hip
> > Hop/Trance/Techno track and told him to flow without losing his yard
> > essence (Jamaican Vibes), what would you get? Most likely confusion of
> > course, unless the MC was Pedro!
>
> does pedro have a problem with PHP ? i thought this group was moderated ?
>
> DIE SPAMMER.
>
> or i'll soak your nuts in liquid copper. and Pedros too.
>
>
>
> --
> PHP General 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 there,

pedantic as it might seem, ..., but is there a way to implement the
following ASP snippet in PHP

<%
    Dim PAGE_TITLE
    PAGE_TITLE = "My Page"
%>
<html>
<head>
 <title> <%=PAGE_TITLE%> </title>
</head>

...
</html>

Especially important is the use of '<%='. I'd like to get rid of  the echo
in '<?php echo $PAGE_TITLE?>'.









I believe you want something like this:

<?
        $PAGE_TITLE = "My Page";

?>

<html>
<head>
        <title> <?=$PAGE_TITLE?> </title>
</head>

...
</html>

For the short cut syntax on echo checkout:
http://www.php.net/manual/en/function.echo.php  This assumes that you have
shortags on in your php.ini file.


Josh Hoover
KnowledgeStorm, Inc.
[EMAIL PROTECTED]

Searching for a new IT solution for your company? Need to improve your
product marketing? 
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here 


> Hi there,
> 
> pedantic as it might seem, ..., but is there a way to implement the
> following ASP snippet in PHP
> 
> <%
>     Dim PAGE_TITLE
>     PAGE_TITLE = "My Page"
> %>
> <html>
> <head>
>  <title> <%=PAGE_TITLE%> </title>
> </head>
> 
> ...
> </html>




<?
        $PAGE_TITLE = "My Page";

?>

<html>
<head>
        <title> <?echo($PAGE_TITLE)?> </title>
</head>

...
</html>


Sebastián Renzi
Consultoría & Desarrollo de Sistemas.
CODES S.A



> -----Mensaje original-----
> De:   Bjoern Werkmann [SMTP:[EMAIL PROTECTED]]
> Enviado el:   viernes 4 de mayo de 2001 16:05
> Para: [EMAIL PROTECTED]
> Asunto:       [PHP] Script invocation similar to ASP <%=  %>
> 
> Hi there,
> 
> pedantic as it might seem, ..., but is there a way to implement the
> following ASP snippet in PHP
> 
> <%
>     Dim PAGE_TITLE
>     PAGE_TITLE = "My Page"
> %>
> <html>
> <head>
>  <title> <%=PAGE_TITLE%> </title>
> </head>
> 
> ...
> </html>
> 
> Especially important is the use of '<%='. I'd like to get rid of  the echo
> in '<?php echo $PAGE_TITLE?>'.
> 
> 
> 
> 
> 
> 
> -- 
> PHP General 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 everyone,

  I remember noticing a "PHP Flat File Support" function, or script, or
  something. While reading the PHP manuals, and online tutorials. However,
  I have not been able to find concreate information about it.

  Does that function exists? If so, then where can I find some
  information?

  Or,

  Is this what CSV (CVS...sp?) is?

  Please help


  -j






When I was running PHP 4.0.4 on Apache 1.3/RH Linux 6.1, the following code
worked perfect:

file1.php

session_start();
....

session_register("var1");
$var1 = "a value";
....




file2.php

session_start();
....

session_register("var2");
$var2 = "some value";

file3.php

session_start();
....

print "$var1 : $var2";


After upgrading to PHP 4.0.5 and a slightly newer version of Apache (still
1.3.x base), the only variable contained in the session is var1.  I cannot
change var1, I cannot add more variables to the session.  I can only add
variables in the first php file that contains the first session_start().  Is
this correct?  I have verified this by viewing the database where the
session information is stored.

Any ideas?

Jon Peccarelli
[EMAIL PROTECTED]






At 04.05.01  15:32, you wrote:
>// Read myfile.TXT into $lines,
The sentence in your textfile is
" I have to check my E-Mails $var unnecessary $var1"

$var="for";
$var1="Quotes";

$fp=fopen("filename","mode");
//open database connection
while(!feof($fp))
{
         $buffer=fgets($fp,"how many bytes");
         eval( "\$buffer = \"$buffer\";" );
         //Now you see a basic Sentence :-)
         writeToDatabase
}
//close Databaseconnetion
fclose($fp);
That works, or I (we) didn´t understand your question

Oliver





Is there some way of making PHP even more dynamic?
What I would like is that selecting a value from a <SELECT> box would 
change some info on the page - without having to click a refresh button 
or something like that. 

Or do I have to resort to javascript for such things?

M.




"Martin Skjöldebrand" <[EMAIL PROTECTED]> wrote:
> Is there some way of making PHP even more dynamic?
> What I would like is that selecting a value from a <SELECT> box would
> change some info on the page - without having to click a refresh button
> or something like that.
>
> Or do I have to resort to javascript for such things?

Yes, use JS.  PHP is server-side.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/






Check out :

  chainedSelectors: A Better Way to Drop-down a PHP List :
  --------------------------------------------------------
  http://zend.com/zend/tut/drop-down.php
  
  Loading JavaScript Arrays with MySQL Data              :
  --------------------------------------------------------
  http://devshed.com/Server_Side/MySQL/JS_Arrays/
  
As previously mentioned, you want Javascript, but PHP can print Javascript
too :)

regards,
philip


On Fri, 4 May 2001, Steve Werby wrote:

> "Martin Skjöldebrand" <[EMAIL PROTECTED]> wrote:
> > Is there some way of making PHP even more dynamic?
> > What I would like is that selecting a value from a <SELECT> box would
> > change some info on the page - without having to click a refresh button
> > or something like that.
> >
> > Or do I have to resort to javascript for such things?
> 
> Yes, use JS.  PHP is server-side.
> 
> --
> Steve Werby
> President, Befriend Internet Services LLC
> http://www.befriend.com/
> 
> 
> -- 
> PHP General 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'm working on a email address verification script and need to do a DNS
lookup given the IP number of a remote host.
ie:  is [EMAIL PROTECTED] a viable address?

get IP gethostbyname(here.net);
nslookup IP to get mail server address
pfsockopen blah...blah..blah...

so........is there a nifty yet undocumented nslookup() function out
there?

____________________________ 
Matthew Luchak 
Webmaster
Kaydara Inc. 
[EMAIL PROTECTED]





Below is the transcript of my attempt and the error that results:

[gatchaman:/packages/apache_1.3.19] root# ./configure --enable-module=so 
--activate-module=/src/modules/php4/libphp4.a
Configuring for Apache, Version 1.3.19
 + using installation path layout: Mac OS X Server (config.layout)
configure:Error: Module source already has to be below src/modules/ to
be activated
[gatchaman:/packages/apache_1.3.19] root# cd ../php-4.0.5/sapi/apache
[gatchaman:php-4.0.5/sapi/apache] root# ls
.deps               apMakefile.tmpl     mod_php4.h          php_apache_http.h
.libs               config.m4           mod_php4.lo         sapi_apache.c
CREDITS             libphp4.module.in   php.sym             sapi_apache.lo
Makefile            libsapi.la          php4apache.dsp
Makefile.in         mod_php4.c          php_apache.c
apMakefile.libdir   mod_php4.exp        php_apache.lo

What do I need to do??

thanks for your help

jeff

--
:-J
--




Jeff,

You have an extra "/"
this:
--activate-module=/src/modules/php4/libphp4.a
should be:
--activate-module=src/modules/php4/libphp4.a

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers

> -----Original Message-----
> From: Jeff Orrok [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 04, 2001 4:03 PM
> To: php general
> Subject: [PHP] trying to activate php4 module
>
>
> Below is the transcript of my attempt and the error that results:
>
> [gatchaman:/packages/apache_1.3.19] root# ./configure
> --enable-module=so --activate-module=/src/modules/php4/libphp4.a
> Configuring for Apache, Version 1.3.19
>  + using installation path layout: Mac OS X Server (config.layout)
> configure:Error: Module source already has to be below src/modules/ to
> be activated
> [gatchaman:/packages/apache_1.3.19] root# cd ../php-4.0.5/sapi/apache
> [gatchaman:php-4.0.5/sapi/apache] root# ls
> .deps               apMakefile.tmpl     mod_php4.h
> php_apache_http.h
> .libs               config.m4           mod_php4.lo         sapi_apache.c
> CREDITS             libphp4.module.in   php.sym             sapi_apache.lo
> Makefile            libsapi.la          php4apache.dsp
> Makefile.in         mod_php4.c          php_apache.c
> apMakefile.libdir   mod_php4.exp        php_apache.lo
>
> What do I need to do??
>
> thanks for your help
>
> jeff
>
> --
> :-J
> --
>
> --
> PHP General 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!

Recently  I  wrote a php script which handle file uploads. I took
an example from manual (and added some text  fields)  and  every­
thing   seemed   to  work.  After  I  called  move_uploaded_file(
$userfile, $destination ) the file appeared in correct place. But
after  a  few minutes the file dissepeared. I do not know why be­
cause I did not execute any scripts after file had been uploaded.
There is PHP 4.0.4 installed on server I use. Please help because
I can not find solution by myself. Thanks in advance.

Regards,

        Andrzej

-- 
http://kokosz.horyzont.net
http://www.earthdawn.pl





I can run PHP script from any directories on my web server but except
cgi-bin directory.  When I put PHP script inot CGI-BIN and run it from my
browser, I receive below error.  Does anyone know why?  Please help.

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.

Thanks,
David N.




On Sáb 05 May 2001 00:50, you wrote:
> I can run PHP script from any directories on my web server but except
> cgi-bin directory.  When I put PHP script inot CGI-BIN and run it from my
> browser, I receive below error.  Does anyone know why?  Please help.
>
> Internal Server Error
> The server encountered an internal error or misconfiguration and was unable
> to complete your request.


I think you have mistakes related with concepts.
I maybe wrong, so I'll ask: What are you putting in the cgi-bin directory? 
How is your webserver configured (especially the cgi-bin directory)?

Put I guess you're putting the php scripts in the cgi-bin dir and trying to 
see them from your browser. Am I wrong?

Saludos... :-)

-- 
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques                  |        [EMAIL PROTECTED]
Programador, Administrador      |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------




CGI-BIN is for CGI.  :)

Martín Marqués wrote:

> On Sáb 05 May 2001 00:50, you wrote:
> > I can run PHP script from any directories on my web server but except
> > cgi-bin directory.  When I put PHP script inot CGI-BIN and run it from my
> > browser, I receive below error.  Does anyone know why?  Please help.
> >
> > Internal Server Error
> > The server encountered an internal error or misconfiguration and was unable
> > to complete your request.
>
> I think you have mistakes related with concepts.
> I maybe wrong, so I'll ask: What are you putting in the cgi-bin directory?
> How is your webserver configured (especially the cgi-bin directory)?
>
> Put I guess you're putting the php scripts in the cgi-bin dir and trying to
> see them from your browser. Am I wrong?
>
> Saludos... :-)
>
> --
> El mejor sistema operativo es aquel que te da de comer.
> Cuida tu dieta.
> -----------------------------------------------------------------
> Martin Marques                  |        [EMAIL PROTECTED]
> Programador, Administrador      |       Centro de Telematica
>                        Universidad Nacional
>                             del Litoral
> -----------------------------------------------------------------
>
> --
> PHP General 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 all,

A customer has a problem. They've installed "Merlin" from Abriasoft. It is
a pre-built Apache/PHP/SSL/MySQL/... package. Their problem is that they
can't download files from my PHP application (which uses sessions) using IE
5.5 in Windows. Netscape works from all clients, IE 4 works, Mac clients
work. Here's a sample php script that fails:

<?php
// simple download test but starts a session
session_start();
session_register('rausch');
$rausch="testing";

$x = array();
$x = stat( "simple.pdf" );
header( "Content-Length: " . $x[7] );
header( "Accept-Ranges: bytes" );
header( "Connection: close" );
header( "Content-Type: application/pdf" );
readfile( "simple.pdf" );
?>

If I take out the session lines of code, it works fine.  The symptom when
it fails is that the dialog box for "open" or "save" comes up but no matter
which choice you make nothing ever happens.  If I comment out the session
stuff in the .php script, IE just launches Acrobat and downloads and
displays the file like it should.

What am I doing wrong or what can I do to work around this problem?  The
portions of their php.ini file that deal with sessions:

[Session]
session.save_handler      = files   ; handler used to store/retrieve data
session.save_path         = /tmp    ; argument passed to save_handler
                                    ; in the case of files, this is the
                                    ; path where data files are stored
session.use_cookies       = 1       ; whether to use cookies
session.name              = PHPSESSID
                                    ; name of the session
                                    ; is used as cookie name
session.auto_start        = 0       ; initialize session on request startup
session.cookie_lifetime   = 0       ; lifetime in seconds of cookie
                                    ; or if 0, until browser is restarted
session.cookie_path       = /       ; the path the cookie is valid for
session.cookie_domain     =         ; the domain the cookie is valid for
session.serialize_handler = php     ; handler used to serialize data
                                    ; php is the standard serializer of PHP
session.gc_probability    = 1       ; percentual probability that the
                                    ; 'garbage collection' process is started
                                    ; on every session initialization
session.gc_maxlifetime    = 1440    ; after this number of seconds, stored
                                    ; data will be seen as 'garbage' and
                                    ; cleaned up by the gc process
session.referer_check     =         ; check HTTP Referer to invalidate
                                    ; externally stored URLs containing ids
session.entropy_length    = 0       ; how many bytes to read from the file
session.entropy_file      =         ; specified here to create the session id
; session.entropy_length    = 16
; session.entropy_file      = /dev/urandom
session.cache_limiter     = nocache ; set to {nocache,private,public} to
                                    ; determine HTTP caching aspects
session.cache_expire      = 180     ; document expires after n minutes

Thanks,
Bill

---
 Bill Rausch, Software Development, Unix, Mac, Windows
 Numerical Applications, Inc.  509-943-0861   [EMAIL PROTECTED]




On Sáb 05 May 2001 00:56, Bill Rausch wrote:
> Hi all,
>
> A customer has a problem. They've installed "Merlin" from Abriasoft. It is
> a pre-built Apache/PHP/SSL/MySQL/... package. Their problem is that they
> can't download files from my PHP application (which uses sessions) using IE
> 5.5 in Windows. Netscape works from all clients, IE 4 works, Mac clients
> work. Here's a sample php script that fails:
>
> <?php
> // simple download test but starts a session
> session_start();
> session_register('rausch');

This may have nothing to do, but I would write this last line like this:

session_register("rausch");

And I have to say that IE 5 sucks so much!!!!  Really can't believe some may 
people use it. I needed 4 times more time to download my webmail (on a local 
net) with IE 5 then with Netscape 4.7.

Saludos... :-)

-- 
El mejor sistema operativo es aquel que te da de comer.
Cuida tu dieta.
-----------------------------------------------------------------
Martin Marques                  |        [EMAIL PROTECTED]
Programador, Administrador      |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------




At 9:11 AM -0700 5/4/01, Martín Marqués wrote:
>On Sáb 05 May 2001 00:56, Bill Rausch wrote:
>> Hi all,
>>
>> A customer has a problem. They've installed "Merlin" from Abriasoft. It is
>> a pre-built Apache/PHP/SSL/MySQL/... package. Their problem is that they
>> can't download files from my PHP application (which uses sessions) using IE
>> 5.5 in Windows. Netscape works from all clients, IE 4 works, Mac clients
>> work. Here's a sample php script that fails:
>>
>> <?php
>> // simple download test but starts a session
>> session_start();
>> session_register('rausch');
>
>This may have nothing to do, but I would write this last line like this:
>
>session_register("rausch");

Good catch.  It didn't matter this time but I do usually use double quotes
on strings.


>And I have to say that IE 5 sucks so much!!!!  Really can't believe some may

Because their bosses told them too!?

I like the Mac version but the Windows version sucks.


Thanks, Bill
---
 Bill Rausch, Software Development, Unix, Mac, Windows
 Numerical Applications, Inc.  509-943-0861   [EMAIL PROTECTED]




     
  Sense php4 comes with mysql access in it already when I install a cgi
  version of php do I still need to do it this way
  ./configure ==with mysgl
  or can you just do a ./configure  and would you still have access to
  mysql.






 Sense php4 comes with mysql access in it already when I install a cgi
  version of php do I still need to do it this way
  ./configure ==with mysgl
  or can you just do a ./configure  and would you still have access to
  mysql.






I have an array $veg that is set so $veg[0]="broccoi" & $veg[1]="tomatotes".
I have also assigned values to the variables $broccoli=1 and $tomatoes=2.
I want to print the values for those variables ($broccoli and $tomatoes) by
only using the $veg array.

So, if it worked it would be $$veg[0] would be 1, and $$veg[1] would be 2.

Is there anyway to do this?

Many thanks!

John McConnell
 






An example : 

  <?php

    $array = array('a' => 'apple',
                   'b' => 'banana',
                   'c' => 'cranberry');


    print $array['a'];   // apple
    print $array['b'];   // banana

    extract($array);

    print $a;            // apple
    print $b;            // banana

    $var = 'array';

    print ${$var}['a'];  // apple
    print ${$var}['b'];  // banana

  ?>

regards,
philip


On Fri, 4 May 2001, John McConnell wrote:

> I have an array $veg that is set so $veg[0]="broccoi" & $veg[1]="tomatotes".
> I have also assigned values to the variables $broccoli=1 and $tomatoes=2.
> I want to print the values for those variables ($broccoli and $tomatoes) by
> only using the $veg array.
> 
> So, if it worked it would be $$veg[0] would be 1, and $$veg[1] would be 2.
> 
> Is there anyway to do this?
> 
> Many thanks!
> 
> John McConnell
>  
> 
> 
> -- 
> PHP General 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]
> 






Philip,

Thank you, thank you, thank you!!!  I have been working on this for a LONG
TIME!!  The answer was the {} brackets.  I really appreciate it.

John McConnell

> From: [EMAIL PROTECTED] (Philip Olson)
> Newsgroups: php.general
> Date: 4 May 2001 18:39:27 -0700
> Subject: Re: [PHP] Extracting Array value as variable
> 
> 
> An example : 
> 
> <?php
> 
> $array = array('a' => 'apple',
> 'b' => 'banana',
> 'c' => 'cranberry');
> 
> 
> print $array['a'];   // apple
> print $array['b'];   // banana
> 
> extract($array);
> 
> print $a;            // apple
> print $b;            // banana
> 
> $var = 'array';
> 
> print ${$var}['a'];  // apple
> print ${$var}['b'];  // banana
> 
> ?>
> 
> regards,
> philip
> 
> 
> On Fri, 4 May 2001, John McConnell wrote:
> 
>> I have an array $veg that is set so $veg[0]="broccoi" & $veg[1]="tomatotes".
>> I have also assigned values to the variables $broccoli=1 and $tomatoes=2.
>> I want to print the values for those variables ($broccoli and $tomatoes) by
>> only using the $veg array.
>> 
>> So, if it worked it would be $$veg[0] would be 1, and $$veg[1] would be 2.
>> 
>> Is there anyway to do this?
>> 
>> Many thanks!
>> 
>> John McConnell
>> 
>> 
>> 
>> -- 
>> PHP General 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 General 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 All,

I new to php trying to do a php page which gets a variables from an html
form
Somehow this if case not working 100%

Is this is a correct format ???

Thanks :)

Andrew


if
(
(($name=="1") and ($passwd=="1") and ($city=="HOU"))
or
(($name=="2") and ($passwd=="2") and ($city=="LAX"))
or
(($name=="3") and ($passwd=="3") and ($city=="TAM"))
)
{

echo "bla bla ..etc.....................................................";

} else {

echo "Access Denied. Please check your password.;

}

?>





Hi there,

I'm trying to compile php 4.0.5 with zlib support, but i can't get it to
work.

I'm using Mandrake Linux version 8, and tried to use their zlib packages,
but
i also tried to compile the zlib packege myself (which went well).

Php always says:
Configure: error: Zlib module requires zlib >= 1.0.9.

Needless to say, i am using a version higher then 1.0.9.

I would appreciate it if someone good give me some help. I did not
have this problem with PHP 4.04.

Thanks,

Jeroen Geusebroek

P.s. please CC me in your reply, because at the moment i'm not subscribed to
the
list.





I suppose when you have so few problems you get to nitpick..

Guess my question is; why doesn't this work?

if(sprintf("%01.2f",$Result[CurrentPrice]+$Result[Increment]) <= 
sprintf("%01.2f",$BidAmt)) {

when this works;
if(0.30 <= 1.00) {

I'll just settle with a workaround for now.

Thanks,
Chris





> I suppose when you have so few problems you get to nitpick..
>
> Guess my question is; why doesn't this work?
>
> if(sprintf("%01.2f",$Result[CurrentPrice]+$Result[Increment]) <=
sprintf("%01.2f",$BidAmt)) {
>
> when this works;
> if(0.30 <= 1.00) {
>
> I'll just settle with a workaround for now.
>
> Thanks,
> Chris

The former is being treated as a string, the latter is a double/float
You probably don't need to format them when making the comparison. Just try:

if ( ($Result[CurrentPrice]+$Result[Increment]) <= $BidAmt) {

jason







I need some sciprt to search my site.  My site has about 700 pages.  Also
all the pages are HTML Pages





I've gotten up to step 9 on http://php.net/manual/en/install.macosx.php
and this happens:

===> src/modules/php4
cd: can't cd to php4
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2

Apparantly, src/modules/php4 was NOT created for me in step 7.  

--
:-J
--




I started by reading http://php.net/manual/en/install.macosx.php
"Example 2-4. Mac OS X server install"

cd /packages
wget http://apache.vitts.com/dist/apache_1.3.19.tar.gz
gnutar zxf apache_1.3.19.tar.gz
cd apache_1.3.19/

Instead of step 2, I did a ./configure --layout to confirm that I did
not need to type all of this stuff in, and instead just typed:

./configure --enable-module=so
make clean
make
make install

I realized after the fact that the make's were premature, but I didn't
think that would hurt anything...

I was told in order to use frontbase I had to follow the instructions
from http://www.frontbase.com/download/PHP4/index.html instead of step
5.  I was also told I had to upgrade autoconf to 2.13.  This I did
without incident.  So then:

cd ..
wget 
'http://www.php.net/do_download.php?download_file=php-4.0.5.tar.gz&source_site=www.php.net'
gnutar zxf php-4.0.5.tar.gz
cd php-4.0.5/
autoconf configure.in > c
chmod u+x c
./c --with-fbsql --enable-bcmath --enable-calendar --enable-trans-id
--enable-ftp --enable-sockets --with-apxs=/usr/sbin/apxs

It seemed to go well, so resuming with step 6:

make
make install
cd ../apache_1.3.19
./configure --enable-module=so --activate-module=src/modules/php4/libphp4.a
make clean
make

lots of stuff gets made, but then I get:

===> src/modules/php4
cd: can't cd to php4
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2


--
:-J
--




Cameron wrote:
> in here you want --with-apache=/path/to/your/apache/source instead of
> the withapxs, the --activeate-module compiles a static php

thank you.  :-)  I'm curious about the difference between apache and apxs...

Anyway, everything built, but now when I try to start, I get

dyld: /usr/sbin/httpd multiple definitions of symbol _DayNameLong
/usr/sbin/httpd definition of _DayNameLong
/System/Library/Apache/Modules/libphp4.so definition of _DayNameLong
/usr/sbin/apachectl start: httpd could not be started


--
:-J
--




I am having problems with Netscape and post in a form
In I.E. post works fine but in netscape it just gives me a
Method Not Allowed
The requested method POST is not allowed for the URL /scripts/index.html.

<form method="post" action="">

Why is this doing this. Sometimes I just hate Netscape






SSL, I forgot to compile the snakeoil cert before hand :/

-----Original Message-----
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 9:49 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] apache toolbox


Just out of curiosity, what problems did
you have ?

Jerry Lake            - [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online     - http://www.pacifier.com


-----Original Message-----
From: Chris Schneck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] apache toolbox


This might be a useful link for some people who are having problems with the
combination of apache + ssl / php / mysql. I've used it and I had a couple
problems, but after I actually read the README, everything was smooth :)

www.apachetoolbox.com


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



Reply via email to