Re: [PHP] Holy Moly...

2002-01-03 Thread Kevin Keeler

Well, this *is* a good list, but the subjects tend to be of a more
"intermediate" nature .. You gotta know a little before you know what to
ask.  I would reccomend staying subscribed and just skimming subject
headings for things topics that sound interesting to you.

It's surprisingly easy to get a running start with PHP using some of the
web tutorials out there.

a few:
http://www.phpbeginner.com/
http://www.devshed.com/Server_Side/PHP/
http://www.phpwizard.com/beginning.html
http://www.phpbuilder.com/columns/

those are just from a quick google search, so ypu can easily fins others.

another GREAT source is the PHP manual itself - especially the user
comments.

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

ahoy and enjoy

--kevin

On Wed, 2 Jan 2002, Julie Hull wrote:

> Could someone please direct a total novice to the best PHP beginner news
> group. Just to many to choose from ~:)
>
> Thank You,
> Julie ~:)
>
>
> --
> 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]




Re: [PHP] Holy Moly...

2002-01-03 Thread B. van Ouwerkerk

At 17:16 2-1-02 -0900, Julie Hull wrote:
>Could someone please direct a total novice to the best PHP beginner news
>group. Just to many to choose from ~:)

Start by visiting www.php.net and click on links. You'll find many websites 
with tutorials.. Much better to learn something there before you start 
asking questions easily found there.

Bye,


B.


-- 
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] Re: If Statement with more than one conclusion

2002-01-03 Thread George Nicolae

if (($text=="com")||($text=="net")||($text=="org")||($text=="info"))
{

}

--


Best regards,
George Nicolae
IT Manager
___
X-Playin - Professional Web Design
www.x-playin.f2s.com



<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How can I do an if statement with more than one conclusions
> Something like this I know this is not correct just an example of what
> I what to do
> If($ext=="com"or"net"or"org"or"info"){
> Then do this
> }
> If($ext=="com.uk"or"me.uk"or"org.uk){
> Then do this
> }
>
>
> --
> Best regards,
>  rdkurth  mailto:[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]




Re: [PHP] easy quickie..

2002-01-03 Thread TD - Sales International Holland B.V.

On Wednesday 02 January 2002 20:20, Seb Frost stuffed this into my mailbox:

For the ease I guess I use alt- to go back :-)

> I've never understood why people do this?  My browser has a back button.  I
> know how to use it.  It's only a centimetre of mouse travel away from the
> page I'm looking at, why do I need a duplicate?
>
> - seb
>
>
> -Original Message-
> From: Kelly Meeks [mailto:[EMAIL PROTECTED]]
>
>
> Happy New Year,
>
> Does php set a variable that tells you the url of the page that a user has
> just come from?  So if I wanted to create my own 'Back' button in a pop up
> window, for instance?
>
> Thanks in advance,
>
> Kelly
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.307 / Virus Database: 168 - Release Date: 11/12/2001

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




Re: [PHP] Licensing??

2002-01-03 Thread TD - Sales International Holland B.V.

On Wednesday 02 January 2002 20:14, Michael A. Peters stuffed this into my 
mailbox:

Hmm but ClibPDF is an additional library package which is not part of the PHP 
engine right? 

regards

> I would like to note that you may need to purchase licensing for certain
> uses.
> For instance, I use ClibPDF on OS X.
>
> If I ever use it for commercial purposes (which I am planning to do, btw)
> I will need to purchase a license from FastIO for use of the ClibPDF
> library.
>
> On Wed, 2 Jan 2002 23:00:23 +0100
>
> "TD - Sales International Holland B.V." <[EMAIL PROTECTED]> mentioned:
> > On Saturday 29 December 2001 05:47, Rasmus Lerdorf stuffed this into my
> > mailbox:
> >
> > No it's free hehe :-) but I think they still appreciate any donations
> >
> :-).
> :
> > For since they are developping software they also have to do research n
>
> stuff
>
> > so sometimes they have to buy books and some testing hardware which
>
> mainly is
>
> > financed by donations I believe (this is general open-source far as I
>
> know,
>
> > not PHP project specific)
> >
> > I'm sure you should be able to find info about it on the homepage.
> >
> > Regards

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




Re: [PHP] Including files & variables ...

2002-01-03 Thread Tamas Arpad

On Wednesday 02 January 2002 20:43, you wrote:
> What you need to do is simply set the variables before you include
> the script.
>
> When you include a script with include() or require(), they fall
> into the same namespace as the include() or require() function that
> called them.
I read that in the manual too, but I have never understoud how it 
really works. I use require_once in function and the files I include 
have many class and function definitions in it (I include them when I 
really need them to make things faster). So when I try to imagine how 
it works, I feel that it shouldn't.
Becuse if I put the files in place of the require_onces I would get a 
code like this:
function foo() {

class foo2 {
function foo2() {
...
}
...
}
class foo3 { ... }
...
}
And it looks strange, but it works well, I use it frequently. Does 
anybody know why is this code works actually?
Thanks,
Arpi

p.s. of course it's only a theoretical question. I don't have to 
understand really, but it's good to know what I rely on.

-- 
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] Q: PHP3 / Read STDIN when missing Content-Type

2002-01-03 Thread role+php-general

I'm stuck with PHP3 at present and need to process POSTed data that
has a missing Content-Type, so the HTTP_POST_VARS don't work.

Is the raw STDIN data accessible in this situation, please?
Pretty please?

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




RE: [PHP] Holy Moly...

2002-01-03 Thread scott

... and dont forget, download some free PHP scripts and
dissect them.  my method for learning a new language is
just to throw myself head-first into it, and start writing
something in that language, using online manuals and
printed works to fill in the gaps along the way.

> On Wed, 2 Jan 2002, Julie Hull wrote:
> 
> > Could someone please direct a total novice to the best PHP beginner news
> > group. Just to many to choose from ~:)
> >
> > Thank You,
> > Julie ~:)



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




Re[2]: [PHP] Holy Moly...

2002-01-03 Thread role+php-general

>> On Wed, 2 Jan 2002, Julie Hull wrote:
>> 
>> > Could someone please direct a total novice to the best PHP
>> > beginner news group. Just to many to choose from ~:)
>> >
>> > Thank You,
>> > Julie ~:)


Jump right in, but be sure to read the introductory chapters of the
PHP manual, especially on security, and then dip back into them once
you're getting familiar with PHP.

It also depends on what you know about web servers, server-side
scripting, what other languages you know, and so on...


-- 
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] RE: array_multisort?

2002-01-03 Thread Tim Ward

If title can be guaranteed to be unique then just amend your code to
...

$product = array($id, $title, $price);
$shop[$title] = $product;

if not then you'll have to make the key unique, something like ...

$product = array($id, $title, $price);
$shop[$title . "..." . $counter++] = $product;

you can then use the normal array sorting functions on $shop

Tim
www.chessish.com  


--
From:  Sebastiaan Timmers - Bean IT [SMTP:[EMAIL PROTECTED]]
Sent:  02 January 2002 13:48
To:  [EMAIL PROTECTED]
Subject:  array_multisort?

Hi List,

I'm having a problem sorting the following array:

$product = array($id, $title, $price);
$shop[] = $product;


I want the array 'shop' to be sorted by the 'title' in array
'product'. I
tried  the function 'array_multisort()', but that did not do the
trick.

Does anyone know how to fix this?

Best regards,

Sebastiaan Timmers



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

2002-01-03 Thread V

I have this tree:

myroot
  |
  |--folderone
  |  |
  |  |--foldertwo
  |  |  |
  |  |  |--archivethree.php
  |  |
  |  |--archivetwo.php
  |
  |--archiveone.php

I need to include archiveone.php:

In archivetwo.php I make one include:
  include("../archiveone.php");

In archivethree.php I make another include:
  include("../archivetwo.php");

It gives me an error:
Failed opening '../archiveone.php' for inclusion (include_path='') in 
c:\mycompletepath\mypath\folderone\foldertwo.php on line 2

I have read about this but i can't find a valid solution.

Any ideas?

___
Antonio Vicente Maturana

___
Powered by Sambar Webmail - http://www.sambar.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] SSL & fsockopen()

2002-01-03 Thread Jeff Rossi

Is there a way to make an SSL connection between to servers 
with fsockopen()? I'm using PHP 3.0.13 and don't have cURL 
support.

-- 
Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117
Phone : (386) 226-8979

http://www.datadrivendesign.com
Websites That WORK For You

-- 
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 Digest 3 Jan 2002 12:22:53 -0000 Issue 1089

2002-01-03 Thread php-general-digest-help


php-general Digest 3 Jan 2002 12:22:53 - Issue 1089

Topics (messages 79274 through 79302):

Re: INI file parsing
79274 by: Steve Edberg

Code not working in 4.1
79275 by: Jonathan Hilgeman
79276 by: Martin Towell

Re: XML Parsing Problem
79277 by: Matthew Clark

Holy Moly...
79278 by: Julie Hull
79279 by: Martin Towell
79280 by: Matt Moreton
79291 by: Kevin Keeler
79292 by: B. van Ouwerkerk
79298 by: scott
79299 by: role+php-general.axoria.net

Re: Mysql Curdate problem
79281 by: Jimmy

Date aritmetic
79282 by: Carlos Fernando Scheidecker Antunes
79283 by: Bogdan Stancescu
79284 by: Bogdan Stancescu
79285 by: Martin Towell
79286 by: Martin Towell

Can I config PHP RPM?
79287 by: gaukia 345

If Statement with more than one conclusion
79288 by: rdkurth.starband.net
79289 by: Martin Towell
79290 by: rdkurth.starband.net
79293 by: George Nicolae

Re: easy quickie..
79294 by: TD - Sales International Holland B.V.

Re: Licensing??
79295 by: TD - Sales International Holland B.V.

Re: Including files & variables ...
79296 by: Tamas Arpad

Q: PHP3 / Read STDIN when missing Content-Type
79297 by: role+php-general.axoria.net

Re: array_multisort?
79300 by: Tim Ward

nested includes
79301 by: V

SSL & fsockopen()
79302 by: Jeff Rossi

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

--- Begin Message ---

AFAIK, it will reread the .ini file every time only if you're running PHP 
as a CGI, as opposed to an Apache module (or ISAPI or NSAPI module, but I 
don't think either of those are industrial strength yet). SO, yes, the .ini 
file will be reread each time PHP is called by IIS.

-steve

At 01:02 PM 1/2/02 , Joe Webster wrote:
>If so that would be totally shitty (in the respects of effecienty)
>
>
>"Charlesk" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am running IIS 5.0 Windows 2000 Server.  Changes made to the ini take
>effect immediately.  So it seems that php in Windows and IIS reloads the ini
>every time a page is requested?
> >
> > Charles Killmer
> >
> > -- Original Message --
> > From: "Joe Webster" <[EMAIL PROTECTED]>
> > Date: Wed, 2 Jan 2002 15:46:32 -0500
> >
> > no you need to restart apache to change an in setting. So it loads the
> > settings once per server start (at least with apache).
> >
> > "Charlesk" <[EMAIL PROTECTED]> wrote in message
> > news:<[EMAIL PROTECTED]>...
> > > Does PHP parse the ini file every time a file is requested?  I am trying
> > to track down a problem on various pages where the timelimit will expire.
> > These are not complex pages and when I go to them they work fine.
> > > I have used the same browser that the user eses when the timeout occurs.
> > Nothing strange for me.
> > > I have looked at the line that the error log specifies and it is just
> > random lines.  sometimes it is a '}'.  As if the script just ran out of
>time
> > on that line.  BTW '}' is the closing of an if statement so it isnt stuck
>in
> > a loop.  And when I go to the page I make sure to use the same querystring
> > that the user sent.
> > >
> > > Another thought, is the php engine slowed by users with a slow
>connection?
> > >
> > > Charles Killmer
> > > NetgainTechnology.com
> >
> >

++
| Steve Edberg  [EMAIL PROTECTED] |
| Database/Programming/SysAdmin(530)754-9127 |
| University of California, Davis http://pgfsun.ucdavis.edu/ |
+-- Gort, Klaatu barada nikto! --+


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

I used to run PHP 4.0.3 and at the beginning of some functions that used a
lot of global variables, I would add the following lines so I could access
all the global variables inside the functions.

 foreach($GLOBALS as $GlobalVarName => $GlobalVarValue)
 {
  global $$GlobalVarName;
 }

I upgraded to 4.1 and this code now causes PHP to die about 50-100 lines
after it is executed. Any ideas?

- Jonathan



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

use:

extract($GLOBALS);

http://www.php.net/manual/en/function.extract.php

-Original Message-
From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 03, 2002 11:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Code not working in 4.1


I used to run PHP 4.0.3 and at the beginning of some functions that used a
lot of global variables, I would add the following lines so I could access
all the global variable

Re: [PHP] Can I config PHP RPM?

2002-01-03 Thread Miles Thompson


A simple page containing nothing but 

will return all the information you need about the modules compiled into PHP. 
So you may not have to do anything more.

There are source rpm's available, but I'm suggesting an alternate route.

If you have access and rights on the server, remove the RPM versions, get the source 
and compile it yourself. It is not difficult, and there is a well known guide called
the "Soothingly Seamless Installation of Linux, Apache MySQL and PHP". A search
on Google for "Soothingly Seamless" will turn it up. 
The guide has instructions on where to get the source.

Why compile these yourself? 

First of all they are all programs which have been installed, from source, 
by hundreds of thousands of people. If you've never done it, they are good ones
to start with, as just about all of the quirks are worked out. It is a valuable 
learning experience.

Second, you know exactly what you will include or exclude from your software.

Third, you can locate the programs exactly where you want them. Your decision on
where to locate them is no more or no less arbitrary than the maintainers of the 
.rpm's.



On Thursday 03 January 2002 01:01 am, gaukia 345 wrote:
> I'm a PHP newbie and have a few questions.
>
> 1) The server I'm working on has PHP 4.0.5 installed using an RPM. So
> there's no source code. How do I include extensions (say --enable java )
> without getting the PHP source code and without "make"?
>
> 2) I think the server's Apache web server is also installed using an RPM.
> But the PHP is installed as a dynamic module. As far as I know, to install
> as a dynamic module, you'll have to use the ./configure command of Apache
> and re "make" and then "make install" Apache. But the Apache source code is
> not there. How is this possible?
>
> Thank you.
>
> _
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx

-- 
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] File opening, writting and location

2002-01-03 Thread RRNews

I'm a newbie to PHP and the web.
I've been programming in VB for about 3 years and XBase for about 15.

I would like to place a bunch of text files in a directory and have a PHP
script pick them up and place the top X lines in a center section of a page
followed by a MORE link.  It would do this for Y number of articles.  The
remainder it would title with the first x characters and place it on the
right of the screen (like an archive)

I know that I can use a function similar to fopen in XBase to access the
text files and extract the lines.
In Xbase, I would traverse the directory, extract the lines, place the X
characters in a string followed by a "More".

If anyone can steer me in the right direction, I would appreciate it. I
don't get how you place things on the page in a given area. I'm using
Dreamweaver 4 templates.

Anyone have any suggestions.
Thanks in advance...
Jerry



-- 
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] php-gtk compile prob

2002-01-03 Thread David Norman

I've been trying to compile php-gtk on slack 8 with php 4.1.1. I've
tried CVS and 0.1.1, but I get the following during make whether I use
./buildconf or phpize:

gen_gtk.c:1: parse error before `:'

I looked at ext/gtk+/gen_gtk.c, and there is one line:

usage: php -q generator.php [-o overridesfile] [-p prefix] [-c
functionclass] [-r typesfile] defsfile

I emptied the file to move on with compiling, but I get it again for
gen_gdk.c, followed by gen_*.c files for the other ext directories in
the php-gtk directory with the same "usage: ..." line in each of the
files with the error.

Any ideas what's up? I kinda wish now I could just go download a
precompiled .so somewhere and be done with it.

- deekayen

Get ready for a silly yahoo ad:

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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]




Re: [PHP] php-gtk compile prob

2002-01-03 Thread Henning Sprang

Hy,
this is for [EMAIL PROTECTED], there you'll get answers I
think...





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




Re: [PHP] RE: nested includes

2002-01-03 Thread Tamas Arpad

On Thursday 03 January 2002 13:36, Tim Ward wrote:
> Include will act relative to the path of the script not the
> included file that the include is in.
>
> If you have an include in a file which is itself included and which
> isn't always called from files in the same directory you need to
> make the include path absolute rather than relative.
This can be solved partly with include_path setting in php.in or in 
apache's config files (even in .htaccess). You can just set 
include_path to your project's (or application's) root directory, and 
make all the paths relative to this directory in include() and 
require().
Bye,
Arpi

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




RE: [PHP] Session troubles

2002-01-03 Thread Junior, Ricardo

Hi Sean !

I had the same problem... this can be resolved using the function
"session_write_close()" at the end of each script you use sessions. It will
force PHP to call the write and close function.

In some combinations of PHP version, Apache and OS, this problem doesn't
happens, but as you, I had this problem too.. :)

Put this function in yours PHP scripts and see if now them will work.

Here is an exemple of a test script:

 where is my session functions
declareted to use database...
session_start();
?>


MySQL Session Management: Second Page


" );
print( "SESSION Account: $aAccount" );
$aUser = "Katie";
$aAccount = "2026";
print( "CHANGED User: $aUser" );
print( "CHANGED Account: $aAccount" );
session_write_close();
?>



Cheers,
_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, January 02, 2002 2:20 PM
To: [EMAIL PROTECTED]
Subject:Re: [PHP] Session troubles

On 01-02 07:45, Jaime Bozza wrote:
> I agree.  Perhaps make a feature request that disallows session starting
> if save_handler=user and you haven't defined a session handler?Then
> it could spit out a more correct error message.

Blast. I am still unable to get my own session handler to work. My session
handler's write never gets called; only my session_open and session_read get
calledthe default file session handler still works, if I change
save_handler back to file instead of user.

As for the feature request, I guess I could - is there a mechanism to do
this outlined somewhere?


> -Original Message-
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, January 01, 2002 8:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Session troubles
> 
> 
> On 12-31 09:23, Jaime Bozza wrote:
> > Sean,
> >   From your php error_log, it's saying the following:
> > Failed to write session data (user)
> > 
> >   which sounds like it's having problems writing to the user-defined 
> > session handler.  Are you using a user-defined session handler?  If 
> > not, make sure your php.ini file has:
> > 
> > session.save_handler = files
> > 
> > And *NOT*:
> > session.save_handler = user
> > 
> > That will make a big difference.
> 
> Good eye. That was it. I *did* have it as "user" because I was trying to
> do my own user-defined session handler, and then stepped back and was
> just trying to get the simpler case to work, w/o changing it back. 
> 
> Thanks, it works now!
> 
> Now, I just need to see if I can get my session_handler working...
> 
> It's too bad the error message isn't more descriptive for this, BTW...
> 
> 
> > -Original Message-
> > From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, December 29, 2001 1:21 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Session troubles
> > 
> > 
> > On 12-29 12:56, David Jackson wrote:
> > > Sean --
> > > Don't know if this help but here's what I just worked for me. What
> > > ver. of PHP are you using? It seem to me that 3.x.x needs
> > > PHPLIB: http://sourceforge.net/projects/phplib
> > > to handle sessions?  -- David Jackson
> > > 
> > > --- sean.php ---
> > > 
> > > 
> > > --- seaninc.php --
> > >  > > session_start();
> > > session_register("i");
> > > $i++;
> > > echo $i;
> > > ?>
> > 
> > I'm using 4.0.6. I believe session handling was added as part of 
> > standard 4.x, right (if configured to compile it)?
> > 
> > Some more info: I tried with Konqueror, as I know a cookie needs to be
> 
> > sent during the session_start() phase - I did get a dialog pop-up 
> > asking if I wanted to accept the cookie, but I still got the error:
> > 
> > Fatal error: Failed to initialize session module in 
> > /usr/local/apache/htdocs/sesstest.php on line 2
> > 
> > It says line 2 because I deleted some white space and commented out 
> > code thas was before session_start().
> > 
> > I set logging errors on, and sent it to syslog. Here's what it says: 
> > Dec 29 12:12:57 free httpd: PHP Fatal error:  Failed to initialize 
> > session module in /usr/local/apache/htdocs/sesstest.php on line 2 Dec 
> > 29 12:12:57 free httpd: PHP Warning:  Failed to write session data 
> > (user). Please verify that the current setting of session.save_path is
> 
> > correct
> > (/tmp) in Unknown on line 0
> > 
> > But /tmp exists, and is world writeable:
> > 
> > free# ls -ld /tmp
> > drwxrwxrwt  16 root  wheel  1024 Dec 29 12:14 /tmp
> > 
> > > > On 12-29 09:59, Miles Thompson wrote:
> > > >> Sean,
> > > >> 
> > > >> What's going on in incl.php. Are you issuing a session_start()?
> > > > 
> > > > No, I was not.
> > > > 
> > > >> What if it's rearranged like so, as I understand you have to
> > > >> register the session variable  before using it.
> > > >> 
> > > >> include("incl.php");
> > > >> session_s

Re: [PHP] Q: PHP3 / Read STDIN when missing Content-Type

2002-01-03 Thread Bogdan Stancescu

Your question intrigued me enough to start searching for an answer. Never
did this myself, but you may try
http://download.php.net/manual/en/html/function.fopen.html (fifth paragrapgh
of explanations). Hope it works with Apache - I was unable to determine if
this only works when you run PHP scripts from the prompt.

Please let me know if it works!

Bogdan

[EMAIL PROTECTED] wrote:

> I'm stuck with PHP3 at present and need to process POSTed data that
> has a missing Content-Type, so the HTTP_POST_VARS don't work.
>
> Is the raw STDIN data accessible in this situation, please?
> Pretty please?
>
> Cheers,
> 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]




[PHP] PHP Doesn't Crash but show blank page

2002-01-03 Thread [EMAIL PROTECTED]


Hello everyone!

I'm having issues with my php pages. When I have errors, Instead of
crashing or showing  errors, the browser shows a blank page.

For example, if I leave the left bracket in my if statement, like

if(blah blah)
   <---missing left bracket '{'

do this

}else {
 do that
}

or, I leave the semiconlon at the end of a line, like

$myvar= " this is my line" <-- missing ';'

PHP does not report the error.

My php.ini is configured as

error_reporting =
E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE

My system has
PHP 4.0.6, MySQL 3.23.46-nt, Win2000

Anyone knows why it's doing that?

-john

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


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




Re: [PHP] PHP Doesn't Crash but show blank page

2002-01-03 Thread Tamas Arpad

> I'm having issues with my php pages. When I have errors, Instead of
> crashing or showing  errors, the browser shows a blank page.
> PHP does not report the error.
> My php.ini is configured as
> error_reporting =
> E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_USER_ERROR|E_USER_WARNING|E_
>USER_NOTICE

display_errors is also turned On ?

Arpi

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




RE: [PHP] Session troubles

2002-01-03 Thread Jaime Bozza

Ricardo,
   I've had some strange problems with session writing, but they always
returned back to the fact that "return false" was being used in the
session read function.  PHP 4.0.6 wouldn't write out sessions when
register_globals was set to off when you were using "return false".  PHP
4.1.0 crashes with signal 11 after a bit when using "return false".
I've filed a couple of bug reports with the request that this be fixed.
I believe a patch is either being worked on or already submitted, but
I'm not positive.

   Sean's problem is that he's using "return false" in his session read
function.  The session read function should return a blank value ('')
and not false when there's no data.  This was never clear in the
documentation (and complaint I made) but is quite true.  Once switching
over to using ('') instead of (false), I no longer had problems.

Jaime Bozza


-Original Message-
From: Junior, Ricardo [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 03, 2002 8:52 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Session troubles


Hi Sean !

I had the same problem... this can be resolved using the function
"session_write_close()" at the end of each script you use sessions. It
will force PHP to call the write and close function.

In some combinations of PHP version, Apache and OS, this problem doesn't
happens, but as you, I had this problem too.. :)

Put this function in yours PHP scripts and see if now them will work.

Here is an exemple of a test script:

 where is my session
functions
declareted to use database...
session_start();
?>


MySQL Session Management: Second Page


" );
print( "SESSION Account: $aAccount" );
$aUser = "Katie";
$aAccount = "2026";
print( "CHANGED User: $aUser" );
print( "CHANGED Account: $aAccount" );
session_write_close();
?>



Cheers,
_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, January 02, 2002 2:20 PM
To: [EMAIL PROTECTED]
Subject:Re: [PHP] Session troubles

On 01-02 07:45, Jaime Bozza wrote:
> I agree.  Perhaps make a feature request that disallows session
starting
> if save_handler=user and you haven't defined a session handler?
Then
> it could spit out a more correct error message.

Blast. I am still unable to get my own session handler to work. My
session handler's write never gets called; only my session_open and
session_read get calledthe default file session handler still works,
if I change save_handler back to file instead of user.

As for the feature request, I guess I could - is there a mechanism to do
this outlined somewhere?


> -Original Message-
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 01, 2002 8:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Session troubles
> 
> 
> On 12-31 09:23, Jaime Bozza wrote:
> > Sean,
> >   From your php error_log, it's saying the following:
> > Failed to write session data (user)
> > 
> >   which sounds like it's having problems writing to the user-defined
> > session handler.  Are you using a user-defined session handler?  If 
> > not, make sure your php.ini file has:
> > 
> > session.save_handler = files
> > 
> > And *NOT*:
> > session.save_handler = user
> > 
> > That will make a big difference.
> 
> Good eye. That was it. I *did* have it as "user" because I was trying 
> to do my own user-defined session handler, and then stepped back and 
> was just trying to get the simpler case to work, w/o changing it back.
> 
> Thanks, it works now!
> 
> Now, I just need to see if I can get my session_handler working...
> 
> It's too bad the error message isn't more descriptive for this, BTW...
> 
> 
> > -Original Message-
> > From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, December 29, 2001 1:21 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Session troubles
> > 
> > 
> > On 12-29 12:56, David Jackson wrote:
> > > Sean --
> > > Don't know if this help but here's what I just worked for me. What

> > > ver. of PHP are you using? It seem to me that 3.x.x needs
> > > PHPLIB: http://sourceforge.net/projects/phplib
> > > to handle sessions?  -- David Jackson
> > > 
> > > --- sean.php ---
> > > 
> > > 
> > > --- seaninc.php --
> > >  > > session_start();
> > > session_register("i");
> > > $i++;
> > > echo $i;
> > > ?>
> > 
> > I'm using 4.0.6. I believe session handling was added as part of
> > standard 4.x, right (if configured to compile it)?
> > 
> > Some more info: I tried with Konqueror, as I know a cookie needs to 
> > be
> 
> > sent during the session_start() phase - I did get a dialog pop-up
> > asking if I wanted to accept the cookie, but I still got the error:
> > 
> > Fatal error: Failed to initialize session module in
> > /usr/local/apache/htdocs/sesstest.php on 

[PHP] Regular Expression

2002-01-03 Thread [-^-!-%-


Hello everyone!

I'm trying to get the text inside the  tag, using regular
expression.

$area = eregi('()',$str);

Where $str is the string containing


When I print  $area, the string contains the entire content of $str. I
get something like:



.
.
.





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




-- 
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] PHP dependent on connection speed?

2002-01-03 Thread charlesk

Is the php engine slowed by users with a slow connection? 

Charles Killmer
NetgainTechnology.com
IIS 5.0 Win 2000 Server PHP 4.1.0

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




Re: [PHP] PHP Doesn't Crash but show blank page

2002-01-03 Thread Joe Koenig

Chances are the error is showing up on the page, but is not visible. If
you view the source (HTML) from your browser, I bet you'll see the
error. Hope this helps,

Joe

Tamas Arpad wrote:
> 
> > I'm having issues with my php pages. When I have errors, Instead of
> > crashing or showing  errors, the browser shows a blank page.
> > PHP does not report the error.
> > My php.ini is configured as
> > error_reporting =
> > E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_USER_ERROR|E_USER_WARNING|E_
> >USER_NOTICE
> 
> display_errors is also turned On ?
> 
> Arpi
> 
> --
> 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]




RE: [PHP] Session troubles

2002-01-03 Thread Junior, Ricardo

Ok Jaime. I've imagine that he had the same problem that I have had before..
:)

I'm really returning a '"" in my read function when there is no data too...
because of this I don't had the problem related by Sean...

Thanks,
_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Jaime Bozza [mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, January 03, 2002 11:09 AM
To: [EMAIL PROTECTED]
Subject:RE: [PHP] Session troubles

Ricardo,
   I've had some strange problems with session writing, but they always
returned back to the fact that "return false" was being used in the
session read function.  PHP 4.0.6 wouldn't write out sessions when
register_globals was set to off when you were using "return false".  PHP
4.1.0 crashes with signal 11 after a bit when using "return false".
I've filed a couple of bug reports with the request that this be fixed.
I believe a patch is either being worked on or already submitted, but
I'm not positive.

   Sean's problem is that he's using "return false" in his session read
function.  The session read function should return a blank value ('')
and not false when there's no data.  This was never clear in the
documentation (and complaint I made) but is quite true.  Once switching
over to using ('') instead of (false), I no longer had problems.

Jaime Bozza


-Original Message-
From: Junior, Ricardo [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 03, 2002 8:52 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Session troubles


Hi Sean !

I had the same problem... this can be resolved using the function
"session_write_close()" at the end of each script you use sessions. It
will force PHP to call the write and close function.

In some combinations of PHP version, Apache and OS, this problem doesn't
happens, but as you, I had this problem too.. :)

Put this function in yours PHP scripts and see if now them will work.

Here is an exemple of a test script:

 where is my session
functions
declareted to use database...
session_start();
?>


MySQL Session Management: Second Page


" );
print( "SESSION Account: $aAccount" );
$aUser = "Katie";
$aAccount = "2026";
print( "CHANGED User: $aUser" );
print( "CHANGED Account: $aAccount" );
session_write_close();
?>



Cheers,
_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, January 02, 2002 2:20 PM
To: [EMAIL PROTECTED]
Subject:Re: [PHP] Session troubles

On 01-02 07:45, Jaime Bozza wrote:
> I agree.  Perhaps make a feature request that disallows session
starting
> if save_handler=user and you haven't defined a session handler?
Then
> it could spit out a more correct error message.

Blast. I am still unable to get my own session handler to work. My
session handler's write never gets called; only my session_open and
session_read get calledthe default file session handler still works,
if I change save_handler back to file instead of user.

As for the feature request, I guess I could - is there a mechanism to do
this outlined somewhere?


> -Original Message-
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 01, 2002 8:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Session troubles
> 
> 
> On 12-31 09:23, Jaime Bozza wrote:
> > Sean,
> >   From your php error_log, it's saying the following:
> > Failed to write session data (user)
> > 
> >   which sounds like it's having problems writing to the user-defined
> > session handler.  Are you using a user-defined session handler?  If 
> > not, make sure your php.ini file has:
> > 
> > session.save_handler = files
> > 
> > And *NOT*:
> > session.save_handler = user
> > 
> > That will make a big difference.
> 
> Good eye. That was it. I *did* have it as "user" because I was trying 
> to do my own user-defined session handler, and then stepped back and 
> was just trying to get the simpler case to work, w/o changing it back.
> 
> Thanks, it works now!
> 
> Now, I just need to see if I can get my session_handler working...
> 
> It's too bad the error message isn't more descriptive for this, BTW...
> 
> 
> > -Original Message-
> > From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, December 29, 2001 1:21 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Session troubles
> > 
> > 
> > On 12-29 12:56, David Jackson wrote:
> > > Sean --
> > > Don't know if this help but here's what I just worked for me. What

> > > ver. of PHP are you using? It seem to me that 3.x.x needs
> > > PHPLIB: http://sourceforge.net/projects/phplib
> > > to handle sessions?  -- David Jackson
> > > 
> > > --- sean.php ---
> > > 
> > > 

Re: [PHP] RE: nested includes

2002-01-03 Thread Bogdan Stancescu

> This can be solved partly with include_path setting in php.in or in
> apache's config files (even in .htaccess). You can just set
> include_path to your project's (or application's) root directory, and
> make all the paths relative to this directory in include() and
> require().

Or if you intend to distribute the application and don't want to bother
users with changing php.ini you could have a "main" include which defines a
global absolute path and use that (i.e.
include("$proj_location/whatever.php") )

Bogdan




-- 
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] Re: PHP dependent on connection speed?

2002-01-03 Thread Joe Webster

Uh no,

Php is completely server-side. Any kind of request will be built up,
processed, and sent out to be sent to the user. If the user has a slow
connection it will take longer to get that information, but PHP is done.

-Joe

"Charlesk" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is the php engine slowed by users with a slow connection?
>
> Charles Killmer
> NetgainTechnology.com
> IIS 5.0 Win 2000 Server PHP 4.1.0



-- 
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] Re: PHP dependent on connection speed?

2002-01-03 Thread Julio Nobrega Trabalhando

  No, it's server side.

  Only if you flush some kind of content, with parts of the script waiting
to be executed after these contents are 'used' by the user. This would not
affect in how much time certain script lines are executed (since it's the
server who process them), but the overall execution time could be affected
based on the connection speed.

  Like, 10 seconds for modem users and 2 or 4 seconds for cable connections.
But I have never seen a script that would use this technique...

--

Julio Nobrega.

Um dia eu chego lá:
http://sourceforge.net/projects/toca

Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884


"Charlesk" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is the php engine slowed by users with a slow connection?
>
> Charles Killmer
> NetgainTechnology.com
> IIS 5.0 Win 2000 Server PHP 4.1.0



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




RE: [PHP] Session troubles

2002-01-03 Thread Jaime Bozza

Hmmm...  So, there are yet more problems with the session functions. :)


Are you using 4.1.1 or 4.0.6?  

Jaime


-Original Message-
From: Junior, Ricardo [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 03, 2002 9:34 AM
To: 'Jaime Bozza'; [EMAIL PROTECTED]
Subject: RE: [PHP] Session troubles


Ok Jaime. I've imagine that he had the same problem that I have had
before..
:)

I'm really returning a '"" in my read function when there is no data
too... because of this I don't had the problem related by Sean...

Thanks,
_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Jaime Bozza [mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, January 03, 2002 11:09 AM
To: [EMAIL PROTECTED]
Subject:RE: [PHP] Session troubles

Ricardo,
   I've had some strange problems with session writing, but they always
returned back to the fact that "return false" was being used in the
session read function.  PHP 4.0.6 wouldn't write out sessions when
register_globals was set to off when you were using "return false".  PHP
4.1.0 crashes with signal 11 after a bit when using "return false". I've
filed a couple of bug reports with the request that this be fixed. I
believe a patch is either being worked on or already submitted, but I'm
not positive.

   Sean's problem is that he's using "return false" in his session read
function.  The session read function should return a blank value ('')
and not false when there's no data.  This was never clear in the
documentation (and complaint I made) but is quite true.  Once switching
over to using ('') instead of (false), I no longer had problems.

Jaime Bozza


-Original Message-
From: Junior, Ricardo [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 03, 2002 8:52 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Session troubles


Hi Sean !

I had the same problem... this can be resolved using the function
"session_write_close()" at the end of each script you use sessions. It
will force PHP to call the write and close function.

In some combinations of PHP version, Apache and OS, this problem doesn't
happens, but as you, I had this problem too.. :)

Put this function in yours PHP scripts and see if now them will work.

Here is an exemple of a test script:

 where is my session
functions
declareted to use database...
session_start();
?>


MySQL Session Management: Second Page


" );
print( "SESSION Account: $aAccount" );
$aUser = "Katie";
$aAccount = "2026";
print( "CHANGED User: $aUser" );
print( "CHANGED Account: $aAccount" );
session_write_close();
?>



Cheers,
_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, January 02, 2002 2:20 PM
To: [EMAIL PROTECTED]
Subject:Re: [PHP] Session troubles

On 01-02 07:45, Jaime Bozza wrote:
> I agree.  Perhaps make a feature request that disallows session
starting
> if save_handler=user and you haven't defined a session handler?
Then
> it could spit out a more correct error message.

Blast. I am still unable to get my own session handler to work. My
session handler's write never gets called; only my session_open and
session_read get calledthe default file session handler still works,
if I change save_handler back to file instead of user.

As for the feature request, I guess I could - is there a mechanism to do
this outlined somewhere?


> -Original Message-
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 01, 2002 8:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Session troubles
> 
> 
> On 12-31 09:23, Jaime Bozza wrote:
> > Sean,
> >   From your php error_log, it's saying the following:
> > Failed to write session data (user)
> > 
> >   which sounds like it's having problems writing to the user-defined

> > session handler.  Are you using a user-defined session handler?  If 
> > not, make sure your php.ini file has:
> > 
> > session.save_handler = files
> > 
> > And *NOT*:
> > session.save_handler = user
> > 
> > That will make a big difference.
> 
> Good eye. That was it. I *did* have it as "user" because I was trying
> to do my own user-defined session handler, and then stepped back and 
> was just trying to get the simpler case to work, w/o changing it back.
> 
> Thanks, it works now!
> 
> Now, I just need to see if I can get my session_handler working...
> 
> It's too bad the error message isn't more descriptive for this, BTW...
> 
> 
> > -Original Message-
> > From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, December 29, 2001 1:21 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Session troubles
> > 
> > 
> > On 12-29 12:56, David Jac

Re: [PHP] PHP dependent on connection speed?

2002-01-03 Thread Henning Sprang

Am 03 Jan 2002 08:10:08 -0600 schrieb charlesk :
> Is the php engine slowed by users with a slow connection? 

it _should_ not under "normal" circumstances - but what problems are you
exactly experiencing?

henning





-- 
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] Java extensions with Apache

2002-01-03 Thread Gino Paoletti

Hi,

I met some troubles using java extensions,

my target is: send and receive jms message using a self made class methods
where such methods are invoked by a php page via apache.

my problem is: after few successfully attempts, apache starts to spawn a lot
of process instances and stops to respond.

any hint?

I am using:

Apache 1.3.22
Php 4.0.6
Jdk 1.3.1 01

Nobody steals our chickens and lives to tell. (Duke Nukem)

Saluti   Ginox.


-- 
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] mktime and variables not working

2002-01-03 Thread Tom Beidler

I'm trying to calculate elapsed time and I'm having trouble using mktime
with variables. Here's my code;


$reformat_stop = str_replace(":", ",", $x[stop]) . ",1,1,2002";
$stop=mktime($reformat_stop);

I don't know how to format the code for mktime to use a variable. I keep
getting -1 for $stop but if I hard code a value in mktime it works fine.



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




Re[2]: [PHP] Q: PHP3 / Read STDIN when missing Content-Type

2002-01-03 Thread role+php-general

BS> Your question intrigued me enough to start searching for an
BS> answer. Never did this myself, but you may try
BS> http://download.php.net/manual/en/html/function.fopen.html (fifth
BS> paragrapgh of explanations). Hope it works with Apache - I was
BS> unable to determine if this only works when you run PHP scripts
BS> from the prompt.

Thanks for your response. I think the problem is actually to do with
STDIN having already been gobbled up by PHP when it parsed the input,
and therefore there is no more data available -- maybe it _is_
available when the Content-type is missing (by stuffing the data back
on the queue) or something. Hm. I'll take a peek and let you know,
although I have since found another solution:

In the end I found another way around it by sucking-in the data using
a tiny Perl script, parsing out the field I wanted and then issuing an
HTTP request from the Perl script to launch a PHP script with a
regular QUERY_STRING. Streuth!


Cheers,
James.

-- 
Axoria Ltd specialises in Bespoke Internet Software and Hosting.
(Esp. integration of desktop with on-line databases / e-Commerce.)


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




Re: [PHP] PHP dependent on connection speed?

2002-01-03 Thread Axoria Ltd

c> Is the php engine slowed by users with a slow connection?

No. (Well, beyond the fact that it won't start until it's got the
request from the person over the slow connection, and then its swiftly
despatched response won't get to the surfer until it's made it back
down the wire to them. The server itself will be fine, Microsoft
performance issues notwithstanding.)

Hope this helps,
James.

-- 
Axoria Ltd specialises in Bespoke Internet Software and Hosting.
(Esp. integration of desktop with on-line databases / e-Commerce.)


-- 
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] Re: mktime and variables not working

2002-01-03 Thread George Nicolae

mktime have the folloing format int mktime (int hour, int minute, int
second, int month, int day, int year)

I don't understand what represent $x[stop]. maybe time in hh:mm:ss format?
if is that you ca use
$reformat_stop=explode(":",$x[stop].":"."1:1:2001")
stop=mktime($reformat_stop[0],$reformat_stop[1],$reformat_stop[2],$reformat_
stop[3],$reformat_stop[4],$reformat_stop[5])

be careful $stop is a timpstamp and you must use in combination with date()
function. look in manual for more details about function date();

--


Best regards,
George Nicolae
IT Manager
___
X-Playin - Professional Web Design
www.x-playin.f2s.com



"Tom Beidler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to calculate elapsed time and I'm having trouble using mktime
> with variables. Here's my code;
>
>
> $reformat_stop = str_replace(":", ",", $x[stop]) . ",1,1,2002";
> $stop=mktime($reformat_stop);
>
> I don't know how to format the code for mktime to use a variable. I keep
> getting -1 for $stop but if I hard code a value in mktime it works fine.
>
>



-- 
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] PHP Doesn't Crash but show blank page

2002-01-03 Thread [EMAIL PROTECTED]


Hello everyone!

I'm having issues with my php pages. When I have errors, Instead of
crashing or showing  errors, the browser shows a blank page.

For example, if I leave the left bracket in my if statement, like

if(blah blah)
   <---missing left bracket '{'

do this

}else {
 do that
}

or, I leave the semiconlon at the end of a line, like

$myvar= " this is my line" <-- missing ';'

PHP does not report the error.

My php.ini is configured as

error_reporting =
E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE

My system has
PHP 4.0.6, MySQL 3.23.46-nt, Win2000

Anyone knows why it's doing that?

-john

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



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




RE: [PHP] Session troubles

2002-01-03 Thread Alok K. Dhir

FYI - I can confirm Jaime's assertion.  I too had the exact same issue
with the exact same fix.

> -Original Message-
> From: 
> [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED].
> net] On Behalf Of Jaime Bozza
> Sent: Thursday, January 03, 2002 9:09 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Session troubles
> 
> 
> Ricardo,
>I've had some strange problems with session writing, but 
> they always returned back to the fact that "return false" was 
> being used in the session read function.  PHP 4.0.6 wouldn't 
> write out sessions when register_globals was set to off when 
> you were using "return false".  PHP 4.1.0 crashes with signal 
> 11 after a bit when using "return false". I've filed a couple 
> of bug reports with the request that this be fixed. I believe 
> a patch is either being worked on or already submitted, but 
> I'm not positive.
> 
>Sean's problem is that he's using "return false" in his 
> session read function.  The session read function should 
> return a blank value ('') and not false when there's no data. 
>  This was never clear in the documentation (and complaint I 
> made) but is quite true.  Once switching over to using ('') 
> instead of (false), I no longer had problems.
> 
> Jaime Bozza
> 
> 
> -Original Message-
> From: Junior, Ricardo [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 03, 2002 8:52 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Session troubles
> 
> 
> Hi Sean !
> 
> I had the same problem... this can be resolved using the 
> function "session_write_close()" at the end of each script 
> you use sessions. It will force PHP to call the write and 
> close function.
> 
> In some combinations of PHP version, Apache and OS, this 
> problem doesn't happens, but as you, I had this problem too.. :)
> 
> Put this function in yours PHP scripts and see if now them will work.
> 
> Here is an exemple of a test script:
> 
>  error_reporting( E_ALL );
> ini_set("session.save_handler","user");
> include( "./mysession.php" );   > where is my session
> functions
> declareted to use database...
> session_start();
> ?>
> 
> 
>   MySQL Session Management: Second Page
> 
> 
>  print( "SESSION User: $aUser" );
> print( "SESSION Account: $aAccount" );
> $aUser = "Katie";
> $aAccount = "2026";
> print( "CHANGED User: $aUser" );
> print( "CHANGED Account: $aAccount" );
> session_write_close();
> ?>
> 
> 
> 
> Cheers,
> _
> Ricardo J. A. Júnior, Software Engineer Trainee
> Bowne Global Solutions
> 
> Phone +55 21 2515 7713
> [EMAIL PROTECTED]
> www.bowneglobal.com.br
> 
>  -Original Message-
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, January 02, 2002 2:20 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: [PHP] Session troubles
> 
> On 01-02 07:45, Jaime Bozza wrote:
> > I agree.  Perhaps make a feature request that disallows session
> starting
> > if save_handler=user and you haven't defined a session handler?
> Then
> > it could spit out a more correct error message.
> 
> Blast. I am still unable to get my own session handler to 
> work. My session handler's write never gets called; only my 
> session_open and session_read get calledthe default file 
> session handler still works, if I change save_handler back to 
> file instead of user.
> 
> As for the feature request, I guess I could - is there a 
> mechanism to do this outlined somewhere?
> 
> 
> > -Original Message-
> > From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 01, 2002 8:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Session troubles
> > 
> > 
> > On 12-31 09:23, Jaime Bozza wrote:
> > > Sean,
> > >   From your php error_log, it's saying the following:
> > >   Failed to write session data (user)
> > > 
> > >   which sounds like it's having problems writing to the 
> user-defined 
> > > session handler.  Are you using a user-defined session 
> handler?  If 
> > > not, make sure your php.ini file has:
> > > 
> > >   session.save_handler = files
> > > 
> > > And *NOT*:
> > >   session.save_handler = user
> > > 
> > > That will make a big difference.
> > 
> > Good eye. That was it. I *did* have it as "user" because I 
> was trying
> > to do my own user-defined session handler, and then stepped 
> back and 
> > was just trying to get the simpler case to work, w/o 
> changing it back.
> > 
> > Thanks, it works now!
> > 
> > Now, I just need to see if I can get my session_handler working...
> > 
> > It's too bad the error message isn't more descriptive for 
> this, BTW...
> > 
> > 
> > > -Original Message-
> > > From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, December 29, 2001 1:21 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [PHP] Session troubles
> > > 
> > > 
> > > On 12-29 12:56, David Jackson wrote:
> > > > Sean --
> > > > Don't know if this help but here's what I just worked 
> for me

RE: [PHP] Session troubles

2002-01-03 Thread Junior, Ricardo

I was using 4.06 version... but I don't test this issues with 4.1 version in
my system (linux Mandrake 8.1)...
I will test and let you know! :)

_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Jaime Bozza [mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, January 03, 2002 11:38 AM
To: [EMAIL PROTECTED]
Subject:RE: [PHP] Session troubles

Hmmm...  So, there are yet more problems with the session functions. :)


Are you using 4.1.1 or 4.0.6?  

Jaime


-Original Message-
From: Junior, Ricardo [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 03, 2002 9:34 AM
To: 'Jaime Bozza'; [EMAIL PROTECTED]
Subject: RE: [PHP] Session troubles


Ok Jaime. I've imagine that he had the same problem that I have had
before..
:)

I'm really returning a '"" in my read function when there is no data
too... because of this I don't had the problem related by Sean...

Thanks,
_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Jaime Bozza [mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, January 03, 2002 11:09 AM
To: [EMAIL PROTECTED]
Subject:RE: [PHP] Session troubles

Ricardo,
   I've had some strange problems with session writing, but they always
returned back to the fact that "return false" was being used in the
session read function.  PHP 4.0.6 wouldn't write out sessions when
register_globals was set to off when you were using "return false".  PHP
4.1.0 crashes with signal 11 after a bit when using "return false". I've
filed a couple of bug reports with the request that this be fixed. I
believe a patch is either being worked on or already submitted, but I'm
not positive.

   Sean's problem is that he's using "return false" in his session read
function.  The session read function should return a blank value ('')
and not false when there's no data.  This was never clear in the
documentation (and complaint I made) but is quite true.  Once switching
over to using ('') instead of (false), I no longer had problems.

Jaime Bozza


-Original Message-
From: Junior, Ricardo [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 03, 2002 8:52 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Session troubles


Hi Sean !

I had the same problem... this can be resolved using the function
"session_write_close()" at the end of each script you use sessions. It
will force PHP to call the write and close function.

In some combinations of PHP version, Apache and OS, this problem doesn't
happens, but as you, I had this problem too.. :)

Put this function in yours PHP scripts and see if now them will work.

Here is an exemple of a test script:

 where is my session
functions
declareted to use database...
session_start();
?>


MySQL Session Management: Second Page


" );
print( "SESSION Account: $aAccount" );
$aUser = "Katie";
$aAccount = "2026";
print( "CHANGED User: $aUser" );
print( "CHANGED Account: $aAccount" );
session_write_close();
?>



Cheers,
_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
Sent:   Wednesday, January 02, 2002 2:20 PM
To: [EMAIL PROTECTED]
Subject:Re: [PHP] Session troubles

On 01-02 07:45, Jaime Bozza wrote:
> I agree.  Perhaps make a feature request that disallows session
starting
> if save_handler=user and you haven't defined a session handler?
Then
> it could spit out a more correct error message.

Blast. I am still unable to get my own session handler to work. My
session handler's write never gets called; only my session_open and
session_read get calledthe default file session handler still works,
if I change save_handler back to file instead of user.

As for the feature request, I guess I could - is there a mechanism to do
this outlined somewhere?


> -Original Message-
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 01, 2002 8:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Session troubles
> 
> 
> On 12-31 09:23, Jaime Bozza wrote:
> > Sean,
> >   From your php error_log, it's saying the following:
> > Failed to write session data (user)
> > 
> >   which sounds like it's having problems writing to the user-defined

> > session handler.  Are you using a user-defined session handler?  If 
> > not, make sure your php.ini file has:
> > 
> > session.save_handler = files
> > 
> > And *NOT*:
> > session.save_handler = user
> > 
> > That will make a big difference.
> 
> Good eye. That was it. I *did* have it as "user" because I was trying
> to do my own user-defined session handler, and t

RE: [PHP] Session troubles

2002-01-03 Thread Junior, Ricardo

This was problem that I had:  the function write was not been called by PHP
sessions functions when a script finish or when I change the variable
contents.

Searching on PHP.net I saw this solution there: add a call to function
"session_write_close()" at the end of the php code.

This should be another problem with Sessions functions... but I need to test
this with PHP 4.1...

Thanks,
_
Ricardo J. A. Júnior, Software Engineer Trainee
Bowne Global Solutions

Phone   +55 21 2515 7713
[EMAIL PROTECTED]
www.bowneglobal.com.br

 -Original Message-
From:   Alok K. Dhir [mailto:[EMAIL PROTECTED]] 
Sent:   Thursday, January 03, 2002 12:56 PM
To: 'Jaime Bozza'; [EMAIL PROTECTED]
Subject:RE: [PHP] Session troubles

FYI - I can confirm Jaime's assertion.  I too had the exact same issue
with the exact same fix.

> -Original Message-
> From: 
> [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED].
> net] On Behalf Of Jaime Bozza
> Sent: Thursday, January 03, 2002 9:09 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Session troubles
> 
> 
> Ricardo,
>I've had some strange problems with session writing, but 
> they always returned back to the fact that "return false" was 
> being used in the session read function.  PHP 4.0.6 wouldn't 
> write out sessions when register_globals was set to off when 
> you were using "return false".  PHP 4.1.0 crashes with signal 
> 11 after a bit when using "return false". I've filed a couple 
> of bug reports with the request that this be fixed. I believe 
> a patch is either being worked on or already submitted, but 
> I'm not positive.
> 
>Sean's problem is that he's using "return false" in his 
> session read function.  The session read function should 
> return a blank value ('') and not false when there's no data. 
>  This was never clear in the documentation (and complaint I 
> made) but is quite true.  Once switching over to using ('') 
> instead of (false), I no longer had problems.
> 
> Jaime Bozza
> 
> 
> -Original Message-
> From: Junior, Ricardo [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 03, 2002 8:52 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Session troubles
> 
> 
> Hi Sean !
> 
> I had the same problem... this can be resolved using the 
> function "session_write_close()" at the end of each script 
> you use sessions. It will force PHP to call the write and 
> close function.
> 
> In some combinations of PHP version, Apache and OS, this 
> problem doesn't happens, but as you, I had this problem too.. :)
> 
> Put this function in yours PHP scripts and see if now them will work.
> 
> Here is an exemple of a test script:
> 
>  error_reporting( E_ALL );
> ini_set("session.save_handler","user");
> include( "./mysession.php" );   > where is my session
> functions
> declareted to use database...
> session_start();
> ?>
> 
> 
>   MySQL Session Management: Second Page
> 
> 
>  print( "SESSION User: $aUser" );
> print( "SESSION Account: $aAccount" );
> $aUser = "Katie";
> $aAccount = "2026";
> print( "CHANGED User: $aUser" );
> print( "CHANGED Account: $aAccount" );
> session_write_close();
> ?>
> 
> 
> 
> Cheers,
> _
> Ricardo J. A. Júnior, Software Engineer Trainee
> Bowne Global Solutions
> 
> Phone +55 21 2515 7713
> [EMAIL PROTECTED]
> www.bowneglobal.com.br
> 
>  -Original Message-
> From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, January 02, 2002 2:20 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: [PHP] Session troubles
> 
> On 01-02 07:45, Jaime Bozza wrote:
> > I agree.  Perhaps make a feature request that disallows session
> starting
> > if save_handler=user and you haven't defined a session handler?
> Then
> > it could spit out a more correct error message.
> 
> Blast. I am still unable to get my own session handler to 
> work. My session handler's write never gets called; only my 
> session_open and session_read get calledthe default file 
> session handler still works, if I change save_handler back to 
> file instead of user.
> 
> As for the feature request, I guess I could - is there a 
> mechanism to do this outlined somewhere?
> 
> 
> > -Original Message-
> > From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 01, 2002 8:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Session troubles
> > 
> > 
> > On 12-31 09:23, Jaime Bozza wrote:
> > > Sean,
> > >   From your php error_log, it's saying the following:
> > >   Failed to write session data (user)
> > > 
> > >   which sounds like it's having problems writing to the 
> user-defined 
> > > session handler.  Are you using a user-defined session 
> handler?  If 
> > > not, make sure your php.ini file has:
> > > 
> > >   session.save_handler = files
> > > 
> > > And *NOT*:
> > >   session.save_handler = user
> > > 
> > > That will make a big difference.
> > 
> > Good eye

Re: [PHP] PHP Doesn't Crash but show blank page

2002-01-03 Thread Steve Cayford

Two other lines to look for in your php.ini file:

display_errors = On
log_errors = Off

If display_errors is on the error will be displayed on the web page, if 
log_errors is on the error will be logged--assuming you're using Linux 
check /var/log/messages, but you can change this with the 
error_log = ... option.

-Steve


On Wednesday, January 2, 2002, at 05:11  AM, [@-!-%] wrote:

>
> Hello everyone!
>
> I'm having issues with my php pages. When I have errors, Instead of
> crashing or showing  errors, the browser shows a blank page.
>
> For example, if I leave the left bracket in my if statement, like
>
> if(blah blah)
><---missing left bracket '{'
>
> do this
>
> }else {
>  do that
> }
>
> or, I leave the semiconlon at the end of a line, like
>
> $myvar= " this is my line" <-- missing ';'
>
> PHP does not report the error.
>
> My php.ini is configured as
>
> error_reporting =
> E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_USER_ERROR|E_USER_WARNING|E_USER_NOTICE
>
> My system has
> PHP 4.0.6, MySQL 3.23.46-nt, Win2000
>
> Anyone knows why it's doing that?
>
> -john
>
> __John Monfort_
> _+---+_
>  P E P I E  D E S I G N S
>www.pepiedesigns.com
> "The world is waiting, are you ready?"
> -+___+-
>
>
>
> --
> 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]




[PHP] Help on a quick questions

2002-01-03 Thread Dan McCullough

Dynamic dropdown selection.

What I need to do is two things.  I need to get a list of all the parent categories, 
from one
table, I then need to list those in the dropdown, I then need to have selected the 
correct parent
category based on the parent_id of the subcategory.

Can anyone help me

thanks

dan

=
dan mccullough

"Theres no such thing as a problem unless the servers are on fire!"


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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] PHP scripts timeout

2002-01-03 Thread charlesk

Every once in a while, maybe 10 times a day, scripts timeout.  Different scripts, 
different places in the script, different IP addresses.  
I wrote an auto_append script that dumps the phpinfo to a file if the script ran 
longer than 30 seconds, and nothing is odd  in those phpinfo's.  
Sometimes the same IP address gets the script fast sometimes timeout.  I have 
increased the timeout from 60 to 120 then to 240.  I still get a few timeouts.  
I have looked through the code and it cant be a database connection because some of 
the scripts don't use a database.  It doesn't look like it can be an infinite loop 
either.

Does anyone have any thoughts?

Charles Killmer
NetgainTechnology.com
IIS 5.0 Win2000 Server PHP 4.1.0

-- Original Message --
From: Henning Sprang <[EMAIL PROTECTED]>
Date: 03 Jan 2002 15:33:31 +0100

Am 03 Jan 2002 08:10:08 -0600 schrieb charlesk :
> Is the php engine slowed by users with a slow connection? 
it _should_ not under "normal" circumstances - but what problems are you
exactly experiencing?

henning




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

2002-01-03 Thread Kevin P

Hi
I am working on a Admin view of an Intranet site. They need to enter orders.
An order can include many inventory items so I have divided it up to two
pages.

I have set up a first page session that passes the first page info onto the
second page where the inventory items are addes to the order. I need to be
able to add multple second pages while still maintaining the first page info
and collecting the multiple second page info and then sending all the info
to the database when the user finally clicks the finish button

Can anyone help me with this

Thanks
Kevin



-- 
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] IMP 3.0 out!

2002-01-03 Thread Mike Eheler

So is Horde 2.0.
And Turba 1.0

I think Chora 1.0 is due any day, as well.

Just noticed this at http://www.horde.org/

For anyone who doesn't know, Horde is an application framework built 
upon the PEAR style of coding. IMP is *the* webmail solution for anyone 
looking to provide webmail to their users, and Turba is a contact list 
manager that integrates with IMP and Horde. For more info, go check out 
their site.

Mike


-- 
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] Re: Holy Moly...

2002-01-03 Thread Julie Hull

Thanks to everyone for all the suggestions Looks like I have my work
cut out for me...

Happy New Year,
Julie ~:)

Julie Hull wrote:

> Could someone please direct a total novice to the best PHP beginner news
> group. Just to many to choose from ~:)
>
> Thank You,
> Julie ~:)


-- 
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] file uploading => dumping into ram?

2002-01-03 Thread David

 hi all, 

I wes doing some file upload stuff with php when i noticed that as the file is being 
uploaded, the entire file is stored in ram until it\'s finished.

obviously, we know the problems associated with this(use up a lot of ram for large 
files), i\'m just wondering, is this going to be fixed soon in the next release of php?

i think those people using php to upload large files will be very happy if it\'s fixed 
:)

-- 
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] PHP and OpenLDAP

2002-01-03 Thread Quinn Perkins

I have installed OpenLDAP 2.x on an OS X Server 10.1.2 box. Everything 
seems to be fine. I have written a simple PHP front end to modify LDAP 
values. I can modify values in the core.schema without any problem, but 
if I try to modify anything in cosine.schema or inetorgperson.schema, I 
get an error (Warning: LDAP: modify operation could not be completed. in 
ldapeditor.b2.php on line 247)

This ONLY happens when I try and modify a value in a schema other than 
core.schema. The project I am working on will require use of cosine and 
inetorgperson schemas. This is a test page to make sure I can read/write 
values.

Any help would be tremendously appreciated!

My PHP code looks like this:

";

echo "document.forms[0].elements[0].value='". 
$info[0]["givenname"][0] ."';";
echo "document.forms[0].elements[2].value='". $info[0]["sn"][0] ."';";
echo "document.forms[0].elements[5].value='". $info[0]["mail"][0] ."';";
echo "document.forms[0].elements[22].value='". 
$info[0]["networklocurl"][0] ."';";
echo "document.forms[0].elements[23].value='". 
$info[0]["facsimileTelephoneNumber"][0] ."';";
echo "document.forms[0].elements[24].value='". 
$info[0]["aliasdata"][0] ."';";
echo "document.forms[0].elements[25].value='". 
$info[0]["homeTelephoneNumber"][0] ."';";
echo "document.forms[0].elements[26].value='". 
$info[0]["shell"][0] ."';";
echo "document.forms[0].elements[27].value='". 
$info[0]["otherMailbox"][0] ."';";

echo "";

ldap_close($ds);

} else {
echo "Unable to connect to LDAP server";
}
?>

My slapd.conf file looks like:

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20 
23:32:43 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
# include schema
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema

# Define global ACLs to disable default read access.
# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral ldap://root.openldap.org

pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args

# Load dynamic backend modules:
# modulepath /usr/local/libexec/openldap
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la

###
# ldbm database definitions
###

database ldbm
suffix "dc=coloradobiz,dc=net"
suffix "o=portalware"
rootdn "cn=Manager,o=portalware"
#rootdn "cn=Manager,o=My Organization Name,c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd/tools. Mode 700 recommended.
directory /usr/local/var/openldap-ldbm
# Indices to maintain
index objectClass eq


-- 
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] Form Validation class

2002-01-03 Thread Daniel Harik

Hello guys,

at moment i'm reading "Hack Proofing your web apps" book, but it makes
me scared, i have seen a class from newbienetwork.net(can't find it
now), that validates
user input, things like telephone number, state, country , email, and
also can check if only letters or numbers are in text field, my
question is this are there classes of this kind around? I would really
need it.

Thank You very much

  

-- 
Best regards,
 Daniel  mailto:[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]




Re: [PHP] Regular Expression

2002-01-03 Thread Jim Lucas [php]

I have seen this question reposted for the past week.  now why don't you
just work with the entire thing.

get the ""

now once you have that, do this

$str = preg_replace("", "", $str)

now your $str var will only have the properties.

Jim
- Original Message -
From: "[-^-!-%-" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 12:45 PM
Subject: [PHP] Regular Expression


>
> Hello everyone!
>
> I'm trying to get the text inside the  tag, using regular
> expression.
>
> $area = eregi('()',$str);
>
> Where $str is the string containing
> 
>
> When I print  $area, the string contains the entire content of $str. I
> get something like:
>
> 
> 
> .
> .
> .
> 
> 
>
>
>
> __John Monfort_
> _+---+_
>  P E P I E  D E S I G N S
>www.pepiedesigns.com
> "The world is waiting, are you ready?"
> -+___+-
>
>
>
>
> --
> 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]




Re: [PHP] easy quickie..

2002-01-03 Thread Jim Lucas [php]

$GLOBALS['HTTP_REFERER']

Jim
- Original Message -
From: "Kelly Meeks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 10:15 AM
Subject: [PHP] easy quickie..


Happy New Year,

Does php set a variable that tells you the url of the page that a user has
just come from?  So if I wanted to create my own 'Back' button in a pop up
window, for instance?

Thanks in advance,

Kelly

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




[PHP] Warning: Unknown persistent list entry type in module shutdown (11)

2002-01-03 Thread Ed Swartz

Hi,
 
The error message listed in the subject line is being displayed at the
bottom of my HTML pages gen'd by PHP. Any hints how what might be
causing this message? I looked in BUGS, FAQTS, etc not to no avail.

The code uses:

* ob_start(), ob_end_clean()

* session variables

* MySQL 3.23

Version = 4.1.0 (installed last nite).


Ed 

-- 
Do you need a Web-based Content Publishing System ?
Call me for more details.


Ed Swartz

ColdFusion and PHP Development

978.772.0888
http://www.sandypondconsulting.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]




Re: [PHP] file uploading => dumping into ram?

2002-01-03 Thread Chris Lee

set your max upload file size smaller then. default is 2mb max. I find that
too small, I re-set mine to 5mb. I have 2g of ram on our server, 5mb isnt a
worry to me. Id rather that then the slow speed of writing the file to the
hd.

--

  Chris Lee
  [EMAIL PROTECTED]



"David" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi all,
>
> I wes doing some file upload stuff with php when i noticed that as the
file is being uploaded, the entire file is stored in ram until it\'s
finished.
>
> obviously, we know the problems associated with this(use up a lot of ram
for large files), i\'m just wondering, is this going to be fixed soon in the
next release of php?
>
> i think those people using php to upload large files will be very happy if
it\'s fixed :)



-- 
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] Re: Form Validation class

2002-01-03 Thread Chris Lee

Ive seen em on zend.com, I wrote my own. I would recommend you take a look
at the ones on zend.com and modify it to taste.

--

  Chris Lee
  [EMAIL PROTECTED]


"Daniel Harik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello guys,
>
> at moment i'm reading "Hack Proofing your web apps" book, but it makes
> me scared, i have seen a class from newbienetwork.net(can't find it
> now), that validates
> user input, things like telephone number, state, country , email, and
> also can check if only letters or numbers are in text field, my
> question is this are there classes of this kind around? I would really
> need it.
>
> Thank You very much
>
>
>
> --
> Best regards,
>  Daniel  mailto:[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]




Re: [PHP] Regular Expression

2002-01-03 Thread Steve Cayford

You can do as Jim says here or go back and read the manual section again 
for eregi and ereg. What you're trying to do should be written more like 
this:

';
$numMatches = eregi('()',$str,$results);
print("numMatches: $numMatches \n");
print("body contents: $results[2] \n");
print("all results: ");
print_r($results);
?>

-Steve


On Thursday, January 3, 2002, at 12:15  PM, Jim Lucas [php] wrote:

> I have seen this question reposted for the past week.  now why don't you
> just work with the entire thing.
>
> get the ""
>
> now once you have that, do this
>
> $str = preg_replace(" $str = preg_replace(">", "", $str)
>
> now your $str var will only have the properties.
>
> Jim
> - Original Message -
> From: "[-^-!-%-" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 02, 2002 12:45 PM
> Subject: [PHP] Regular Expression
>
>
>>
>> Hello everyone!
>>
>> I'm trying to get the text inside the  tag, using regular
>> expression.
>>
>> $area = eregi('()',$str);
>>
>> Where $str is the string containing
>> 
>>
>> When I print  $area, the string contains the entire content of $str. I
>> get something like:
>>
>> 
>> 
>> .
>> .
>> .
>> 
>> 
>>
>>
>>
>> __John Monfort_
>> _+---+_
>>  P E P I E  D E S I G N S
>>www.pepiedesigns.com
>> "The world is waiting, are you ready?"
>> -+___+-
>>
>>
>>
>>
>> --
>> 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: php-list-
>> [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]
>


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




Re: [PHP] Re: Form Validation class

2002-01-03 Thread Daniel Harik

Hello Chris,

Thursday, January 03, 2002, 10:41:34 AM, you wrote:

CL> Ive seen em on zend.com, I wrote my own. I would recommend you take a look
CL> at the ones on zend.com and modify it to taste.

CL> --

CL>   Chris Lee
CL>   [EMAIL PROTECTED]


CL> "Daniel Harik" <[EMAIL PROTECTED]> wrote in message
CL> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hello guys,
>>
>> at moment i'm reading "Hack Proofing your web apps" book, but it makes
>> me scared, i have seen a class from newbienetwork.net(can't find it
>> now), that validates
>> user input, things like telephone number, state, country , email, and
>> also can check if only letters or numbers are in text field, my
>> question is this are there classes of this kind around? I would really
>> need it.
>>
>> Thank You very much
>>
>>
>>
>> --
>> Best regards,
>>  Daniel  mailto:[EMAIL PROTECTED]
>>


Thank You for your reply

That's the reason i've posted, can't find what i'm looking for
anywhere

-- 
Best regards,
 Danielmailto:[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]




[PHP] Re: PHP scripts timeout

2002-01-03 Thread Fred

First of all, there is no need to worry about database connections, PHP does
not count the time that it is waiting for database connections to complete.
The best suggestion I can make is to try to determine if the scripts that
time out have been passed a common post or get variable, that may be
upsetting your code.

Fred

Charlesk <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Every once in a while, maybe 10 times a day, scripts timeout.  Different
scripts, different places in the script, different IP addresses.
> I wrote an auto_append script that dumps the phpinfo to a file if the
script ran longer than 30 seconds, and nothing is odd  in those phpinfo's.
> Sometimes the same IP address gets the script fast sometimes timeout.  I
have increased the timeout from 60 to 120 then to 240.  I still get a few
timeouts.
> I have looked through the code and it cant be a database connection
because some of the scripts don't use a database.  It doesn't look like it
can be an infinite loop either.
>
> Does anyone have any thoughts?
>
> Charles Killmer
> NetgainTechnology.com
> IIS 5.0 Win2000 Server PHP 4.1.0
>
> -- Original Message --
> From: Henning Sprang <[EMAIL PROTECTED]>
> Date: 03 Jan 2002 15:33:31 +0100
>
> Am 03 Jan 2002 08:10:08 -0600 schrieb charlesk :
> > Is the php engine slowed by users with a slow connection?
> it _should_ not under "normal" circumstances - but what problems are you
> exactly experiencing?
>
> henning
>
>
>



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

2002-01-03 Thread Ye Tun

Do we have application variable in PHP as in ASP?

I have a small database running with user name and password kept in MySQL
database.  Once user is login, how can I prevent the same user from
logging in again?

REgards,

Ye


-- 
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] test, pls del

2002-01-03 Thread louie miranda

test
  


-- 
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] php+mysql simple query help me pls! ty.

2002-01-03 Thread louie miranda

Hi, can someone help me here! :(
I can't query the data on my sql from php.
db is fine, i couldnt see the prob in php!
pls help, ty.



# MSQL ###
mysql> desc members;
+--+-+--+-+-++
| Field| Type| Null | Key | Default | Extra  |
+--+-+--+-+-++
| id   | tinyint(5)  |  | PRI | NULL| auto_increment |
| ircname  | varchar(30) | YES  | | NULL||
| email| varchar(30) | YES  | | NULL||
| realname | varchar(40) | YES  | | NULL||
| asl  | varchar(30) | YES  | | NULL||
| info | varchar(70) | YES  | | NULL||
+--+-+--+-+-++



# PHP 



n", mysql_result($result,0,"ircname"));
printf("email: %sn", mysql_result($result,0,"email"));
printf("realname: %sn", mysql_result($result,0,"realname"));
printf("asl: %sn", mysql_result($result,0,"asl"));
printf("info: %sn", mysql_result($result,0,"info"));

?>





# ERROR 


  Warning: Supplied argument is not a valid MySQL result resource in
/mnt/host-users/cavite/irc/members/t2.php on line 13
ircname:
n
Warning: Supplied argument is not a valid MySQL result resource in
/mnt/host-users/cavite/irc/members/t2.php on line 14
email:
n
Warning: Supplied argument is not a valid MySQL result resource in
/mnt/host-users/cavite/irc/members/t2.php on line 15
realname:
n
Warning: Supplied argument is not a valid MySQL result resource in
/mnt/host-users/cavite/irc/members/t2.php on line 16
asl:
n
Warning: Supplied argument is not a valid MySQL result resource in
/mnt/host-users/cavite/irc/members/t2.php on line 17
info:
n


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




Re: [PHP] Re: PHP scripts timeout

2002-01-03 Thread charlesk

I have looked at the post variables and sometimes it times out when nothing is passed 
to it.  Either through post get or cookie.(I know this from looking at the phpinfo 
that I dump everytime a script runs too long.)  Its got me stumped.  Hopefully someone 
someday will figure it out.  Thanks though.

Charles Killmer
IIS 5.0 Win2000 Server PHP 4.1.0

-- Original Message --
From: "Fred" <[EMAIL PROTECTED]>
Date: Thu, 3 Jan 2002 11:21:23 -0800

First of all, there is no need to worry about database connections, PHP does
not count the time that it is waiting for database connections to complete.
The best suggestion I can make is to try to determine if the scripts that
time out have been passed a common post or get variable, that may be
upsetting your code.

Fred

Charlesk <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Every once in a while, maybe 10 times a day, scripts timeout.  Different
scripts, different places in the script, different IP addresses.
> I wrote an auto_append script that dumps the phpinfo to a file if the
script ran longer than 30 seconds, and nothing is odd  in those phpinfo's.
> Sometimes the same IP address gets the script fast sometimes timeout.  I
have increased the timeout from 60 to 120 then to 240.  I still get a few
timeouts.
> I have looked through the code and it cant be a database connection
because some of the scripts don't use a database.  It doesn't look like it
can be an infinite loop either.
>
> Does anyone have any thoughts?
>
> Charles Killmer
> NetgainTechnology.com
> IIS 5.0 Win2000 Server PHP 4.1.0
>
> -- Original Message --
> From: Henning Sprang <[EMAIL PROTECTED]>
> Date: 03 Jan 2002 15:33:31 +0100
>
> Am 03 Jan 2002 08:10:08 -0600 schrieb charlesk :
> > Is the php engine slowed by users with a slow connection?
> it _should_ not under "normal" circumstances - but what problems are you
> exactly experiencing?
>
> henning
>
>
>



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




[PHP] find all the numeric positions of a character that appears in a string multiple times

2002-01-03 Thread David Yee

Hi guys.  What is the best way to find all the numeric positions of a
character that appears in a string multiple times?  E.g. let's say I have
the following string:

$str = "http://foo.bar>test";

And I want to parse the string and extract everything between <>.  Now if
the string only had a single occurrence of "<" and ">" I can use strpos()
and substr() to extract it, but how do I do it for multiple occurrences?  I
suppose I can keep chopping up the string to do this but I'm not sure if
that's the best way.  Thanks.

David


-- 
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] web page visitor simulation

2002-01-03 Thread Jason Bell

Hi!

I would like to simulate a user, browsing to a webpage and logging in via a web 
form. is there a way to do this? I don't have curl installed, although I'm going 
to open a ticket asking if my host will install it

I tried using the Snoopy class, but it doesn't seem to work... I think the webpage 
that I'm trying to get into has it scripted so that there is some variable that is 
created each visit that I can't duplicate

I would like the script to actually browse to the login page, enter my info into the 
form, submit and then grab the info that I want behind the login Im trying to 
create a league management tool so that I can manage my hsx.com league... providing 
stats and stuff to my league members if I can't automate it, I have to do it 
manually each day which can be tedious if there are lots of members.

Can this be done with PHP? is there another way you can recommend to me, or a tool 
already existing that I can try? Would curl enable me to do this easier?

Thanks!

Jason Bell



[PHP] Re: [PHP-DB] php+mysql simple query help me pls! ty.

2002-01-03 Thread louie miranda

yes, i forgot something,

this = mysql_select_db("mydb",$db); 

i did not specify my db name.


thanks :)


louie
  
- Original Message - 
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "'louie miranda'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 4:06 AM
Subject: RE: [PHP-DB] php+mysql simple query help me pls! ty.


> Test the mysql_query() return value:
> $result = mysql_query("SELECT * FROM members") or
> die("Error:".mysql_error());
> 
> there may be an error in your query.
> 
> -Original Message-
> From: louie miranda [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 03, 2002 1:59 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [PHP-DB] php+mysql simple query help me pls! ty.
> 
> 
> Hi, can someone help me here! :(
> I can't query the data on my sql from php.
> db is fine, i couldnt see the prob in php!
> pls help, ty.
> 
> 
> 
> # MSQL ###
> mysql> desc members;
> +--+-+--+-+-++
> | Field| Type| Null | Key | Default | Extra  |
> +--+-+--+-+-++
> | id   | tinyint(5)  |  | PRI | NULL| auto_increment |
> | ircname  | varchar(30) | YES  | | NULL||
> | email| varchar(30) | YES  | | NULL||
> | realname | varchar(40) | YES  | | NULL||
> | asl  | varchar(30) | YES  | | NULL||
> | info | varchar(70) | YES  | | NULL||
> +--+-+--+-+-++
> 
> 
> 
> # PHP 
> 
> 
> 
>  
> $db = mysql_connect("my_db_host", "my_db_user", "my_db_pass")
> or die("Could not connect");
> 
> mysql_select_db("mydb",$db);
> 
> $result = mysql_query("SELECT * FROM members",$db);
> 
> printf("ircname: %sn", mysql_result($result,0,"ircname"));
> printf("email: %sn", mysql_result($result,0,"email"));
> printf("realname: %sn", mysql_result($result,0,"realname"));
> printf("asl: %sn", mysql_result($result,0,"asl"));
> printf("info: %sn", mysql_result($result,0,"info"));
> 
> ?>
> 
> 
> 
> 
> 
> # ERROR 
> 
> 
>   Warning: Supplied argument is not a valid MySQL result resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 13
> ircname:
> n
> Warning: Supplied argument is not a valid MySQL result resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 14
> email:
> n
> Warning: Supplied argument is not a valid MySQL result resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 15
> realname:
> n
> Warning: Supplied argument is not a valid MySQL result resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 16
> asl:
> n
> Warning: Supplied argument is not a valid MySQL result resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 17
> info:
> n
> 
> 
> -- 
> PHP Database 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 Database 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]




[PHP] Getting Sablotron to work on Windows 2000 w/Apache

2002-01-03 Thread Dan Lasaga

I am having great dificulty getting the php_sablot.dll to work on my system:
My setup:
Windows 2000
Apache 1.3
php 4.10
extension_dir = c:\php\extensions
extension=php_sablot.dll

I have confirmed that sablot.dll and sabcmd.exe are in my path and are 
functioning correctly

The error I get when restarting Apache:

The procedure entry point zend_list_addref could not be located in the 
dynamic link library php4ts.dll

then I receive:

Unable to load dynamic library 'c:\php\extensions/php_sablot.dll' - The 
specified procedure could not be found.

How can I remedy this?


Thank You
Dan


-- 
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] PHP XML with Dynamic Content

2002-01-03 Thread Emile Bosch

Hi a lot of todays proffesional content management systems use XML, now
i was wondering how it's possible to mix XML with Dynamic Content, or
content which is change sensitive, IE A shop, or an auction,
let's say you have a shop with 1000 products, how am i gonna mix this in
the XML?

Does anyone know how this is solved, because i don't think that you are
gonna write hundreds of XML files for each article, can someone please help
me out here?

Warm regards,
Emile Bosch



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




Re: [PHP] find all the numeric positions of a character that appears in a string multiple times

2002-01-03 Thread Kevin Stone

SPLIT to the rescue!  Split tears up your string into lists (arrays) which
you can cycle through and extract normaly.  So this is going to look like
hell but here we go...

http://foo.bar>test";

$str_list1 = split ('<', $str);
// Note: $str_list1 now == array ("a href=http://foo.bar>", "b>test", "/b>",
"/a>")
$a = 0;
for ($i=0; $i', $str_list1[$i]);
for ($j=0; $j";
}
?>


... GAH!  I second thought there's got to be a better way of doing this!
Anyway hope it helps some.

-Kevin


> Hi guys.  What is the best way to find all the numeric positions of a
> character that appears in a string multiple times?  E.g. let's say I have
> the following string:
>
> $str = "http://foo.bar>test";
>
> And I want to parse the string and extract everything between <>.  Now if
> the string only had a single occurrence of "<" and ">" I can use strpos()
> and substr() to extract it, but how do I do it for multiple occurrences?
I
> suppose I can keep chopping up the string to do this but I'm not sure if
> that's the best way.  Thanks.
>
> David
>
>
> --
> 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]




Re: [PHP] find all the numeric positions of a character that appears in a string multiple times

2002-01-03 Thread David Yee

Thanks Kevin- yeah I guess I'll have to chop up the string.

David

- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "David Yee" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 12:30 PM
Subject: Re: [PHP] find all the numeric positions of a character that
appears in a string multiple times


> SPLIT to the rescue!  Split tears up your string into lists (arrays) which
> you can cycle through and extract normaly.  So this is going to look like
> hell but here we go...
>
>  $str = "http://foo.bar>test";
>
> $str_list1 = split ('<', $str);
> // Note: $str_list1 now == array ("a href=http://foo.bar>", "b>test",
"/b>",
> "/a>")
> $a = 0;
> for ($i=0; $i {
> $str_list2 = split ('>', $str_list1[$i]);
> for ($j=0; $j {
> if (empty($str_list2[$j]))
> {
> next; // skip blank indexes...
> }
> else
> {
> $str_list[$a] = $str_list2[$j];  // populate results list...
> $a++;
> }
> }
> }
>
> // print it out...
> for ($i=0; $i {
>  echo "$str_list[$i]";
> }
> ?>
>
>
> ... GAH!  I second thought there's got to be a better way of doing this!
> Anyway hope it helps some.
>
> -Kevin
>
>
> > Hi guys.  What is the best way to find all the numeric positions of a
> > character that appears in a string multiple times?  E.g. let's say I
have
> > the following string:
> >
> > $str = "http://foo.bar>test";
> >
> > And I want to parse the string and extract everything between <>.  Now
if
> > the string only had a single occurrence of "<" and ">" I can use
strpos()
> > and substr() to extract it, but how do I do it for multiple occurrences?
> I
> > suppose I can keep chopping up the string to do this but I'm not sure if
> > that's the best way.  Thanks.
> >
> > David
> >
> >
> > --
> > 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]
>
>


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

2002-01-03 Thread Ye Tun

What is the optionin php.ini for session timeout?
here is my session setting.
session.save_handler  = files   ; handler used to store/retrieve data
session.save_path = /home/apache/newmob/tmp; argument passed
session.use_cookies   = 1   ; whether to use cookies
session.name  = SESSID
session.auto_start= 1   ; initialize session on request
session.cookie_lifetime   = 0   ; lifetime in seconds of cookie
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
session.gc_probability= 1   ; percentual probability that the
session.gc_maxlifetime= 1440; after this number of seconds, stored
session.referer_check = ; check HTTP Referer to invalidate
session.entropy_length= 0   ; how many bytes to read from the file
session.entropy_file  = ; specified here to create the session
session.cache_limiter = private, must-revalidate  ; set to
session.cache_expire  = 330; document expires after n minutes
session.use_trans_sid = 1

And how do I check if the same user has the session already?

REgards,

Ye


-- 
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] APXS problem with compile. Please help :)

2002-01-03 Thread Stephen Loeckle

I am having a problem compiling the php module for apache. I have mod_so.c
enabled:

Compiled-in modules:
  http_core.c
  mod_so.c
suexec: disabled; invalid wrapper bin/suexec

I don't understand the last line though. Hopefully it's not a a problem.

I am running perl 5.6.1 freshly downloaded and compiled from cpan.

Here are the results of the module compile:

[root@lmfile php-4.1.0]#
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/m
ysql
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for gawk... (cached) gawk
checking for bison... (cached) bison -y
checking bison version... 1.28 (ok)
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... (cached) none needed
checking for ranlib... (cached) ranlib
checking whether gcc and cc understand -c and -o together... (cached) yes
checking whether ln -s works... (cached) yes
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for working const... (cached) yes
checking for pthreads_cflags... (cached) -pthread
checking for pthreads_lib... (cached)

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...

Sorry, I was not able to successfully run APXS.  Possible reasons:

1.  Perl is not installed;
2.  Apache was not compiled with DSO support (--enable-module=so);
3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/bin/apxs follows
./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or
directory
configure: error: Aborting

I seen lots of messages about people having problems with this, but I have
only seen one post with the 'bad interpreter' problem with no resolution.
Any ideas?

Any help is much appreciated,
Stephen

P.S. Get the same from php 4.1.1 as well




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




Re: [PHP] APXS problem with compile. Please help :)

2002-01-03 Thread louie miranda

Hi, try to check if apxs is present in your $apache/bin/ directory.

"The output of /usr/local/apache/bin/apxs follows
./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or
directory
configure: error: Aborting"

If you compile your php w/mod_so support, hm. it should work
but anyway, just try to compile it again if u have time.

by..

./configure --prefix=/usr/apachel --enable-module=all --enable-shared=max --
enable-module=so --enable-rule=SHARED_CORE

that should enable it again.. :)




Louie




- Original Message -
From: "Stephen Loeckle" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 4:29 AM
Subject: [PHP] APXS problem with compile. Please help :)


> I am having a problem compiling the php module for apache. I have mod_so.c
> enabled:
>
> Compiled-in modules:
>   http_core.c
>   mod_so.c
> suexec: disabled; invalid wrapper bin/suexec
>
> I don't understand the last line though. Hopefully it's not a a problem.
>
> I am running perl 5.6.1 freshly downloaded and compiled from cpan.
>
> Here are the results of the module compile:
>
> [root@lmfile php-4.1.0]#
>
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/m
> ysql
> loading cache ./config.cache
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking host system type... i686-pc-linux-gnu
> checking for gawk... (cached) gawk
> checking for bison... (cached) bison -y
> checking bison version... 1.28 (ok)
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -E
> checking for AIX... no
> checking for gcc option to accept ANSI C... (cached) none needed
> checking for ranlib... (cached) ranlib
> checking whether gcc and cc understand -c and -o together... (cached) yes
> checking whether ln -s works... (cached) yes
> checking for flex... (cached) flex
> checking for yywrap in -lfl... (cached) yes
> checking lex output file root... (cached) lex.yy
> checking whether yytext is a pointer... (cached) yes
> checking for working const... (cached) yes
> checking for pthreads_cflags... (cached) -pthread
> checking for pthreads_lib... (cached)
>
> Configuring SAPI modules
> checking for AOLserver support... no
> checking for Apache module support via DSO through APXS...
>
> Sorry, I was not able to successfully run APXS.  Possible reasons:
>
> 1.  Perl is not installed;
> 2.  Apache was not compiled with DSO support (--enable-module=so);
> 3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
> The output of /usr/local/apache/bin/apxs follows
> ./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or
> directory
> configure: error: Aborting
>
> I seen lots of messages about people having problems with this, but I have
> only seen one post with the 'bad interpreter' problem with no resolution.
> Any ideas?
>
> Any help is much appreciated,
> Stephen
>
> P.S. Get the same from php 4.1.1 as well
>
>
>
>
> --
> 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]




Re: [PHP] printing php variable into html > print $result; ?

2002-01-03 Thread charlesk

something like

someColumnInTable;
   echo $row->someOtherColumnInTable;
}
?>

-- Original Message --
From: "louie miranda" <[EMAIL PROTECTED]>
Date: Fri, 4 Jan 2002 04:45:57 +0800

Hi, is it possible to print the sql query? i mean
i want to print the output of the command "SELECT * FROM members;"
and output it into html, i tried

print $result; -- it gives me different output..

> Resource id #2


ty,
louie...

# PHP SCRIPT ###




", mysql_result($result,0,"ircname"));
printf("email: %s", mysql_result($result,0,"email"));
printf("realname: %s", mysql_result($result,0,"realname"));
printf("asl: %s", mysql_result($result,0,"asl"));
printf("info: %s", mysql_result($result,0,"info"));

print "";

?>





# PHP SCRIPT ###


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



--
Charles Killmer
Netgain Technology
251-4700
--

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




Re: [PHP] APXS problem with compile. Please help :)

2002-01-03 Thread louie miranda

> If you compile your php w/mod_so support, hm. it should work
> but anyway, just try to compile it again if u have time.

i mean apache :) sorry..

- Original Message -
From: "louie miranda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 2002 5:17 AM
Subject: Re: [PHP] APXS problem with compile. Please help :)


> Hi, try to check if apxs is present in your $apache/bin/ directory.
>
> "The output of /usr/local/apache/bin/apxs follows
> ./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or
> directory
> configure: error: Aborting"
>
> If you compile your php w/mod_so support, hm. it should work
> but anyway, just try to compile it again if u have time.
>
> by..
>
>
./configure --prefix=/usr/apachel --enable-module=all --enable-shared=max --
> enable-module=so --enable-rule=SHARED_CORE
>
> that should enable it again.. :)
>
>
>
>
> Louie
>
>
>
>
> - Original Message -
> From: "Stephen Loeckle" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Friday, January 04, 2002 4:29 AM
> Subject: [PHP] APXS problem with compile. Please help :)
>
>
> > I am having a problem compiling the php module for apache. I have
mod_so.c
> > enabled:
> >
> > Compiled-in modules:
> >   http_core.c
> >   mod_so.c
> > suexec: disabled; invalid wrapper bin/suexec
> >
> > I don't understand the last line though. Hopefully it's not a a problem.
> >
> > I am running perl 5.6.1 freshly downloaded and compiled from cpan.
> >
> > Here are the results of the module compile:
> >
> > [root@lmfile php-4.1.0]#
> >
>
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/m
> > ysql
> > loading cache ./config.cache
> > checking for a BSD compatible install... (cached) /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking whether make sets ${MAKE}... (cached) yes
> > checking for working aclocal... found
> > checking for working autoconf... found
> > checking for working automake... found
> > checking for working autoheader... found
> > checking for working makeinfo... found
> > checking whether to enable maintainer-specific portions of Makefiles...
no
> > checking host system type... i686-pc-linux-gnu
> > checking for gawk... (cached) gawk
> > checking for bison... (cached) bison -y
> > checking bison version... 1.28 (ok)
> > checking for gcc... (cached) gcc
> > checking whether the C compiler (gcc  ) works... yes
> > checking whether the C compiler (gcc  ) is a cross-compiler... no
> > checking whether we are using GNU C... (cached) yes
> > checking whether gcc accepts -g... (cached) yes
> > checking how to run the C preprocessor... (cached) gcc -E
> > checking for AIX... no
> > checking for gcc option to accept ANSI C... (cached) none needed
> > checking for ranlib... (cached) ranlib
> > checking whether gcc and cc understand -c and -o together... (cached)
yes
> > checking whether ln -s works... (cached) yes
> > checking for flex... (cached) flex
> > checking for yywrap in -lfl... (cached) yes
> > checking lex output file root... (cached) lex.yy
> > checking whether yytext is a pointer... (cached) yes
> > checking for working const... (cached) yes
> > checking for pthreads_cflags... (cached) -pthread
> > checking for pthreads_lib... (cached)
> >
> > Configuring SAPI modules
> > checking for AOLserver support... no
> > checking for Apache module support via DSO through APXS...
> >
> > Sorry, I was not able to successfully run APXS.  Possible reasons:
> >
> > 1.  Perl is not installed;
> > 2.  Apache was not compiled with DSO support (--enable-module=so);
> > 3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
> > The output of /usr/local/apache/bin/apxs follows
> > ./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file
or
> > directory
> > configure: error: Aborting
> >
> > I seen lots of messages about people having problems with this, but I
have
> > only seen one post with the 'bad interpreter' problem with no
resolution.
> > Any ideas?
> >
> > Any help is much appreciated,
> > Stephen
> >
> > P.S. Get the same from php 4.1.1 as well
> >
> >
> >
> >
> > --
> > 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]
>


-- 
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] Sending Generic TCP/IP Data

2002-01-03 Thread Jonathan Hilgeman

I have a host and a port and I BELIEVE that the protocol is HTTPS but I'm
not sure. In the event that it's not using HTTPS protocol - how would I go
about sending just TCP/IP packets through a socket to the host, since cURL
only supports certain protocols?

- Jonathan



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




Re: [PHP] php+mysql simple query help me pls! ty.

2002-01-03 Thread Mehmet Kamil ERISEN

I hope I am not wrong, but the problem is with the
mysql_result() functions.
Instead, I would use:
whilie ($myrow=mysql_fetch_array($result)) {
//put whatever you like here.
}

and instead of 
mysql_result($result,0,"asl")
 $myrow["asl"]

I hope this helps.

from the manual
http://www.php.net/manual/en/function.mysql-result.php

mysql_result() returns the contents of one cell from a
MySQL result set. The field argument can be the field's
offset, or the field's name, or the field's table dot field
name (tablename.fieldname). If the column name has been
aliased ('select foo as bar from...'), use the alias
instead of the column name. 

When working on large result sets, you should consider
using one of the functions that fetch an entire row
(specified below). As these functions return the contents
of multiple cells in one function call, they're MUCH
quicker than mysql_result(). Also, note that specifying a
numeric offset for the field argument is much quicker than
specifying a fieldname or tablename.fieldname argument. 

Calls to mysql_result() should not be mixed with calls to
other functions that deal with the result set. 

Recommended high-performance alternatives:
mysql_fetch_row(), mysql_fetch_array(), and
mysql_fetch_object(). 


--- louie miranda <[EMAIL PROTECTED]> wrote:
> Hi, can someone help me here! :(
> I can't query the data on my sql from php.
> db is fine, i couldnt see the prob in php!
> pls help, ty.
> 
> 
> 
> # MSQL
> ###
> mysql> desc members;
>
+--+-+--+-+-++
> | Field| Type| Null | Key | Default | Extra  
>|
>
+--+-+--+-+-++
> | id   | tinyint(5)  |  | PRI | NULL|
> auto_increment |
> | ircname  | varchar(30) | YES  | | NULL|
>|
> | email| varchar(30) | YES  | | NULL|
>|
> | realname | varchar(40) | YES  | | NULL|
>|
> | asl  | varchar(30) | YES  | | NULL|
>|
> | info | varchar(70) | YES  | | NULL|
>|
>
+--+-+--+-+-++
> 
> 
> 
> # PHP
> 
> 
> 
> 
>  
> $db = mysql_connect("my_db_host", "my_db_user",
> "my_db_pass")
> or die("Could not connect");
> 
> mysql_select_db("mydb",$db);
> 
> $result = mysql_query("SELECT * FROM members",$db);
> 
> printf("ircname: %sn",
> mysql_result($result,0,"ircname"));
> printf("email: %sn",
> mysql_result($result,0,"email"));
> printf("realname: %sn",
> mysql_result($result,0,"realname"));
> printf("asl: %sn", mysql_result($result,0,"asl"));
> printf("info: %sn", mysql_result($result,0,"info"));
> 
> ?>
> 
> 
> 
> 
> 
> # ERROR
>

> 
> 
>   Warning: Supplied argument is not a valid MySQL result
> resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 13
> ircname:
> n
> Warning: Supplied argument is not a valid MySQL result
> resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 14
> email:
> n
> Warning: Supplied argument is not a valid MySQL result
> resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 15
> realname:
> n
> Warning: Supplied argument is not a valid MySQL result
> resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 16
> asl:
> n
> Warning: Supplied argument is not a valid MySQL result
> resource in
> /mnt/host-users/cavite/irc/members/t2.php on line 17
> info:
> n
> 
> 
> -- 
> 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]
> 


=
Mehmet Erisen
http://www.erisen.com

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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] printing php variable into html > print $result; ?

2002-01-03 Thread louie miranda

Hi, is it possible to print the sql query? i mean
i want to print the output of the command "SELECT * FROM members;"
and output it into html, i tried

print $result; -- it gives me different output..

> Resource id #2


ty,
louie...

# PHP SCRIPT ###




", mysql_result($result,0,"ircname"));
printf("email: %s", mysql_result($result,0,"email"));
printf("realname: %s", mysql_result($result,0,"realname"));
printf("asl: %s", mysql_result($result,0,"asl"));
printf("info: %s", mysql_result($result,0,"info"));

print "";

?>





# PHP SCRIPT ###


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




Re: [PHP] printing php variable into html > print $result; ?

2002-01-03 Thread Mehmet Kamil ERISEN

use 
$sql = "select .. ";
$result = mysql_query($sql);
echo $sql;

--- louie miranda <[EMAIL PROTECTED]> wrote:
> Hi, is it possible to print the sql query? i mean
> i want to print the output of the command "SELECT * FROM
> members;"
> and output it into html, i tried
> 
> print $result; -- it gives me different output..
> 
> > Resource id #2
> 
> 
> ty,
> louie...
> 
> # PHP SCRIPT
> ###
> 
> 
> 
> 
>  
> $db = mysql_connect("my_db_host", "my_db_user",
> "my_db_pass")
> or die("Could not connect");
> 
> mysql_select_db("cavite",$db);
> 
> $result = mysql_query("SELECT * FROM members",$db) or
> die("Error:".mysql_error()
> );
> 
> printf("ircname: %s",
> mysql_result($result,0,"ircname"));
> printf("email: %s", mysql_result($result,0,"email"));
> printf("realname: %s",
> mysql_result($result,0,"realname"));
> printf("asl: %s", mysql_result($result,0,"asl"));
> printf("info: %s", mysql_result($result,0,"info"));
> 
> print "";
> 
> ?>
> 
> 
> 
> 
> 
> # PHP SCRIPT
> ###
> 
> 
> -- 
> 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]
> 


=
Mehmet Erisen
http://www.erisen.com

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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] Re: Form Validation class

2002-01-03 Thread Manuel Lemos

Hello,

Daniel Harik wrote:
> 
> Hello guys,
> 
> at moment i'm reading "Hack Proofing your web apps" book, but it makes
> me scared, i have seen a class from newbienetwork.net(can't find it
> now), that validates
> user input, things like telephone number, state, country , email, and
> also can check if only letters or numbers are in text field, my
> question is this are there classes of this kind around? I would really
> need it.

This is what you are looking for:

http://phpclasses.upperdesign.com/browse.html/package/1

You may also want to check all these:

http://phpclasses.upperdesign.com/browse.html

Regards,
Manuel Lemos

-- 
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] More on images...

2002-01-03 Thread Matthew Walker

Related to my last question about the cookies in images, is there any
way to get the referrer from the calling page without passing it as an
argument to the image generation script?
 
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.310 / Virus Database: 171 - Release Date: 12/19/2001
 

--
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] email user file upload

2002-01-03 Thread toni baker

I would like my php script to e-mail a file upload. 
Can someone give me an example of how this might be
done?  Thanks

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.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]




Re: [PHP] printing php variable into html > print $result; ?

2002-01-03 Thread Philip Olson

A quick rewrite of your code:

";
  }

?>

Your question was how to print the query, in this case you'd just print
$sql.  That was the point of the above but I got a bit carried away :) Oh,
mysql_error() can be very useful for debugging.  Regarding the type
resource, have a look here:

  http://www.php.net/manual/en/language.types.resource.php

Regards,
Philip Olson


On Fri, 4 Jan 2002, louie miranda wrote:

> Hi, is it possible to print the sql query? i mean
> i want to print the output of the command "SELECT * FROM members;"
> and output it into html, i tried
> 
> print $result; -- it gives me different output..
> 
> > Resource id #2
> 
> 
> ty,
> louie...
> 
> # PHP SCRIPT ###
> 
> 
> 
> 
>  
> $db = mysql_connect("my_db_host", "my_db_user", "my_db_pass")
> or die("Could not connect");
> 
> mysql_select_db("cavite",$db);
> 
> $result = mysql_query("SELECT * FROM members",$db) or
> die("Error:".mysql_error()
> );
> 
> printf("ircname: %s", mysql_result($result,0,"ircname"));
> printf("email: %s", mysql_result($result,0,"email"));
> printf("realname: %s", mysql_result($result,0,"realname"));
> printf("asl: %s", mysql_result($result,0,"asl"));
> printf("info: %s", mysql_result($result,0,"info"));
> 
> print "";
> 
> ?>
> 
> 
> 
> 
> 
> # PHP SCRIPT ###
> 
> 
> -- 
> 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]




[PHP] Recursive Threading

2002-01-03 Thread Jonathan Chum

I'm using recursive threading for a simple thread board script, but the
problem is the # of queries needed to execute. That is, once given the main
thread post, it'll have to find all the posts where the parentID matches the
current ID, then requery again for each of the post.

So I'm trying to discover a way to limit the amount of querying, possibly
there is some type of algo I don't know about or a method using arrays. Any
wisdom on this is greatly appreciated.



-- 
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] Re: Sending Generic TCP/IP Data

2002-01-03 Thread LaserJetter

use fsockopen to open a socket on the host and call it $f then
fwrite($f,$data)?? would that work?

LJ

"Jonathan Hilgeman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a host and a port and I BELIEVE that the protocol is HTTPS but I'm
> not sure. In the event that it's not using HTTPS protocol - how would I go
> about sending just TCP/IP packets through a socket to the host, since cURL
> only supports certain protocols?
>
> - Jonathan
>
>



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




Re: [PHP] If Statement with more than one conclusion

2002-01-03 Thread Adam Baratz

Switch statements work well for these situations as well.  They might be
faster than checking for the item in a list from an array since an array
must be created and searched through.

General programming tip: your method *definitely* wouldn't work.  The or
operator has precendence over the == operator, causing those clauses to be
broken up like this:

$ext=="com"
"net"
"org"
"info"

Only one of those statements needs to be evaluated to true for the contents
of the if statement to be evaluated.  The first one will only be true if
that's what's inside $ext.  The others will always evaluate to true since a
string of anything is considered "true" as a boolean.

As a switch:

> If($ext=="com"or"net"or"org"or"info"){
> Then do this
> }

switch($ext)
{
case "com":
case "net":
case "org":
case "info":
// then do this
break;
}

Your friendly PHP manual will give you more information on the use of
switches.  They're useful for more than just this kind of situation (namely
when you want to process many possible inputs for one variable).

-Adam


-- 
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] Re: Sending Generic TCP/IP Data

2002-01-03 Thread Jonathan Hilgeman

Possibly - I've hit a small stop for a bit. My goal is to create a PHP API
for PsiGate/LinkPoint/CardService. I will let everyone know if anything
comes up. Thanks!

- Jonathan

"Laserjetter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> use fsockopen to open a socket on the host and call it $f then
> fwrite($f,$data)?? would that work?
>
> LJ
>
> "Jonathan Hilgeman" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I have a host and a port and I BELIEVE that the protocol is HTTPS but
I'm
> > not sure. In the event that it's not using HTTPS protocol - how would I
go
> > about sending just TCP/IP packets through a socket to the host, since
cURL
> > only supports certain protocols?
> >
> > - Jonathan
> >
> >
>
>



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




Re: [PHP] APXS problem with compile. Please help :)

2002-01-03 Thread Stephen Loeckle

Thanks Louie! You rock! I can get a ./configure to work now, BUT (ack!) it
bombs on the make now :( here's the output: (The next message will be the
configure output in case it's needed)

Making all in Zend
make[1]: Entering directory `/root/php-4.1.1/Zend'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/php-4.1.1/Zend'
Making all in main
make[1]: Entering directory `/root/php-4.1.1/main'
make[2]: Entering directory `/root/php-4.1.1/main'
make[2]: Nothing to be done for `all-p'.
make[2]: Leaving directory `/root/php-4.1.1/main'
make[1]: Leaving directory `/root/php-4.1.1/main'
Making all in ext
make[1]: Entering directory `/root/php-4.1.1/ext'
Making all in mysql
make[2]: Entering directory `/root/php-4.1.1/ext/mysql'
make[3]: Entering directory `/root/php-4.1.1/ext/mysql'
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/root/php-4.1.1/ext/mysql'
make[2]: Leaving directory `/root/php-4.1.1/ext/mysql'
Making all in pcre
make[2]: Entering directory `/root/php-4.1.1/ext/pcre'
Making all in pcrelib
make[3]: Entering directory `/root/php-4.1.1/ext/pcre/pcrelib'
make[4]: Entering directory `/root/php-4.1.1/ext/pcre/pcrelib'
make[4]: Nothing to be done for `all-p'.
make[4]: Leaving directory `/root/php-4.1.1/ext/pcre/pcrelib'
make[3]: Leaving directory `/root/php-4.1.1/ext/pcre/pcrelib'
make[3]: Entering directory `/root/php-4.1.1/ext/pcre'
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/root/php-4.1.1/ext/pcre'
make[2]: Leaving directory `/root/php-4.1.1/ext/pcre'
Making all in posix
make[2]: Entering directory `/root/php-4.1.1/ext/posix'
make[3]: Entering directory `/root/php-4.1.1/ext/posix'
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/root/php-4.1.1/ext/posix'
make[2]: Leaving directory `/root/php-4.1.1/ext/posix'
Making all in session
make[2]: Entering directory `/root/php-4.1.1/ext/session'
make[3]: Entering directory `/root/php-4.1.1/ext/session'
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/root/php-4.1.1/ext/session'
make[2]: Leaving directory `/root/php-4.1.1/ext/session'
Making all in standard
make[2]: Entering directory `/root/php-4.1.1/ext/standard'
make[3]: Entering directory `/root/php-4.1.1/ext/standard'
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/root/php-4.1.1/ext/standard'
make[2]: Leaving directory `/root/php-4.1.1/ext/standard'
Making all in xml
make[2]: Entering directory `/root/php-4.1.1/ext/xml'
Making all in expat
make[3]: Entering directory `/root/php-4.1.1/ext/xml/expat'
make[4]: Entering directory `/root/php-4.1.1/ext/xml/expat'
make[4]: Nothing to be done for `all-p'.
make[4]: Leaving directory `/root/php-4.1.1/ext/xml/expat'
make[3]: Leaving directory `/root/php-4.1.1/ext/xml/expat'
make[3]: Entering directory `/root/php-4.1.1/ext/xml'
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/root/php-4.1.1/ext/xml'
make[2]: Leaving directory `/root/php-4.1.1/ext/xml'
make[1]: Leaving directory `/root/php-4.1.1/ext'
Making all in sapi
make[1]: Entering directory `/root/php-4.1.1/sapi'
Making all in apache
make[2]: Entering directory `/root/php-4.1.1/sapi/apache'
make[3]: Entering directory `/root/php-4.1.1/sapi/apache'
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/root/php-4.1.1/sapi/apache'
make[2]: Leaving directory `/root/php-4.1.1/sapi/apache'
make[1]: Leaving directory `/root/php-4.1.1/sapi'
Making all in TSRM
make[1]: Entering directory `/root/php-4.1.1/TSRM'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/php-4.1.1/TSRM'
Making all in regex
make[1]: Entering directory `/root/php-4.1.1/regex'
make[2]: Entering directory `/root/php-4.1.1/regex'
make[2]: Nothing to be done for `all-p'.
make[2]: Leaving directory `/root/php-4.1.1/regex'
make[1]: Leaving directory `/root/php-4.1.1/regex'
Making all in .
make[1]: Entering directory `/root/php-4.1.1'
/bin/sh /root/php-4.1.1/libtool --silent --mode=link
gcc  -I. -I/root/php-4.1.1/ -I/root/php-4.1.1/main -I/root/php-4.1.1 -I/usr/
local/apache/include -I/root/php-4.1.1/Zend -I/usr/local/mysql/include -I/ro
ot/php-4.1.1/ext/xml/expat  -DLINUX=22 -DUSE_HSREGEX -DSHARED_CORE -I/root/p
hp-4.1.1/TSRM -g -O2 -prefer-pic   -o libphp4.la -rpath
/root/php-4.1.1/libs -avoid-version -L/usr/local/mysql/lib  -R
/usr/local/mysql/lib stub.lo  Zend/libZend.la sapi/apache/libsapi.la
main/libmain.la regex/libregex.la ext/mysql/libmysql.la ext/pcre/libpcre.la
ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la
ext/xml/libxml.la
TSRM/libtsrm.la -lpam -ldl -lmysqlclient -lcrypt -lresolv -lm -ldl -lnsl -lr
esolv -lcrypt
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/root/php-4.1.1'
make: *** [all-recursive] Error 1




"Louie Miranda" <[EMAIL PROTECTED]> wrote in message
024f01c1949c$36b40120$2601a8c0@nocras">news:024f01c1949c$36b40120$26

Re: [PHP] email user file upload

2002-01-03 Thread steph

Ive seen this done with at least 2 scripts on hotscripts.com.
http://www.hotscripts.com/Detailed/6329.html (Jack's Formmail, which is the
one I use) and there's another but I cant seem to find it. Maybe check the
code on these.

Steph
- Original Message -
From: "toni baker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 1:51 PM
Subject: [PHP] email user file upload


> I would like my php script to e-mail a file upload.
> Can someone give me an example of how this might be
> done?  Thanks
>
> __
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.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]




Re: [PHP] APXS problem with compile. Please help :)

2002-01-03 Thread Stephen Loeckle

Configure output in case it's needed:

loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for gawk... (cached) gawk
checking for bison... (cached) bison -y
checking bison version... 1.28 (ok)
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... (cached) none needed
checking for ranlib... (cached) ranlib
checking whether gcc and cc understand -c and -o together... (cached) yes
checking whether ln -s works... (cached) yes
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for working const... (cached) yes
checking for pthreads_cflags... (cached) -pthread
checking for pthreads_lib... (cached)

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... yes
checking for mod_charset compatibility option... no
checking for Apache 2.0 module support via DSO through APXS... no
checking for Caudium support... no
checking for fhttpd module support... no
checking for FastCGI support... no
checking for Zeus ISAPI support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web Support... no
checking for Roxen/Pike support... no
checking for Servlet support... no
checking for thttpd... no
checking for TUX... no
checking for chosen SAPI module... apache

Running system checks
checking for missing declarations of reentrant functions... done
checking whether compiler supports -R... (cached) no
checking whether compiler supports -Wl,-rpath,... (cached) yes
checking for sendmail... (cached) /usr/sbin/sendmail
checking whether system uses EBCDIC... (cached) no
checking for socket in -lsocket... (cached) no
checking for htonl in -lsocket... (cached) no
checking for yp_get_default_domain... no
checking for gethostname in -lnsl... (cached) yes
checking for dlopen in -ldl... (cached) yes
checking for sin in -lm... (cached) yes
checking for inet_aton in -lresolv... (cached) yes
checking for res_search in -lsocket... (cached) no
checking for res_search in -lresolv... (cached) yes
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for fclose declaration... ok
checking for alloca.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for arpa/nameser.h... (cached) yes
checking for crypt.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for grp.h... (cached) yes
checking for ieeefp.h... (cached) no
checking for langinfo.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for pwd.h... (cached) yes
checking for resolv.h... (cached) yes
checking for signal.h... (cached) yes
checking for stdarg.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for syslog.h... (cached) yes
checking for sysexits.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for sys/mount.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/statfs.h... (cached) yes
checking for sys/statvfs.h... (cached) yes
checking for sys/vfs.h... (cached) yes
checking for sys/sysexits.h... (cached) no
checking for sys/time.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/varargs.h... (cached) no
checking for sys/wait.h... (cached) yes
checking for unistd.h... (cached) yes
checking for unix.h... (cached) no
checking for utime.h... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for tm_zone in struct tm... (cached) yes
checking for tm_gmtoff in struct tm... (cached) yes
checking for struct flock... (cached) yes
checking for socklen_t... (cached) yes
checking size of long... (cached) 4
checking size of int... (cached) 4
checking for st_blksize in struct stat... (cached) yes
checking for st_blocks in struct stat... (cached) yes
checking for st_rd

Re: [PHP] find all the numeric positions of a character that appears in a string multiple times

2002-01-03 Thread David Yee

Here's the function I came up with- seems to work:

//finds all occurrences of $char in $temp and returns char positions in an
array
function char_positions($temp, $char)
{
while (strpos($temp, $char) !== FALSE){ //note the two '=='
$found = strpos($temp, $char);
$result[] = $found;
$temp = substr($temp, $found + 1, strlen($temp));
}

for ($i=0; $i 0){ #if not the first element
$result[$i] = $result[$i] + $result[$i-1] + 1;
}
}
if (sizeof($result)>0){
 return FALSE;
}else{
 return $result;
}
}

David
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "David Yee" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 03, 2002 12:30 PM
Subject: Re: [PHP] find all the numeric positions of a character that
appears in a string multiple times


> SPLIT to the rescue!  Split tears up your string into lists (arrays) which
> you can cycle through and extract normaly.  So this is going to look like
> hell but here we go...
>
>  $str = "http://foo.bar>test";
>
> $str_list1 = split ('<', $str);
> // Note: $str_list1 now == array ("a href=http://foo.bar>", "b>test",
"/b>",
> "/a>")
> $a = 0;
> for ($i=0; $i {
> $str_list2 = split ('>', $str_list1[$i]);
> for ($j=0; $j {
> if (empty($str_list2[$j]))
> {
> next; // skip blank indexes...
> }
> else
> {
> $str_list[$a] = $str_list2[$j];  // populate results list...
> $a++;
> }
> }
> }
>
> // print it out...
> for ($i=0; $i {
>  echo "$str_list[$i]";
> }
> ?>
>
>
> ... GAH!  I second thought there's got to be a better way of doing this!
> Anyway hope it helps some.
>
> -Kevin
>
>
> > Hi guys.  What is the best way to find all the numeric positions of a
> > character that appears in a string multiple times?  E.g. let's say I
have
> > the following string:
> >
> > $str = "http://foo.bar>test";
> >
> > And I want to parse the string and extract everything between <>.  Now
if
> > the string only had a single occurrence of "<" and ">" I can use
strpos()
> > and substr() to extract it, but how do I do it for multiple occurrences?
> I
> > suppose I can keep chopping up the string to do this but I'm not sure if
> > that's the best way.  Thanks.
> >
> > David
> >
> >
> > --
> > 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]
>
>


-- 
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] Has anyone tried Serlient?

2002-01-03 Thread Andrew Chase

Per Triplehash's website at http://www.triplehash.com/serlient:

"Triplehash Serlient lets you package, run and distribute your PHP and
CGI-based websites into Windows software.

Serlient does its work by combining intelligent web-server simulation
software and web-browsing (Internet ExplorerR) capabilities into one
package. This allows users to distribute their website, or web applications
just as a normal software application would be distributed."

It looks interesting, but they don't offer a demo.  They're also vague about
MySQL support; the FAQ says "There might be ways to get it working."  For
that matter, what about extensions like GD and PDFlib?

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


[PHP] Re: APXS problem with compile. Please help :)

2002-01-03 Thread Stephen Loeckle

Never mind :) I deleted the source directory and untared it again. I forgot
I had been playing around in there a little too much LOL. Louie, you're the
best! Everything works great now!

Stephen


"Stephen Loeckle" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am having a problem compiling the php module for apache. I have mod_so.c
> enabled:
>
> Compiled-in modules:
>   http_core.c
>   mod_so.c
> suexec: disabled; invalid wrapper bin/suexec
>
> I don't understand the last line though. Hopefully it's not a a problem.
>
> I am running perl 5.6.1 freshly downloaded and compiled from cpan.
>
> Here are the results of the module compile:
>
> [root@lmfile php-4.1.0]#
>
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/m
> ysql
> loading cache ./config.cache
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking host system type... i686-pc-linux-gnu
> checking for gawk... (cached) gawk
> checking for bison... (cached) bison -y
> checking bison version... 1.28 (ok)
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -E
> checking for AIX... no
> checking for gcc option to accept ANSI C... (cached) none needed
> checking for ranlib... (cached) ranlib
> checking whether gcc and cc understand -c and -o together... (cached) yes

> checking whether ln -s works... (cached) yes
> checking for flex... (cached) flex
> checking for yywrap in -lfl... (cached) yes
> checking lex output file root... (cached) lex.yy
> checking whether yytext is a pointer... (cached) yes
> checking for working const... (cached) yes
> checking for pthreads_cflags... (cached) -pthread
> checking for pthreads_lib... (cached)
>
> Configuring SAPI modules
> checking for AOLserver support... no
> checking for Apache module support via DSO through APXS...
>
> Sorry, I was not able to successfully run APXS.  Possible reasons:
>
> 1.  Perl is not installed;
> 2.  Apache was not compiled with DSO support (--enable-module=so);
> 3.  'apxs' is not in your path.  Try to use --with-apxs=/path/to/apxs
> The output of /usr/local/apache/bin/apxs follows
> ./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or
> directory
> configure: error: Aborting
>
> I seen lots of messages about people having problems with this, but I have
> only seen one post with the 'bad interpreter' problem with no resolution.
> Any ideas?
>
> Any help is much appreciated,
> Stephen
>
> P.S. Get the same from php 4.1.1 as well
>
>
>



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




RE: [PHP] More on images...

2002-01-03 Thread Matthew Walker

Buh. That's the problem. There's no assurance that in will be used from
a PHP script, so I can't do that. Mrrr.

Let me explain what I'm doing, and someone can pipe up if they have a
better idea.

I'm writing a tracking module for a shopping cart system, so that we can
track where people came to our site from, and correlate that information
with whether or not they ordered. Right now, I'm trying to do this with
a php script in an image tag, so that I can set the cookies I need.
However, I need to be able to get the referrer from the page that is
calling the image, and I can't assume it's php. Any advice?

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Billy Harvey [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 03, 2002 3:25 PM
To: Matthew Walker
Subject: Re: [PHP] More on images...

On Thu, 2002-01-03 at 16:51, Matthew Walker wrote:
> Related to my last question about the cookies in images, is there any
> way to get the referrer from the calling page without passing it as an
> argument to the image generation script?
>  
> Matthew Walker
> Ecommerce Project Manager
> Mountain Top Herbs

Matthew, you're going to have to save it as a variable somewhere to be
able to retrieve it.  If you have session management then you could just
register the variable and it would exist on the next page.

Billy



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002
 

--
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] Re: More on images...

2002-01-03 Thread Joe Webster

$GLOBALS[ "HTTP_REFERER" ];


"Matthew Walker" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Related to my last question about the cookies in images, is there any
way to get the referrer from the calling page without passing it as an
argument to the image generation script?

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.310 / Virus Database: 171 - Release Date: 12/19/2001




-- 
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] Re: Recursive Threading

2002-01-03 Thread Philip Hallstrom

There's a couple of ways you could do this...

- search zend.com and other PHP sites for something similar :)

- pick up Joe Celko's "SQL for Smarties" which talks about building trees
and graphs in SQL (which is what this is)... this can get kind of
complicated though.

or...


- modify your table so that every row has a threadID as well as a
parentID.

- change your query so that you select all the rows that have a given
threadID.

- use something like the code here for "sorting".

http://stuff.adhesivemedia.com/php/heirarchial-sorting.php


good luck!

On Thu, 3 Jan 2002, Jonathan Chum wrote:

> I'm using recursive threading for a simple thread board script, but the
> problem is the # of queries needed to execute. That is, once given the main
> thread post, it'll have to find all the posts where the parentID matches the
> current ID, then requery again for each of the post.
>
> So I'm trying to discover a way to limit the amount of querying, possibly
> there is some type of algo I don't know about or a method using arrays. Any
> wisdom on this is greatly appreciated.
>
>
>
> --
> 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]




Re: [PHP] XML Parsing Problem

2002-01-03 Thread Ben Gollmer

Huh - I guess it could be useful. I still think this should be an option 
you could set with xml_parser_set_option(), or something.

In case anyone is interested, I solved the problem by creating a new 
global variable, $previousTag. Each time my character parsing function 
is called, it compares the previous tag to the current tag. If they are 
the same, the data gets stuffed into a buffer; if they are different, 
the buffer is returned, cleared, and the new data stuffed into it...and 
$previousTag is set to the current tag.


Ben

On Wednesday, January 2, 2002, at 06:41 PM, Matthew Clark wrote:

> well thats just the way XML parsers work, according to the parser, what 
> you
> have there is not a single string element, you have three child elements
> (the parent node being the ).. two string nodes broken up by an
> entity node.  In other circumstances, this behaviour can be very useful.
>
> Matt.
>
>
> -Original Message-
> From: Ben Gollmer [mailto:[EMAIL PROTECTED]]
> Sent: 02 January 2002 23:16
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] XML Parsing Problem
>
>
> Ok, I can understand the predefined entity replacement. But why does it
> break the string up into 3 parts? I think it should just return
> "Follow-up To Critique of BeOS & Mac OS X".
>
> Ben
>
>
>


-- 
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] how can I add a variable to this sample

2002-01-03 Thread Tom Beidler

I have a large form that I would like to edit a number of records. I'm
putting all of the fields into one array and then I would like to pull the
fields independently from a loop.


Here's part of the loop

  foreach ($z  as $key => $value) {
  $service_type_insert = $x['$keyservice_type'];

What I'm looking for is for the $key variable to be replaced with the record
id, which is what $key is. So the second line should look like;

  $service_type_insert = $x['629service_type'];

I've tried a number of variations, i.e.;

  $service_type_insert = $x[$keyservice_type];

  $service_type_insert = $x['\$keyservice_type'];

  $service_type_insert = $x["$keyservice_type"];

Is there a way that I can format it correctly?

Thanks,
Tom 

-- 
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] Re: More on images...

2002-01-03 Thread Mike Eheler

$HTTP_SERVER_VARS['HTTP_REFERER']

or (php 4.1.x)

$_SERVER['HTTP_REFERER']

Mike

Matthew Walker wrote:

> Related to my last question about the cookies in images, is there any
> way to get the referrer from the calling page without passing it as an
> argument to the image generation script?
>  
> Matthew Walker
> Ecommerce Project Manager
> Mountain Top Herbs



-- 
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] Re: how can I add a variable to this sample

2002-01-03 Thread Philip Hallstrom

$service_type_insert = $x[${key}service_type];

should work.

On Thu, 3 Jan 2002, Tom Beidler wrote:

> I have a large form that I would like to edit a number of records. I'm
> putting all of the fields into one array and then I would like to pull the
> fields independently from a loop.
>
>
> Here's part of the loop
>
>   foreach ($z  as $key => $value) {
>   $service_type_insert = $x['$keyservice_type'];
>
> What I'm looking for is for the $key variable to be replaced with the record
> id, which is what $key is. So the second line should look like;
>
>   $service_type_insert = $x['629service_type'];
>
> I've tried a number of variations, i.e.;
>
>   $service_type_insert = $x[$keyservice_type];
>
>   $service_type_insert = $x['\$keyservice_type'];
>
>   $service_type_insert = $x["$keyservice_type"];
>
> Is there a way that I can format it correctly?
>
> Thanks,
> Tom
>
> --
> 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]




[PHP] An idea for a PHP tool

2002-01-03 Thread Mike Eheler

Like google has it's toolbar, why not have a PHP Manual toolbar? That 
would be *great*. Just type in the function name and hit "go" and the 
manual comes up.

One for Moz & one for IE I'm sure would be appreciated.

I'd do it myself, but I have not the ability to code in C (or C++ for 
that matter), nor the time. So I donate this idea to the PHP community 
in hopes that someone out there has the knowledge and the ambition to 
make it happen.

Mike


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




  1   2   >