[PHP] Crypt Limitation?

2002-03-23 Thread Steven Walker

Is there a string length limitation to crypt()? It generates the same 
result for different input strings. I'm using crypt to store access 
codes that are generated using uniqid. For example, if I do the 
following:

$encrypted = crypt("3c8d15c9cfe5a", "xx");
echo $encrytped;
$encrypted = crypt("3c8d15c9cfABC", "xx");
echo $encrytped;

it outputs:
xxsZRVVwtwY7Y
xxsZRVVwtwY7Y

So it appears the crypt is ignoring characters in a string after a 
certain point. Am I missing something here?

Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Retreiving website contents

2002-03-23 Thread Jason Wong

On Saturday 23 March 2002 23:57, Liam wrote:
> Hi, I've asked this before but I'm still ost.
> How can I receive the contents of a remote website through PHP and only dis
>play one section of it?
>
> Someone said something about curl. 
> What is it, where could I get it?


google > curl



-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
Kill Ugly Processor Architectures
- Karl Lehenbauer
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Crypt Limitation?

2002-03-23 Thread Rasmus Lerdorf

Depends on the OS.  I suggest using md() instead.

On Sat, 23 Mar 2002, Steven Walker wrote:

> Is there a string length limitation to crypt()? It generates the same
> result for different input strings. I'm using crypt to store access
> codes that are generated using uniqid. For example, if I do the
> following:
>
>   $encrypted = crypt("3c8d15c9cfe5a", "xx");
>   echo $encrytped;
>   $encrypted = crypt("3c8d15c9cfABC", "xx");
>   echo $encrytped;
>
> it outputs:
>   xxsZRVVwtwY7Y
>   xxsZRVVwtwY7Y
>
> So it appears the crypt is ignoring characters in a string after a
> certain point. Am I missing something here?
>
> Steven J. Walker
> Walker Effects
> www.walkereffects.com
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Jazz problem

2002-03-23 Thread Jason Wong

On Saturday 23 March 2002 05:38, Sanj wrote:
> template page at http://www.isbliss.co.nz/beta/mainpages/template.html
> disregard any linked pages.

Is this a php question?


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
I can't decide whether to commit suicide or go bowling.
-- Florence Henderson
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Tool to remove comments??

2002-03-23 Thread heinisch

At 23.03.2002  00:05, you wrote:
>
>there's also two tools called sed and grep that are available on any unix
>system. and probably easily gettable on windblows.
>
>That can probably remove most comments.

I know, and use these on LINUX, but I don´t want to spend time to develop 
something
which is already made and tested. This will take a minimum of 6 hours dev.
I´m now in a position, where I cannot spend this time

>Why you would want to remove comments, I don't know.
>They are very useful in the future when fixing something or changing
>something.
>Good Code == Commented Code
>Well, Good Code is at least a subset of commented code ;)

That´s right, there are two versions of code, one for development,
the other, cleaned is on the production (ISP)machine. As I write a lot of 
comments in a source,
(Good Code == Commented Code ;) ) It could make more than 50% of the code.
As you maybe have read the posts on speeding up the processing of code 
(last week),
every line which is not necessary shouldn´t be read by the PHP-parser. I 
also found
that if you remove the LF (CR/LF) combination, there´s a time reduce, even 
this practice
is dangerous, especially for JavaScripts.

>If you don't want a customer to see them, use the Zend Encoder and hide
>all your source.

This makes need of php4* on the ISP, and I don´t want to encrypt the code, 
just clean it.
To encrypt, Enrico suggested a link http://pobs.mywalhalla.net/ which does 
this, free of charge.

Any other suggestions out there?

Oliver





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] php does not understand ->

2002-03-23 Thread Andy

Hi there,

I did search for a class to validate e-mail adresses. I found one and tryed
out the examplepage but there seems to be a prob with my php installation.
Everything after the -> ist just printed out to the screen. It just seems
that php thinks the error is the same like ?>

Here is a bit of a code:
timeout=10;

So timeout is beeing printed out.

Does anybody know if this might be a prob on my site, or maybe the class has
a prob?

Thanx Andy



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




php-general Digest 23 Mar 2002 12:11:05 -0000 Issue 1243

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


php-general Digest 23 Mar 2002 12:11:05 - Issue 1243

Topics (messages 89765 through 89830):

Re: FAQ
89765 by: J. Scott Johnson
89809 by: Demitrious S. Kelly

Drawing graphs - opinions
89766 by: Lee P Reilly
89768 by: Lee P Reilly
89814 by: michael kimsal

Re: Database Development Price Inquiry?
89767 by: [-^-!-%-

Re: A Language Script?
89769 by: Demitrious S. Kelly

Re: Maillist
89770 by: Ashley M. Kirchner

Variable problem
89771 by: Leif K-Brooks
89772 by: Rick Emery
89774 by: Rick Emery
89779 by: Chris

MySQL query results
89773 by: Ashley M. Kirchner
89775 by: Rick Emery
89777 by: Ashley M. Kirchner
89782 by: Ashley M. Kirchner
89783 by: Chris
89785 by: Rasmus Lerdorf
89786 by: Chris
89787 by: Ashley M. Kirchner
89788 by: Ashley M. Kirchner
89789 by: Ashley M. Kirchner
89792 by: Rasmus Lerdorf
89800 by: Ashley M. Kirchner
89806 by: Justin French
89807 by: Ashley M. Kirchner

Re: included files not reread by php when i edit the files
89776 by: Chris

Double quotes in form fields and submitting them
89778 by: webapprentice

ttf broken?
89780 by: Michael A. Peters
89784 by: Michael A. Peters

Create Email POP accounts with PHP
89781 by: Julian
89791 by: Dan Harrelson
89793 by: ::: rObEr2 :::

Does anybody use UltraDev?
89790 by: ::: rObEr2 :::
89794 by: Dan Harrelson

Re: Perl NewsGroup?
89795 by: David Duong
89818 by: Don Read

Re: what is the difference between function and language  construct?
89796 by: David Duong

What is the PHP version of Grep?
89797 by: David Duong
89798 by: Demitrious S. Kelly

Re: PHP/mySQL hosting
89799 by: bvr

URL information into a variable
89801 by: Phil Schwarzmann
89804 by: Justin French
89805 by: J. Scott Johnson

question - display rows
89802 by: Phil Schwarzmann
89803 by: Justin French

[newman] Whats wrong with this MySql Statement?
89808 by: Philip J. Newman
89820 by: Julio Nobrega

session problem?
89810 by: bob

what's wrong with IE?
89811 by: Alexander Javier

Advice needed
89812 by: James Newkid
89813 by: michael kimsal
89817 by: Daniel Tryba

Retreiving website contents
89815 by: Liam
89826 by: Jason Wong

this mailing list
89816 by: Liam

Configure PHP during RPM install
89819 by: David McInnis

Re: Tool to remove comments??
89821 by: Julio Nobrega
89822 by: Michael A. Peters
89829 by: heinisch.creaction.de

Stripslashes & addslashes question ...
89823 by: John Kelly

assert in php.ini setting.
89824 by: S.Murali Krishna

Crypt Limitation?
89825 by: Steven Walker
89827 by: Rasmus Lerdorf

Re: Jazz problem
89828 by: Jason Wong

php does not understand ->
89830 by: Andy

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

Hi,

New poster, no need to flame unnecessarily...

Following up on James' original posting, I took 2000 or so message headers
from the archive and extracted (Perl, sorry) keywords for about 50% of the
postings.  This gave the following metrics on problems:

13   table
65  apache
70  array
17  authentication
19  browser
13  cgi
39  cookie
35  database
9   dates
2   debug
9   editor
7   eval
6   fields
140 file
25  include
33  install
9   ip address
14  javascript
4   jpg
15  ldap
12  login
91  mail
146 mysql
11  oracle
20  pdf
2   PostgreSQL
15  Regex
7   rpm
8   security
93  session
11  socket
50  upload
29  variables
14  while
7   win32
37  xml
10  xsl

It seems like the hotspots are:

Database / Mysql
File handling
Apache
Arrays
XML

When James and I talked off list, he recommended:

>>You're probably also going to be dealing with global built in vars,
$_SESSION, $_POST, $_GET and older vars quite a bit as well.

I'm willing to grovel through old messages and write this up.  If anyone has
any other common topics that I'm not finding, please email them to me.  When
its done, and useful, we can see about getting it auto posted (which is a
_good_ idea).

Thanks
Scott

J. Scott Johnson

Virtual:
* * * * * * * * * * * * * * * * * * * * * * * * * *
[EMAIL PROTECTED]
http://www.fuzzygroup.com/
Yahoo IM: fuzzygroup


-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 5:24 

[PHP] Superglobals....

2002-03-23 Thread David

Hi,
Is there any way to emulate the super globals on PHP4.0.6.
I've designed a system using $_GET, $_POST, etc, and I had it all running 
wonderfully, but I have been forced to change servers to some folks who do 
not seem to have an upgrade to 4.1.x in mind.

What I would like to know is... is there away to make a variable global 
across all functions, like the $_* type vars? Without putting 

global $_SERVER, $_GET, $_POST, $_REQUEST, $_SESSION, $_COOKIE;

at the top of each function.

Thanks!

David


-- 
---

WarpedWeb.Net
http://www.warpedweb.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] DNS

2002-03-23 Thread Liam

23/03/2002 11:26:39 PM

Hi, err, I realise this has nothing to do with PHP but...

I am in desperate need of a backup DNS host.  I've scoured 
the internet and I can't find anyone who'll be my backup DNS.
I'm willing to exchange the favour and be your backup DNS.

If there's any place you know I can get this, please pipe up.

Thanks,
Liam



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Web Hosting control panel ported to freebsd

2002-03-23 Thread Charles Williams

yep,

finally got it working.  original linux based web hosting control panel,
written in PHP, now works under freebsd 4.3 (tested), and should work on 4.4
as well.

If interested in testing on a FreeBSD system just let me know, off list, at
[EMAIL PROTECTED]  I would like to get this compatible with just
about any other FreeBSD release.

thanks,
chuck


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Development tools

2002-03-23 Thread Morten Nielsen

Hi,
Does anyone know of a tool that can show how mySQL DB's are related and
which PHP functions are being called. It should maybe be something like UML.

Regards,
Morten



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Create Email POP accounts with PHP

2002-03-23 Thread Julian

Hey Dan!!!

This book is for sale I can't buy it!

Can any body explain me how I can to create email POP accounts whith PHP
without using vpopmail

Thanks! Julian




- Original Message -
From: Dan Harrelson
To: Julian ; [EMAIL PROTECTED]
Sent: Friday, March 22, 2002 9:25 PM
Subject: Re: [PHP] Create Email POP accounts with PHP


I am a newbie and can't tell you how to do it, but I know that the book
I am reading can!  Chapter 27 is titled "Building a Web-based Email
Service".  The Book is title "PHP and MySQL Web Development" and I like
it alot.  It was recommended on the mysql.com.

http://tangledweb.com.au/

-Dan




--- Julian <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I want to know how I can create email POP accounts from a script PHP.
>
>
> If somebody can help me, thank ahead of time!
>
> Regards! Julian
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/




[PHP] Re: Superglobals....

2002-03-23 Thread Jason Sheets

You might  remind  them that anything under PHP 4.1.2 has a security whole
that can be exploited remotely, my web host refused to upgrade until they
learned about the security implications of not doing so.

Jason

"David" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> Is there any way to emulate the super globals on PHP4.0.6.
> I've designed a system using $_GET, $_POST, etc, and I had it all running
> wonderfully, but I have been forced to change servers to some folks who do
> not seem to have an upgrade to 4.1.x in mind.
>
> What I would like to know is... is there away to make a variable global
> across all functions, like the $_* type vars? Without putting
>
> global $_SERVER, $_GET, $_POST, $_REQUEST, $_SESSION, $_COOKIE;
>
> at the top of each function.
>
> Thanks!
>
> David
>
>
> --
> ---
>
> WarpedWeb.Net
> http://www.warpedweb.net/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: this mailing list

2002-03-23 Thread Jason Sheets

Quite a few, there are 3641 messages in the php-general archive for between
02-01-02 and 03-01-02  this month there are already 3147 messages.  If you
are concerned about transfer you could use a news client and connect to
news.php.net, the news groups are interfaces to the mailing lists that way
you don't have to download messages you dont want to read.

"Liam" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How much data (in Kilobytes) would I receive on
> average per month from this list?
>
> cheers,
> Liam
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Form Validation Reg EX

2002-03-23 Thread John Fishworld

Hi

I'm just trying to validate an url !
Without tracing or confiming it I just want

www.whatever.max 4 letters

This is what I had but its wrong ! :-))

function check_url($str) {
if (ereg("w{3}.^[a-z0-9-]+(\.[a-z0-9-]+)*$", $str)) {
return 1;
} else {
return 0;
}
}

I just know that some RegEx guru will go of course it should be ...

thanks
john



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Version 4.2 changes

2002-03-23 Thread Gaylen Fraley

Where can I find the changes coming in 4.2?

--
Gaylen
PHP KISGB v4.0.2 Guest Book http://www.gaylenandmargie.com/phpwebsite/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Version 4.2 changes

2002-03-23 Thread Rasmus Lerdorf

In the NEWS and ChangeLog files in CVS.  See
http://cvs.php.net/cvs.php/php4/NEWS and pay attention to the branch name.

On Sat, 23 Mar 2002, Gaylen Fraley wrote:

> Where can I find the changes coming in 4.2?
>
> --
> Gaylen
> PHP KISGB v4.0.2 Guest Book http://www.gaylenandmargie.com/phpwebsite/
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Version 4.2 changes

2002-03-23 Thread Andrew Lopucki

On Saturday 23 March 2002 11:34 am, Gaylen Fraley wrote:
> Where can I find the changes coming in 4.2?

There is a 'NEWS' file in the download of the RCx.tgz.  You should download 
and extract it and read the top section which gives news on the 4.2 release.

And since you've already gone to the trouble of downloading it, you may as 
well build and provide the feedback for which the QA team asks ;)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] looking for tutorial on XML parsing of attributes...

2002-03-23 Thread J. Scott Johnson

If you use xml_parse_into_struct, it does split out the attributes into the
array it creates.

I tested this with the standard manual code, adding a single attribute to
the sample data i.e.

$simple = "simple note";
$p = xml_parser_create();
xml_parse_into_struct($p,$simple,$vals,$index);
xml_parser_free($p);
echo "Index array\n";
print_r($index);
echo "\nVals array\n";
print_r($vals);

I got back:

Index array Array ( [PARA] => Array ( [0] => 0 [1] => 2 ) [NOTE] => Array
( [0] => 1 ) ) Vals array Array ( [0] => Array ( [tag] => PARA [type] =>
open [level] => 1 ) [1] => Array ( [tag] => NOTE [type] => complete [level]
=> 2 [attributes] => Array ( [ATTRIB] => scott ) [value] => simple note )
[2] => Array ( [tag] => PARA [type] => close [level] => 1 ) )

There seems to be an attributes array which you can access (disclaimer - I
haven't done that yet).

http://www.php.net/manual/en/function.xml-parse-into-struct.php

Scott

Virtual:
* * * * * * * * * * * * * * * * * * * * * * * * * *
[EMAIL PROTECTED]
http://www.fuzzygroup.com/
Yahoo IM: fuzzygroup


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 3:43 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] looking for tutorial on XML parsing of attributes...


I'm no expert on the XML functions, but post your code and maybe we can
figure out what's wrong.


Erik



On Thursday, March 21, 2002, at 09:24  PM, Scott Brown wrote:

> Ok - first off, I've found a few... phpbuilder has a nice number of
> references.  But every one I've tried has ignored attributes... either
> that,
> or I dont understand what I'm doing.
>
> I retrieve from a distant server an XML response to an inquiry:
>
> 
> 
>   
> sometext
>   
>   
> 
>   sometext1
> 
>   
>   
> 
>   sometext2
> 
>   
>   
> 
>   sometext3
> 
>   
> 
>
> BUT... when I parse this using xml_parse, all I'm getting out is:
>
> Name = RESPONSE  -- Attributes = Array
> Name = STATUS  -- Attributes = Array
> Name = DESCRIPTION  -- Attributes = Array
> Name = DOMAIN  -- Attributes = Array
> Name = STATUS  -- Attributes = Array
> Name = DESCRIPTION  -- Attributes = Array
> Name = DOMAIN  -- Attributes = Array
> Name = STATUS  -- Attributes = Array
> Name = DESCRIPTION  -- Attributes = Array
> Name = DOMAIN  -- Attributes = Array
> Name = STATUS  -- Attributes = Array
> Name = DESCRIPTION  -- Attributes = Array
>
> I cant seem to nail down how to pull the actual attribute values
> does
> anyone know of a tutorial that's going to teach me how to pull those
> attributes of fqdn and code?  I've figured out how to get the
> DESCRIPTION...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>







Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] SafeArrays and Enumerations Doc Questions

2002-03-23 Thread Jason Lotito

In the ChangeLog 4.1.0
"Added support for single dimensional SafeArrays and Enumerations. Added an
is_enum() function to check if a component implements an enumeration. (Alan,
Harald) "

Does anyone know about this or know where I can find documentation on this?

I searched the manual, and frankly, the ChangeLog is the only placed
mentioned.

Thak you for your time.

Jason Lotito
A PHP Developer's Network Founder
www.devnetwork.net
www.newbienetwork.net


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Does anybody use UltraDev?

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



 Ultradev is cool for quick dev, but the code is really messy.
 Unles you're creating something basic, you'll most likely have to clean
 up the code.

 Other than that, it's an excellent tool. It cuts down the development
 time, help (tremendously) with the layout, and take out takes care of the
 HTML codes.

 If don't mind your code being a bit messy, then it's perfect. Otherwise,
 you'll need to do some minor adjustments.

 Overall:
 I'd recommend it.


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


On Sat, 23 Mar 2002, ::: rObEr2 ::: wrote:

> Hey!
>
> Does anybody use UltraDev for PHP?
> Any comments about it?
>
> (Personally I go for Visual PHP Studio)
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] DNS

2002-03-23 Thread Jason Wong

On Sunday 24 March 2002 07:26, Liam wrote:
> 23/03/2002 11:26:39 PM
>
> Hi, err, I realise this has nothing to do with PHP but...
>
> I am in desperate need of a backup DNS host.  I've scoured
> the internet and I can't find anyone who'll be my backup DNS.
> I'm willing to exchange the favour and be your backup DNS.
>
> If there's any place you know I can get this, please pipe up.

www.zoneedit.com


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
Conscience is what hurts when everything else feels so good.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Does anybody use UltraDev?

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



 PHAKT does support TABLE JOIN, but you have to edit the SQL statement (in
 Ultradev).

 To do this (in Ultradev), switch to 'Advance Mode' and modify your query.
 It should look something like:

 select table1.field1, table2.field2 from table1,table where
  table1.field1=table2.field2

*check the syntax.



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

On Fri, 22 Mar 2002, Dan Harrelson wrote:

> I do, and was just thinking of posing a similar question.  My question
> was specific to the PHAkt app server extension.  I've tried it out and
> think it's great, though limited.  For example, my simple project (my
> very first :) calls for inserts into 2 tables from a single form.
> Phakt doesn't support this.  Nor, do I believe, does it support joins
> for retrieval of data.
>
> http://www.interakt.ro/products/PHAkt/index.php
>
> Either way, I use Ultradev quite a bit and dig on it.
>
> -Dan
>
>
> --- "::: rObEr2 :::" <[EMAIL PROTECTED]> wrote:
> > Hey!
> >
> > Does anybody use UltraDev for PHP?
> > Any comments about it?
> >
> > (Personally I go for Visual PHP Studio)
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Create Email POP accounts with PHP

2002-03-23 Thread Jason Wong

On Saturday 23 March 2002 21:40, Julian wrote:
> Hey Dan!!!
>
> This book is for sale I can't buy it!
>
> Can any body explain me how I can to create email POP accounts whith PHP
> without using vpopmail

It would depend on what mail system you're using -- sendmail, qmail, postfix 
etc -- and any other 'add-ons' -- vpopmail, vmailmgr etc.



-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
That's odd.  That's very odd.  Wouldn't you say that's very odd?
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Include Error on PHP 4.1.2

2002-03-23 Thread Alberto Wagner

I can't include anything on my php scripts

Failed opening 'Pagina_Inicial.php' for inclusion (include_path='c:\php4\pear')

How to fix it?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Create Email POP accounts with PHP

2002-03-23 Thread Julian

Hi Jason!!!

Explain me how to do it with qmail and sendmail, plese.

Thank you! Julian

- Original Message -
From: Jason Wong
To: [EMAIL PROTECTED]
Sent: Saturday, March 23, 2002 4:00 PM
Subject: Re: [PHP] Create Email POP accounts with PHP


On Saturday 23 March 2002 21:40, Julian wrote:
> Hey Dan!!!
>
> This book is for sale I can't buy it!
>
> Can any body explain me how I can to create email POP accounts whith PHP
> without using vpopmail

It would depend on what mail system you're using -- sendmail, qmail, postfix
etc -- and any other 'add-ons' -- vpopmail, vmailmgr etc.



--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
That's odd.  That's very odd.  Wouldn't you say that's very odd?
*/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHPTriad error in Windows XP.

2002-03-23 Thread Peter Ruan

Hi,
  I installed PHPTriad under Windows XP and I keep getting this error:




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHPTriad Error in Windows XP.

2002-03-23 Thread Peter Ruan

Hi,
  I installed PHPTriad under Windows XP and I keep gettting the
following error:

Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in C:\apache\htdocs\phpmyadmin\lib.inc.php on line
255


It worked before under Windows ME.  WinMySQLadmin1.0 works fine as well
as MySQL when I ran it in the cmd-line mode.  What's the remedy?

Thanks in advance,
-Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Drawing graphs - opinions

2002-03-23 Thread David Ford

Take a look at jpgraph, it's on freshmeat.

David

Lee P Reilly wrote:

>Hi,
>
>I see there a number of PHP scripts/libraries out there for the purpose
>of graphing data. Which one is considered to be the best, most powerful
>/ easiest to use? I need to plot X/Y graphs for some data sets with
>vertical error margin lines going along the y-axis. Any recommendations?
>
>Cheers,
>
>Lee
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Caching problem...?

2002-03-23 Thread Adam Schlag

Hello, I'm having a problem with my Apache/PHP setup.  I create a PHP
page and test it in a browser, and the page loads and everything is
fine.  However, when I make a change to my PHP script and reload the
page to see my changes, the same output from PHP is given to me.  I have
to save the page as a new file and load the new file to see any
changes.  I've turned off caching in my browser (Mozilla) and I've even
closed the browser and reloaded it, and I get the same page.  The only
thing that works is restarting Apache.

I'm running Debian with the Debian packages for Apache (1.3.23) and PHP
(4.1.2).  I've tried looking at the configuration and I know there has
to be an easy answer, but I can't find it.  I've read the documentation
for both, and I've searched the web for answers, but I just don't know
what's going on here.  Any help someone could provide would be greatly
appreciated.  Thank-you.

Adam Schlag





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP Search Engine?

2002-03-23 Thread lmlweb

Hello,

I've picked up a book called the PHP Developer's Cookbook, specifically
for the search engine that was featured in it. It required the use of
PEAR's File/Find.php, which my host hasn't installed, ..and very likely
will not.

Is there another way of coming up with a search engine in PHP that
doesn't require the use of subscription services?

Laurie M. Landry
http://www.lmlweb.com
voicemail/fax: (604) 693-1120



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP Search Engine?

2002-03-23 Thread Rasmus Lerdorf

So just put that file in your own directory and use it from there.  It is
just a PHP script.

On Sat, 23 Mar 2002, lmlweb wrote:

> Hello,
>
> I've picked up a book called the PHP Developer's Cookbook, specifically
> for the search engine that was featured in it. It required the use of
> PEAR's File/Find.php, which my host hasn't installed, ..and very likely
> will not.
>
> Is there another way of coming up with a search engine in PHP that
> doesn't require the use of subscription services?
>
> Laurie M. Landry
> http://www.lmlweb.com
> voicemail/fax: (604) 693-1120
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Advice needed

2002-03-23 Thread Hugh Bothwell

Actually, it looks pretty straight-forward:

";
}

function add_price_point($num, $price) {
global $points, $prices;

// this saves us from div-by-0 and automatically
// discards invalid quantities
if ($num < 1)
return;

$per = $price / $num;

foreach($points as $val)
if ($val >= $num)
if (($prices[$val] == "none") or ($prices[$val] > $per))
$prices[$val] = $per;
}


init_prices();

add_price_point($Quantity1, $Price1);
add_price_point($Quantity2, $Price2);
add_price_point($Quantity3, $Price3);

show_prices();

?>


> q1 q2 q3 q5 q10 q15 q20 q25 q50 q100 q300 q500 q600 q10
> 0  0  0  0  .10 .10 .10 .10 .10 .10  .10  .10  .10  .10

Note that this is a messy and misleading way to do things:

1.  Having '0' as the price for un-valued quantities is dangerous, unless
you want to tell me that 4 or fewer items are free.  Note that in my code I
have replaced it with "none", which isn't much safer (it may get cast to 0)
but is a lot more obvious when debugging.

2.  What's with all these price points?  Surely it would be cleaner to keep
just the decision points in your database instead?

- what happens if you can get a cheaper price on 120 items (or on any
arbitrary number of items not in the list)?  Will you just defer it to the
next number of items (in my example, 300)?  Your customers might be
unhappy...



> Now the tricky part is $Quantity2 can either be blank or have a value
> and if $Quantity2 has a value then $Quantity3 can either be blank or have
a
> value

This is quite simply - let the function itself check whether it has been
passed a valid quantity - if not, return without doing anything.  Voila -
valid results and code that is easy to read.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] HELP!! New PHP not working

2002-03-23 Thread Christopher J. Crane

I just downloaded the new version of PHP. I installed it and I am using
Omnicron HTTPD server version 2.09. The PHP that came with the server works,
but when I installed the new version of PHP from PHP.NET, I got the
following error.

RE: [PHP] looking for tutorial on XML parsing of attributes...

2002-03-23 Thread Scott Brown

Thanks - using xml_parse_into_struct does make parsing the document much
easier... great suggestion.

What I've ended up with is:

// create parser
$xp = xml_parser_create();
xml_parse_into_struct($xp,$xml,$vals,$index);
xml_parser_free($xp);

$found_domain = 0;
$results = array();

for($ctr=0; $ctr\n";
echo "Return Desc   = " . $results[1] . "\n";
print_r($results);

which then gives me (for something similar to the XMLdoc below):

Return Status = 05
Return Desc   = Successfully added,eh?
Array
(
[0] => some-numeric-code1
[1] => sometext1
[2] =>
[3] =>
[4] =>
[5] => some-numeric-code2
[6] => sometext2
[7] =>
[8] =>
[9] =>
[10] => some-numeric-code3
[11] => sometext3
[12] =>
[13] =>
[14] =>
)

So I know that every grouping of 5 elements within the results array is
associated with a given domain.  (The two that are present are what I
want...what are the others - just remnants of the tree traversal??)

A little more fiddling, and I'll be able to pull it all apart as needed.
This will do me for now though...

But of course, my next question has to be isnt there an easier way to
extract elements from the XML document?



> -Original Message-
> From: J. Scott Johnson [mailto:[EMAIL PROTECTED]]
> Sent: March 23, 2002 12:19 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] looking for tutorial on XML parsing of
> attributes...
>
>
> If you use xml_parse_into_struct, it does split out the
> attributes into the
> array it creates.
>
> I tested this with the standard manual code, adding a single
> attribute to
> the sample data i.e.
>
> $simple = "simple note";
> $p = xml_parser_create();
> xml_parse_into_struct($p,$simple,$vals,$index);
> xml_parser_free($p);
> echo "Index array\n";
> print_r($index);
> echo "\nVals array\n";
> print_r($vals);
>
> I got back:
>
> Index array Array ( [PARA] => Array ( [0] => 0 [1] => 2 )
> [NOTE] => Array
> ( [0] => 1 ) ) Vals array Array ( [0] => Array ( [tag] =>
> PARA [type] =>
> open [level] => 1 ) [1] => Array ( [tag] => NOTE [type] =>
> complete [level]
> => 2 [attributes] => Array ( [ATTRIB] => scott ) [value] =>
> simple note )
> [2] => Array ( [tag] => PARA [type] => close [level] => 1 ) )
>
> There seems to be an attributes array which you can access
> (disclaimer - I
> haven't done that yet).
>
> http://www.php.net/manual/en/function.xml-parse-into-struct.php
>
> Scott
>
> Virtual:
> * * * * * * * * * * * * * * * * * * * * * * * * * *
> [EMAIL PROTECTED]
> http://www.fuzzygroup.com/
> Yahoo IM: fuzzygroup
>
>
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 3:43 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] looking for tutorial on XML parsing of
> attributes...
>
>
> I'm no expert on the XML functions, but post your code and
> maybe we can
> figure out what's wrong.
>
>
> Erik
>
>
>
> On Thursday, March 21, 2002, at 09:24  PM, Scott Brown wrote:
>
> > Ok - first off, I've found a few... phpbuilder has a nice number of
> > references.  But every one I've tried has ignored
> attributes... either
> > that,
> > or I dont understand what I'm doing.
> >
> > I retrieve from a distant server an XML response to an inquiry:
> >
> > 
> > 
> >   
> > sometext
> >   
> >   
> > 
> >   sometext1
> > 
> >   
> >   
> > 
> >   sometext2
> > 
> >   
> >   
> > 
> >   sometext3
> > 
> >   
> > 
> >
> > BUT... when I parse this using xml_parse, all I'm getting out is:
> >
> > Name = RESPONSE  -- Attributes = Array
> > Name = STATUS  -- Attributes = Array
> > Name = DESCRIPTION  -- Attributes = Array
> > Name = DOMAIN  -- Attributes = Array
> > Name = STATUS  -- Attributes = Array
> > Name = DESCRIPTION  -- Attributes = Array
> > Name = DOMAIN  -- Attributes = Array
> > Name = STATUS  -- Attributes = Array
> > Name = DESCRIPTION  -- Attributes = Array
> > Name = DOMAIN  -- Attributes = Array
> > Name = STATUS  -- Attributes = Array
> > Name = DESCRIPTION  -- Attributes = Array
> >
> > I cant seem to nail down how to pull the actual attribute values
> > does
> > anyone know of a tutorial that's going to teach me how to pull those
> > attributes of fqdn and code?  I've figured out how to get the
> > DESCRIPTION...
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
>
>
> 
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Image Manipulation/GD support

2002-03-23 Thread Navid Yar

Hello,

I just enabled GD support for PHP via the php.ini file. When I try to
run a script that uses the functions included in the library, it gives
me a dialog box asking me whether I want to save the php file to a
specific location or not. I don't need to save it, I need PHP to run it.
This is happening on two machines enabled with the gd library. I'm using
PHP 4.0.6, while my remote host machine is using 4.1.1. Do I need a more
current version of the GD library to run this script? Here is the
script:




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Image Manipulation/GD support

2002-03-23 Thread Rasmus Lerdorf

Try image/jpeg as your content-type

On Sat, 23 Mar 2002, Navid Yar wrote:

> Hello,
>
> I just enabled GD support for PHP via the php.ini file. When I try to
> run a script that uses the functions included in the library, it gives
> me a dialog box asking me whether I want to save the php file to a
> specific location or not. I don't need to save it, I need PHP to run it.
> This is happening on two machines enabled with the gd library. I'm using
> PHP 4.0.6, while my remote host machine is using 4.1.1. Do I need a more
> current version of the GD library to run this script? Here is the
> script:
>
> 
> $image = "images/pic.jpg";
>
> if (!$max_width)
>$max_width = 150;
> if (!max_height)
>$max_height= 150;
>
> $size = GetImageSize($image);
> $width = $size[0];
> $height = $size[1];
>
> $x_ratio = $max_width / $width;
> $y_ratio = $max_height / $height;
>
> if (($width <= $max_width) && ($height <= $max_height)) {
>$tn_width = $width;
>$tn_height = $height;
> }
> elseif (($x_ratio * $height) < $max_height) {
>$tn_height = ceil($x_ratio * $height);
>$tn_width = $max_width;
> }
> else {
>$tn_width = ceil($y_ratio * $width);
>$tn_height = $max_height;
> }
>
> $src = ImageCreateFromJpeg ($image);
> $dst = ImageCreate ($tn_width, $tn_height);
> ImageCopyResized ($dst, $src, 0, 0, 0, 0, $tn_width, $tn_height, $width,
> $height);
> header ("Content-type: image/jpg");
> ImageJpeg ($dst, null, -1);
> ImageDestroy ($src);
> ImageDestroy ($dst);
>
> ?>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Image Manipulation/GD support

2002-03-23 Thread Navid Yar

Rasmus, thanks so much! It's executing. I've run into another problem
with this script, but I'll try to figure this one out as best I can
first before posting it. Thanks again!  :)

-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, March 23, 2002 4:41 PM
To: Navid Yar
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Image Manipulation/GD support

Try image/jpeg as your content-type

On Sat, 23 Mar 2002, Navid Yar wrote:

> Hello,
>
> I just enabled GD support for PHP via the php.ini file. When I try to
> run a script that uses the functions included in the library, it gives
> me a dialog box asking me whether I want to save the php file to a
> specific location or not. I don't need to save it, I need PHP to run
it.
> This is happening on two machines enabled with the gd library. I'm
using
> PHP 4.0.6, while my remote host machine is using 4.1.1. Do I need a
more
> current version of the GD library to run this script? Here is the
> script:
>
> 
> $image = "images/pic.jpg";
>
> if (!$max_width)
>$max_width = 150;
> if (!max_height)
>$max_height= 150;
>
> $size = GetImageSize($image);
> $width = $size[0];
> $height = $size[1];
>
> $x_ratio = $max_width / $width;
> $y_ratio = $max_height / $height;
>
> if (($width <= $max_width) && ($height <= $max_height)) {
>$tn_width = $width;
>$tn_height = $height;
> }
> elseif (($x_ratio * $height) < $max_height) {
>$tn_height = ceil($x_ratio * $height);
>$tn_width = $max_width;
> }
> else {
>$tn_width = ceil($y_ratio * $width);
>$tn_height = $max_height;
> }
>
> $src = ImageCreateFromJpeg ($image);
> $dst = ImageCreate ($tn_width, $tn_height);
> ImageCopyResized ($dst, $src, 0, 0, 0, 0, $tn_width, $tn_height,
$width,
> $height);
> header ("Content-type: image/jpg");
> ImageJpeg ($dst, null, -1);
> ImageDestroy ($src);
> ImageDestroy ($dst);
>
> ?>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Select then update

2002-03-23 Thread Jen Downey

Hi all!

Just wondering, If I have a query like:

$query = "SELECT name FROM users";
$ret = mysql_query($query);
while(list($name) = mysql_fetch_row($ret)) or die("Error: ".mysql_error());
print ("your name is $name);

$query_update ["name"] = ("UPDATE my_other_table set name = $name");
$result = mysql_query($query_update["name"]);
or die("Error: ".mysql_error());

Why wont this work?

I am trying to select the user name from the user table and then update
another table with that user name. But it doesn't seem to want to update the
other table

I get no errors when running the script.

Thanks in advance
Jennifer Downey



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Select then update

2002-03-23 Thread Alberto Wagner

You need to put {} in the while function like this

while {
do this
}


$query = "SELECT name FROM users";
$ret = mysql_query($query);
while(list($name) = mysql_fetch_row($ret)) or die("Error: ".mysql_error()) {
print ("your name is $name);

$query_update["name"] = ("UPDATE my_other_table set name = $name");
$result = mysql_query($query_update["name"]);
or die("Error: ".mysql_error());
};


23/03/2002 20:58:14, "Jen Downey" <[EMAIL PROTECTED]> wrote:

>Hi all!
>
>Just wondering, If I have a query like:
>
>$query = "SELECT name FROM users";
>$ret = mysql_query($query);
>while(list($name) = mysql_fetch_row($ret)) or die("Error: ".mysql_error());
>print ("your name is $name);
>
>$query_update ["name"] = ("UPDATE my_other_table set name = $name");
>$result = mysql_query($query_update["name"]);
>or die("Error: ".mysql_error());
>
>Why wont this work?
>
>I am trying to select the user name from the user table and then update
>another table with that user name. But it doesn't seem to want to update the
>other table
>
>I get no errors when running the script.
>
>Thanks in advance
>Jennifer Downey
>
>
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



 End of forwarded message 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Trap CR or "Enter" possible?

2002-03-23 Thread Miguel Cruz

On Fri, 22 Mar 2002, Erik Price wrote:
> I have noticed that pressing enter in IE does achieve the same effect as 
> pressing the "submit" button for my forms.  But I have also heard that 
> it's not really "the same", especially if there are more than one 
> "submit"-style inputs for the given form.  What does Enter "really" do 
> in IE?

To be safe, I usually include a hidden variable with a unique name in the 
form (). That way, no 
matter what browsers do about the Enter key, I still know what's going on.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Russian encoding problems

2002-03-23 Thread Lauri Vain

Hello, 

I have some problems related to a site in Russian (I don't speak Russian
myself, so I can't consult tutorials in Russian). 

The encoding, passed via HTML, is koi8-r. Then the form will be
submitted and PHP will send out an e-mail with the encoding koi8-r. 

Everything seems to work fine now, but there are problems with data from
the <.SELECT> boxes. 

The e-mail response. Comments marked with "//": 
 START 
Kliendi info: 
   Nimi: óÉÍÂÅÒÇ íÁÒÉÎÁ 
   Telefon: óÉÍÂÅÒÇ íÁÒÉÎÁ 
   E-post: simberg@.com 

Päring: 
   Kategooria: òóð  // should be "ÔÕÒ"
   Sihtpunkt: óÉÍÂÅÒÇ íÁÒÉÎÁ 
   Lähtepunkt: ðÞÊÊÕÌÌ  // should be "ôÁÌÌÉÎÎ"
   Kuupäevad: óÉÍÂÅÒÇ íÁÒÉÎÁ 
   Lisatingimused: óÉÍÂÅÒÇ íÁÒÉÎÁ
 END **

The form itself lies at http://www.sputnik.ee/new/vorm_4_rus.php 

Thanks,
Lauri
--
Tharapita Creations
[dynamic web applications]
[EMAIL PROTECTED]
Mobile: +372 53 410 610 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




php-general Digest 24 Mar 2002 00:13:09 -0000 Issue 1244

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


php-general Digest 24 Mar 2002 00:13:09 - Issue 1244

Topics (messages 89831 through 89865):

Superglobals
89831 by: David
89836 by: Jason Sheets

DNS
89832 by: Liam
89845 by: Jason Wong

Web Hosting control panel ported to freebsd
89833 by: Charles Williams

Development tools
89834 by: Morten Nielsen

Create Email POP accounts with PHP
89835 by: Julian
89847 by: Jason Wong
89849 by: Julian

Re: this mailing list
89837 by: Jason Sheets

Form Validation Reg EX
89838 by: John Fishworld

Version 4.2 changes
89839 by: Gaylen Fraley
89840 by: Rasmus Lerdorf
89841 by: Andrew Lopucki

Re: looking for tutorial on XML parsing of attributes...
89842 by: J. Scott Johnson
89858 by: Scott Brown

SafeArrays and Enumerations Doc Questions
89843 by: Jason Lotito

Re: Does anybody use UltraDev?
89844 by: [-^-!-%-
89846 by: [-^-!-%-

Include Error on PHP 4.1.2
89848 by: Alberto Wagner

PHPTriad error in Windows XP.
89850 by: Peter Ruan
89851 by: Peter Ruan

Re: Drawing graphs - opinions
89852 by: David Ford

Caching problem...?
89853 by: Adam Schlag

PHP Search Engine?
89854 by: lmlweb
89855 by: Rasmus Lerdorf

Re: Advice needed
89856 by: Hugh Bothwell

HELP!! New PHP not working
89857 by: Christopher J. Crane

Image Manipulation/GD support
89859 by: Navid Yar
89860 by: Rasmus Lerdorf
89861 by: Navid Yar

Select then update
89862 by: Jen Downey
89863 by: Alberto Wagner

Re: Trap CR or "Enter" possible?
89864 by: Miguel Cruz

Russian encoding problems
89865 by: Lauri Vain

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

Hi,
Is there any way to emulate the super globals on PHP4.0.6.
I've designed a system using $_GET, $_POST, etc, and I had it all running 
wonderfully, but I have been forced to change servers to some folks who do 
not seem to have an upgrade to 4.1.x in mind.

What I would like to know is... is there away to make a variable global 
across all functions, like the $_* type vars? Without putting 

global $_SERVER, $_GET, $_POST, $_REQUEST, $_SESSION, $_COOKIE;

at the top of each function.

Thanks!

David


-- 
---

WarpedWeb.Net
http://www.warpedweb.net/

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

You might  remind  them that anything under PHP 4.1.2 has a security whole
that can be exploited remotely, my web host refused to upgrade until they
learned about the security implications of not doing so.

Jason

"David" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> Is there any way to emulate the super globals on PHP4.0.6.
> I've designed a system using $_GET, $_POST, etc, and I had it all running
> wonderfully, but I have been forced to change servers to some folks who do
> not seem to have an upgrade to 4.1.x in mind.
>
> What I would like to know is... is there away to make a variable global
> across all functions, like the $_* type vars? Without putting
>
> global $_SERVER, $_GET, $_POST, $_REQUEST, $_SESSION, $_COOKIE;
>
> at the top of each function.
>
> Thanks!
>
> David
>
>
> --
> ---
>
> WarpedWeb.Net
> http://www.warpedweb.net/



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

23/03/2002 11:26:39 PM

Hi, err, I realise this has nothing to do with PHP but...

I am in desperate need of a backup DNS host.  I've scoured 
the internet and I can't find anyone who'll be my backup DNS.
I'm willing to exchange the favour and be your backup DNS.

If there's any place you know I can get this, please pipe up.

Thanks,
Liam



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

On Sunday 24 March 2002 07:26, Liam wrote:
> 23/03/2002 11:26:39 PM
>
> Hi, err, I realise this has nothing to do with PHP but...
>
> I am in desperate need of a backup DNS host.  I've scoured
> the internet and I can't find anyone who'll be my backup DNS.
> I'm willing to exchange the favour and be your backup DNS.
>
> If there's any place you know I can get this, please pipe up.

www.zoneedit.com


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
Conscience is what hurts when everything else feels so good.
*/

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

yep,

finally got it working.  original linux based web hosting control panel,
written in PHP, now works under freebsd 4.3 (tested), and should work on 4.4
as well.

If interested in testing on a FreeBSD system just let me know, off list, at
[EMAIL PROTECTED]  I would like to get this compatible with just
about any other FreeBSD release.

thanks,
chuck


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

Hi,
Does anyone know of

[PHP] PHP Developer's Cookbook, Second Edition

2002-03-23 Thread Craig Westerman

Is the second edition much different from the 1st? If one has 1st Edition,
is it worth $39.95 to get the second?

Thanks

Craig ><>
[EMAIL PROTECTED]



[PHP] Still REG EX

2002-03-23 Thread John Fishworld

I'm still playing about trying to validate an url
www(dot)something(dot)something !

I thought this would work but know

if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str))

can anyone explain why not ???

^(w{3}) = three w at start of string ??

(\\.) = literal dot ??

([a-zA-Z]+) match any word with letters ??

(\\.) = literal dot ??

([a-z]{2,4})$ = at least 2 leters eg de but upto 4 eg info

but it doesn't !

thanks in advance
john





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Still REG EX

2002-03-23 Thread Miguel Cruz

On Sun, 24 Mar 2002, John Fishworld wrote:
> I'm still playing about trying to validate an url
> www(dot)something(dot)something !
> 
> I thought this would work but know
> 
> if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str))

First of all, web server hostnames don't need to start with www. Secondly, 
they can have any number of components (separated by periods) from 1 to 
dozens. Thirdly, the last term doesn't have to be 4 characters or less.

> ([a-z]{2,4})$ = at least 2 leters eg de but upto 4 eg info

.museum...

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Still REG EX

2002-03-23 Thread John Fishworld

Okay good point but still why doesn't it work ?

thanks
john


> On Sun, 24 Mar 2002, John Fishworld wrote:
> > I'm still playing about trying to validate an url
> > www(dot)something(dot)something !
> >
> > I thought this would work but know
> >
> > if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str))
>
> First of all, web server hostnames don't need to start with www. Secondly,
> they can have any number of components (separated by periods) from 1 to
> dozens. Thirdly, the last term doesn't have to be 4 characters or less.
>
> > ([a-z]{2,4})$ = at least 2 leters eg de but upto 4 eg info
>
> .museum...
>
> miguel
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Adding Text Input in a SELECT drop-down list

2002-03-23 Thread Andre Dubuc

I have written, in an html form, a drop-downlist that uses :

i.e. 
State
AL
AZ
// and so on

I would like a text input as the last option so that a user can type in a 
state (non-USA) and have this variable passed on. Is there any way of 
accomplishing this using html or php?

Any help would be greatly appreciated,
Tia,
Andre

-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the suffering souls in Purgatory.

May God bless you abundantly in His love!

For a free Cenacle Scriptural Rosary Booklet -- http://www.webhart.net/csrb/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Adding Text Input in a SELECT drop-down list

2002-03-23 Thread Miguel Cruz

On Sat, 23 Mar 2002, Andre Dubuc wrote:
> I have written, in an html form, a drop-downlist that uses :
> 
>   i.e. 
>   State
>   AL
>   AZ
>   // and so on
> 
> I would like a text input as the last option so that a user can type in a 
> state (non-USA) and have this variable passed on. Is there any way of 
> accomplishing this using html or php?

It's not possible. You'll have to put a separate text input field next to 
it.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Adding Text Input in a SELECT drop-down list

2002-03-23 Thread Andre Dubuc



On Saturday 23 March 2002 19:45, you wrote:
> On Sat, 23 Mar 2002, Andre Dubuc wrote:
> > I have written, in an html form, a drop-downlist that uses :
> >
> > i.e. 
> > State
> > AL
> > AZ
> > // and so on
> >
> > I would like a text input as the last option so that a user can type in a
> > state (non-USA) and have this variable passed on. Is there any way of
> > accomplishing this using html or php?
>
> It's not possible. You'll have to put a separate text input field next to
> it.
>
> miguel
\
Thanks Miguel.

Too bad, since a few sites seem to have that capability. Oh well . . 

Regards, 
Andre
-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the suffering souls in Purgatory.

May God bless you abundantly in His love!

For a free Cenacle Scriptural Rosary Booklet -- http://www.webhart.net/csrb/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Double quotes in form fields and submitting them

2002-03-23 Thread Miguel Cruz

On Fri, 22 Mar 2002, webapprentice wrote:
> I have a form with a text field, say userName.
> I put a value in that has double quotes (i.e. "foobar") and submit this form.
> 
> On output I have this:
> 
> 
> The output ends up being a \.

The quotes go away, or they just get a backslash before them? If the 
latter, try 

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP Developer's Cookbook, Second Edition

2002-03-23 Thread Thalis A. Kalfigopoulos

Don't have 1st, but 2nd looks pretty good. It functions both as a manual and as a 
reference and most of the recipes have pieces that I'd say correspond to real life 
problems.

not much help I guess :-)

cheers,
--t.


On Sat, 23 Mar 2002, Craig Westerman wrote:

> Is the second edition much different from the 1st? If one has 1st Edition,
> is it worth $39.95 to get the second?
> 
> Thanks
> 
> Craig ><>
> [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Adding Text Input in a SELECT drop-down list

2002-03-23 Thread Justin French

If you've seen it on other sites (I can't see how, since there's no
support for it in the HTML spec), then why not just look at the source?


> Too bad, since a few sites seem to have that capability. Oh well . .
> 
> Regards,
> Andre
> --

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Still REG EX

2002-03-23 Thread Miguel Cruz

On Sun, 24 Mar 2002, John Fishworld wrote:
>> On Sun, 24 Mar 2002, John Fishworld wrote:
>>> I'm still playing about trying to validate an url
>>> www(dot)something(dot)something !
>>>
>>> I thought this would work but know
>>>
>>> if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str))
>>
>> First of all, web server hostnames don't need to start with www. Secondly,
>> they can have any number of components (separated by periods) from 1 to
>> dozens. Thirdly, the last term doesn't have to be 4 characters or less.
>>
>>> ([a-z]{2,4})$ = at least 2 leters eg de but upto 4 eg info
>>
>> .museum...
>
> Okay good point but still why doesn't it work ?

Seems to work for me, given your questionable intentions. What happens 
when you try it?

I just thought of one more problem. Domain name components can also
contain numbers and hyphens.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Adding Text Input in a SELECT drop-down list

2002-03-23 Thread Senih

JavaScript is there to do that.
Senih

> I have written, in an html form, a drop-downlist that uses :
>
> i.e. 
> State
> AL
> AZ
>  // and so on
>
> I would like a text input as the last option so that a user can type in a
> state (non-USA) and have this variable passed on. Is there any way of
> accomplishing this using html or php?
>
> Any help would be greatly appreciated,
> Tia,
> Andre
>
> --
> Please pray the Holy Rosary to end the holocaust of abortion.
> Remember in your prayers the suffering souls in Purgatory.
>
> May God bless you abundantly in His love!
>
> For a free Cenacle Scriptural Rosary Booklet --
http://www.webhart.net/csrb/
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Double quotes in form fields and submitting them

2002-03-23 Thread webapprentice

Hi,
"foobar" becomes simply \

I've lost foobar AND the double quotes.  Is there a way to keep them all?

--Stephen

- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "webapprentice" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 7:49 PM
Subject: Re: [PHP] Double quotes in form fields and submitting them


> On Fri, 22 Mar 2002, webapprentice wrote:
> > I have a form with a text field, say userName.
> > I put a value in that has double quotes (i.e. "foobar") and submit this
form.
> >
> > On output I have this:
> > 
> >
> > The output ends up being a \.
>
> The quotes go away, or they just get a backslash before them? If the
> latter, try 
>
> miguel
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Double quotes in form fields and submitting them

2002-03-23 Thread Miguel Cruz

That's a little odd; something else must be going on. Can you provide some 
more code, and, preferably, a pointer to a live example?

miguel

On Sat, 23 Mar 2002, webapprentice wrote:

> Hi,
> "foobar" becomes simply \
> 
> I've lost foobar AND the double quotes.  Is there a way to keep them all?
> 
> --Stephen
> 
> - Original Message -
> From: "Miguel Cruz" <[EMAIL PROTECTED]>
> To: "webapprentice" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Saturday, March 23, 2002 7:49 PM
> Subject: Re: [PHP] Double quotes in form fields and submitting them
> 
> 
> > On Fri, 22 Mar 2002, webapprentice wrote:
> > > I have a form with a text field, say userName.
> > > I put a value in that has double quotes (i.e. "foobar") and submit this
> form.
> > >
> > > On output I have this:
> > > 
> > >
> > > The output ends up being a \.
> >
> > The quotes go away, or they just get a backslash before them? If the
> > latter, try 
> >
> > miguel
> >
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Adding Text Input in a SELECT drop-down list

2002-03-23 Thread Andre Dubuc

On Saturday 23 March 2002 19:57, you wrote:
> If you've seen it on other sites (I can't see how, since there's no
> support for it in the HTML spec), then why not just look at the source?
>
> > Too bad, since a few sites seem to have that capability. Oh well . .
> >
> > Regards,
> > Andre
> > --

Unfortunately, my bookmarks were lost when I re-installed. It was a major 
site, and I don't remember which one. Oh well, I'll keep looking . . .

Thanks,
Andre
-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the suffering souls in Purgatory.

May God bless you abundantly in His love!

For a free Cenacle Scriptural Rosary Booklet -- http://www.webhart.net/csrb/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] The infamous HTML quotes Re: [PHP] Double quotes in form fields and submitting them

2002-03-23 Thread webapprentice

Sorry Miguel, it's the HTML entities nonsense again.
It displayed as \ on my browser, but the HTML source code indicated
otherwise.

Thus, if I entered "foobar", it shows up as \ but the HTML source shows.



So value="\" was the culprit, so you're original solution was in the right
direction.  stripslashes() itself wouldn't work because the HTML source
would be value=""foobar"" and on in HTML, only the first two double quotes
count.

The solution was this, which apparently has been discussed many times
before.

stripslashes(htmlentities($HTTP_POST_VARS["realName"]));
or
stripslashes(htmlspecialcharacters($HTTP_POST_VARS["realName"]));

Thanks for your help in leading me to the right direction.


- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "webapprentice" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 8:03 PM
Subject: Re: [PHP] Double quotes in form fields and submitting them


> That's a little odd; something else must be going on. Can you provide some
> more code, and, preferably, a pointer to a live example?
>
> miguel
>
> On Sat, 23 Mar 2002, webapprentice wrote:
>
> > Hi,
> > "foobar" becomes simply \
> >
> > I've lost foobar AND the double quotes.  Is there a way to keep them
all?
> >
> > --Stephen
> >
> > - Original Message -
> > From: "Miguel Cruz" <[EMAIL PROTECTED]>
> > To: "webapprentice" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Saturday, March 23, 2002 7:49 PM
> > Subject: Re: [PHP] Double quotes in form fields and submitting them
> >
> >
> > > On Fri, 22 Mar 2002, webapprentice wrote:
> > > > I have a form with a text field, say userName.
> > > > I put a value in that has double quotes (i.e. "foobar") and submit
this
> > form.
> > > >
> > > > On output I have this:
> > > > 
> > > >
> > > > The output ends up being a \.
> > >
> > > The quotes go away, or they just get a backslash before them? If the
> > > latter, try 
> > >
> > > miguel
> > >
> >
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP Developer's Cookbook, Second Edition

2002-03-23 Thread Egon Schmid

From: "Craig Westerman" <[EMAIL PROTECTED]>

> Is the second edition much different from the 1st? If one has 1st
Edition,
> is it worth $39.95 to get the second?

I hope so. Sterling got a list of  errors from two German
translators for his 1st edition. Sterling haven´t said a word about
the second edition during his trip to Germany. You can see him at
http://www.php-ev.de/documents/phpdoc/protocol.html.

-Egon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Using EditPlus with PHP

2002-03-23 Thread Luca Grossi

 I'm sorry if this question has been asked before
but could anyone give me instructions on how to debug and interpret php
scripts using Edit Plus ? I download the php modules for edit plus so
it recognise the syntax. But how do I setup the user tools , so I can check
for bugs in the script and run it

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] shell_exec() or passthru()

2002-03-23 Thread Douglas

Hi,

I have a bash script I need to run.
I have tried all the various program execution commands.

My script never completes. It only get 1/4 of the way through.
I have tried running the script in the background.

Any ideas?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Create Email POP accounts with PHP

2002-03-23 Thread Jason Wong

On Sunday 24 March 2002 03:52, Julian wrote:
> Hi Jason!!!
>
> Explain me how to do it with qmail and sendmail, plese.

How do you usually do it? ie from the command line?

Use php to execute whatever you usually execute from the command line using 
the functions in "Program Execution functions".

You'll most likely run into permissions problem.

For example, if you're using a bog standard qmail install (with no vpopmail 
or vmailmgr) then all your mail accounts are system user accounts. And to add 
system user accounts you need to be root.

It would probably help if you told us what exactly you're trying to do.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
I generally avoid temptation unless I can't resist it.
-- Mae West
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Still REG EX

2002-03-23 Thread Jim Lucas [php]

what are you trying to do?

Jim Lucas
www.bend.com

- Original Message - 
From: "John Fishworld" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 4:33 PM
Subject: [PHP] Still REG EX


> I'm still playing about trying to validate an url
> www(dot)something(dot)something !
> 
> I thought this would work but know
> 
> if (ereg("^(w{3})(\\.)([a-zA-Z]+)(\\.)([a-z]{2,4})$", $str))
> 
> can anyone explain why not ???
> 
> ^(w{3}) = three w at start of string ??
> 
> (\\.) = literal dot ??
> 
> ([a-zA-Z]+) match any word with letters ??
> 
> (\\.) = literal dot ??
> 
> ([a-z]{2,4})$ = at least 2 leters eg de but upto 4 eg info
> 
> but it doesn't !
> 
> thanks in advance
> john
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins

I'm doing a simple database connection using the follow syntax:



  Book-O-Rama Search Results


Book-O-Rama Search Results
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Rasmus Lerdorf

Figure out where your mysql.sock file is and provide the path right in
your mysql_connect() call.  "mysqladmin version" tells you the path.

-Rasmus

On Sat, 23 Mar 2002, Jim Hankins wrote:

> I'm doing a simple database connection using the follow syntax:
>
> 
> 
>   Book-O-Rama Search Results
> 
> 
> Book-O-Rama Search Results
>if (!$searchtype || !$searchterm)
>   {
>  echo "You have not entered search details.  Please go back and try
> again.";
>  exit;
>   }
>
>   $searchtype = addslashes($searchtype);
>   $searchterm = addslashes($searchterm);
>
>   @ $db = mysql_pconnect("localhost", "bookorama", "bookorama123");
>
>   if (!$db)
>   {
>  echo "Error: Could not connect to database.  Please try again later.";
>  exit;
>   }
>
> When I go to the search page and hit submit  (after removing the @ to see an
> error on the mysql_pconnect line)
> I get Warning: Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (2) in /home/jhankins/public_html/mydirectory/results.php
> on line 17
>
> I can telnet to the host and with the same username and password access the
> database tables etc.  What gives?  I'm using
> 4.0.6 of PHP and apache under Redhat Linux 7.2.  Mysql is working fine from
> command line and remote via odbc?
>
> Also tryed mysql_connect with same problem.
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: assert in php.ini setting.

2002-03-23 Thread CC Zona

In article ,
 [EMAIL PROTECTED] (S.Murali Krishna) wrote:

> can any one tell me what is this 
> 
> ;assert.active= On  ; assert(expr); active by default
> ;assert.warning   = On  ; issue a PHP warning for each failed
> ;assert.bail= Off ; don't bail out by default.
> ;assert.callback  = 0 ; user-function to be called if an assertion
> ;assert.quiet_eval  = 0 ; eval the expression with current
> 
> 
> setting in my php.ini file, I don't know what it is for, and it has been
> commented. 




-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Image Manipulation/GD support

2002-03-23 Thread Michael A. Peters

On the topic of gd support but a slightly different topic-

I was using php 4.0.5

gd 1.8.3 patched for gif support (using libungif for libgif which I
*think* is OK)
FreeType 1.3.1 (compiled myself in /usr/local )
t1lib 1.3.1 (compiled myself in /usr/local )

I was using gd to draw pictures and write text on them with ttf fonts.
I saw there were some new image functions in >= 4.0.6 so I grabbed the
latest php

I use a script to compile php
same compile options, but t1lib gave a ptoblem because instead of looking
in /usr/local/lib it tried to find the library in /usr/lib/.libs

the configure option id --with-t1lib=/usr/local

cd /usr/lib
ln -s /usr/local/lib .libs

took care of that but I really don't want to do that.
Anyway, my big problem is with freetype.

compiled
I could draw and open images, but could not write ttf fonts on them.

reading the ./configure -h I see that they CHANGED what the configure
options mean.
now --with-freetype=dir refers to freetype 2

Personally I think its insane to change the meaning of a configure option,
but OK.
So I downloaded FreeType 2 and compiled it and installed in /usr/local

recompiled php

Still can't use ttf to write on images.

phpinfo() says I have FreeType linkage.
But both ImageFtText and ImageTTFText fail to do anything.

What is up with that?

Perl is losing popularity because every time it updates scripts frequently
need some rewriting (that and cpan will grab the latest module and then
try to grab a newer perl instead of grabbing the module that works with
the installed perl- g)
Hopefully php isn't going that route.

Is this just a bug or has there been a major change?
I'm going to have to find myself trying php 4.0.6 and possibly reverting
back to 4.0.5 if I can't get this resolved.

My compile options are here- http://macaddict4life.dhs.org/info.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins

Can you give me a syntax example.  I've found my sock file but seem to be
having trouble getting it right on the mysql_pconnect line,

my sock is /var/lib/mysql/mysql.sock

Thanks in advance!

So close but yet so far. :)  My first MySql project.

"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Figure out where your mysql.sock file is and provide the path right in
> your mysql_connect() call.  "mysqladmin version" tells you the path.
>
> -Rasmus
>
> On Sat, 23 Mar 2002, Jim Hankins wrote:
>
> > I'm doing a simple database connection using the follow syntax:
> >
> > 
> > 
> >   Book-O-Rama Search Results
> > 
> > 
> > Book-O-Rama Search Results
> >  >   if (!$searchtype || !$searchterm)
> >   {
> >  echo "You have not entered search details.  Please go back and try
> > again.";
> >  exit;
> >   }
> >
> >   $searchtype = addslashes($searchtype);
> >   $searchterm = addslashes($searchterm);
> >
> >   @ $db = mysql_pconnect("localhost", "bookorama", "bookorama123");
> >
> >   if (!$db)
> >   {
> >  echo "Error: Could not connect to database.  Please try again
later.";
> >  exit;
> >   }
> >
> > When I go to the search page and hit submit  (after removing the @ to
see an
> > error on the mysql_pconnect line)
> > I get Warning: Can't connect to local MySQL server through socket
> > '/tmp/mysql.sock' (2) in
/home/jhankins/public_html/mydirectory/results.php
> > on line 17
> >
> > I can telnet to the host and with the same username and password access
the
> > database tables etc.  What gives?  I'm using
> > 4.0.6 of PHP and apache under Redhat Linux 7.2.  Mysql is working fine
from
> > command line and remote via odbc?
> >
> > Also tryed mysql_connect with same problem.
> >
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] shell_exec() or passthru()

2002-03-23 Thread Douglas

Hi,

I have a bash script I need to run.
I have tried all the various program execution commands.

My script never completes. It only get 1/4 of the way through.
I have tried running the script in the background.

Any ideas?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Image Manipulation/GD support

2002-03-23 Thread Rasmus Lerdorf

> reading the ./configure -h I see that they CHANGED what the configure
> options mean.
> now --with-freetype=dir refers to freetype 2

Untrue, it only refers to freetype2 when you are building against GD2.

> phpinfo() says I have FreeType linkage.
> But both ImageFtText and ImageTTFText fail to do anything.
>
> What is up with that?
>
> Perl is losing popularity because every time it updates scripts frequently
> need some rewriting (that and cpan will grab the latest module and then
> try to grab a newer perl instead of grabbing the module that works with
> the installed perl- g)
> Hopefully php isn't going that route.
>
> Is this just a bug or has there been a major change?
> I'm going to have to find myself trying php 4.0.6 and possibly reverting
> back to 4.0.5 if I can't get this resolved.

Works just fine for me.  Play with your config.log and see what is
failing.  I use gd2 these days because the 8-bit limitation of gd1 just
sucks.  You can find my simple gd2 instructions here
http://www.php.net/~rasmus/gd.html

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] shell_exec() or passthru()

2002-03-23 Thread Andrew Lopucki

You may need to redirect output (both stderr and stdout) atleast that helped 
me with a similar problem.  My system is Linux.


On Saturday 23 March 2002 11:06 pm, Douglas wrote:
> Hi,
>
> I have a bash script I need to run.
> I have tried all the various program execution commands.
>
> My script never completes. It only get 1/4 of the way through.
> I have tried running the script in the background.
>
> Any ideas?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] shell_exec() or passthru()

2002-03-23 Thread Andrew Lopucki

And by redirect I mean to /dev/null possibly if you don't want to capture 
output.

On Saturday 23 March 2002 03:52 pm, Douglas wrote:
> Hi,
>
> I have a bash script I need to run.
> I have tried all the various program execution commands.
>
> My script never completes. It only get 1/4 of the way through.
> I have tried running the script in the background.
>
> Any ideas?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins

never mind got it "localhost:/pathto/mysql.sock"  duh?  :)  Thanks a
million, I'm up and running.
- Original Message -
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Jim Hankins" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 10:50 PM
Subject: Re: [PHP] Trouble with mysql_pconnect unable to connect to
database?


> Figure out where your mysql.sock file is and provide the path right in
> your mysql_connect() call.  "mysqladmin version" tells you the path.
>
> -Rasmus
>
> On Sat, 23 Mar 2002, Jim Hankins wrote:
>
> > I'm doing a simple database connection using the follow syntax:
> >
> > 
> > 
> >   Book-O-Rama Search Results
> > 
> > 
> > Book-O-Rama Search Results
> >  >   if (!$searchtype || !$searchterm)
> >   {
> >  echo "You have not entered search details.  Please go back and try
> > again.";
> >  exit;
> >   }
> >
> >   $searchtype = addslashes($searchtype);
> >   $searchterm = addslashes($searchterm);
> >
> >   @ $db = mysql_pconnect("localhost", "bookorama", "bookorama123");
> >
> >   if (!$db)
> >   {
> >  echo "Error: Could not connect to database.  Please try again
later.";
> >  exit;
> >   }
> >
> > When I go to the search page and hit submit  (after removing the @ to
see an
> > error on the mysql_pconnect line)
> > I get Warning: Can't connect to local MySQL server through socket
> > '/tmp/mysql.sock' (2) in
/home/jhankins/public_html/mydirectory/results.php
> > on line 17
> >
> > I can telnet to the host and with the same username and password access
the
> > database tables etc.  What gives?  I'm using
> > 4.0.6 of PHP and apache under Redhat Linux 7.2.  Mysql is working fine
from
> > command line and remote via odbc?
> >
> > Also tryed mysql_connect with same problem.
> >
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Gerard Samuel

Is that supposed to be ->
$db = @mysql_pconnect("localhost", "bookorama", "bookorama123");

Jim Hankins wrote:
> I'm doing a simple database connection using the follow syntax:
> 
> 
> 
>   Book-O-Rama Search Results
> 
> 
> Book-O-Rama Search Results
>if (!$searchtype || !$searchterm)
>   {
>  echo "You have not entered search details.  Please go back and try
> again.";
>  exit;
>   }
> 
>   $searchtype = addslashes($searchtype);
>   $searchterm = addslashes($searchterm);
> 
>   @ $db = mysql_pconnect("localhost", "bookorama", "bookorama123");
> 
>   if (!$db)
>   {
>  echo "Error: Could not connect to database.  Please try again later.";
>  exit;
>   }
> 
> When I go to the search page and hit submit  (after removing the @ to see an
> error on the mysql_pconnect line)
> I get Warning: Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (2) in /home/jhankins/public_html/mydirectory/results.php
> on line 17
> 
> I can telnet to the host and with the same username and password access the
> database tables etc.  What gives?  I'm using
> 4.0.6 of PHP and apache under Redhat Linux 7.2.  Mysql is working fine from
> command line and remote via odbc?
> 
> Also tryed mysql_connect with same problem.
> 
> 
> 
> 
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP Search Engine?

2002-03-23 Thread lmlweb

I don't think my server even has PEAR installed, so even if I just put
the script on my own directory, it still needs the PEAR.php - will I
need to do that too?

> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, March 23, 2002 1:56 PM
> To: lmlweb
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP Search Engine?
> 
> 
> So just put that file in your own directory and use it from 
> there.  It is just a PHP script.
> 
> On Sat, 23 Mar 2002, lmlweb wrote:
> 
> > Hello,
> >
> > I've picked up a book called the PHP Developer's Cookbook, 
> > specifically for the search engine that was featured in it. It 
> > required the use of PEAR's File/Find.php, which my host hasn't 
> > installed, ..and very likely will not.
> >
> > Is there another way of coming up with a search engine in PHP that 
> > doesn't require the use of subscription services?
> >
> > Laurie M. Landry
> > http://www.lmlweb.com
> > voicemail/fax: (604) 693-1120
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP Search Engine?

2002-03-23 Thread lmlweb

My correction - there is a Pear, and it was just a matter of finding the
location
(/root/php-4.1.2/pear/File/Find.php) - so I tried to use the full path -
owrked, but then the Find.php required the PEAR.php, which was one
level. So what I've done so far is to put the Find.php in my directory,
and then make the path to the PEAR.php in the Find.php.

I don't know if this will work for the search application from the PHP
Dev's Cookbook but so far it seem to be working this way.


> -Original Message-
> From: lmlweb [mailto:[EMAIL PROTECTED]] 
> 
> I don't think my server even has PEAR installed, so even if I 
> just put the script on my own directory, it still needs the 
> PEAR.php - will I need to do that too?
> 
> > -Original Message-
> > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 23, 2002 1:56 PM
> > Subject: Re: [PHP] PHP Search Engine?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Superglobals....

2002-03-23 Thread David

Jason Sheets said something on 24 Mar 2002, in php.general:

> You might  remind  them that anything under PHP 4.1.2 has a security
> whole that can be exploited remotely, my web host refused to upgrade
> until they learned about the security implications of not doing so.
> 
> Jason


The are running a patched version.

 



-- 
---

WarpedWeb.Net
http://www.warpedweb.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Php Application Techniques...

2002-03-23 Thread Arik Ashepa

Someone knows a site, or a tutorial article something that would teach 
advanced techniques, like suppose using themes, languages, API... ?

Any help is appreciated

Sincerely
Arik


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php