php-general Digest 2 Apr 2001 21:41:59 -0000 Issue 604

Topics (messages 46584 through 46687):

Page Counter
        46584 by: Wen Ni
        46602 by: Jason Lotito

Re: Max file size of 2 bytes exceeded
        46585 by: Christian Reiniger

Re: is this syntax correct?
        46586 by: Christian Reiniger
        46587 by: Christian Reiniger
        46608 by: Jack Dempsey

Betr.: [PHP] Page Counter
        46588 by: M. Verheijen

Re: phpinfo unneeded
        46589 by: juang
        46591 by: Felix Kronlage

Parent class
        46590 by: Milan Mlynarcik
        46600 by: Yasuo Ohgaki

File upload via HTML forms
        46592 by: \[Intent A/S\] Tais M. Hansen
        46609 by: John Almberg

Reading specific contents of a file
        46593 by: Thomas Edison Jr.

Include files????
        46594 by: Bruno Freire
        46595 by: Felix Kronlage

Re: Database connections
        46596 by: Yasuo Ohgaki

Re: known problems with session_register()?
        46597 by: Yasuo Ohgaki
        46605 by: Felix Kronlage
        46673 by: Scott Fletcher

Re: Attach File in PHP's Mail Function.
        46598 by: Yasuo Ohgaki

Re: php-4.0.5-dev with Apache rpm
        46599 by: Yasuo Ohgaki

Re: I can't connect php with apache.
        46601 by: Yasuo Ohgaki

Search Engines
        46603 by: Geoff Caplan

libphp3.so
        46604 by: Marcelo Pereira

Re: session in php3 and in php4
        46606 by: A.T.Z.

How to substitute Java classes?
        46607 by: torsten plaul

PHP Training
        46610 by: Matt Davis

Why does it work this way?
        46611 by: Boget, Chris
        46648 by: Mark Roedel

why some dll's don't work
        46612 by: Adrian Murphy

Re: very dumb question, need help
        46613 by: Hardy Merrill

Re: geocities and php
        46614 by: Krznaric Michael

Re: Programming Jobs
        46615 by: David G.

Programming Jobs - what I look for.
        46616 by: Michael Kimsal
        46617 by: Jon Jacob
        46620 by: James Moore
        46626 by: Pierre-Yves Lemaire
        46627 by: Michael Kimsal
        46632 by: Chris Adams
        46638 by: Michael Kimsal
        46645 by: Mukul Sabharwal
        46649 by: Mukul Sabharwal

Re: PHP SITE SUGGESTION
        46618 by: Krznaric Michael

Instalation
        46619 by: Marcelo Pereira

Ming and flash detection
        46621 by: Jason Stechschulte
        46631 by: Chris Adams
        46658 by: Jason Stechschulte

Installing PHP as cgi and as self.
        46622 by: Brandon Orther
        46623 by: James Moore

Re: array_diff usage
        46624 by: Martin Skjöldebrand

Re: Problem installing on BSD
        46625 by: natter

Snmp, php and Win2K
        46628 by: Richard Heyes

Starting a Forum?!
        46629 by: FredrikAT
        46633 by: James Moore
        46636 by: Steve Werby

Re: libpng error
        46630 by: Thalis A. Kalfigopoulos
        46634 by: Thalis A. Kalfigopoulos

Can php read and than print file like it is
        46635 by: Jan Grafström
        46637 by: Steve Werby
        46640 by: Jan Grafström
        46647 by: Steve Werby

PHP3 - Instalation
        46639 by: Marcelo Pereira

phpInfo() displays Local and Master configuration values.
        46641 by: Diego Fulgueira
        46686 by: Mark Roedel

nl2br
        46642 by: Calin Rotaru
        46643 by: Boget, Chris

VRML and PHP
        46644 by: Godd
        46646 by: Dominick Vansevenant
        46657 by: James Moore

Re: Looping through the alphabet [was: Why does it work this way?]
        46650 by: Steve Werby

freetype info required
        46651 by: Robert Vetter

Check whether I have php installed as cgi or api???
        46652 by: Brandon Orther

how do I turn off error checking in foreach() ?
        46653 by: Chris Lee
        46656 by: Lindsay Adams

scheduler
        46654 by: Michael Roark
        46664 by: Rick St Jean
        46667 by: Michael Roark
        46676 by: Michael Kimsal
        46677 by: Michael Roark

Reading PHP.INI not from C:\WINNT
        46655 by: Diego Fulgueira

FLASH AND PHP
        46659 by: Godd
        46684 by: Lindsay Adams

joining tables and getting results in php query
        46660 by: Publications

Installation - PHP{3,4}
        46661 by: Marcelo Pereira
        46683 by: B. van Ouwerkerk

drop-down menu variables
        46662 by: Joao Monteiro

php & tomcat
        46663 by: Guillaume Fortin

duplicate a table
        46665 by: McShen
        46671 by: Steve Werby
        46672 by: Chris Lee

cookies
        46666 by: Louis Brooks
        46670 by: Chris Lee

Re: header() vs. no cache, it doesn't work.
        46668 by: Scott Fletcher

PHP print
        46669 by: Joe

Hmmmm....this is definately not expected....
        46674 by: moxford.surfmetro.com
        46675 by: Boget, Chris

Add new user in FreeBSD via WEB
        46678 by: Carlos Dezanette Benecioto

Run htmlspecialchars & Leave HTML Alone?
        46679 by: Waldo Jaquith

SSL Tutorial?
        46680 by: Jeff Oien
        46682 by: B. van Ouwerkerk

Porting ASP code to PHP
        46681 by: Mike King
        46685 by: Michael Stearne

HTTP Upload Problem
        46687 by: Yev

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]


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


Dear Friends,

I want to do page counter for my web site and I wonder whether PHP can
do it or not.  I am new in PHP so can you all please give me some idea
how to solve my problem.

Thank a lot.

regards,
Wendy




http://newbienetwork.net/sections.php?op=viewarticle&artid=1

Read it, Learn it.

Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.

> -----Original Message-----
> From: Wen Ni [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 02, 2001 3:33 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Page Counter
> 
> 
> Dear Friends,
> 
> I want to do page counter for my web site and I wonder whether PHP can
> do it or not.  I am new in PHP so can you all please give me some idea
> how to solve my problem.
> 
> Thank a lot.
> 
> regards,
> Wendy
> 




On Monday 02 April 2001 10:44, you wrote:
> Hi guys,
>
> I seem to be having a problem uploading images.
>
> My server is running on FreeBSD and i am using PHP ver 4
>
> I have checked all the settings in my php.ini file.
>
> max_execution_time = 30
> memory_limit = 8M
> post_max_size = 8M
>
> file_uploads = On
> upload_max_filesize = 2M

> Warning: Max file size of 2 bytes exceeded - file [image1] not saved in
> Unknown on line 0

PHP doesn't process the "M". Specify the sizes in bytes

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 36000000 hosts for known problems in 3 weeks




On Monday 02 April 2001 22:30, you wrote:
> Hi all
> is this syntax correct to work on session in php4?
>
> <?php
> global $test;
> $test = "foo";
> session_register("$test");
> ?>
>
> but nest page when I call variable $test to echo it, nothing come up?
> what did I do wrong? Jack

Use session_start();

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 36000000 hosts for known problems in 3 weeks




On Monday 02 April 2001 10:44, you wrote:
> What does global and session_register do?

RTFM

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

Pretty cool, the kind of power information technology puts in our hands
these days.

- Securityfocus on probing 36000000 hosts for known problems in 3 weeks




Jacky,

basic thing about sessions: you need session_start() at the top of every
page in which you expect to use them...check out zend.com for some
tutorials...but yes, you do need it at the top of that page...

-jack
"Jacky@lilst" wrote:
> 
> Not really, do I need to have session_start at the sender page and the
> receiver page?
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set for
> yourself"
> ----- Original Message -----
> From: Wade Halsey <[EMAIL PROTECTED]>
> To: Jacky@lilst <[EMAIL PROTECTED]>
> Sent: Monday, April 02, 2001 3:48 AM
> Subject: Re: [PHP] is this syntax correct?
> 
> > do you have
> > session_start();
> >  at the top of the next page?
> >
> > ----- Original Message -----
> > From: Jacky@lilst <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, April 02, 2001 10:43 PM
> > Subject: Re: [PHP] is this syntax correct?
> >
> >
> > > I also tried this syntax:
> > > <?php
> > > global $test;
> > > $test = "foo";
> > > session_register("test");
> > > ?>
> > >
> > > and it still not work as when I go to next page, and try echo $test,
> > nothing
> > > come up.
> > > Jack
> > > [EMAIL PROTECTED]
> > > "There is nothing more rewarding than reaching the goal you set for
> > > yourself"
> > > ----- Original Message -----
> > > From: Joseph Bannon <[EMAIL PROTECTED]>
> > > To: Jacky@lilst <[EMAIL PROTECTED]>
> > > Sent: Monday, April 02, 2001 3:44 AM
> > > Subject: RE: [PHP] is this syntax correct?
> > >
> > >
> > > > > So what is the right way to do?
> > > >
> > > >
> > > > I resent my email to the list. I've done mostly DB work, so I need to
> > know
> > > > what those functions do.
> > > >
> > > > 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]
> > >
> > >
> >
> >
> >
> 
> --
> 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]




Dear Wendy,

Check out http://www.hotscripts.com/PHP/Scripts_and_Programs/ 
You should all you the scripts you'll need here!, still some problems?
Let me know?

Best regards,
Maarten Verheijen

MvG,

Maarten Verheijen
T/EXP kamernummer C558
Telefoonummer 4559

>>> Wen Ni <[EMAIL PROTECTED]> 02-04-01 11:33 >>>
Dear Friends,

I want to do page counter for my web site and I wonder whether PHP can
do it or not.  I am new in PHP so can you all please give me some idea
how to solve my problem.

Thank a lot.

regards,
Wendy





guys..................

mmmh still confuse, i had try to find out "disable_functions " but i cant
found it, and then i write the syntax with myself and i stop->restart my
apache mmmmmmmmmmhhh?? still didn't work. and here its my configure:

 ./configure '--with-apxs=/usr/local/apache/bin/apxs'
'--with-mysql=/usr/local/mysql' '--with-gd' '--enable-debugger'
'--enable-track-vars' '--with-yp' '--enable-memory-limit=yes'
'--enable-debug=no' '--with-zlib' php.ini file path is set to:
/usr/local/lib


Matt: it's for free hosting and i would like to make a community in this
server that's why i don't want a user using phpinfo();

thx
-JUANG-





On Mon, Apr 02, 2001 at 06:14:07PM +0700, juang wrote:

> mmmh still confuse, i had try to find out "disable_functions " but i cant
> found it, and then i write the syntax with myself and i stop->restart my
> apache mmmmmmmmmmhhh?? still didn't work. and here its my configure:

put the following in your php.ini (in the Safe Mode Section):

disable_functions = phpinfo()

that should do it.
-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 

PGP signature





Is there way to access paret class from outside of class ???
I know that to access parent object from within the class I can use code
like this one:
<?php
    class a
    {
        var    a;

        function a()
        {
            $this->a = "OK";
        }
    }

    class b extends a
    {
        function b()
        {
            //    here I access a class directly
            a::a();
        }
    }
?>

But I would like to know how to access a class like this:
<?php

    $b = new b();
    //    and now I want to access class a with something like
    $b->a::a();
    //    but this doesn't work
?>
Is it possible ??? If yes how ???





Did you try $b->a()?
It should work.

--
Yasuo Ohgaki


"Milan Mlynarcik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there way to access paret class from outside of class ???
> I know that to access parent object from within the class I can use code
> like this one:
> <?php
>     class a
>     {
>         var    a;
>
>         function a()
>         {
>             $this->a = "OK";
>         }
>     }
>
>     class b extends a
>     {
>         function b()
>         {
>             //    here I access a class directly
>             a::a();
>         }
>     }
> ?>
>
> But I would like to know how to access a class like this:
> <?php
>
>     $b = new b();
>     //    and now I want to access class a with something like
>     $b->a::a();
>     //    but this doesn't work
> ?>
> Is it possible ??? If yes how ???
>
>
> --
> 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'm currently working with a site on a safe mode enabled server.

First off, there's no way safe mode can be disabled.

Now, I need to be able to upload a file via a HTML form post, read and copy
this file to a different location. But when the file is uploaded, it is
placed in a tmp dir with the uid of what php is running with and since the
script I'm working with will always have a different ownership/uid than the
php process, I won't be able to read this file.

Does anyone know how to get around this problem?

Thanks in advance!
--
--
Intent A/S

Tais M. Hansen
Web Developer






Howdy,

You should be able to read this file using the file system functions. The
PHP process (if it is set up properly) should have read access to this
directory. The problem you will have is *writing* it to your own directory,
as the PHP process probably *doesn't* have write access to your directory
structure. The way I got around this was to read the tmp file with the file
system, and write it using FTP (which can log in to your area.)

Hope this  helps.

John
>





using fopen() i can open a file & using fread() i can
read it's contents, store them & print them. But is
there any way of checking the contents for a specific
word or characters? 
For example i want the file pointer to search & if
found, print the word "enter" from the open file. how
to do this?

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!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text




Hi! My name is Bruno.


Anybody can tell me how can i do Include files?
I mean,   Write a function in a file and after this just include this file
in the code, like 
<#include file.h>  of C++?? 

Thanks !!!




On Mon, Apr 02, 2001 at 08:55:26AM -0300, Bruno Freire wrote:

> Anybody can tell me how can i do Include files?

has the thought of looking up the manual at php.net crossed your mind?
try searching php.net for include(), require()

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 





You don't have to call mysql_close(). PHP handles cleaning resources when script
execution is ended.

You can set default connection parameters for MySQL in php.ini.
I don't know if you need to call mysql_connect(). (I don't use MySQL :)

Regards,
--
Yasuo Ohgaki


""David Hynes"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm using PHP on a windows box to access a MySQL database.
>
> I noticed that I do not need to open a database connection before performing
> a mysql_db_query().  Is this bad coding ?  Should the database connection
> always be made ?  Is this specific to Windows ?
>
> # $databaseConnection = mysql_connect ("localhost", "", "");  ## I don't
> seem to need this line, or the last one
> mysql_db_query("dbnam", "SQL query");
> # mysql_close ($databaseConnection);
>
> Thanks,
> David.
>
> -----------------------
> Fed202 Solutions
> www.fed202solutions.com
> Mobile : 07779 293368
> -----------------------
>
>
> --
> 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]
>





What is your php.ini?
If you are enabled track vars and disabled register globals, all you have to do
is assign values to $HTTP_SESSION_VARS and
unset($HTTP_SESSION_VARS['your_session_var']). You don't need to use
session_register(), session_unregister() if it's the case.

Refer to User Notes in Session Section - Annotated PHP Manual for details.

Regards,
--
Yasuo Ohgaki


"Felix Kronlage" <[EMAIL PROTECTED]> wrote in message
20010401181830.B5417@mad">news:20010401181830.B5417@mad...
> Hi,
>
> are there any knows problems/bugs with session_register()?
>
> With openbsd  as a platform (not tested on others) I have the problem
> that 20% of the times sessions don't get initialized correctly.
> The session-file is created in /tmp (cookies for session-use are turned off),
> just the variables registered via session_registered are not written into the
file.
> The same piece of code works on the same box, with same php 80% of the times.
> (Had this problem with php4.0.4x up to php4.0.5rc3).
>
> any hints on this?
> -fkr
> --
> gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0
>   |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
>   |all your base are belong to us  |  shame on me  | fkr@IRCnet |
>
>
> --
> 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 Mon, Apr 02, 2001 at 09:13:41PM +0900, Yasuo Ohgaki wrote:

> If you are enabled track vars and disabled register globals, all you have to do
> is assign values to $HTTP_SESSION_VARS and

both are on. Could there be a problem with session_register() ?
I do think it's odd, that the same code, on the same box, same
php, same everything works 80% of the time and fails in 20% of the time.
(no, there can't be a race-condition).

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 





You're not alone in this problem.  I have the same problem some of the time.
I don't know why is that, so someone wrote the script to provide a way
around it.  If it is for the login, it can be done by terminating hte
session_register and all stale session then create a new one once the person
log on.  It seem to help a little bit.

Scott
"Felix Kronlage" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Mon, Apr 02, 2001 at 09:13:41PM +0900, Yasuo Ohgaki wrote:
>
> > If you are enabled track vars and disabled register globals, all you
have to do
> > is assign values to $HTTP_SESSION_VARS and
>
> both are on. Could there be a problem with session_register() ?
> I do think it's odd, that the same code, on the same box, same
> php, same everything works 80% of the time and fails in 20% of the time.
> (no, there can't be a race-condition).
>
> -fkr
> --
> gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0
>   |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
>   |all your base are belong to us  |  shame on me  | fkr@IRCnet |
>
>
> --
> 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]
>






This has been asked recently. You can search archives. Look for links can be
found at
http://www.php.net/support.php

Most easiest way is grabbing mail class that can handle attachment.
There are many of them on the net. I think www.zend.com code exchange might have
one.

If you want to do it by yourself, you need to read related RFCs.

Regards,
--
Yasuo Ohgaki


""Mark Lo (3)"" <[EMAIL PROTECTED]> wrote in message
000701c0bb1b$d3b772a0$2e53fea9@mark">news:000701c0bb1b$d3b772a0$2e53fea9@mark...
> Hi,
>
>      I would like to ask how to attach a file in PHP's Mail Function ??
>
> Thank you
>
> Mark
>
>
> --
> 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]
>





Annotated manual is useful. Refer to http://www.php.net/manual/en/install.linux.php http://www.php.net/manual/en/install.apache.php You need to install apache-devel RPM if you are using RedHat. Regards, -- Yasuo Ohgaki ""Paul Juliano"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > Hi, > > How do I manually compile php-4.0.5-dev with an Apache rpm installation? Or do > I have to install both apache and php manually? I know how to do the second > method, but as much as possible, I don't want to hose the running apache install. > > Thanks. > > __________________________________ > www.edsamail.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 guess your httpd.conf is not allowing.
Is your httpd.conf allow CGI script?

Refer to Apache manual for that.

Regards,
--
Yasuo Ohgaki


"Kukai" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I have been trying to install PHP4.0 to Apache1.3 on Win2K platform.
> I followed the instruction carefully, and all of applications, PHP4.0,
> Apache1.3, MySQL are installed correctly, I think. However when I put
> the URI into the browser, http://localhost/test.php, I got message "The
> page cannot be found". I checked error log said
>
> "[Mon Apr 02 03:02:03 2001] [error] [client 127.0.0.1] Invalid URI in
> request GET /test.php HTTP/1.1"
>
> I changed every elements related with this error message.
> And I found out one thing that if I changed name from test.php to test
> php3, it seems ok. It didn't generate error message. But it is still not
> be shown in browser, it show brank page. But when I push source bottum,
> it is shown collect source code....... I don't know what I should do
> next. Is there someone who can explain this situation? Please.
>
> Thank you.
>
> kukai
>
> --
> 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]
>





Steve,

You clearly know your stuff about search engines.

I was planning to use the header:

header("Expires: " . gmdate("D, d M Y H:i:s") . " GMT");

to ensure that pages are not cached in the client.

But reading your excellent contribution, I was wondering whether a
search bot would see this and decide not to index as the page was
about to expire.

Any advice much appreciated

Geoff Caplan






Hi all,

I'm having trouble when installing PHP3-3.0.18.
I've done:

tar xzvf php3-3.0.18.tar.gz
cd php3-3.0.18
./configure --with-pgsql
./make
./make install

Then, in the INSTALL file says to add the follow line at /etc/httpd/conf/httpd.conf

LoadMoldule    modules/libphp3.so

But, I dunno where is this (libphp3.so) file....... and I also don't know where is the 
mod_php3.so file.
What did I do wrong ???


Thanks in advance,

Marcelo Pereira
Programmer






>I heard rumors saying there is no way to use session in php3, is that 
>correct?

No. PHPLIB

>If there is no way to get around this, what is syntax for assign session 
>in php4 then?

www.php.net take a look at the manual. Or one of the sites about PHP.... 
webmonkey etc..

Bye,


B.






Hi folks,
using Java-classes seems to be the only way to deal with CORBA in an easy
way...
I installed the Java support for PHP4 successfully. It runs fine under
WinNt/Apache.

The problem I´ve got is that Sun added some CORBA-classes to the archive
(rt.jar)
JDK comes with. But instead importing SUN´s classes the CORBA-classes I use
have
to use the classes coming from the CORBA-distributor IONA.

At the command line the launch command looks like this:




C:\java.exe -Dorg.omg.CORBA.ORBSingletonClass=IE.Iona.OrbixWeb.CORBA.singlet
onORB myPackage.myCORBAClass

where the D-parameter tells the interpreter to use
IE.Iona.OrbixWeb.CORBA.singletonORB intstead of
org.omg.CORBA.ORBSingletonClass

Is there any way to configure either PHP or Apache or even Java to do this
!?

Any help would be very appreciated from

torsten plaul






Hi, is anyone aware of any php training courses available in the UK or
alternativly any online anywhere.

Thanks

Matt.





for( $i = "a"; $i <= "z"; $i++ ) {
}

Not entirely too sure why, but the above works.  And
it's really cool that it does. :)
However, it doesn't work as one would expect (aside 
from the fact that it works at all :p).  Just looking at 
it, I would think that it would iterate from "a" to "z"
and stop.  But in fact, what it's doing is going from 
"a" to "yz", having iterated all of the alphabet using
double letters ( "aa", "az", "bb", "bz" ... "yy", "yz").
Why is that?

Just trying to understand. :)

Thanks for any help/insight you can provide!

Chris




-----Original Message-----
From: Boget, Chris [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 11:12 AM
To: Mark Roedel
Subject: RE: [PHP] Why does it work this way?


>> Because "z"+1 turns out to be "aa" (which, if you ask me, 
>> makes about as much sense as any of the alternatives), 
>
> How is it that "z" + 1 is "aa"?  What is PHP using behind the 
> scenes to get/generate this value? 

Let me start by correcting myself on a minor technicality.

"z"+1 turns out to be 1 (because "z" has an integer value of 0).  It's
"z"++ that turns out to be "aa".

Perhaps one of the core developers who has a better understanding of the
behind-the-scenes operations of PHP can elaborate on this, but what it
basically points out to me is that "incrementing" and "adding one"
aren't always the same thing.  I assume this behavior is tied closely to
what PHP determines the type of a variable at any given time to be.

If we take that as a starting point, then what I see happening is that,
for the purposes of incrementing, there are certain ranges defined
within PHP.  0-9 is one,  obviously.  a-z appears to be another.  If,
for the purposes of the increment operator only, you treat the letters
of the alphabet as a range of integers, then the result you're seeing
makes perfect sense.  You get to your highest digit, then go back to
zero and increment the next column.

The problem, in the "for" loop that we started out discussing, is that
there doesn't seem to be any way to make a comparison that follows those
same rules.  You can't treat them as integers, because "aa" and "z" have
the same integer-value -- zero.  Treating them as strings gives the
result we've already seen.

Other interesting sort-of-related notes:

While incrementing works (sort of) on strings, decrementing doesn't
appear to have any effect at all.

        $test="z";
        echo $test--;
        echo $test;

        results in "zz"

Incrementing only appears to work on strings within particular ranges of
characters.

        $test="(";
        echo $test++;
        echo $test;

        results in "(("


---
Mark Roedel           | "The most overlooked advantage to owning a
Systems Programmer    |  computer is that if they foul up there's no
LeTourneau University |  law against whacking them around a little."
Longview, Texas, USA  |                          -- Owen Porterfield 




Certain dll's i try to use simply refuse to work.

php.ini is edited correctly.
php_ftp.dll works
php_gd.dll don't
php_ldap.dll works
php_oci8.dll don't(with oracle 8i personal inastalled)
etc.
whats going on.all the requiste dll's are in the right folder.





At the top of every script that will register or use session
variables, I do "session_register" - something like this:

script_1.php
------------
 <?php
    session_start();
    session_register("test");
    $test = "myname";
 ?>

script_2.php
------------
 <?php
    session_start();
    echo "Value of \$test = $test"; // value should be "myname"
 ?>

HTH.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

Jacky [[EMAIL PROTECTED]] wrote:
> Hi all
> I have been to look at manual about session, in php4, still not quite get it.
> Basically if I have sniplet below in one page, how do I assign value into that 
>session and how do I call it up in next page? I sthe way I assign value into session 
>correct? ( I think it did not, because it did not work, but still need to show what I 
>did, so help can get to the right point easier).
> Note: that I simply hardcode value into session just to see if it will like it.
> *************************
> <?php
> session_register("test");
> $test = "myname";
> ?>
> *********************
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set for yourself"




Try cURL

        http://www.php.net/manual/en/ref.curl.php

You can send anything you want.

Mike

-----Original Message-----
From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 5:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] geocities and php


I notice that geocities does not allow you to reference images that are on
their servers to your homepage on another server/host. Is there a way to
make PHP send different host information to geocities' server?

Thanks,
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]




"Jon Jacob" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I hope this is not off topic, but I need to ask a general audience this
> question and this seems like the right group.
>
> I have been out of work for two months and I am not sure why.  I am a
> talented web programmer with three years experience, strong Perl,
> JavaScript, CGI, and HTML skills and a great work ethic.

You, and thousands of others looking for work right now. These skills are
the bare minimum, in my opinion.

> I have been offered a job (which I turned down)

Well, that's a reason you're still out of work.

> ...but nothing desirable has come my
> way.  I know the economy is slow, but I am shocked that I am out of work
> for this long.  Are others experiencing this, or is it just me?

Many others.

> I live in Portland, OR which is not the center of the tech universe but
> has strong tech companies nonetheless.

Are there any strong tech companies left?  ;-)

> I am just confused and am
> wondering if it is something I am doing or something that is being done
> to me.  If the later, I can wait it out, but I just wanted to know if
> anyone in my silimiar situation was experiencing something the same and
> had any insight to share.
>
> I apologize for the vent, but it is starting to become frustrating and
> confusing.

Follow natter's advice and learn SQL. Simple web programming isn't enough to
get you hired anywhere at this time.

-david







To follow up just a bit more, here are skills I would require of someone
before hiring them:

* Practical SQL knowledge, with hands-on experience of at least 6 months
(with projects/URLs to show for it) with either MySQL, Postgres, MSSQL,
Oracle, DB2 or another high-level DB system (preferably more
than one, but we'll take just one).

* At least 6 months of practical PHP knowledge - projects/URLs to
show for it.

* Ability to design/debug complex HTML tables, or create scripts to do the
same. :)

* Ability to talk me through at least 2 ways of solving a data manipulation
problem, without code - whiteboard/paper/hand gestures and words only.
You also need to be able to argue why one method is better over another.
You don't have to be right, but you have to be able to justify your
choices.

* Understanding of HTTP, session management, cookies, etc.

* More than a passing interest in new technologies, and how to apply
your current skills to those new areas (wireless, etc.)

* Willingness to work weekends/evenings, if need be, to meet deadlines.

There are some tech things above, and some personality things.
I don't care too much if the projects people show me are personal
or professional, as long as they get excited about some of those
projects - either by talking about the skills they gained or mistakes
they made, or about how these projects can be adapted to other
situations.

I'm not dogging you personally Jon - I don't even know you.  I'm just
speaking as an employer in the web services field - these are the skills
I generally look for in people.  :)  My guess is that others have similar
criteria, but I may be way off base.



Jon Jacob wrote:

> I hope this is not off topic, but I need to ask a general audience this
> question and this seems like the right group.
>
> I have been out of work for two months and I am not sure why.  I am a
> talented web programmer with three years experience, strong Perl,
> JavaScript, CGI, and HTML skills and a great work ethic.  I have been
> offered a job (which I turned down) but nothing desirable has come my
> way.  I know the economy is slow, but I am shocked that I am out of work
> for this long.  Are others experiencing this, or is it just me?
>
> I live in Portland, OR which is not the center of the tech universe but
> has strong tech companies nonetheless.  I am just confused and am
> wondering if it is something I am doing or something that is being done
> to me.  If the later, I can wait it out, but I just wanted to know if
> anyone in my silimiar situation was experiencing something the same and
> had any insight to share.
>
> I apologize for the vent, but it is starting to become frustrating and
> confusing.
>





Michael Kimsal wrote:

> To follow up just a bit more, here are skills I would require of someone
> before hiring them:
>
> * Practical SQL knowledge, with hands-on experience of at least 6 months
> (with projects/URLs to show for it) with either MySQL, Postgres, MSSQL,
> Oracle, DB2 or another high-level DB system (preferably more
> than one, but we'll take just one).
>
> * At least 6 months of practical PHP knowledge - projects/URLs to
> show for it.
>
> * Ability to design/debug complex HTML tables, or create scripts to do the
> same. :)
>
> * Ability to talk me through at least 2 ways of solving a data manipulation
> problem, without code - whiteboard/paper/hand gestures and words only.
> You also need to be able to argue why one method is better over another.
> You don't have to be right, but you have to be able to justify your
> choices.
>
> * Understanding of HTTP, session management, cookies, etc.
>
> * More than a passing interest in new technologies, and how to apply
> your current skills to those new areas (wireless, etc.)
>
> * Willingness to work weekends/evenings, if need be, to meet deadlines.
>
> There are some tech things above, and some personality things.
> I don't care too much if the projects people show me are personal
> or professional, as long as they get excited about some of those
> projects - either by talking about the skills they gained or mistakes
> they made, or about how these projects can be adapted to other
> situations.
>
> I'm not dogging you personally Jon - I don't even know you.  I'm just
> speaking as an employer in the web services field - these are the skills
> I generally look for in people.  :)  My guess is that others have similar
> criteria, but I may be way off base.
>

Appreciate your response.  I was hoping to get some employer input.

Frankly, I truncated my skills to the list because I was trying to make a
point of what I was looking for not who am I.  I do know SQL and I have been
working on a personal project for about three months which I hope to "release"
in about two weeks that uses Perl for data gathering, Oracle for data storage,
and PHP for the CGI.

Just for clarification you can view my resume at:
http://www.manymoons.net/~jon/resume.html

When I knew I was headed out of work the first thing I did was work on my
skill set.  I started with C++, looked over and played with PHP, and then
moved on to working out some stuff in Oracle.

You are right.  If I only knew Perl, JS, and HTML, then that would be the
"bare minimum".  But, I do know more than that and I have demonstrated an
ability to learn new skills.  The amazing thing is that Intel was hiring
contractors for $50/hr just for their Perl skills.  That was before X-mas.  I
had an interview all set to go.  Then, Intel announced in January that they
were putting a freeze on hiring.  This largely sums up my experience.  Again,
I have to say that I don't think my skill set is a major issue.  Maybe I am
wrong.  But, I have had enough interest in people wanting to hire me, there
just has been no funds to do so.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com






> * Ability to talk me through at least 2 ways of solving a data
> manipulation
> problem, without code - whiteboard/paper/hand gestures and words only.
> You also need to be able to argue why one method is better over another.
> You don't have to be right, but you have to be able to justify your
> choices.

Sounds like a suit who wants to be a techie sure your doing the right job ;)

James






* Willingness to work weekends/evenings, if need be, to meet deadlines.



And if you are still working weekends and evenings after 9 months on the 
job, quit immediately. Start your own company or go fishing :)

py





Not sure exactly what you mean.  I'm a suit who *wants* to be a techie?

I'm a techie who is also a suit, if truth be told.


James Moore wrote:

> > * Ability to talk me through at least 2 ways of solving a data
> > manipulation
> > problem, without code - whiteboard/paper/hand gestures and words only.
> > You also need to be able to argue why one method is better over another.
> > You don't have to be right, but you have to be able to justify your
> > choices.
>
> Sounds like a suit who wants to be a techie sure your doing the right job ;)
>
> James
>
> --
> 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 2 Apr 2001 06:49:02 -0700, Michael Kimsal <[EMAIL PROTECTED]> wrote:
>* Willingness to work weekends/evenings, if need be, to meet deadlines.

With the requirement that this should only be a temporary thing and rewarded
appropriately (preferably with time off after the deadline). If it's become a
death-march, it's time to look for other work.




Completely agreed.  We're quite casual about start/end times (not strict 9-5) and

if you need to take a long lunch to hit the doctor's office or something, that's
OK.
But we do expect people to pitch in long hours when the deadlines are on -
not often, but often enough that they matter.  I've been involved in too many
death-marches
myself to not want to go through that every week.


Chris Adams wrote:

> On 2 Apr 2001 06:49:02 -0700, Michael Kimsal <[EMAIL PROTECTED]> wrote:
> >* Willingness to work weekends/evenings, if need be, to meet deadlines.
>
> With the requirement that this should only be a temporary thing and rewarded
> appropriately (preferably with time off after the deadline). If it's become a
> death-march, it's time to look for other work.
>
> --
> 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]






--- Michael Kimsal <[EMAIL PROTECTED]> wrote:
> To follow up just a bit more, here are skills I
> would require of someone
> before hiring them:
> 
> * Practical SQL knowledge, with hands-on experience
> of at least 6 months
> (with projects/URLs to show for it) with either
> MySQL, Postgres, MSSQL,
> Oracle, DB2 or another high-level DB system
> (preferably more
> than one, but we'll take just one).
> 
> * At least 6 months of practical PHP knowledge -
> projects/URLs to
> show for it.
> 
> * Ability to design/debug complex HTML tables, or
> create scripts to do the
> same. :)
> 
> * Ability to talk me through at least 2 ways of
> solving a data manipulation
> problem, without code - whiteboard/paper/hand
> gestures and words only.
> You also need to be able to argue why one method is
> better over another.
> You don't have to be right, but you have to be able
> to justify your
> choices.
> 
> * Understanding of HTTP, session management,
> cookies, etc.
> 
> * More than a passing interest in new technologies,
> and how to apply
> your current skills to those new areas (wireless,
> etc.)
> 
> * Willingness to work weekends/evenings, if need be,
> to meet deadlines.
> 

Well what better opputunity is there to post your
resume link, an employer sitting right here (or
there), and not being considered as spam -:)

http://www.devhome.net/resume.txt

i've been working on php since hmm... quite some time,
maybe 2 years back or more, a hop from perl, never
looked back though. my resume does explain much of my
knowledge, so i'll let anyone interested go there :-)

well not many php jobs in india sadly -:(

my php projects have been diverse, but the only when
you'll be able to appreciate is http://www.devhome.net

a site i keep working on, and some of you even may
know of.

thanks


> There are some tech things above, and some
> personality things.
> I don't care too much if the projects people show me
> are personal
> or professional, as long as they get excited about
> some of those
> projects - either by talking about the skills they
> gained or mistakes
> they made, or about how these projects can be
> adapted to other
> situations.
> 
> I'm not dogging you personally Jon - I don't even
> know you.  I'm just
> speaking as an employer in the web services field -
> these are the skills
> I generally look for in people.  :)  My guess is
> that others have similar
> criteria, but I may be way off base.
> 
> 
> 
> Jon Jacob wrote:
> 
> > I hope this is not off topic, but I need to ask a
> general audience this
> > question and this seems like the right group.
> >
> > I have been out of work for two months and I am
> not sure why.  I am a
> > talented web programmer with three years
> experience, strong Perl,
> > JavaScript, CGI, and HTML skills and a great work
> ethic.  I have been
> > offered a job (which I turned down) but nothing
> desirable has come my
> > way.  I know the economy is slow, but I am shocked
> that I am out of work
> > for this long.  Are others experiencing this, or
> is it just me?
> >
> > I live in Portland, OR which is not the center of
> the tech universe but
> > has strong tech companies nonetheless.  I am just
> confused and am
> > wondering if it is something I am doing or
> something that is being done
> > to me.  If the later, I can wait it out, but I
> just wanted to know if
> > anyone in my silimiar situation was experiencing
> something the same and
> > had any insight to share.
> >
> > I apologize for the vent, but it is starting to
> become frustrating and
> > confusing.
> >
> 
> 
> -- 
> 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]
> 


=====
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text




oops, a 404, well

try http://www.devhome.net/resume.txt in txt

and http://www.devhome.net/resume.doc in word!

:)

--- Mukul Sabharwal <[EMAIL PROTECTED]> wrote:
> 
> --- Michael Kimsal <[EMAIL PROTECTED]> wrote:
> > To follow up just a bit more, here are skills I
> > would require of someone
> > before hiring them:
> > 
> > * Practical SQL knowledge, with hands-on
> experience
> > of at least 6 months
> > (with projects/URLs to show for it) with either
> > MySQL, Postgres, MSSQL,
> > Oracle, DB2 or another high-level DB system
> > (preferably more
> > than one, but we'll take just one).
> > 
> > * At least 6 months of practical PHP knowledge -
> > projects/URLs to
> > show for it.
> > 
> > * Ability to design/debug complex HTML tables, or
> > create scripts to do the
> > same. :)
> > 
> > * Ability to talk me through at least 2 ways of
> > solving a data manipulation
> > problem, without code - whiteboard/paper/hand
> > gestures and words only.
> > You also need to be able to argue why one method
> is
> > better over another.
> > You don't have to be right, but you have to be
> able
> > to justify your
> > choices.
> > 
> > * Understanding of HTTP, session management,
> > cookies, etc.
> > 
> > * More than a passing interest in new
> technologies,
> > and how to apply
> > your current skills to those new areas (wireless,
> > etc.)
> > 
> > * Willingness to work weekends/evenings, if need
> be,
> > to meet deadlines.
> > 
> 
> Well what better opputunity is there to post your
> resume link, an employer sitting right here (or
> there), and not being considered as spam -:)
> 
> http://www.devhome.net/resume.txt
> 
> i've been working on php since hmm... quite some
> time,
> maybe 2 years back or more, a hop from perl, never
> looked back though. my resume does explain much of
> my
> knowledge, so i'll let anyone interested go there
> :-)
> 
> well not many php jobs in india sadly -:(
> 
> my php projects have been diverse, but the only when
> you'll be able to appreciate is
> http://www.devhome.net
> 
> a site i keep working on, and some of you even may
> know of.
> 
> thanks
> 
> 
> > There are some tech things above, and some
> > personality things.
> > I don't care too much if the projects people show
> me
> > are personal
> > or professional, as long as they get excited about
> > some of those
> > projects - either by talking about the skills they
> > gained or mistakes
> > they made, or about how these projects can be
> > adapted to other
> > situations.
> > 
> > I'm not dogging you personally Jon - I don't even
> > know you.  I'm just
> > speaking as an employer in the web services field
> -
> > these are the skills
> > I generally look for in people.  :)  My guess is
> > that others have similar
> > criteria, but I may be way off base.
> > 
> > 
> > 
> > Jon Jacob wrote:
> > 
> > > I hope this is not off topic, but I need to ask
> a
> > general audience this
> > > question and this seems like the right group.
> > >
> > > I have been out of work for two months and I am
> > not sure why.  I am a
> > > talented web programmer with three years
> > experience, strong Perl,
> > > JavaScript, CGI, and HTML skills and a great
> work
> > ethic.  I have been
> > > offered a job (which I turned down) but nothing
> > desirable has come my
> > > way.  I know the economy is slow, but I am
> shocked
> > that I am out of work
> > > for this long.  Are others experiencing this, or
> > is it just me?
> > >
> > > I live in Portland, OR which is not the center
> of
> > the tech universe but
> > > has strong tech companies nonetheless.  I am
> just
> > confused and am
> > > wondering if it is something I am doing or
> > something that is being done
> > > to me.  If the later, I can wait it out, but I
> > just wanted to know if
> > > anyone in my silimiar situation was experiencing
> > something the same and
> > > had any insight to share.
> > >
> > > I apologize for the vent, but it is starting to
> > become frustrating and
> > > confusing.
> > >
> > 
> > 
> > -- 
> > 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]
> > 
> 
> 
> =====
> To find out more about me :
> http://www.geocities.com/mimodit
> My bookmarks are available @ http://mukul.free.fr
> 
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail. 
> http://personal.mail.yahoo.com/?.refer=text
> 
> -- 
> 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]
> 


=====
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text




I have a suspcion that it may have to do with your shell interperting the &
character.  Try to quote your URL with single quotes ('').

Mike

-----Original Message-----
From: Michael Kimsal [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 10:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP SITE SUGGESTION


With the hope that someone at php.net is listening...

I understand you want to track how many downloads you've got, etc. but
can you make the download more direct somehow?  I can't do a wget
against
the php.net site to download the latest version.  :(  I think it's the ?
in the
URL that gives me a problem.

Thanks.



-- 
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,

Why can't I found neither LIBPHP3.SO nor MOD_PHP3.SO ???

Thanks

Marcelo Pereira
Programmer




Hi, I'm having a problem writing a flash detector, and was hoping
someone would help.  I had one working that I created with Flash 4, but
it would fetch another webpage after loading so that it knew where to
redirect to.  So it looked like:

PHP embeds FLASH ---> load variables from PHP ----> redirects to correct
page.

If FLASH wouldn't load, then javascript or a http refresh header would
send them elsewhere.

I'm trying to use Ming to eliminate the load variables from PHP
portion.  That way once the FLASH file loads, it will redirect, and you
won't have to wait for the program to go to the server and load more
variables.  Here is the code I'm using:

<brokencode>
<?php

// $load is a variable that is passed in the embed tag ex:
// <embed src=detectflash.php?load=<?=$PHP_SELF?>>
$thisURL = "$load?hasflash=yes";
Ming_setScale(1.0);

// Create a very small movie with a white background.
$m = new SWFMovie();
$m->setBackground(0xff, 0xff, 0xff);
$m->setDimension(18, 18);

// This movie simply redirects to the appropriate page.
$m->add(new SWFAction("getURL('$thisURL', ''); stop();"));
$m->nextFrame();
$m->add(new SWFAction("play();"));

header('Content-type: application/x-shockwave-flash');
$m->output();
?>
</brokencode>

So far I've tested this in 3 browsers all on Windows 2000.
IE5 - works just fine.
Opera 5 - works just fine.
Netscape 4.08 - Never redirects.

I added code to write $thisURL to a file so I could see if it is getting
passed correctly, and it is.  So there must be a problem with the movie
somewhere.  In the getURL() function, I have tried many different things
for the second argument.  _self, _parent, _top.  None of these makes any
difference.  Anyone have any ideas I could try??

-- 
Jason Stechschulte
University of Northwestern Ohio
[EMAIL PROTECTED]
(419)998-3108
--
When it's dark enough you can see the stars.
                -- Ralph Waldo Emerson,




On 2 Apr 2001 07:58:42 -0700, Jason Stechschulte <[EMAIL PROTECTED]> wrote:
>// This movie simply redirects to the appropriate page.
>$m->add(new SWFAction("getURL('$thisURL', ''); stop();"));

>I added code to write $thisURL to a file so I could see if it is getting
>passed correctly, and it is.  So there must be a problem with the movie
>somewhere.  In the getURL() function, I have tried many different things
>for the second argument.  _self, _parent, _top.  None of these makes any
>difference.  Anyone have any ideas I could try??

Try _level0 - that's what you'd need to replace the current movie.

Alternately, you can avoid needing to load Flash at all - use JavaScript to
iterate over the plugins array on Netscape and use VBScript with an On Error
handler to instantiate the Flash ActiveX control - if it fails, your VBScript
can assume Flash isn't installed (which is the sane default).




On Mon, Apr 02, 2001 at 08:41:29AM -0700, Chris Adams wrote:
> On 2 Apr 2001 07:58:42 -0700, Jason Stechschulte <[EMAIL PROTECTED]> wrote:
> >// This movie simply redirects to the appropriate page.
> >$m->add(new SWFAction("getURL('$thisURL', ''); stop();"));
> 
> >I added code to write $thisURL to a file so I could see if it is getting
> >passed correctly, and it is.  So there must be a problem with the movie
> >somewhere.  In the getURL() function, I have tried many different things
> >for the second argument.  _self, _parent, _top.  None of these makes any
> >difference.  Anyone have any ideas I could try??
> 
> Try _level0 - that's what you'd need to replace the current movie.

I forgot to mention that I've also tried the different _level* arguemnts
too.  _level0 actually breaks IE and still doesn't work in Netscape.

> Alternately, you can avoid needing to load Flash at all - use JavaScript to
> iterate over the plugins array on Netscape and use VBScript with an On Error
> handler to instantiate the Flash ActiveX control - if it fails, your VBScript
> can assume Flash isn't installed (which is the sane default).

I guess I will just have to implement this solution.  I was hoping to do
it using Ming just to help familiarize myself with it, but this will
probably be more efficient than how it is being done today.

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
If you consistently take an antagonistic approach, however, people are
going to start thinking you're from New York.   :-)
             -- Larry Wall to Dan Bernstein in <[EMAIL PROTECTED]>




Hello,

Can I install php as a cgi and install it as its own program?  On a redhat
7.0 box Apache 1.3

Thanks Brandon?






> Hello,
>
> Can I install php as a cgi and install it as its own program?  On a redhat
> 7.0 box Apache 1.3
>
> Thanks Brandon?

Yep, cgi is the same as a command line interpreter.
Just ./configure and dont enable any of the sapi's

James





Stig Venaas wrote:

> So the arrays contain one string each? array_diff() won't work then.

Sorry - my fault.
I'm getting the values from a database - not manually added.

> Try this:
> 
> $a = array(1, 2, 3, 4, 5);
> $b = array(1, 2);
> $test = array_diff($a, $b);
> $lines = count($test);
> echo $lines;
> var_dump($test);

I'm afraid I dont quite under stand the output you gave (maybe ... or do 
you mean var_dump included the number of the array elements?)

M.




>From my httpd.conf:

LoadModule php4_module        libexec/apache/libphp4.so  (this file does
exist)
AddModule mod_php4.c

# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps



Felix Kronlage wrote:

> On Mon, Apr 02, 2001 at 12:01:08AM -0600, natter wrote:
>
> > 3. Changed my httpd.conf file to allow .php:
> >                         - AddType application/x-httpd-php .php
> >                         - AddType application/x-httpd-php-source .phps
>
> Do you have the directive to load the php-module in your httpd.conf?
>
> | LoadModule php4_module        /path/to/the/module/libphp4.so
>
> -fkr, and don't forget the 'apachectl restart'
> --
> gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0
>   |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
>   |all your base are belong to us  |  shame on me  | fkr@IRCnet |
>
> --
> 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]





Anyone have any examples of php that uses snmp to get the details of
bandwidth usage from a Win2K server (ie Bytes sent/received on a
particular interface)?

Thanks.
-- 
Richard Heyes




Hi...

I'm starting a forum, but I have one problem..

1. Is there a easy way to ignore/don't take HTML/php tags inside a post..

e.g someone echo's $mysql_password/username?
     or something else...

include, require etc...

...Fredrik:)

--
---------------------------------
Fredrik A. Takle
[EMAIL PROTECTED]








> Hi...
>
> I'm starting a forum, but I have one problem..
>
> 1. Is there a easy way to ignore/don't take HTML/php tags inside a post..
>
> e.g someone echo's $mysql_password/username?
>      or something else...
>
> include, require etc...

take a look at http://www.php.net/manual/en/function.htmlspecialchars.php
and http://www.php.net/manual/en/function.htmlentities.php

Cheers,

James





"FredrikAT" <[EMAIL PROTECTED]> wrote:
> 1. Is there a easy way to ignore/don't take HTML/php tags inside a post..

strip_tags() could be useful.  It strips PHP and HTML tags and you can
optionally add a list of allowable tags, which is nice if you want to allow
bold and hyperlinks, but not other tags.

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





Thank you very much, really appreciate it. But I have to admit that I an example from 
a book in which he creates a gif (and not a png), where he doesn't actually have to 
allocate a color. He only has 3 lines which are supposed to work. Maybe true for gif, 
but cannot tell, since I don't have gif support.

header("Content-type: image/gif");
$image= imagecreate(200,200)l
imageRectangle($image, 50, 50, 150, 150, $blue);

regards,
thalis

------------------------------------------------------
No excellent soul is exempt from a mixture of madness.
                -- Aristotle

On Mon, 2 Apr 2001, nicuc.ac.jp wrote:

> Hello
> 
>   I make change of your code by move some line to correct line and it's
> work.
> Here this a code
> 
> <?PHP
> header("Content-type: image/png");
> $image= imagecreate(200,200) or die("Failed in call to
> imagecreate()<BR>\n");
> $blue = imageColorAllocate($image,0,0,255);
> imageRectangle($image, 50, 50, 150, 150, $blue);
> imagepng($image); //----  I MOVE THIS LINE
> imagedestroy($image);
> ?>
> 
> Hope this will help.
> -Tuna-
> 
> 
> ""Thalis A. Kalfigopoulos"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Helloppl,
> > I have php compiled with GD support (version>1.8 so I have png support). I
> try the following code and get a broken image:
> >
> > <?php
> > header("Content-type: image/png");
> >
> > $image= imagecreate(200,200) or die("Failed in call to
> imagecreate()<BR>\n");
> > imagepng($image);
> > $blue = imageColorAllocate($image,0,0,255);
> > imageRectangle($image, 50, 50, 150, 150, $blue);
> >
> > imagedestroy($image);
> > ?>
> >
> > I get this error in the Apache error log (Apache with DSO support and php
> as a .so):
> > gd-png:  fatal libpng error: Invalid number of colors in palette
> > gd-png error: setjmp returns error condition
> >
> > Any ideas what's wrong?
> >
> > regards,
> > thalis
> >
> >
> > --
> > 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]
> 
> 





On Mon, 2 Apr 2001, Thalis A. Kalfigopoulos wrote:

> Thank you very much, really appreciate it. But I have to admit that I have an 
>example from a book in which he creates a gif (and not a png), where he doesn't 
>actually have to allocate a color. He only has 3 lines which are supposed to work. 
>Maybe true for gif, but cannot tell, since I don't have gif support.
> 
> header("Content-type: image/gif");
> $image= imagecreate(200,200)l
> imageRectangle($image, 50, 50, 150, 150, $blue);

Sorry mistake. 3-line code of example was:

header("Content-type: image/gif");
$image= imagecreate(200,200);
imagegif($image);

cheers,
thalis

> > 
> >   I make change of your code by move some line to correct line and it's
> > work.
> > Here this a code
> > 
> > <?PHP
> > header("Content-type: image/png");
> > $image= imagecreate(200,200) or die("Failed in call to
> > imagecreate()<BR>\n");
> > $blue = imageColorAllocate($image,0,0,255);
> > imageRectangle($image, 50, 50, 150, 150, $blue);
> > imagepng($image); //----  I MOVE THIS LINE
> > imagedestroy($image);
> > ?>
> > 
> > Hope this will help.
> > -Tuna-





Hi!
I have a file with text on 17 rows and when I let php read it ,get
filezise and than print I only get the first row.
I want all rows exatly like it is in the file, is it possible?
My file:
<html>
<head>
<title></title>
</head>
<body>
some rows here....
</body>
</html>

Thanks in advance for all help I can get.

Regards
Jan





"Jan Grafström" <[EMAIL PROTECTED]> wrote:
> I have a file with text on 17 rows and when I let php read it ,get
> filezise and than print I only get the first row.
> I want all rows exatly like it is in the file, is it possible?
> My file:
> <html>
> <head>

Yes, it's possible.  Post your code so we can see what you've tried.  I
suggest using fopen() and fgets() to accomplish what you want.  The first
example in the manual at http://www.php.net/manual/en/function.fgets.php
does exactly what you want.

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





Thank You Steve!
Here is my php
----
<?
 $fillista = "fillista.xml";
 $fp = @fopen($fillista,r);
 $count = fgets($fp,filesize($fillista));
 fclose($fp);
 print "fillista=".$count;
?>
------
Regards
Jan

Steve Werby wrote:

> "Jan Grafström" <[EMAIL PROTECTED]> wrote:
> > I have a file with text on 17 rows and when I let php read it ,get
> > filezise and than print I only get the first row.
> > I want all rows exatly like it is in the file, is it possible?
> > My file:
> > <html>
> > <head>
>
> Yes, it's possible.  Post your code so we can see what you've tried.  I
> suggest using fopen() and fgets() to accomplish what you want.  The first
> example in the manual at http://www.php.net/manual/en/function.fgets.php
> does exactly what you want.
>
> --
> 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]





"Jan Grafström" <[EMAIL PROTECTED]> wrote:
> Thank You Steve!
> Here is my php
> ----
> <?
>  $fillista = "fillista.xml";
>  $fp = @fopen($fillista,r);
>  $count = fgets($fp,filesize($fillista));
>  fclose($fp);
>  print "fillista=".$count;
> ?>

Your call to fgets() is only returning the first line of the input file.
Add the following line after it and $count will now have the first 2 lines:

$count .= fgets($fp,filesize($fillista));

If you construct your code to *loop* through the input file using fgets()
like the first example at http://www.php.net/manual/en/function.fgets.php
that I mentioned your problem will be solved.  Good luck!

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





Hi all [again],

I'm becoming crazy installing PHP3 on my system.... I had already been using PHP but 
with no postgresql support, now I need it and I done:

get php3-3.0.18.tar.gz
untared it
./configure --with-pgsql
./make
./make install

The INSTALL file says to add
-LoadModules     libphp3    modules/libpgp3.so
WHERE is this file ???

I could NOT get it running,

Is there anyone here that could, for the love of god, help me to install it with pgsql 
support on my system ???

Thanks, really thanks, in advance,

Marcelo Pereira
Programmer




Hi!!
Does anyone knows why phpInfo() displays a Local and a Master value for
every configuration variable? (This is in  the PHP Core section.)

What does local and master refer to?

How can I have different configuration values for Local and Master?

What do I have to do with the php.ini to get this?

Thanks a lot in advance.
Cheers.
Diego.





> -----Original Message-----
> From: Diego Fulgueira [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 02, 2001 11:37 AM
> To: Php-General
> Subject: [PHP] phpInfo() displays Local and Master 
> configuration values.
> 
> 
> Does anyone knows why phpInfo() displays a Local and a Master 
> value for every configuration variable? (This is in the PHP
> Core section.)
 
As I understand it...

"Master" values are the settings made in your php.ini.

"Local" values are the settings which apply to scripts in the current
location.  In many cases, these will probably be the same as the
"Master" values.  However, they can be overridden by configuration
settings made in location-specific sections of your web server config
(for a particular virtual server or group of directories) or (if
allowed) in .htaccess files throughout your directory tree.


---
Mark Roedel ([EMAIL PROTECTED])  ||  "There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full."
     LeTourneau University      ||                    -- Henry Kissinger





Hello

In PHP there is an instruction : nl2br .
Does anybody know if there is something similar in Perl???

Thanks

Calin




> In PHP there is an instruction : nl2br .
> Does anybody know if there is something similar in Perl???

I think this syntax is correct...  it's been a while...

$string =~ /\\n/\<br\>/g

or something along those lines... :p

Chris




I was wondering if it is possible for you to develop a VRML page that
incorporates php to get the content that will be displayed??????

I mean just the prospects of having a page the is "3D " and dynamic content
based is quite interesting to me.






Since PHP comes from a preprocessor and you can create VRML Code with it, it
is
possible. Just set .vrml as your extension in the config file and implement
PHP tags.

Greetz,

Dominick

-----Original Message-----
From: Godd [mailto:[EMAIL PROTECTED]]
Sent: maandag 2 april 2001 18:59
To: [EMAIL PROTECTED]
Subject: [PHP] VRML and PHP


I was wondering if it is possible for you to develop a VRML page that
incorporates php to get the content that will be displayed??????

I mean just the prospects of having a page the is "3D " and dynamic content
based is quite interesting to me.



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







> 
> Since PHP comes from a preprocessor and you can create VRML Code 
> with it, it
> is
> possible. Just set .vrml as your extension in the config file and 
> implement
> PHP tags.

Yep totally...

James




"Boget, Chris" <[EMAIL PROTECTED]> wrote:
> for( $i = "a"; $i <= "z"; $i++ ) {
> }
>
> Not entirely too sure why, but the above works.  And
> it's really cool that it does. :)
> However, it doesn't work as one would expect (aside

You may know this already and not have a need, but for the benefit of others
who may have read your post, you can loop through 'a' to 'z' using the chr()
function as follows:

<?php
for ( $i = 97; $i <= 122; $i++ )
{
echo chr( $i );
}
?>

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





Could someone please supply me with a little information about freetype
fonts concerning the following points of interest:
1/ A good description of what it actually is.
2/ How to actually use it in a practical sense hopefully in conjunction
with php.
3/ Supply of some small code snippets showing real world examples.
4/ Any freetype library functions.

I thank you all in advance for any help that you can grtant to me.

Joe :)




Hello,

Can I check to see if cgi is installed as a cgi or an api?  What does PHP
embedded mean?

thanXor
Brandon





here is my code, If select_array() does not find anything it will not return anything, 
foreach() requires an array. I rtied putting an @ inforn of $database-> but this didnt 
work (didnt think it would) and I cant put in fron of the foreach() I get a parse 
error.

   foreach($database->select_array('', 'orders, orders_product', $query) as $pos => 
$orders)
   {
        ...
    }


-- 

 Chris Lee
 [EMAIL PROTECTED]







$database is the object.
Select_array() is the function in the class, so...
Try putting it in front of select_array()
I don't know if this will work, but this is where I would think to put it.

$database->@select_array()

Let me know if it works.


On 4/2/01 8:15 AM, "Chris Lee" <[EMAIL PROTECTED]> wrote:

> here is my code, If select_array() does not find anything it will not return
> anything, foreach() requires an array. I rtied putting an @ inforn of
> $database-> but this didnt work (didnt think it would) and I cant put in fron
> of the foreach() I get a parse error.
> 
>  foreach($database->select_array('', 'orders, orders_product', $query) as $pos
> => $orders)
>  {
>       ...
>   }
> 





Does anyone have any code which creates schedules? Like to create a works 
schedule or a league schedule (baseball, softball that sort of thing)



-Micahel





check out

www.ileaguemanager.com

At 12:12 PM 4/2/01 -0500, Michael Roark wrote:
>Does anyone have any code which creates schedules? Like to create a works 
>schedule or a league schedule (baseball, softball that sort of thing)
>
>
>
>-Micahel
>
>
>--
>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]





While this would work. Its a service for which you pay. I was looking for a 
code snippet.

At 02:56 PM 4/2/2001 -0400, Rick St Jean wrote:
>check out
>
>www.ileaguemanager.com
>
>At 12:12 PM 4/2/01 -0500, Michael Roark wrote:
>>Does anyone have any code which creates schedules? Like to create a works 
>>schedule or a league schedule (baseball, softball that sort of thing)
>>
>>
>>
>>-Micahel
>>
>>
>>--
>>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]





I don't like appearing rude, but I think you need to reevaluate your
request some.  What you're asking for is not a 'code snippet' - it's
an application.  A fairly customized application, I'd think too.

Write down exactly the features and functionality you'd want.
Search around the web for programs that do that.
Ask those people if you can have it for free.  MOST of them will
tell you to take a hike.  Some will oblige.

If all you want is something to type names/times in, just stick to
MS Word and save as HTML.  If you want something more advanced,
think about all the features that go into it.  It's NOT a 'snippet'.

As you can see, you've touched a nerve here.  :)


Michael Roark wrote:

> While this would work. Its a service for which you pay. I was looking for a
> code snippet.
>
> At 02:56 PM 4/2/2001 -0400, Rick St Jean wrote:
> >check out
> >
> >www.ileaguemanager.com
> >
> >At 12:12 PM 4/2/01 -0500, Michael Roark wrote:
> >>Does anyone have any code which creates schedules? Like to create a works
> >>schedule or a league schedule (baseball, softball that sort of thing)
> >>
> >>
> >>
> >>-Micahel
> >>





I apologize and I understand where you are coming from. My point was that 
www.ileaguemanager.com was a service you paid for hosted by them coded by 
them. I do not mind paying for code,  I've done it before and I will do it 
again. But I don't want to buy a service.

At 04:12 PM 4/2/2001 -0400, Michael Kimsal wrote:
>I don't like appearing rude, but I think you need to reevaluate your
>request some.  What you're asking for is not a 'code snippet' - it's
>an application.  A fairly customized application, I'd think too.
>
>Write down exactly the features and functionality you'd want.
>Search around the web for programs that do that.
>Ask those people if you can have it for free.  MOST of them will
>tell you to take a hike.  Some will oblige.
>
>If all you want is something to type names/times in, just stick to
>MS Word and save as HTML.  If you want something more advanced,
>think about all the features that go into it.  It's NOT a 'snippet'.
>
>As you can see, you've touched a nerve here.  :)
>
>
>Michael Roark wrote:
>
> > While this would work. Its a service for which you pay. I was looking for a
> > code snippet.
> >
> > At 02:56 PM 4/2/2001 -0400, Rick St Jean wrote:
> > >check out
> > >
> > >www.ileaguemanager.com
> > >
> > >At 12:12 PM 4/2/01 -0500, Michael Roark wrote:
> > >>Does anyone have any code which creates schedules? Like to create a works
> > >>schedule or a league schedule (baseball, softball that sort of thing)
> > >>
> > >>
> > >>
> > >>-Micahel
> > >>





Hi!
I can't make php.exe to read the configuration file, php.ini, from another
path different from c:\winnt\. This location seems to be the default, but I
want to change it to any other.

I tried erasing php.ini from C:\winnt\ and I thought php.exe would read the
php.ini siting next to it (in the same directory), but it didn't. It sees
php.exe just doesn't read ANY php.ini if it does not find it in c:\winnt\.

This problem is important for me because I want to work with different
configuration files for each of my sites.

Any clue?

Thanks a lot.
Cheers.
Diego.





Now VRML and PHP may be possible but if you can get Flash to get in the mix
that will be so bad.

What I really want to do is to get a flash file that will use the pictures
that I send to it via php and let it use that picture to do the animation.

Now what I am looking at is a flash file that displays info on a product.
now given the picture of the product and the information on the product, I
want flash to use that info with the events that I will place in the flash
file and let it do its thing.

now that will be good. I am not sure what macromedia has along this line.






If you are wanting to use pregenerated FLASH scripts ( and not build them on
the fly with libswf or ming) then what you want to do, without having to buy
Generator for your server is...

In the beginning of you falsh file, do a load variables from a PHP page,
that queries a database or whatever, gets the data, and echoes it out to the
FLASH file in the format expected by load variables. Tack on a variable at
the end called loadDone and set it to 1 (or true)
In flash, you have to put in a loop in the second frame, or after the
loadvariables command, that checks to see if loadDone==1, to make sure that
all the variables have loaded.

You cannot assume that the variables will load within a certain time period.
If they don't, the rest of your scripts will break.

That, is how you can pass a lot of dynamic information into your flash file,
without the use of server side generator install from macromedia.



On 4/2/01 11:14 AM, "Godd" <[EMAIL PROTECTED]> wrote:

> Now VRML and PHP may be possible but if you can get Flash to get in the mix
> that will be so bad.
> 
> What I really want to do is to get a flash file that will use the pictures
> that I send to it via php and let it use that picture to do the animation.
> 
> Now what I am looking at is a flash file that displays info on a product.
> now given the picture of the product and the information on the product, I
> want flash to use that info with the events that I will place in the flash
> file and let it do its thing.
> 
> now that will be good. I am not sure what macromedia has along this line.
> 
> 





I would like to be able to type in the username, select a change option and
then update a table that does not contain the username.
auth_user - contains user_id and username
userinfo - contains user_id and the field I want to update

What do I need to do fix this code?

 if ($userinfo) {
      if ($submit=='Unsubscribe') {
         $mail_list='N';
      } else {
         $mail_list='B';
      }
      $res=mysql_result("select user_id from auth_user where
username='$username'"); //how do I get this to relate to my next query?
      $res=mysql_query("replace into userinfo values
('$user_id','$mail_list')",$dbe);
      if ($res) {
         print "Email: $username ($mail_list)<br>\n";
      } else {
         print "Problems adding email to unsubscribe list: ";
         print mysql_error()."<br>\n";
      }
   }

   print "<form action=\"dontEmail.php\" method=get>\n";
   $sess->hidden_session();
   print "Email Address: ";
   print "<input type=text size=30 maxlength=100 name=\"username\">\n";
   print "<input type=submit name=\"submit\" value=\"Bad Email Address\">
\n";
   print "<input type=submit name=\"submit\" value=\"Unsubscribe\"><br>\n";
   print "</form>\n";


Thank you

Duffy Betterton
Director of Publications
[EMAIL PROTECTED]






Hi all,

Is there anybody here that would like to help me how to install php with pgsql support 
???
I've tried for last five days, but I COULDN'T get it running simply because I dunno 
where is LIBPHP3.SO or LIBPHP4.SO...... where can I generate this files ??? My distro 
dont generate them automagicly.......

See ya,

Marcelo





>Is there anybody here that would like to help me how to install php with 
>pgsql support ???
>I've tried for last five days

Hmmm, it keeps you busy.. checkout www.devshed.com they've got a nice 
tutorial on this.

Bye,


B.





when i edit variables with a form the ones wich are simple text get
corrected ok, but the ones chosen from drop-down menus only get added to
existing variables...
what am i doing wrong?

Thanx

Joao Monteiro






Hello,

iI want to use PHP inside Tomcat as a servlet.
My goal is to user Cocoon libraries.

My problem is this :

The first access of a simple php page runs
well, but the server core dump at the second
access. It seems to be a problem with the
jvm and threads.

Thanks in advance !

Versions :

PHP 4.0.4pl1 (--with-java and --with-servlet)
Tomcat 3.2.1
Linux 2.2.17 i86.
IBM JDK1.1.8

*** LOGS TOMCAT
Guessing TOMCAT_HOME from tomcat.sh to ./bin/..
Setting TOMCAT_HOME to ./bin/..
Using classpath:
./bin/../lib/ant.jar:./bin/../lib/jasper.jar:./bin/../lib/jaxp.jar:./bin/../
lib/parser.jar:./bin/../lib/phpsrvlt.jar:./bin/../lib/servlet.jar:./bin/../l
ib/test:./bin/../lib/webserver.jar:/VOILA_PROG/resin/resin-server/lib/xalan_
1_2_D02.jar:/VOILA_PROG/resin/resin-server/lib/xerces_1_2.jar:/usr/jdk118/li
b/classes.zip
[root@magic-dev jakarta]# 2001-03-09 10:19:02 - ContextManager: Adding
context Ctx( /examples )
2001-03-09 10:19:02 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-03-09 10:19:02 - ContextManager: Adding context Ctx( )
2001-03-09 10:19:02 - ContextManager: Adding context Ctx( /test )
2001-03-09 10:19:03 - PoolTcpConnector: Starting HttpConnectionHandler on
8080
2001-03-09 10:19:03 - PoolTcpConnector: Starting Ajp13ConnectionHandler on
8009
2001-03-09 10:19:03 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
8007
***

*** LOG when core dump (after 2 access of php page)
SIGSEGV received at bd7ff7a0 in /usr/local/lib/libphp4.so. Processing
terminated
***



__________________________________
Guillaume Fortin - http://www.voila.fr








how do i duplicate a table?
i tried
create table refer2 select * from refer;
create table refer2 as select * from refer;

they didn't work.
my mysql version is  mysql 3.22.28,






"McShen" <[EMAIL PROTECTED]> wrote:
> how do i duplicate a table?
> i tried
> create table refer2 select * from refer;
> create table refer2 as select * from refer;
>
> they didn't work.
> my mysql version is  mysql 3.22.28,

This has nothing to do with PHP - you should post to the MySQL list instead.
Anyway, the first SQL statement you tried will work in MySQL 3.23x, but not
3.22x.  You'll need to upgrade to 3.23, use SELECT INTO OUTFILE then import
back into a new table after creating it, or use mysqldump or another utility
to create INSERT statements from your table, edit the table name and then
use MySQL to run the INSERTs.

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





im to lazy to figure out the mysql commands, just copy the files.

cp sometable.MYI sometable2.MYI
cp sometable.MYD sometable.MYD
cp sometable.frm sometable.frm

mysqladmin flush-tables

easier.


-- 

 Chris Lee
 [EMAIL PROTECTED]


""McShen"" <[EMAIL PROTECTED]> wrote in message 
9aak9c$t7t$[EMAIL PROTECTED]">news:9aak9c$t7t$[EMAIL PROTECTED]...

how do i duplicate a table?
i tried
create table refer2 select * from refer;
create table refer2 as select * from refer;

they didn't work.
my mysql version is  mysql 3.22.28,



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






Okay, I have tried every example in the PHP Essentials book and on the 
php.net site that I can find on setting cookies using php3. Is there a 
problem with Netscape 4.x and setting cookies or is there something I have 
missed in setting up setcookie()?

Here is the code I am using:

<?php
setcookie("testcookie", "testvalue", time()+14400, "/", ".callook.org");
?>
<html>
<head>

I do not get any errors, it just does not set a cookie. Any help would be 
greatly appreciated.

Thanks,

Louis 




you may find that your expiry of four hours may be less then the time difference 
between your server and your client. are the tims on the two boxes set different ? on 
another note, I wouldnt bother with cookies, sessions are easier and simpler. you can 
use sessions in php3 with phplib. on yet another note (yat) is why do you use php3? 
Ive seen a few people still using php3 vs php4. I coulndt see any reasn for staying. 
just alot of reasons to switch.


-- 

 Chris Lee
 [EMAIL PROTECTED]



"Louis Brooks" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Okay, I have tried every example in the PHP Essentials book and on the 
php.net site that I can find on setting cookies using php3. Is there a 
problem with Netscape 4.x and setting cookies or is there something I have 
missed in setting up setcookie()?

Here is the code I am using:

<?php
setcookie("testcookie", "testvalue", time()+14400, "/", ".callook.org");
?>
<html>
<head>

I do not get any errors, it just does not set a cookie. Any help would be 
greatly appreciated.

Thanks,

Louis





That one doesn't work either.

Scott

""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message
9a2sdc$6t0$[EMAIL PROTECTED]">news:9a2sdc$6t0$[EMAIL PROTECTED]...
> When I use this script
>
>      header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
>      header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
>      header("Cache-Control: no-cache, must-revalidate");
>      header("Pragma: no-cache");
>
> Next, I browse around and go back one page, the cache does not expire.
> Sometime I get the error messages said that the header had already start
or
> something.  So, what is the other way around to fix this problem?????  Or
> how can I fix it????
>
> Thanks,
>  Scott
>
>
>
> --
> 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 have been searching for a "printer friendly script"... does anyone know
of a good one to use? I have tried the one from V. Satheesh Babu and it
works some times and it is slow on my machine (my server is fast for
everything else).

Any suggestions will help or if there is a tutorial out there then I would
like to make my own.

Thank you!

Joe






While trying to print A-Z...

This spews A-Z, then AA-YZ, then stops, most likely from a timeout.
<?php
  for ($x = 'A'; $x <= 'Z'; $x++)
  {
    echo "$x\n";
  }
?>

This works as expected.
<?php
  for ($y = 0, $x = 'A'; $x <= 'Z', $y < 26; $y++, $x++)
  {
    echo "$x\n";
  }
?>

Most likely the first one hits the execution time-limit, and that's
why it finally stops.   What I can't figure out is why it would do
A-Z and then start over at AA since the $x <= 'Z' should kill the
loop.  Removing the single quotes (trying for ASCII values) 
doesn't fix the problem...

-Mike







> While trying to print A-Z...
> This spews A-Z, then AA-YZ, then stops, most likely from a timeout.
> <?php
>   for ($x = 'A'; $x <= 'Z'; $x++)
>   {
>     echo "$x\n";
>   }
> ?>

This very issue was raised earlier today.  Check out the thread:

"Why does it work this way".

Chris




Hi,

Somebody knows any PHP secure routine to insert a new FreeBSB user, via WEB?

Thank you,

Carlos






Folks,

I'm looking for a function that will convert all HTML special characters
(ie, everything converted by htmlspecialchars()) but leave HTML alone.
Consider the following example:

Perhaps their greatest release is "Times &amp; Changes," which sold over
3,000,000 copies, according to <A HREF="http://www.billboard.com/">.

This should be echoed as:

Perhaps their greatest release is &quot;Times &amp; Changes,&quot; which
sold over 3,000,000 copies, according to <A
HREF="http://www.billboard.com/charts/?op=view&name=Before+These+Crowded+Str
eets">.

That is, it leaves alone anything anything within <> tags, but everything
else gets converted.  I assume that this is a relatively simply
preg_replace, but I'm having a bad regex week, so I thought I'd see if
anybody else had written this already. :)  Thanks, all.

Best,
Waldo





Could anyone point me to some good basic SSL tutorials?
I would like to be able to have people submit credit card
numbers for a site in the future that will be for a yearly conference
registration. Very simple but I don't know the first thing about
how SSL works. Thanks.
Jeff Oien




At 15:34 2-4-01 -0500, Jeff Oien wrote:
>Could anyone point me to some good basic SSL tutorials?

www.devshed.com

Bye,



B.





Hey all,

I am an applications programmer for a mid-sized ASP. Recently, I have
been given the task to take our existing e-commerce application written
in ASP, and re-write it in PHP. We did a risk analysis study of the pros
and cons of using PHP for this application, and everyone agrees that PHP
is the way to go.

However, just last week, management, along with my senior programmer
(who does NOT know PHP), decided that instead of re-writing the
application, we will PORT the ASP code to PHP. By port, I mean: prefix
all variables with $, change syntax to be PHP-specific (<> becomes !=),
but do NOT take advantage of php's built-in functions, do NOT change any
programming constrcuts, do NOT change any programming logic.

Now, I'm in the middle of a heated political battle with management, who
does not understand that porting is a bad idea, and that re-writing
will:

a) produce a much better application
b) take less development time
c) cause less bugs
d) create a more efficient system

So, my request to all developers on the list: Do you have any experience
PORTING (as described above) ASP to PHP? How hard was it? What was the
outcome? Why would you NOT do it? What reasons are there for NOT doing
it this way?

Thanks.

-Mike K.





The thing that will make PHP look the best right now is to get the 
application running in it as soon as possible.  If it's quickest to move 
the variables to $variables and leave all the business logic how it was 
under ASP, then that will help your PHP case the most.  Once the code is 
simply converted to PHP you will probably see no great increase or 
decrease in performance, but the code will be in PHP and you will be 
using the "platform".  At that point you can start using PHP's abilities 
and functions in a better way to continually increase the performance of 
the app.  If this application was well designed in the first place, it 
will run fine in PHP.

On Monday, April 2, 2001, at 04:37 PM, Mike King wrote:
>
> a) produce a much better application

The application that is running and showing results to the managers is 
the best application.  You could write the tightest code in the world, 
but if no one can use it, it's not the best.  Mozilla is an 
extraordinary program, but until people can get  a stable version in 
their hands, IE continues to gain market share.

Your PHP app may be amazing when it is finished, but they already had an 
ASP version that was finished and performing adequately.  This will make 
PHP look worse as time goes on.

> b) take less development time

If you're starting with a decently designed app already, I can't see how 
starting from scratch could be faster.

> c) cause less bugs

Maybe, but that's what version 2.0 is for!

> d) create a more efficient system
>

Again that can come over time, get it to PHP first and then make it run 
better,

Michael





OK, here's my problem
I wrote a simple upload script:

<?
print_r($HTTP_POST_FILES);
?>

<FORM ENCTYPE="multipart/form-data" ACTION="" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000000000000000">
File: <INPUT TYPE=file name=filename size=30>
<INPUT TYPE="submit" VALUE="submit">
</FORM>


I purposely specified MAX_FILE_SIZE to be big since I heard it causes
problems if it's too small: ie files get rejected no matter what.

If I input any file, the $HTTP_POST_FILES shows the proper stuff, but
the file doesn't exist in "/tmp" (which is set in php.ini), if I leave
the file field empty, then a /tmp/phpXXXXXX file is created with a 0
byte size.

What can be the problem? It's not permissions..

Yev

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text


Reply via email to