php-general Digest 24 Jan 2001 06:38:51 -0000 Issue 473

Topics (messages 36242 through 36341):

Some Code for Uploading Images...
        36242 by: Diego Fulgueira
        36244 by: Website4S.aol.com

Re: "Authenticating" across sites/servers
        36243 by: Michael Kimsal
        36337 by: Kristofer Widholm

Re: PHP_SELF - silly question
        36245 by: Krznaric Michael
        36251 by: Larry Hotchkiss

Re: [PHP-DEV] vchkpw & qmail
        36246 by: Teodor Cimpoesu

Re: Search Engines and PHP
        36247 by: Kristofer Widholm
        36279 by: Joe Stump

Re: WAP and PHP
        36248 by: Florian Clever

Re: What "PHP" Stands For....
        36249 by: Boaz Yahav

Re: Newsletter Software needed urgently...
        36250 by: Boaz Yahav

Export to Spreadsheet Format
        36252 by: Benjamin Munoz
        36297 by: Richard Lynch

Re: Shared Memory with Yast-installed mod_php4 from SuSE.
        36253 by: Rouvas Stathis

field types
        36254 by: Jason Jacobs
        36255 by: Boget, Chris
        36257 by: Boget, Chris
        36261 by: Joao Prado Maia

Re: Session problems
        36256 by: Johannes Janson
        36302 by: Jimmy Bäckström

Multiple Page Form
        36258 by: Jeremy Bowen
        36260 by: Benjamin Munoz

Session tracking question
        36259 by: Wade D
        36262 by: Alexander Wagner
        36263 by: Todd Cary

Re: Sending a mail in HTML format
        36264 by: Jade Ohlhauser
        36267 by: Alex Black

To much PHP (Newbie)
        36265 by: Mike Mike
        36268 by: Chris Lee

Re: non-php related question.
        36266 by: Steve Edberg

zend ide & debugger
        36269 by: Alex Black
        36270 by: Ben Gollmer
        36272 by: Alex Black
        36278 by: Alex Akilov
        36288 by: WBB

IMAP HELP
        36271 by: Jochen Kächelin

Help w/ quotes/html and data from MySQL
        36273 by: Shane McBride
        36283 by: Steve Edberg
        36285 by: Shane McBride

How does PHP accept multiple selection
        36274 by: david klein
        36275 by: Shawn Blaylock
        36277 by: david klein
        36280 by: jeremy brand

Sockets
        36276 by: Boget, Chris

file or fopen to fetch a web page???
        36281 by: Lic. Rodolfo Gonzalez Gonzalez
        36298 by: Richard Lynch

apache + mssql
        36282 by: Thor M. Steindorsson

Zend Store products questions
        36284 by: Andrew Sitnikov

Re: Google like page functions
        36286 by: Shane McBride
        36287 by: Ashley M. Kirchner
        36308 by: Shane McBride
        36312 by: jeremy brand

CREATE DOWNLOAD LINK
        36289 by: Jochen Kächelin
        36299 by: Richard Lynch

Re: Non-existant folders??
        36290 by: Brian White

Re: XML Processing Instruction ( was " <? PHP vs. <?" )
        36291 by: Brian White

POST headers
        36292 by: Tobias Talltorp
        36293 by: jeremy brand

Re: Funny php://stdout behaviour
        36294 by: Richard Lynch

Re: installing and using PEAR
        36295 by: Richard Lynch

Re: Filereference and require()
        36296 by: Richard Lynch

Re: is it possible to communicate javascript and php?
        36300 by: Dustin Butler

Mysql question(s)
        36301 by: Mike P

php.ini
        36303 by: Rasmus Resen Amossen
        36306 by: Jani Taskinen
        36309 by: Michael A. Peters
        36310 by: Alex Black
        36314 by: Philip Olson

Re: I dont know what to do here?
        36304 by: Chris Hayes

FaceMysql again
        36305 by: Mike P

HELP- COBALT
        36307 by: Trunkz Santai

Hyperlink using thumnail
        36311 by: Dave Stewart
        36326 by: Andrew Hill

Aspell Function
        36313 by: Matt Stone
        36315 by: Matt Stone
        36316 by: Josh G
        36319 by: Matt Stone
        36320 by: Matt Stone

Article required on PHP security.
        36317 by: David Banes

Re: HTTP_USER_AGENT and preg_match
        36318 by: John Hinsley

where does database go at host
        36321 by: Noel Akins

News gateway question
        36322 by: Daniel Grace
        36327 by: Stephan Ahonen

what is wrong about this sniplet?
        36323 by: Jacky.lilst
        36324 by: Samantha Savvakis
        36325 by: Jacky.lilst

Odd output from system()
        36328 by: Andrew Hill
        36329 by: Andrew Hill

where to find volunteers / RPG lovers
        36330 by: Ed Lazor

newbie: xslt help!
        36331 by: Erick Papadakis

Bad file descriptors
        36332 by: Kif

as stupid as I normally am.....
        36333 by: Jacky.lilst
        36334 by: Samantha Savvakis
        36338 by: Jacky.lilst

1. php ISP host wanted, 2. Release of EasySQL
        36335 by: Richard Creech - DreamRiver.com
        36336 by: Josh G

RC4 Encryption / Decryption Class
        36339 by: Mukul Sabharwal

Repition Reduction ?
        36340 by: Mukul Sabharwal

Re: as stupid as I normally am..... ( Nope!)
        36341 by: Jacky.lilst

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]


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


Hi! I know how to upload images. But I will be very grateful if anyone
around has some code to do that and is willing to share it with me. I have
all kind of algorithms in PHP I could share too, just tell me what you need.
By the way, do you know of a site with PHP samples?
Thanks a lot!.





In a message dated 23/01/2001 19:01:16 GMT Standard Time, [EMAIL PROTECTED] 
writes:

<< By the way, do you know of a site with PHP samples? >>

www.hotscripts.com
www.devshed.com
www.phpbuilder.com
www.zend.com
www.php.net
www.thickbook.com
www.weberdev.com

That should keep you going, as for the other part of your query sorry I can`t 
help with that as I haven`t been down that road yet.

Ade






"Boget, Chris" wrote:

>
> One other thing that I forgot to include in my previous message as
> a concern of mine and it relates to the above.  If we did it that way,
>
> someone who was listening to a port on the client's server, or who
> came by later to use the same machine the client was using previously
> to do this could get this somehow encrypted information and log in
> as the previous user since we wouldn't require authentication because
> said authentication would have already been done on the trusted
> website.  So essentially a 3rd party could concievably obtain this
> information that was posted with the URL (which is why I didn't
> want to pass this information via GET) to access our site and wreak
> havoc.  I definitely want to minimize this possibility.

True, this is a possibility.

Do a post, not a get.  Might eliminate a small possibilty.

A lot of this coordination (or other gyrations you could come up with)
require some cooperation from this 'outside' server.  How 'outside' is
it?  If you need to change a key or algorithm, how much can they
accomodate?  Rhetorical questions mostly - you'll have to take all this
into account.

Not sure I see the whole benefit of a scheme like this.  I mean, I sort
of do, but it's a lot of hassle, and introduces extra security issues at
the expense of an extremely small amount of user inconvenience (which
they need to put up with at every other site on the web anyway - you're
not at a significant usability disadvantage).





>Ok.
>So the client authenticates on the external server.  The client then
>clicks on a link to go to the restricted section on our webserver in
>such a way that they will be pre-authenticated on our server.  When
>the user clicks that link, a script on their end is executed to open a
>socket to our end so the user's data can be passed to us.  I assume
>that once all of that has transpired and the external server has
>recieved the go ahead from us, the external server then redirects
>the user to our server?  And would the external server have to pass
>something with the URL so we can associate that particular client
>with the data that was just passed?  If not, how do we make that
>association?

Chris,
I don't know how helpful I will end up being to your project. I offer 
you my help only as someone who is in the process of exploring 
something similar myself -- so what I'm dealing with here is a public 
brainstorm, and certainly nothing near a finished solution.

I wish I were at the pseudo code stage, as I would love to be that 
far along, and be able to help you out.

However, I'll try to clarify the mechanics of my thinking, in case 
anyone on this list cares to point out any obvious flaws in logic 
(and therefore can help us both out).

The basic idea is to get the servers to agree on allowing a user to 
access them both, for a limited time, and ONLY if they both agree on 
allowing the user in. If we can get the servers to shake hands on 
letting user X be authenticated, then, when user X requests a 
resource, the servers can check their recent agreements lists for 
whether user X should be allowed that resource. By having the servers 
talk directly to each other (and not via the user's browser) on this 
"pre-verification" stage, it would seem to me that no third party 
would have access to the mechanism of the transaction, and, since the 
communications are encrypted with PGP with keys that physically 
reside on those two servers, even if this hidden communications 
stream were snooped, it would be awfully difficult to replicate the 
mechanism of the authorization.

On top of this basic architecture, we then lay a few added 
complications: time-sensitivity (that the authorization expires 
strictly after a very brief time unless used immediately), and 
continued verification that all communication between parties is 
actually coming from the same IP addresses from which they originated.

Here's my poorly written schematic:


Server A                                                                Server B
User logs in and is authenticated,
preferably over SSL, and using
some kind of time stamp and IP
address verification.

Server A gives a key to the user

Server A also encrypts the key,
using Server B's public PGP key
(just 'cause it's called public
doesn't mean it has to actually
be public).

Server A opens a socket to server
B and sends this key to server B
(not sure if this can be done
over SSL. thinking that perhaps it
can be done with an SSH session?).

Also, all of these server side
sockets should be made to verify
the IP address of the server opening
the socket. There should also be a
relatively strict timeout on all
these transactions, such that an OK
or auth key will expire if not used
or validated within five minutes.

                                                                                Server 
B receives key,
                                                                                
decrypts it with it's
                                                                                
private key, and returns an
                                                                                "OK" 
response to Server A.
                                                                                This 
OK would be encrypted
                                                                                with 
server A's public key,
                                                                                and 
would be mathematically
                                                                                
related to, or contain the
                                                                                user's 
request for authen-
                                                                                
tication, so that when
                                                                                server 
A receives the OK,
                                                                                it 
knows to which user it pertains.

                                                                                Server 
B makes a note (in
                                                                                a 
database or whatever)
                                                                                of the 
OK. This note would
                                                                                also 
contain the users
                                                                                
session key, so it knows
                                                                                which 
user should event-
                                                                                ually 
be given access.

Server A redirects user to Server B,
sending the original authorization
key along with the user (in a
cookie, or session ID)

                                                                                Server 
B sees user with
                                                                                auth 
key, checks to see if
                                                                                there 
is an OK registered
                                                                                in 
it's database corres-
                                                                                
ponding to that auth key.

                                                                                Here 
we can also add time-
                                                                                
sensitive verification, as
                                                                                well 
as a check to see
                                                                                
whether the original auth-
                                                                                orized 
user's request is
                                                                                still 
coming from the same
                                                                                IP 
(subject to proxy server
                                                                                
restrictions if user comes
                                                                                from 
large ISP). I.E.
                                                                                if( 
auth OK && record of
                                                                                auth 
&& same IP && within
                                                                                last 
10 minutes) then
                                                                                give 
user a page which
                                                                                
verifies that the user
                                                                                has 
the key, that server
                                                                                B has 
a key, that it
                                                                                
corresponds to a recent
                                                                                record 
of authorization
                                                                                in 
it's database, that's
                                                                                it's 
coming from the
                                                                                same 
IP as the request for
                                                                                auth 
came from from
                                                                                server 
A, and then gives
                                                                                the 
user the data.
-- 
______________________________________

Kristofer Widholm
Web Pharmacy
[EMAIL PROTECTED]
191 Grand Street, Brooklyn  NY  11211
718.599.4893
______________________________________




You may have to declare PHP_SELF as global.  Take a look at 
http://www.php.net/manual/en/language.variables.scope.php

Mike

-----Original Message-----
From: Larry Hotchkiss [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 12:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP_SELF - silly question


        Im a little brain fried today and I have a silly question. I have a
script (imagine that huh?) that I want to pull some code out of and put
in a function that is contained in a seperate file. The function however
inlcudes some lines with $PHP_SELF in a link (a href). When I remove the
code from the running script and include it in a function file seperate
from the script the function works fine as far as generating links etc,
but when the link that includes $PHP_SELF is selected, the file of the
running script is not passed.

So in other words, when I have my function code in my running script, it
generates some links that limit a query on a mysql database and pass
data to PHP_SELF, the passed URL looks like this (for example):

http://69.02.217.123/php4/php.exe/searchitem.php?sql=SELECT+%2A+FROM+items+W
HERE+LCASE%28partnumber%29+LIKE+%27x%25%27+ORDER+BY+partnumber+&offset=100&n
umpage=3


But, when I move the code to create the links externally into a
function, the link I end up with is like this:

http://69.02.217.123/?sql=SELECT+%2A+FROM+items+WHERE+LCASE%28partnumber%29+
LIKE+%27x%25%27+ORDER+BY+partnumber+&offset=100&numpage=3 

Can someone shed some light on the best way to handle this?


-- 
Larry H.

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




        Yep, thats it, I knew it was a stupid question. I already had a few
globals assigned in the function, dont know why I didnt think to ad
PHP_SELF as well. Thanks.

Krznaric Michael wrote:
> 
> You may have to declare PHP_SELF as global.  Take a look at
> http://www.php.net/manual/en/language.variables.scope.php
> 
> Mike
> 
> -----Original Message-----
> From: Larry Hotchkiss [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 23, 2001 12:21 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP_SELF - silly question
> 
>         Im a little brain fried today and I have a silly question. I have a
> script (imagine that huh?) that I want to pull some code out of and put
> in a function that is contained in a seperate file. The function however
> inlcudes some lines with $PHP_SELF in a link (a href). When I remove the
> code from the running script and include it in a function file seperate
> from the script the function works fine as far as generating links etc,
> but when the link that includes $PHP_SELF is selected, the file of the
> running script is not passed.
> 
> So in other words, when I have my function code in my running script, it
> generates some links that limit a query on a mysql database and pass
> data to PHP_SELF, the passed URL looks like this (for example):
> 
> http://69.02.217.123/php4/php.exe/searchitem.php?sql=SELECT+%2A+FROM+items+W
> HERE+LCASE%28partnumber%29+LIKE+%27x%25%27+ORDER+BY+partnumber+&offset=100&n
> umpage=3
> 
> But, when I move the code to create the links externally into a
> function, the link I end up with is like this:
> 
> http://69.02.217.123/?sql=SELECT+%2A+FROM+items+WHERE+LCASE%28partnumber%29+
> LIKE+%27x%25%27+ORDER+BY+partnumber+&offset=100&numpage=3
> 
> Can someone shed some light on the best way to handle this?
> 
> --
> Larry H.
>




Hi php4!
On Tue, 23 Jan 2001, [EMAIL PROTECTED] wrote:

> Is anyone doing anything with PHP and vchkpw?
> 
> There isn't much about it in the archives, but I'd hate to wast a bunch
> of time and find out there is already something in progress.
> 
> 
> I just built a mail server using these packages, and I'm quite
> impressed.  I like the way vchkpw only needs a single user/group to
> manage unlimited virtual domains.
> 
Is it freeware? You made me curious :)


-- teodor




At 13.33 +0100 01-01-23, Sander Pilon poked the keyboard as follows:
>  >
>>  >If you want to be totally searchengine-safe, do not use variables on the
>>  >url, do not rely on cookies and do not rely on POST variables
>>  for the pages
>>  >you want to have the searchengine spider.
>>
>>  How the heck do you build a dynamic site without URL variables,
>>  cookies, or POST variables?
>>
>>  Kristofer
>
>One way would be to use the url path.
>
>Http://script.php/these/are/variables/passed/to/php
>
>You fool the searchengine, it thinks 'script.php' is a directory and its
>getting a file called 'php', but actually you're calling 'script.php' with
>'/these/are/variables/passed/to/php' as parameters.

I'm assuming that the tradeoff is the loss of having your variables 
pre-populated in your scripts and that you have to parse the URL for 
them. While it's probably easy enough to write my own, does anyone 
have -- ready made -- a robust and versatile function for populating 
variables from a URL.

My impulse is to go with this:

list($var1,$var2,$var3)=explode("/","$PHP_SELF");

Anyone one have a better idea?

A difference to note, it strikes me, is that using this method, it is 
no longer arbitrary in which order the variables are stacked in the 
URL. <http://domain/script.php/value1/value2/value3> would be a 
different page from <http://domain/script.php/value3/value1/value2>, 
whereas using variable declarations in the URL like so 
<http://domain/script.php?value2=foo&value3=bar&value1=barfly> means 
you can put them in any order you like.

Kristofer
-- 
______________________________________

Kristofer Widholm
Web Pharmacy
[EMAIL PROTECTED]
191 Grand Street, Brooklyn  NY  11211
718.599.4893
______________________________________




You might want to look at Jeremy Brands VERY useful "variables from uri" 
function that can be found at http://www.nirvani.net/software/ I use this 
religiously and am quite pleased with it.

--Joe

On Tue, Jan 23, 2001 at 02:19:46PM -0500, Kristofer Widholm wrote:
> At 13.33 +0100 01-01-23, Sander Pilon poked the keyboard as follows:
> >  >
> >>  >If you want to be totally searchengine-safe, do not use variables on the
> >>  >url, do not rely on cookies and do not rely on POST variables
> >>  for the pages
> >>  >you want to have the searchengine spider.
> >>
> >>  How the heck do you build a dynamic site without URL variables,
> >>  cookies, or POST variables?
> >>
> >>  Kristofer
> >
> >One way would be to use the url path.
> >
> >Http://script.php/these/are/variables/passed/to/php
> >
> >You fool the searchengine, it thinks 'script.php' is a directory and its
> >getting a file called 'php', but actually you're calling 'script.php' with
> >'/these/are/variables/passed/to/php' as parameters.
> 
> I'm assuming that the tradeoff is the loss of having your variables 
> pre-populated in your scripts and that you have to parse the URL for 
> them. While it's probably easy enough to write my own, does anyone 
> have -- ready made -- a robust and versatile function for populating 
> variables from a URL.
> 
> My impulse is to go with this:
> 
> list($var1,$var2,$var3)=explode("/","$PHP_SELF");
> 
> Anyone one have a better idea?
> 
> A difference to note, it strikes me, is that using this method, it is 
> no longer arbitrary in which order the variables are stacked in the 
> URL. <http://domain/script.php/value1/value2/value3> would be a 
> different page from <http://domain/script.php/value3/value1/value2>, 
> whereas using variable declarations in the URL like so 
> <http://domain/script.php?value2=foo&value3=bar&value1=barfly> means 
> you can put them in any order you like.
> 
> Kristofer
> -- 
> ______________________________________
> 
> Kristofer Widholm
> Web Pharmacy
> [EMAIL PROTECTED]
> 191 Grand Street, Brooklyn  NY  11211
> 718.599.4893
> ______________________________________
> 
> -- 
> 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]

-- 

Joe Stump, PHP Hacker
[EMAIL PROTECTED]
http://www.miester.org/





It worked for my test scripts.

Check out the attached file. You will have to skip over some of the DB
abstraction class stuff.

good Luck,
Florian

Florian Clever

[EMAIL PROTECTED]
http://www.Clever-Software-Solutions.de/

PGP Key @ ldap://certserver.pgp.net/

> -----Ursprüngliche Nachricht-----
> Von: Alastair Binns [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 23. Januar 2001 08:38
> An: [EMAIL PROTECTED]
> Betreff: WAP and PHP
>
>
>
> Hi,
>
> I am trying to dynamically create WML pages using PHP and mysql. I can get
> the PHP to output WML however I am having problems with
> postfields. They do
> not seem to be populating the $HTTP_POST_VARS array.
>
> Has anyone come across this before and no why this is the case. I could
> create the query string myself and create links in the code but
> as far as I
> can tell the postfield should send variables through to the script.
>
> TIA
>
> Al
>
> --
>
> -----
> Alastair Binns
> Programmer
> Lawton eMarketing
> 4 Grosvenor Square
> Southampton
> SO15 2BE
>
> Email: [EMAIL PROTECTED]
> Tel: 023 8082 8560
> Fax: 023 8082 8566
>
> A division of Lawton Communications Group Ltd
> www.lawton.co.uk
>
> -----
>
> EMAIL DISCLAIMER:
> The information in this e-mail is confidential and may be legally
> privileged. It is intended solely for the addressee and access to
> the e-mail
> by anyone else is unauthorised. If you are not the intended recipient, any
> disclosure, copying, distribution or any action taken or omitted
> to be taken
> in reliance on it, is prohibited and may be unlawful. When
> addressed to our
> clients, any opinions or advice contained in this e-mail are
> subject to the
> terms and conditions expressed in the governing client engagement
> letter or
> contract.
>
>
>




Now you also have a place to send people in the future when they ask this
question :)

http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1785

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 

-----Original Message-----
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 1:53 AM
To: jeremy brand
Cc: Brian White; [EMAIL PROTECTED]
Subject: Re: [PHP] What "PHP" Stands For....


> That is what I have heard as well, "Personal Home page".
>
> It has also been come to be known as "People hate perl".

Hey now.  I'll deny to my grave I ever said that in public.  ;)

-Rasmus


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




Try this, It's pretty amazing and does all that you want.

http://www.SellShareware.com/ProgramInfo.asp?AfID=2407&PrID=34362

-----Original Message-----
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 7:59 AM
To: 'PHP General List. (E-mail)'
Subject: [PHP] Newsletter Software needed urgently...


Hello guys,
 
I am sure many of you have it on your websites:
 
 Newsletter
 
yup, that is, a newsletter software written in PHP.
 
Does anyone have/know/wrote a good one?
 
Basic features needed are:
 
 PHP/mySQL - written
 multiple lists
 import/export subscribers
 Name/Company support (in other words have custom messages such as "Dear
%name%" etc )
 reliability
 
I've tried several scripts claiming to do that already, by they all or
haven't had enough necessary files in distributions or weren't "free" enough
or just didn't want to work unless you mess with the code ending up
rewriting it all.
 
I need it VERY urgently. my boss is hacking my *ss...
Please help me with this one...
 
Thanks in advance,

Maxim Maletsky - [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com <http://www.j-door.com/> 
http://www.japaninc.net <http://www.japaninc.net/> 
http://www.lincmedia.co.jp <http://www.lincmedia.co.jp/> 


 






I want to run a query on a database and export the recordset to a
spreadsheet, preferably Excel native.  

The box is on a Win32 OS, so I can instantiate a Excel COM object (similar
to the PHPBuilder COM article), and use the COM methods to create an Excel
file.

Or, I can fopen and fput a CSV formatted file ready to import into Excel.

My question is this: can anyone recommend a script/class where this has
already been done?  Thanks, PHP list.

Ben Muñoz




>I want to run a query on a database and export the recordset to a
>spreadsheet, preferably Excel native.
>
>The box is on a Win32 OS, so I can instantiate a Excel COM object (similar
>to the PHPBuilder COM article), and use the COM methods to create an Excel
>file.
>
>Or, I can fopen and fput a CSV formatted file ready to import into Excel.
>
>My question is this: can anyone recommend a script/class where this has
>already been done?  Thanks, PHP list.

Because the CSV format gets real gnarly real fast with nested commas and
quotes, you may find tab-delimited easier...

while($row = xxx_fetch_row($result)){
    $line = explode("\t", $row);
    fputs($file,$line);
}

eXcel can import tab-delimited real easy.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






Hit Thomas,

you need to recompile PHP with the options you want (as a shared apache
module) and then replace libphp4.so on /usr/lib/apache/ with your own
version.
A good thing is to keep SuSE's version as a backup:-)
Don't forget to restart apache afterwards. (/etc/rc.d/apache stop;
/etc/rc.d/apache start)

A SuSE.6.4 user.

-Stathis.

Thomas Weber wrote:
> 
> Hi,
> 
> i try to use the shared memory functions on a SuSE Linux 7.0 server with
> Apache and mod_php4 out of the box installed with yast. For shmop i need to
> configure PHP with --enable-shmop with isn't enabled in this installation.
> 
> I know how to enable this when compiling and installing the source of
> mod_php4, what is to difficult for me, i think. But how to enable it in the
> SuSE-RPM-Distribution? I found a mod_php4.spec in /usr/src/packages/SPECS in
> wich the configuration options are, butr i don't know how to use it to
> install this RPM with my own configuration. Can anyone help me?
> 
> Sincerly,
> ---
> Thomas Weber
> 
> CYNOBIA Community Online Service AG
> K&oacgr;hbachstra&iacgr;e 11
> 81543 M&oacgr;nchen
> fon 089-78 06 0(280)
> fax 089-78 06 01 99
> email [EMAIL PROTECTED]
> net http://www.CYNOBIA.de




Does anyone know a function to give me the mySql field types?  I saw the
function mysql_field_type, but that returns php types not mysql.  What I
wanna do is if the type of the field is "Text" then I wanna make a
"textarea" to edit and add stuff.  Thanks.

Jason





> Does anyone know a function to give me the mySql field types? 
>  I saw the function mysql_field_type, but that returns php types not 
> mysql.  What I wanna do is if the type of the field is "Text" then I 
> wanna make a "textarea" to edit and add stuff.  Thanks.

If you have phpMySql, take a look at the file:

/mysqladmin/tbl_properties.php

That code is doing something to return the type of the field.  It's a
little hard to follow so I don't know exactly how he's doing it and
unfortunately, didn't have the time to decipher. :p  However, I'm
sure if you sat down with it for a while, you'd figure out how he
did it.

Chris




> If you have phpMySql, take a look at the file:
> /mysqladmin/tbl_properties.php
> That code is doing something to return the type of the field.  It's a
> little hard to follow so I don't know exactly how he's doing it and
> unfortunately, didn't have the time to decipher. :p  However, I'm
> sure if you sat down with it for a while, you'd figure out how he
> did it.

Never mind, I see how he did it.  He runs the following query:

"SELECT FIELDS FROM $tableName"

Where '$tableName' is your table (obviously) and he parses the result
to get all the information.

HTH

Chris





On Tue, 23 Jan 2001, Boget, Chris wrote:

> Never mind, I see how he did it.  He runs the following query:
> 
> "SELECT FIELDS FROM $tableName"
> 
> Where '$tableName' is your table (obviously) and he parses the result
> to get all the information.
> 

Actually he did a "SHOW FIELDS FROM $tableName". It looks like it's some
sort of alias to "DESC $tableName", since it shows pretty much the same
data.

Joao

--
João Prado Maia <[EMAIL PROTECTED]>
http://phpbrasil.com - php com um jeitinho brasileiro





you have to set the 'session.save_path' in your php.ini.
be careful with the slashes you use. as you can see from
the error msg by default it's '/' but windows uses '\'.

good luck
Johannes


"Jimmy Bäckström" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
001201c08564$f7398660$554d59d5@broder">news:001201c08564$f7398660$554d59d5@broder...
Yo!
I'm playing a little bit with sessions for the moment and I get a really
scary errormessage:

Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
(2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5

Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
(2) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct (/tmp) in Unknown on line 0

I understand that there is a folder missing somewhere (tmp) and I tried to
create one in the apache directory, but it still does not work. I'm using
Win2k proffesional with an apache webserver and I don't have a clue what
changes I should do to php.ini.
Please help!
/Broder B







Yeah I used a path name with '\' instead of '/' but it still does not work. Help!

"Johannes Janson" <[EMAIL PROTECTED]> wrote in message 
94kpfm$4cc$[EMAIL PROTECTED]">news:94kpfm$4cc$[EMAIL PROTECTED]...
> you have to set the 'session.save_path' in your php.ini.
> be careful with the slashes you use. as you can see from
> the error msg by default it's '/' but windows uses '\'.
> 
> good luck
> Johannes
> 
> 
> "Jimmy Bäckström" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> 001201c08564$f7398660$554d59d5@broder">news:001201c08564$f7398660$554d59d5@broder...
> Yo!
> I'm playing a little bit with sessions for the moment and I get a really
> scary errormessage:
> 
> Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
> (2) in h:\program\apache\htdocs/boa/sessionTest.php on line 5
> 
> Warning: open(/tmp\sess_1b7577b36d874741ed1e74b4bead0dfd, O_RDWR) failed: m
> (2) in Unknown on line 0
> 
> Warning: Failed to write session data (files). Please verify that the
> current setting of session.save_path is correct (/tmp) in Unknown on line 0
> 
> I understand that there is a folder missing somewhere (tmp) and I tried to
> create one in the apache directory, but it still does not work. I'm using
> Win2k proffesional with an apache webserver and I don't have a clue what
> changes I should do to php.ini.
> Please help!
> /Broder 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]
> 




hey,

I am sure this is a dumb question but, I cannot seem to find out what i am
doing wrong. 

I have a three page form, it basically takes a users input, displays it on the
next page to make sure the users info is correct (i store the variables on
this page in a form in hidden input tags), when the user clicks subscribe on
this page it is supposed to go on to the third page which is a confirmation
page. We instead of doing that it just reloads the page and resets all of the
values!

My form looks something like this (This is a simplified version):

<?

if ($action=="")

{


PAGE ONE TEXT AND FORM


<form method=post action=$PHP_SELF>

<input type=text name=name>
<input type=text name=email>

<input type=submit value=Subscribe>
</form>


}

elseif ($action="Send")

{


PAGE TWO


<form method=post action=$PHP_SELF>

$name <input type=hidden name=name>
$email <input type=hidden name=email>

<input type=submit value=Subscribe>

<form>

}

elseif ($action="Send")

{


Thanks for Subscribing!

mail("Args","Args","Args");

}

?>

I have looked on php.net but i cannot seem to find docs on how to do this!

Thanks,

Jeremy






 





Make sure you are not forgetting to include $action as a hidden input, so
your script can know how to process.

<input type=hidden name=action value=Send>, for example

-Ben

-----Original Message-----
From: Jeremy Bowen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 12:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Multiple Page Form


hey,

I am sure this is a dumb question but, I cannot seem to find out what i am
doing wrong. 

I have a three page form, it basically takes a users input, displays it on
the
next page to make sure the users info is correct (i store the variables on
this page in a form in hidden input tags), when the user clicks subscribe on
this page it is supposed to go on to the third page which is a confirmation
page. We instead of doing that it just reloads the page and resets all of
the
values!

My form looks something like this (This is a simplified version):

<?

if ($action=="")

{


PAGE ONE TEXT AND FORM


<form method=post action=$PHP_SELF>

<input type=text name=name>
<input type=text name=email>

<input type=submit value=Subscribe>
</form>


}

elseif ($action="Send")

{


PAGE TWO


<form method=post action=$PHP_SELF>

$name <input type=hidden name=name>
$email <input type=hidden name=email>

<input type=submit value=Subscribe>

<form>

}

elseif ($action="Send")

{


Thanks for Subscribing!

mail("Args","Args","Args");

}

?>

I have looked on php.net but i cannot seem to find docs on how to do this!

Thanks,

Jeremy






 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




what do most use, combination of cookies and GET?





Wade D wrote:
> what do most use, combination of cookies and GET?

IMHO the optimal solution are cookies with a fallback to GET.

In some situations, though, it may be better to drop cookies completely.

Wagner

-- 
One maniac alone can do what 20 together cannot




Wade -

I am very new with using PHP so I cannot submit my answer as "what most
use".  However, here is what I use:

I do not like to be dependent on Cookies.  For me, Cookies are a
convenience.  That is, I may store a UserID and if it is in a Cookie,
use the ID to put up a greeting or whatever.

Secondly, I am DB oriented, so I opt for DB solutions.  I create a
SessionID using the time() function.  This is stored in the DB with an
Expire time and it is the only value I pass from page to page (I use
POST for passing values).  On login, I do get the UserID and PW and if
they are OK, I then assign the Session ID.

I realize there are many additions to the above that can make it more
secure, but I am not dealing with sensitive data at this time.

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]






1.that won't always display properly
2.that doesn't allow for inline images

To do it properly use MIME. Richard Heyes has already done all the hard work
for you:
http://www.zend.com/codex.php?id=103&single=1

............. Jade Ohlhauser
[website architect]........... http://bandwidthplace.com


----- Original Message -----
From: "Kristi Russell" <[EMAIL PROTECTED]>
To: "Pascal Clerin" <[EMAIL PROTECTED]>
Cc: "php" <[EMAIL PROTECTED]>
Sent: Saturday, January 20, 2001 11:31 PM
Subject: Re: [PHP] Sending a mail in HTML format


> Nothing special, just add <html> at the beginning of what you're trying to
> send as HTML. Always worked for me?
>
> Kristi
>
> ----- Original Message -----
> From: "Pascal Clerin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, January 20, 2001 8:46 PM
> Subject: [PHP] Sending a mail in HTML format
>
>
> > Hello,
> >
> > I want to send a mail in HTML format with the mail() function.
> > I have tried to send html stuff in the message parameter, but when I
read
> it
> > in my hotmail account, I just see the html code and not what the html is
> > supposed to show.
> > I suppose that it is necessary to send some additional headers to
specify
> that
> > the mail is in html format.
> > Thanks for your help.
> >
> > Pascal
> >
> > ____________________________________________________________________
> > Get free email and a permanent address at http://www.netaddress.com/?N=1
> >
> > --
> > 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]





that html mail class is fantastical :)

_alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Jade Ohlhauser")
> Newsgroups: php.general
> Date: 23 Jan 2001 12:51:45 -0800
> Subject: Re: [PHP] Sending a mail in HTML format
> 
> 1.that won't always display properly
> 2.that doesn't allow for inline images
> 
> To do it properly use MIME. Richard Heyes has already done all the hard work
> for you:
> http://www.zend.com/codex.php?id=103&single=1
> 
> ............. Jade Ohlhauser
> [website architect]........... http://bandwidthplace.com
> 
> 
> ----- Original Message -----
> From: "Kristi Russell" <[EMAIL PROTECTED]>
> To: "Pascal Clerin" <[EMAIL PROTECTED]>
> Cc: "php" <[EMAIL PROTECTED]>
> Sent: Saturday, January 20, 2001 11:31 PM
> Subject: Re: [PHP] Sending a mail in HTML format
> 
> 
>> Nothing special, just add <html> at the beginning of what you're trying to
>> send as HTML. Always worked for me?
>> 
>> Kristi
>> 
>> ----- Original Message -----
>> From: "Pascal Clerin" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Saturday, January 20, 2001 8:46 PM
>> Subject: [PHP] Sending a mail in HTML format
>> 
>> 
>>> Hello,
>>> 
>>> I want to send a mail in HTML format with the mail() function.
>>> I have tried to send html stuff in the message parameter, but when I
> read
>> it
>>> in my hotmail account, I just see the html code and not what the html is
>>> supposed to show.
>>> I suppose that it is necessary to send some additional headers to
> specify
>> that
>>> the mail is in html format.
>>> Thanks for your help.
>>> 
>>> Pascal
>>> 
>>> ____________________________________________________________________
>>> Get free email and a permanent address at http://www.netaddress.com/?N=1
>>> 
>>> --
>>> 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]
> 





Is there a such thing as to much code in an include
file that will break it.  Assuming that you have, say
20 people hitting that one page simultaniously.  Will
it just slow things or will it actually break (As in
show code to the viewer)? 

Thanks 
  --Mike

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




If your refering to old Pascal pre-3.0 in how you could only have X number
of bytes in a file (32k I think) then pascal would not parse the rest, then
no php isnt limited to this, your pages will just get slower and slower
because of more hits.

Chris Lee
Mediawaveonline.com



"Mike Mike" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there a such thing as to much code in an include
> file that will break it.  Assuming that you have, say
> 20 people hitting that one page simultaniously.  Will
> it just slow things or will it actually break (As in
> show code to the viewer)?
>
> Thanks
>   --Mike
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>






Try wget

        http://sunsite.dk/wget/index.html


At 12:05 PM -0500 1/23/01, Jason Jacobs wrote:
>Hey guys and gals!  I have my personal site on go.com, and I wanna move it.
>The problem is I don't have it all backed up on my machine (I think I only
>have some of the images), but I want to move it to my server at work.  Does
>anyone know of a script of some sort that will go to my site, copy all the
>files to a specified folder, and follow my internal links?  Thanks for the
>info.
>

-- 
+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+




ola all,

has anyone used the zend ide+debugger?

before I slap down $800, I'd like to know if people who have think it's
groovy..

:)

_alex


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522








I second that.

The IDE+Debugger combo really looks great, esp. because of the debug 
support being AWOL in PHP4.

I'm a little worried about the IDE being written in java tho...I hope its 
not as slow/memory hungry/crash happy as the other java + JRE apps I've used...

Too bad there's not an evaluation version available for download.

Ben

At 03:15 PM 1/23/2001, you wrote:
>ola all,
>
>has anyone used the zend ide+debugger?
>
>before I slap down $800, I'd like to know if people who have think it's
>groovy..
>
>:)
>
>_alex
>
>
>--
>Alex Black, Head Monkey
>[EMAIL PROTECTED]
>
>The Turing Studio, Inc.
>http://www.turingstudio.com
>
>vox+510.666.0074
>fax+510.666.0093
>
>Saul Zaentz Film Center
>2600 Tenth St Suite 433
>Berkeley, CA 94710-2522
>
>
>
>
>
>--
>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]





> The IDE+Debugger combo really looks great, esp. because of the debug
> support being AWOL in PHP4.

I'm a little bit irked about that actually, they obviously stopped the
"free" development on it, and moved it in house. But I guess you gotta put
food on the table :)

I really would prefer to have debug info printed to a browser instead of
_only_ accessible through their IDE. anyway.

> I'm a little worried about the IDE being written in java tho...I hope its
> not as slow/memory hungry/crash happy as the other java + JRE apps I've
> used...

That's getting a bit better, I've got a couple apps that run fine on win2k
that are java. they're memory pigs but that's the multiplatform life. also,
you're sort of screwed if you want to go X + windows, without maintaining
two separate codebases, so I understand the choice.

plus, swing is very mac-esque, so I approve :)

> Too bad there's not an evaluation version available for download.

I've sent mail to one of their sales guys, adam, about that. The 30-day
"evaluation" is pretty funny: you have to pay $100 for it. (come _on_)!

_but_, for me the "encoder se" is worth the $800 right out, I can ensure
some values stored in my apps right now are ripped up in a binary, which is
extra-extra-groovy for security.

-alex


> Ben
> 
> At 03:15 PM 1/23/2001, you wrote:
>> ola all,
>> 
>> has anyone used the zend ide+debugger?
>> 
>> before I slap down $800, I'd like to know if people who have think it's
>> groovy..
>> 
>> :)
>> 
>> _alex
>> 
>> 
>> --
>> Alex Black, Head Monkey
>> [EMAIL PROTECTED]
>> 
>> The Turing Studio, Inc.
>> http://www.turingstudio.com
>> 
>> vox+510.666.0074
>> fax+510.666.0093
>> 
>> Saul Zaentz Film Center
>> 2600 Tenth St Suite 433
>> Berkeley, CA 94710-2522
>> 
>> 
>> 
>> 
>> 
>> --
>> 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]
> 





Alex,

I saw a demo of it about 3 months ago while they were working on it
and it looked pretty impressive and contained all the necessary debug
features I asked about.  As far as sending info to the browser, you
might be surprised as I think it might do some of that but I don't
recall
exactly what.

Note that the non-commercial subscription (which includes the IDE) is
only $50 a year.  If you just want to evaluate it, it might be the
ticket
(provided that you only use it for personal use).

The Java nature of the IDE is a bit unfortunate as I don't think it
looks
as pristine and responsive as native code but it appeared to be
sufficiently responsive when I saw it.

Overall, I don't think you'll be disappointed.

Alex A.





For any of you developing on a Win machine you might want to try:

http://www.soysal.com/PHPEd


There will be new version up shortly and the version after it will have
interactive debugging.

----- Original Message -----
From: "Alex Black" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 1:15 PM
Subject: [PHP] zend ide & debugger


> ola all,
>
> has anyone used the zend ide+debugger?
>
> before I slap down $800, I'd like to know if people who have think it's
> groovy..
>
> :)
>
> _alex
>
>
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
>
> The Turing Studio, Inc.
> http://www.turingstudio.com
>
> vox+510.666.0074
> fax+510.666.0093
>
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
>
>
>
>
>
> --
> 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]
>
>





when I list all parts of an object returned by

        $a = imap_fetchstructure($link,1);

I will get something like this:


[parameters] => Array
        ( [0] => stdClass Object
        ( [attribute] => BOUNDARY
      [value] => ----=_NextPart_000_0000_01C08563.8269C440 )
        )

I' am not able to assigna varable to get "_NextPart...."!!!

How doI get this?

$a->parameters[0]->value does not work!

Please help!


--
**********************************************
* Jochen Kächelin                            *
* Ihr WEBberater - Werbeagentur Pulvermüller *
* Stuttgarter Str. 3 - D-73033 Göppingen     *
* www.wa-p.de - mailto:[EMAIL PROTECTED]          *
**********************************************





I have a field in MySQL that holds data that may look like this:

<b>Rose Painting</b>"Looks really nice, blah, blah"<b>25.00</b>

Now, I want to pull that data back into a form <textarea> to edit. Here's how I have 
unsuccessfully been doing it:

?>
.... beginning code
<td>Description:</td>
<td><textarea name=\"description\" value='$description' cols=\"50\" 
rows=\"5\"></textarea></td>
...ending code
?>

I looks like that the embedded html in the MySQL data is actually being "rendered" 
(for the lack of a better term).
How can I get the whole chunk of data back into the form?

TIA,
-Shane




At 4:47 PM -0500 1/23/01, Shane McBride wrote:
>I have a field in MySQL that holds data that may look like this:
>
><b>Rose Painting</b>"Looks really nice, blah, blah"<b>25.00</b>
>
>Now, I want to pull that data back into a form <textarea> to edit. 
>Here's how I have unsuccessfully been doing it:
>
>?>
>.... beginning code
><td>Description:</td>
><td><textarea name=\"description\" value='$description' cols=\"50\" 
>rows=\"5\"></textarea></td>
>...ending code
>?>
>
>I looks like that the embedded html in the MySQL data is actually 
>being "rendered" (for the lack of a better term).
>How can I get the whole chunk of data back into the form?
>


Well, if you're using PHP:

echo
        '<td>Description:</td>',
        '<td><textarea name="description" cols="50" rows="5">',
        htmlentities($description),
        '</textarea></td>'
;

Presumably, other web development languages have an equivalent 
construct to PHP's htmlentities().

Also, the value of a textarea tag is not put in a 'value' attribute 
within the tag as with the INPUT tag; it is put in the textarea 
'container' - that is, between the <textarea> and </textarea> tags.

        - steve


-- 
+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+




After I sent this message I looked at the code again. I saw the error as
obvious as daylight. It's working great now.

Thanks.....


----- Original Message -----
From: "Steve Edberg" <[EMAIL PROTECTED]>
To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 5:50 PM
Subject: Re: [PHP] Help w/ quotes/html and data from MySQL


> At 4:47 PM -0500 1/23/01, Shane McBride wrote:
> >I have a field in MySQL that holds data that may look like this:
> >
> ><b>Rose Painting</b>"Looks really nice, blah, blah"<b>25.00</b>
> >
> >Now, I want to pull that data back into a form <textarea> to edit.
> >Here's how I have unsuccessfully been doing it:
> >
> >?>
> >.... beginning code
> ><td>Description:</td>
> ><td><textarea name=\"description\" value='$description' cols=\"50\"
> >rows=\"5\"></textarea></td>
> >...ending code
> >?>
> >
> >I looks like that the embedded html in the MySQL data is actually
> >being "rendered" (for the lack of a better term).
> >How can I get the whole chunk of data back into the form?
> >
>
>
> Well, if you're using PHP:
>
> echo
> '<td>Description:</td>',
> '<td><textarea name="description" cols="50" rows="5">',
> htmlentities($description),
> '</textarea></td>'
> ;
>
> Presumably, other web development languages have an equivalent
> construct to PHP's htmlentities().
>
> Also, the value of a textarea tag is not put in a 'value' attribute
> within the tag as with the INPUT tag; it is put in the textarea
> 'container' - that is, between the <textarea> and </textarea> tags.
>
> - steve
>
>
> --
> +--- "They've got a cherry pie there, that'll kill ya" ------------------+
> | Steve Edberg                           University of California, Davis |
> | [EMAIL PROTECTED]                               Computer Consultant |
> | http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
> +-------------------------------------- FBI Special Agent Dale Cooper ---+
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





Hello,

I have some codes like:
  <select name="links" size="5" multiple>
  <OPTION VALUE="scripttip1.html"> Page 1
  <OPTION VALUE="scripttip2.html"> Page 2
  <OPTION VALUE="scripttip3.html"> Page 3
  </select>
  <input type="submit" name="removeButton" value="Remove">

If I selected item 1 and item 3 both, how can I get my multiple selection in 
the PHP codes? (it seems to me it always give me the last selection only).

Thank you very much in advance.

Regards,
David
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com





It stores it in a 2D array. There's info on it on the FAQ.
here's the URL:
http://www.php.net/FAQ.php#7.14 


david klein wrote:
> 
> Hello,
> 
> I have some codes like:
>   <select name="links" size="5" multiple>
>   <OPTION VALUE="scripttip1.html"> Page 1
>   <OPTION VALUE="scripttip2.html"> Page 2
>   <OPTION VALUE="scripttip3.html"> Page 3
>   </select>
>   <input type="submit" name="removeButton" value="Remove">
> 
> If I selected item 1 and item 3 both, how can I get my multiple selection in
> the PHP codes? (it seems to me it always give me the last selection only).
> 
> Thank you very much in advance.
> 
> Regards,
> David
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.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]

-- 

Shawn Blaylock, ClipperNet Software Engineer
[EMAIL PROTECTED]
http://www.clipper.net/
Eugene OR  541-431-3360 x406
Toll Free  866-673-6260 x406





Shawn,

   Tested, it works now. Thanks a bunch!

Best Regards,
David

>From: Shawn Blaylock <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: david klein <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: [PHP] How does PHP accept multiple selection
>Date: Tue, 23 Jan 2001 13:51:08 -0800
>
>It stores it in a 2D array. There's info on it on the FAQ.
>here's the URL:
>http://www.php.net/FAQ.php#7.14
>
>
>david klein wrote:
> >
> > Hello,
> >
> > I have some codes like:
> >   <select name="links" size="5" multiple>
> >   <OPTION VALUE="scripttip1.html"> Page 1
> >   <OPTION VALUE="scripttip2.html"> Page 2
> >   <OPTION VALUE="scripttip3.html"> Page 3
> >   </select>
> >   <input type="submit" name="removeButton" value="Remove">
> >
> > If I selected item 1 and item 3 both, how can I get my multiple 
>selection in
> > the PHP codes? (it seems to me it always give me the last selection 
>only).
> >
> > Thank you very much in advance.
> >
> > Regards,
> > David
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.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]
>
>--
>
>Shawn Blaylock, ClipperNet Software Engineer
>[EMAIL PROTECTED]
>http://www.clipper.net/
>Eugene OR  541-431-3360 x406
>Toll Free  866-673-6260 x406
>
>--
>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]
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com





Feel free (as in GPL) to use my libHtmlForm functions available here:
http://www.nirvani.net/software/libHtmlForm/

Jeremy

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    "LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       http://www.JEEP-FOR-SALE.com/ -- I need a buyer
  Get your own Free, Private email at http://www.smackdown.com/

On Tue, 23 Jan 2001, david klein wrote:

> Date: Tue, 23 Jan 2001 21:48:52 -0000
> From: david klein <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] How does PHP accept multiple selection
> 
> Hello,
> 
> I have some codes like:
>   <select name="links" size="5" multiple>
>   <OPTION VALUE="scripttip1.html"> Page 1
>   <OPTION VALUE="scripttip2.html"> Page 2
>   <OPTION VALUE="scripttip3.html"> Page 3
>   </select>
>   <input type="submit" name="removeButton" value="Remove">
> 
> If I selected item 1 and item 3 both, how can I get my multiple selection in 
> the PHP codes? (it seems to me it always give me the last selection only).
> 
> Thank you very much in advance.
> 
> Regards,
> David
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.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]
> 
> 





Are there any tutorials on how to use Sockets in PHP?
If so, where can I find them?  I've looked on several of
the sites that are linked from the main php.net site but
found nothing... :/

Thanks.

Chris




Hello,

I wonder myself, which method is better to fetch a web page:

   $file = fopen($url, "r");
   $page = fread($file, 50000);

or

   $file = join('', file($url));

, speaking from the performance point of view? (or is there any better?).

Thanks.







> I wonder myself, which method is better to fetch a web page:
>
>    $file = fopen($url, "r");
>    $page = fread($file, 50000);
>
> or
>
>    $file = join('', file($url));

Probably about the same either way...

Maybe not building an array to build a string will save a little...

You could test it fairly quickly for yourself -- Probably best, as you never
know what your box might like better...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






HELP!

I need to access a database on a mssql server from a linux box, but the php
doesn't recognize any of the mssql statements.  Apparently mssql support was
not included in the inital php installation (which came with Mandrake 7.2).
I know there's the option of downloading the PHP source and configuring it
with mssql and re-installing it.
But if there's any way to add the mssql support without such drastic
measures, I'd sure like to hear about them.
Can anyone help?

Thanks.

Thor M. Steindorsson - [EMAIL PROTECTED]
http://www.netwood.net - Find Out Why We're Better.





Hello ,

  I have some questions about new products from Zend.

  1. After the my "Commercial Subscription Plan"  expire,
  will scripts coded with "Zend Encoder SE" working ? (if it work in users servers 
with "Zend
  Encoder SE Runtime plugins").

  2. If I shall choose payment 12 months, I shall receive products at once or in 12 
months?

  3. When I install the "Zend IDE", " Zend Encoder SE " ... On one
  The computer also I receive the licenses (FLEXlm) for it,
  when I will need to make upgrade hardware or change IP or move all
  software to other computer, I can receive The new license?

Best regards,
 Andrew Sitnikov                         
 e-mail : [EMAIL PROTECTED]
 GSM: (+372) 56491109






I thought this had been addressed earlier, but I could not find the thread.

If I have a MySQL DB that has 50 records in it and I want to display 5 per page. How 
do I do this. Also, 50 was just a nice round number, the number will change constantly.

All the search engines are doing this type of thing. I just can't seem to figure out 
what I should search for.

- Shane




Shane McBride wrote:

> If I have a MySQL DB that has 50 records in it and I want to display 5 per page. How 
>do I do this. Also, 50 was just a nice round number, the number will change 
>constantly.

    $sql = "select * from table limit 0,5"; <-- first 5
    $sql = "select * from table limit 5,5"; <-- next 5
    $sql = "select * from table limit 10,5"; <-- next 5

    etc.

    AMK4

--
W |
  |  I haven't lost my mind; it's backed up on tape somewhere.
  |____________________________________________________________________
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410 x130
  SysAdmin / Websmith                           .     800.441.3873 x130
  Photo Craft Laboratories, Inc.             .        eFax 248.671.0909
  http://www.pcraft.com                  .         3550 Arapahoe Ave #6
  .................. .  .  .     .               Boulder, CO 80303, USA






I found a great little snippet by accident that does the "Previous 123 Next"
links. If anyone is interested, here's the link to it:

http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=21


----- Original Message -----
From: "Shane McBride" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 6:35 PM
Subject: [PHP] Help: Google like page functions


I thought this had been addressed earlier, but I could not find the thread.

If I have a MySQL DB that has 50 records in it and I want to display 5 per
page. How do I do this. Also, 50 was just a nice round number, the number
will change constantly.

All the search engines are doing this type of thing. I just can't seem to
figure out what I should search for.

- Shane






Basically, in your SQL, just use "LIMIT" 

Select * from foo where something = 'something_else' limit 0, 10;
Select * from foo where something = 'something_else' limit 10, 10;
Select * from foo where something = 'something_else' limit 20, 10;
Select * from foo where something = 'something_else' limit 30, 10;
Select * from foo where something = 'something_else' limit 40, 10;

etc...

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    "LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       http://www.JEEP-FOR-SALE.com/ -- I need a buyer
  Get your own Free, Private email at http://www.smackdown.com/

On Tue, 23 Jan 2001, Shane McBride wrote:

> Date: Tue, 23 Jan 2001 20:59:03 -0500
> From: Shane McBride <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Help: Google like page functions
> 
> I found a great little snippet by accident that does the "Previous 123 Next"
> links. If anyone is interested, here's the link to it:
> 
> http://www.phpbuilder.net/snippet/detail.php?type=snippet&id=21
> 
> 
> ----- Original Message -----
> From: "Shane McBride" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 23, 2001 6:35 PM
> Subject: [PHP] Help: Google like page functions
> 
> 
> I thought this had been addressed earlier, but I could not find the thread.
> 
> If I have a MySQL DB that has 50 records in it and I want to display 5 per
> page. How do I do this. Also, 50 was just a nice round number, the number
> will change constantly.
> 
> All the search engines are doing this type of thing. I just can't seem to
> figure out what I should search for.
> 
> - Shane
> 
> 
> 
> -- 
> 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]
> 
> 





How do I build a link to
an attached file to an email?

I have the filename, mime-type and size
but where do I get the path to the file?

--
**********************************************
* Jochen Kächelin                            *
* Ihr WEBberater - Werbeagentur Pulvermüller *
* Stuttgarter Str. 3 - D-73033 Göppingen     *
* www.wa-p.de - mailto:[EMAIL PROTECTED]          *
**********************************************





> How do I build a link to
> an attached file to an email?
> 
> I have the filename, mime-type and size
> but where do I get the path to the file?

You may want to use Manuel Lemos' mail class to handle that....

-- 
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






I can't say for sure but my gut reaction is:

1) Not using directories sounds like it would be complicated and
    a point of failure

2) If you want to have a single code source, maybe you should just
    create a stub page in each directory that includes the main one,
    something like:

    <?php
       $CompanyName = "widgets_R_us";
       include( "../common/common.php");
    ?>


At 11:31 AM 1/23/01 +0000, Adrian Murphy wrote:
>Hi,
>I'm creating a little app whereby people will be able to create a simple
>site for themselves (maybe 10 html pages).
>here's the problem:
>say their company is called "companyname" and my site is called
>"www.mysite.com" i'd like their site to be located at
>
>"http://www.mysite.com/companyname"
>
>Is there a way i can do this without creating indivual folders for each
>company.I'd like the whole creation process to be automated.
>I'm sure the ftp functions in php would allow for the generation of new
>folders for each,but since all content/style etc. will be pulled from a DB
>it's seems to me a little pointless having all these folders with the same
>php page in each.essentially i'd like a php script to run automatically each
>time taking what looks like a folder name and making a call to the db using
>this name as a variable.
>easy,difficult or impossible?
>thanx,
>adrian
>
>
>--
>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]

-------------------------
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy

http://www.steptwo.com.au/
[EMAIL PROTECTED]





At 05:24 PM 1/23/01 +0100, Jirka Kosek wrote:
>Teodor Cimpoesu wrote:
> > my follow-up was from an suggest of using <% though :)
> > it exists in C, ASP and JSP. We have it in PHP, why not use it?
 >
>Because it is not compatible with XML syntax.

I agree. The short answer is to the question is "Standards".

There are heaps of tools around for processing data that conforms to the
XML standard - if you keep you documents ( and code script is just a
  document ) in XML those tools are available to you.

This is one of the big arguments in favour of XSLT - because it is stored
in XML the argument is that you can manage you XML content documents
and the XSLT code you process it with all with the same set of tools.
This includes editors, document storage, validators, pretty printers etc.

( Note: whether the benefits outweigh the cost in my example are
   arguable and I am not going there )



-------------------------
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy

http://www.steptwo.com.au/
[EMAIL PROTECTED]





What are the HTTP Headers performing a POST?

I need to simulate a POST to a webpage.
NOTE: I do not want to use curl or the post-to-host function, since these
get the information.

What I want to do is this:

I enter the page "localhost/post.php" where there are a set of HTTP Headers
for sending a post to "domain.com/result.php". From this point on,
domain.com handles the displaying of the result. Just exactly the same
process as a HTML-form, just without the form.

Thanks,
// Tobias






You can get your answer from a program I wrote, in fact, feel free (as
in GLP) to use the POST function that I wrote.

http://www.nirvani.net/software/SmartBeep_PageIT_Plus/

See the "urlize_array" and "post_method" functions.

Jeremy

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    "LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       http://www.JEEP-FOR-SALE.com/ -- I need a buyer
  Get your own Free, Private email at http://www.smackdown.com/

On Wed, 24 Jan 2001, Tobias Talltorp wrote:

> Date: Wed, 24 Jan 2001 01:11:08 +0100
> From: Tobias Talltorp <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] POST headers
> 
> What are the HTTP Headers performing a POST?
> 
> I need to simulate a POST to a webpage.
> NOTE: I do not want to use curl or the post-to-host function, since these
> get the information.
> 
> What I want to do is this:
> 
> I enter the page "localhost/post.php" where there are a set of HTTP Headers
> for sending a post to "domain.com/result.php". From this point on,
> domain.com handles the displaying of the result. Just exactly the same
> process as a HTML-form, just without the form.
> 
> Thanks,
> // Tobias
> 
> 
> 
> -- 
> 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]
> 
> 





> When calling the php4 code below, sometimes the browser receives
> -the "HTML estandar text"
> -sometimes the "Text generated from PHP" (but NEVER both!)
> -and ocassionaly the error:
> "Warning: fopen("php://stdout","w") - Bad file descriptor in
> /home/sites/site74/web/_proc/pruebas/stdout-test.php on line 7
> unable to open device"

I actually was getting prompted to download the .php file sometimes...

That was a known bug with an earlier release of PHP4 under high load, I
think...  Or maybe that was the one where turning the engine on/off in
different domains was messing up?...  Or maybe both conditions had to be
true.

Meanwhile, not sure how fopen() is involved.

Maybe try whatever corresponds to stdout on your OS, be it "/dev/0" or
"/dev/stdout" or whatever -- Just to see if you can duplicate it with the
normal file-system stuff.

And try the same thing with some other files/pages etc.

One thing that occurs to me -- stdout starts off by being the browser, so
it's kinda funky to open it -- You've already got it open...  I *think* it
really only makes sense to fopen() stdout from the command line.  At least,
I'm not clear on what it would mean to open it from a HTTP environment...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm






>Can anyone direct me to some up-to-date documentation on how to install
(and then use) the Pear included in the distribution? There seems to be
minimal (and perhaps outdated or inappropriate?) install instructions
included with the source distribution, but I've found nothing on how to use
it.

I think Rasmus might have some material in his online slides from conference
tutorials... http://conf.php.net  No guarantee as to applicability,
up-to-date-ness or anything...

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm







You can provide the full path:
require "/usr/local/share/apache/htdocs/deep/down/dir/a_specific_file";

You can alter include_path in php.ini to have
"/usr/local/share/apache/htdocs/deep/down/dir:./:/usr..." in it

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Rasmus Resen Amossen <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Tuesday, January 23, 2001 11:46 AM
Subject: [PHP] Filereference and require()


> I have a file, lets call it genericfile.php, containing a
>   require("a_specific_file");
>
> Now, I want to use (thats include) genericfile.php in many of my other
> .php-files in the WHOLE directorytree. The problem is that
> "a_specific_file" can't be found trough genericfile.php if this is
> included someplace other in the directory tree.
>
> How can I tell php not to make defaultpath to the toplevel require()
> funcion call?
>
> --
> Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
> Jagtvej 120, -244    | http://www.math.ku.dk/muh
> 2200 Kbh. N          | http://w1.1444.telia.com/~u144400001
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





I've used the <iframe> tag in Internet Exploder to talk to the server via
javascript.  It may be possible using a regular frame also.  Here's the low
down on how I did it.

1.) Some onclick, onchange ... action calls a javascript function that looks
like this
        function getData() {
                document.all.hidden_frame.src =
"databaseactions.php?getmesomedata=something";
        }
        

2.) The output of databaseactions.php would look like
        <html>
        <head>
        <script language="JavaScript">
                var contacts = new Array("Jeff Boyer","555-555-5555);
        </script>
        </head>
        <body onload="parent.loadselectbox(contacts);">
                Put something here for debugging
        </body>
        </html>

The frame is hidden (width and height set to 0) so the client does not see
the output.

3.) A function on the main page called loadselectbox gets the array of data
returned from the server.  You need to rawurlencode the data elements in the
array or javascript will complain.

Tuna Out,
Dustin

> Hello Alex,
> 
> Sunday, January 21, 2001, 4:20:53 AM, you wrote:
> 
> AB> no without submitting information to the server with get or post.
> 
> AB> for example, if a bit of javascript you have comes up 
> with some value, the
> AB> only way you can get it to the server is to put it in a 
> get and send the
> AB> user to that url:
> 
> AB> http://www.mysite.com/index.php?your_js_var=your_value
> 
> You could also post WDDX packets generated by JS, if you intend to
> operate with large and complex data. Sometimes it's much more
> convenient. But, of course, using POST, cause PHP haven't learned mind
> reading yet :)
> 
> -- 
> Best regards,
> Max A. Derkachev mailto:[EMAIL PROTECTED]





I created a table with FaceMysql that had one field and I could not add data
to it .Only when I recreated it with 2 fields and a primary key did it
work.Is there any reason for this?Must there always be a primary key in
Mysql?I've never known this to be true of relational Db's.Especially if you
can't implement a foriegn key.Mike P
[EMAIL PROTECTED]







Everybody talks about this nice configuration file, but where is it?!
I have compiled php4 with apache, but even a »find . -name "php.ini«
gives anything.
Do I really need to recompile php to change its configuration?

-- 
Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
Jagtvej 120, -244    | http://www.math.ku.dk/muh
2200 Kbh. N          | http://w1.1444.telia.com/~u144400001




On Wed, 24 Jan 2001, Rasmus Resen Amossen wrote:

>Everybody talks about this nice configuration file, but where is it?!
>I have compiled php4 with apache, but even a »find . -name "php.ini«
>gives anything.
>Do I really need to recompile php to change its configuration?

No. Please read the INSTALL file.

--Jani






try find / -print |grep "php\.ini" after your make install.
will take awhile, but that should find it :D

On Tuesday, January 23, 2001, at 04:44 PM, Rasmus Resen Amossen wrote:

> Everybody talks about this nice configuration file, but where is it?! 
> I have compiled php4 with apache, but even a »find . -name "php.ini« 
> gives anything. 
> Do I really need to recompile php to change its configuration? 
>  
> --  
> Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen 
> Jagtvej 120, -244    | http://www.math.ku.dk/muh 
> 2200 Kbh. N          | http://w1.1444.telia.com/~u144400001 
>  
> --  
> PHP General Mailing List (http://www.php.net/) 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> To contact the list administrators, e-mail: [EMAIL PROTECTED] 
>  
>  

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
Abriasoft Senior Developer

(510)  623-9726x357
Fax: (510) 249-9125




locate php.ini

in windoze, the windows key+f, type in php.ini

_a


--
Alex Black, Head Monkey
[EMAIL PROTECTED]

The Turing Studio, Inc.
http://www.turingstudio.com

vox+510.666.0074
fax+510.666.0093

Saul Zaentz Film Center
2600 Tenth St Suite 433
Berkeley, CA 94710-2522




> From: [EMAIL PROTECTED] ("Michael A. Peters")
> Newsgroups: php.general
> Date: 23 Jan 2001 18:07:42 -0800
> Subject: Re: [PHP] php.ini
> 
> try find / -print |grep "php\.ini" after your make install.
> will take awhile, but that should find it :D
> 
> On Tuesday, January 23, 2001, at 04:44 PM, Rasmus Resen Amossen wrote:
> 
>> Everybody talks about this nice configuration file, but where is it?!
>> I have compiled php4 with apache, but even a »find . -name "php.ini«
>> gives anything. 
>> Do I really need to recompile php to change its configuration?
>> 
>> --  
>> Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
>> Jagtvej 120, -244    | http://www.math.ku.dk/muh
>> 2200 Kbh. N          | http://w1.1444.telia.com/~u144400001
>> 
>> --  
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Michael A. Peters
> Abriasoft Senior Developer
> 
> (510)  623-9726x357
> Fax: (510) 249-9125
> --
> 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]
> 






Or :

<?php
// Assuming all is working, sounds like it is.

    phpinfo();

?>

Six lines down we see :

    
    Configuration File (php.ini) Path
    

Which shows the path to php.ini


Philip


On Tue, 23 Jan 2001, Alex Black wrote:

> locate php.ini
> 
> in windoze, the windows key+f, type in php.ini
> 
> _a
> 
> 
> --
> Alex Black, Head Monkey
> [EMAIL PROTECTED]
> 
> The Turing Studio, Inc.
> http://www.turingstudio.com
> 
> vox+510.666.0074
> fax+510.666.0093
> 
> Saul Zaentz Film Center
> 2600 Tenth St Suite 433
> Berkeley, CA 94710-2522
> 
> 
> 
> 
> > From: [EMAIL PROTECTED] ("Michael A. Peters")
> > Newsgroups: php.general
> > Date: 23 Jan 2001 18:07:42 -0800
> > Subject: Re: [PHP] php.ini
> > 
> > try find / -print |grep "php\.ini" after your make install.
> > will take awhile, but that should find it :D
> > 
> > On Tuesday, January 23, 2001, at 04:44 PM, Rasmus Resen Amossen wrote:
> > 
> >> Everybody talks about this nice configuration file, but where is it?!
> >> I have compiled php4 with apache, but even a »find . -name "php.ini«
> >> gives anything. 
> >> Do I really need to recompile php to change its configuration?
> >> 
> >> --  
> >> Rasmus Resen Amossen | stud.mat.dat at the University of Copenhagen
> >> Jagtvej 120, -244    | http://www.math.ku.dk/muh
> >> 2200 Kbh. N          | http://w1.1444.telia.com/~u144400001
> >> 
> >> --  
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >> 
> >> 
> > 
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > Michael A. Peters
> > Abriasoft Senior Developer
> > 
> > (510)  623-9726x357
> > Fax: (510) 249-9125
> > --
> > 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]
> 







Sefton didn't know what to do:
> > I have a form in an htm file that is sending info to a cgi script
> > (formmail.pl) but the confirmation page I am using is php3. I want to 
pass
> > the value of a text box in the form to the php3 page.

> > So I need the faq_confirm.php3 page to appear, plus have it send the
> > variable $message that is one of the fields on the form.
> > I thought you just added it like ?message
> > But i already have a ?

Joe suggested:
> To pass more than one argument type:
> http://foo.com/script.php?var1=hello&var2=foo&var3=bar

But that won't help in this case. 
See, there are two different URL's. First, form.html calls the formmail cgi 
with the url in the FORM ACTION. Then the user is redirected by formmail 
with the URL in the redirect form element.
Additions to the link to the formmail script are of course not seen by the 
following php3 page, because that's another link. 

Form.html has a textbox with the message and a hidden textbox with redirect 
URL.

         [form.html]       
                |
                |               <form action="http://~/formmail.pl"?    
                V
        [formmail.pl]   
                |
                |               redirect 
                V
        [faq_confirm.php3]     show message here 

Formmail.pl does not need any addition to the link; it gets the form 
elements by magic (POST method defined in FORM tag), like php scripts would 
too, only with a different name. 

To pass the textbox message through as you ask, the message needs to be in 
the redirect URL. This addition of the message  i can imagine can be done in 
the first page with javascript (suggestion D) , in the formmail.pl (B) or in 
formmail.php (C).  

However, I suggest to change your concept as in suggestion  A.
None is tested or claims to be complete. Just giving a direction and hints.


*************************************************************
A. Make your own PHP script

         [form.html]    
                |
                |               form action="confirm.php3"      
                V
        [faq_confirm.php3] with sendmail and print a HTML with $message
                        

I strongly suggest to abandone formmail.pl, make a php script instead that 
specifically sends a mail with the data from the form (use php function 
sendmail() ) and then shows the response page with the content of that 
specific text box. That's really the easiest way

If you called the message box 'message' the text will be in variable 
$message . 


A is best because: - all is done in one script, 
                                        - you will learn how to do this
                                        - no use of long url and no dangers of too 
long text in 
                                         that box of yours. (this socalled GET method 
(with the ?
                                         and variables in the URL) is limited
                                         in some older browsers and maybe even servers 
to
                                         sometimes only 256 characters)
                                        - this is the only proposal where you can do 
                                        some validation in php before sending the mail.
Disadvantage to formmail: formmail doesn't care if you rename your own form 
element names. Your own php script will probably not catch all form 
elements, unless if you check for all element names in PHP_POST_VARS - see 
PHP manual function.each.html and language.variables.external.html.


*************************************************************
B. Modify the Perl Script (hard)

         [form.html]    
                |
                |               form action="formmail.pl"       
                V
        [formmail.pl]   adapt redirect here
                |
                |               redirect: .php3?message=bla     
                V
        [faq_confirm.php3]

If you have access to the script and nobody minds you changing it, find this 
line in the formmail.pl :
              print "Location: $Config{'redirect'}\n\n";
This one calls a page mentioned in your form's  textbox named 'redirect' 
(see formmail documentation). 
Now somehow add the textbox you need. It MIGHT look like this (i forgot 
about scope and all kinds of perl details).
        
                      print "Location: $Config{'redirect'}".
                                        '?nameofyourtextbox='
                                        "$Config{'nameofyourtextbox'}".
                                        "\n\n";

And hopefully variable $nameofyourtextbox in your redirect page.php contains 
the text. MIND YOU i think you have to change the textbox contents to 
prevent the spaces in the textbox (space would end the URL and you;ll end up 
with only the 1st word), so you will have to find the Perl equivalent of 
urlencode like this:

                                &urlencode($Config{'nameofyourtextbox'}).
Perl is more difficult to debug than PHP and i only give this to help you 
going. I will not test it. I have many doubts about the way perl handles 
qquotes and whether it is needed to escape the ?-mark. Find Perl gurus to 
make it work.
Also check if your textbox even ends up in $config, maybe check the  part 
just after    "# Define the configuration associative array. ".



*************************************************************
C. Adapt formmail.php   (easy)

         [form.html]    
                |
                |               form action="formmail.PHP"      
                V
        [formmail.PHP]  adapt redirect here
                |
                |               redirect url?message=bla        
                V
        [faq_confirm.php3]


find formmail.php instead of formmail.pl. I saw it hanging out there 
somewhere, someone translated the perl script to a php version. It's free!?

Now it's less difficult. In the script find the forwarding line: it is 
probably near the words header("location: $redirect").
Now to add the textbox i think it would be something like this:

$redirect .= '?nameofyourtextbox='.urlencode($nameofyourtextbox)."\n\n";
header("Location: $redirect");
exit;

(in your first form:
<FORM METHOD = 'POST' Name='.....' ACTION='http://path/formmail.php'>
 <input type='hidden' 
                name='redirect' 
                value='http://www.ahost.org/jstump/faq_confirm.php3'>
 
 <input type='text'
                name='nameofyourtextbox'>
</form>

)

For C you can consider to study sessions() and make a session remember the 
variable instead of clipping it to the URL, with the disadvantage of the GET 
method mentioned in A. 


*************************************************************
D Javascript
         [form.html]    change to redirect?var=message with javascript
                |
                |               form action="formmail.pl"       
                V
        [formmail.pl]   
                |
                |               redirect?var=message    
                V
        [faq_confirm.php3]


Make a javascript which executes on submit, which safely adds the textbox to 
the redirect. Only works if the javascript works in the users' browser, just 
wanted to mention it. Probably a dangerous idea.
_like_ this:
 
<script language="javascript">
//<--
function addtextbox(){
        document.formname.redirect.value = document.formname.redirect.value+    
                                                          escape ( 
document.formname.yrtextbox.value)

        location.href="http://path/formmail.pl"         // or .php
        exit;
}
//-->   (where escape does what urlencode does in PHP)
</script>

and 
<FORM METHOD = 'POST' Name='formname' OnSubmit='addtextbox()'>
<input type='hidden' 
                name='redirect' 
                value='http://www.ahost.org/jstump/faq_confirm.php3'>
 
 <input type='text'
                name='yrtextbox'>
</form>

*************************************************************


Jees, i surely hope you can use one of these brilliant ideas :-).
Chris


--------------------------------------------------------------------
--  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --
--------------------------------------------------------------------

 




It seems to only allow me to add data  if I have more than 1 field.Is this a
bug?Phpmyadmin doesnt have this problem.
Mike P
[EMAIL PROTECTED]







Hi if anyone has any knowledge of a RAQ 2 please read on...



I have no idea how to install PHP to work with the current settings... I
cant find apacheeven though it is supposed to be built in right?. Well would
someoen please if they know how tell me how to install PHP on a CObalt RAQ 2



Thanks any assistance would be greatly appreciated.






Hi again,

How do I link this image file so that when users click on it they get
the bigger version (which is named xxxxxxxx01.jpg).

<?

$photo = file_exists("th_xxxxxxxx01.jpg") ? "<IMG
SRC=\"th_xxxxxxxx01.jpg\">" : "No Photo Yet<br>\n";

echo "$photo";

?>

Here is the html version of what I am trying to do, as you can see the
'xxxxxxxx' is a variable.

<p align="left"><a href="race02.jpg"><img src="th_race02.jpg"
alt="CLICK TO ENLARGE"></a></p>

Thanks again,

Dave






Dave,

Here is a bare-bones example.
You will notice that you don't need to hard code the thumbnail on the first
page either as long as are consistent in file naming with a set prefix
differentiating thumbnails from their larger pix.

page_one.php:

<? 
$pic_name = 'big.jpg';
echo "<a href=\"page_two.php?id=$pic_name\">click to enlarge</a>";
echo "<img src =thumb_$pic_name>";
?>

page_two.php:

<? 
echo "<img src =\"$id\">";
?>


Best regards,
Andrew
------------------------------------------
Andrew Hill
Director Technology Evangelism
OpenLink Software
http://www.openlinksw.com
XML & E-Business Infrastructure Technology



On 1/23/01 9:23 PM, "Dave Stewart" <[EMAIL PROTECTED]> wrote:

> Hi again,
> 
> How do I link this image file so that when users click on it they get
> the bigger version (which is named xxxxxxxx01.jpg).
> 
> <?
> 
> $photo = file_exists("th_xxxxxxxx01.jpg") ? "<IMG
> SRC=\"th_xxxxxxxx01.jpg\">" : "No Photo Yet<br>\n";
> 
> echo "$photo";
> 
> ?>
> 
> Here is the html version of what I am trying to do, as you can see the
> 'xxxxxxxx' is a variable.
> 
> <p align="left"><a href="race02.jpg"><img src="th_race02.jpg"
> alt="CLICK TO ENLARGE"></a></p>
> 
> Thanks again,
> 
> Dave
> 
> 





Hi,
I am trying to run this code from the manual but with no success:
<?php
$spellinglink = aspell_new ("english");
if (aspell_check ($spellinglink, "testt")) {
    echo "This is a valid spelling";
} else {
    echo "Sorry, wrong spelling";
}
?>

It returns this error:
Fatal error: Call to undefined function: aspell_new() in
/home/www/htdocs/sunsetstudios/photoscope/test.php on line 2

Is there a module have to enable to use Aspell? Or is there something I have
to change in php.ini? Please help.

--Nanda

_______________________________

This email may contain confidential and/or privileged information for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you have received this email in error, please
contact the sender and delete all copies. Opinions, conclusions or other
information expressed or contained in this email are not given or endorsed
by the sender unless otherwise affirmed independently by the sender.

_________________________________





Ahh... found the answer :) So much for the PHP doc, it didnt say anything
about what i needed, I had to use the Zend one :|

-----Original Message-----
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 January 2001 12:54 PM
To: PHP List
Subject: [PHP] Aspell Function


Hi,
I am trying to run this code from the manual but with no success:
<?php
$spellinglink = aspell_new ("english");
if (aspell_check ($spellinglink, "testt")) {
    echo "This is a valid spelling";
} else {
    echo "Sorry, wrong spelling";
}
?>

It returns this error:
Fatal error: Call to undefined function: aspell_new() in
/home/www/htdocs/sunsetstudios/photoscope/test.php on line 2

Is there a module have to enable to use Aspell? Or is there something I have
to change in php.ini? Please help.

--Nanda

_______________________________

This email may contain confidential and/or privileged information for the
sole use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you have received this email in error, please
contact the sender and delete all copies. Opinions, conclusions or other
information expressed or contained in this email are not given or endorsed
by the sender unless otherwise affirmed independently by the sender.

_________________________________


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






And the answer was?

Gfunk         -          http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


----- Original Message -----
From: "Matt Stone" <[EMAIL PROTECTED]>
To: "Matt Stone" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 2:02 PM
Subject: RE: [PHP] Aspell Function


> Ahh... found the answer :) So much for the PHP doc, it didnt say anything
> about what i needed, I had to use the Zend one :|
>
> -----Original Message-----
> From: Matt Stone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 January 2001 12:54 PM
> To: PHP List
> Subject: [PHP] Aspell Function
>
>
> Hi,
> I am trying to run this code from the manual but with no success:
> <?php
> $spellinglink = aspell_new ("english");
> if (aspell_check ($spellinglink, "testt")) {
>     echo "This is a valid spelling";
> } else {
>     echo "Sorry, wrong spelling";
> }
> ?>
>
> It returns this error:
> Fatal error: Call to undefined function: aspell_new() in
> /home/www/htdocs/sunsetstudios/photoscope/test.php on line 2
>
> Is there a module have to enable to use Aspell? Or is there something I
have
> to change in php.ini? Please help.
>
> --Nanda
>
> _______________________________
>
> This email may contain confidential and/or privileged information for the
> sole use of the intended recipient. Any review or distribution by others
is
> strictly prohibited. If you have received this email in error, please
> contact the sender and delete all copies. Opinions, conclusions or other
> information expressed or contained in this email are not given or endorsed
> by the sender unless otherwise affirmed independently by the sender.
>
> _________________________________
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





I had to download a the aspell library :)

-----Original Message-----
From: Josh G [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 January 2001 1:03 PM
To: PHP User Group
Subject: Re: [PHP] Aspell Function


And the answer was?

Gfunk         -          http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


----- Original Message -----
From: "Matt Stone" <[EMAIL PROTECTED]>
To: "Matt Stone" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 2:02 PM
Subject: RE: [PHP] Aspell Function


> Ahh... found the answer :) So much for the PHP doc, it didnt say anything
> about what i needed, I had to use the Zend one :|
>
> -----Original Message-----
> From: Matt Stone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 January 2001 12:54 PM
> To: PHP List
> Subject: [PHP] Aspell Function
>
>
> Hi,
> I am trying to run this code from the manual but with no success:
> <?php
> $spellinglink = aspell_new ("english");
> if (aspell_check ($spellinglink, "testt")) {
>     echo "This is a valid spelling";
> } else {
>     echo "Sorry, wrong spelling";
> }
> ?>
>
> It returns this error:
> Fatal error: Call to undefined function: aspell_new() in
> /home/www/htdocs/sunsetstudios/photoscope/test.php on line 2
>
> Is there a module have to enable to use Aspell? Or is there something I
have
> to change in php.ini? Please help.
>
> --Nanda
>
> _______________________________
>
> This email may contain confidential and/or privileged information for the
> sole use of the intended recipient. Any review or distribution by others
is
> strictly prohibited. If you have received this email in error, please
> contact the sender and delete all copies. Opinions, conclusions or other
> information expressed or contained in this email are not given or endorsed
> by the sender unless otherwise affirmed independently by the sender.
>
> _________________________________
>
>
> --
> 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]






Arghh!! Is aspell even supported on windows 2k?

-----Original Message-----
From: Matt Stone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 January 2001 1:06 PM
To: Josh G; PHP User Group
Subject: RE: [PHP] Aspell Function


I had to download a the aspell library :)

-----Original Message-----
From: Josh G [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 January 2001 1:03 PM
To: PHP User Group
Subject: Re: [PHP] Aspell Function


And the answer was?

Gfunk         -          http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


----- Original Message -----
From: "Matt Stone" <[EMAIL PROTECTED]>
To: "Matt Stone" <[EMAIL PROTECTED]>; "PHP List"
<[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 2:02 PM
Subject: RE: [PHP] Aspell Function


> Ahh... found the answer :) So much for the PHP doc, it didnt say anything
> about what i needed, I had to use the Zend one :|
>
> -----Original Message-----
> From: Matt Stone [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 January 2001 12:54 PM
> To: PHP List
> Subject: [PHP] Aspell Function
>
>
> Hi,
> I am trying to run this code from the manual but with no success:
> <?php
> $spellinglink = aspell_new ("english");
> if (aspell_check ($spellinglink, "testt")) {
>     echo "This is a valid spelling";
> } else {
>     echo "Sorry, wrong spelling";
> }
> ?>
>
> It returns this error:
> Fatal error: Call to undefined function: aspell_new() in
> /home/www/htdocs/sunsetstudios/photoscope/test.php on line 2
>
> Is there a module have to enable to use Aspell? Or is there something I
have
> to change in php.ini? Please help.
>
> --Nanda
>
> _______________________________
>
> This email may contain confidential and/or privileged information for the
> sole use of the intended recipient. Any review or distribution by others
is
> strictly prohibited. If you have received this email in error, please
> contact the sender and delete all copies. Opinions, conclusions or other
> information expressed or contained in this email are not given or endorsed
> by the sender unless otherwise affirmed independently by the sender.
>
> _________________________________
>
>
> --
> 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]






Hi,

I am the editor of the Symantec AntiVirus Research Center(re) Newsletter and
I am looking for someone to write an article on PHP security/viruses/worms.
For those that don't know Symantec publish the Norton range of software.

The newsletter has a circulation of about 200,000 and is published in 10
languages, this is an ideal opportunity for a PHP expert to get in front of
a lot of corporate IT people in many countries.

Anyone interested please email me at: dbanes'put the usual symbol here'.'the
companies name'.com

Best Regards
David Banes
Editor, Symantec AntiVirus Newsletter.






Teodor Cimpoesu wrote:

> I've got a nice browsecap.ini file from php4win.de.
> You can then simply use get_browser() [ listed under Miscellaneous functions]

Hi Teodor

I can't find it! I went to the site and downloaded the complete
php_for_windows install thinking that I could unzip the lot in Linux and
it'd be there but it's not. Then again, knowing Windows, it could just
be a binary.

But I've found the get_browser function in the manual. I guess the idea
is that the browsercap.ini file goes inside php.ini?

The main (and for me, utterly unresolvable) issue is whether under
Windows, Netscape reveals the same text handling behaviour as under
Linux, that is, pre 6* versions display the same text smaller than 6*
versions. (Of course, the issue is further compounded by Star Office
displaying 6*/I.E behaviour and by the issue of what Macs, Ataris and
who knows how many *nixes might do!)

-- 
******************************************************************************
Marx: "Why do Anarchists only drink herbal tea?"
Proudhon: "Because all proper tea is theft."
******************************************************************************




I'm going to created a database with the use of a php/html page on my 
commercial host (forsite.net). I have yet to master the unix directory 
system so I don't want to play around looking for it. Does a database have 
to "live" in the MySQL directory, or can it be in my html web directory? 
How does it usually get set up? If it can be stored in my web directory, 
how do I get it there?
Thanks





I use the news.netimages.com gateway to access this mailing list since I
don't feel like getting my mailbox flooded with mail (and wasn't really
happy with the way the digest worked). However, I've noticed that the
newsgroup only works for reading -- e.g. I can't post messages to it and
have to send them to the mailing list.

Is there any easy way to post to the group instead?

--
 - Daniel Grace <http://dewin.oldbattery.com/>

  "Space may be the final frontier but its made in a Hollywood basement."
    - Red Hot Chili Peppers - Californication








> Is there any easy way to post to the group instead?

I'm reading and posting from the very handy news://news.php.net server they
have set up. It's just the coolest! =)





I have the sniplet to run teh query at the page to insert data as shown below. After 
it is run, there was en error said something like 
"Mysql warning, 0 ( zero) is not Mysql index"  and the error point to the line using 
mysql_insert_id($HotelID);
My limited experience cannot tell me what should I be doing in order to get what I 
need. Any thought?
******************************************************
//insert Hotel detail
    $insertHotel     = "INSERT INTO Hoteldetail  (HotelName,HotelLocation, 
HotelCountry,HotelPostcode, HotelTelephone,Hotelfax,HotelURL, 
HotelContactFirstName,HotelContactLastName, HotelRoomProvided, HotelEmail) VALUES 
('$HotelName', '$HotelLocation', '$HotelCountry', '$HotelPostcode', '$Hoteltelephone', 
'$Hotelfax', '$HotelURL', '$HotelContactFirstName', '$HotelContactLastName', 
'$HotelRoomProvided', '$HotelEmail')";
        $resultHotel     = mysql_query($insertHotel);
        // retrive latest HotelID
  $latestHotelID = mysql_insert_id($HotelID);
******************************************************
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"




HI Jack,

What is the variable $HotelID ?

mysql_insert_id - has an optional parameter: link_identifier (the database
handle)

So in this case, is $HotelID your database handle? If not, then just call
mysql_insert_id() without any parameters.

Otherwise, it is always best to pass around the database handle so that you
know which connection you are using.

Sam


> -----Original Message-----
> From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 25 January 2001 03:17
> To: [EMAIL PROTECTED]
> Subject: [PHP] what is wrong about this sniplet?
>
>
> I have the sniplet to run teh query at the page to insert data as
> shown below. After it is run, there was en error said something like
> "Mysql warning, 0 ( zero) is not Mysql index"  and the error
> point to the line using mysql_insert_id($HotelID);
> My limited experience cannot tell me what should I be doing in
> order to get what I need. Any thought?
> ******************************************************
> //insert Hotel detail
>     $insertHotel     = "INSERT INTO Hoteldetail
> (HotelName,HotelLocation, HotelCountry,HotelPostcode,
> HotelTelephone,Hotelfax,HotelURL,
> HotelContactFirstName,HotelContactLastName, HotelRoomProvided,
> HotelEmail) VALUES ('$HotelName', '$HotelLocation',
> '$HotelCountry', '$HotelPostcode', '$Hoteltelephone',
> '$Hotelfax', '$HotelURL', '$HotelContactFirstName',
> '$HotelContactLastName', '$HotelRoomProvided', '$HotelEmail')";
>         $resultHotel     = mysql_query($insertHotel);
>         // retrive latest HotelID
>   $latestHotelID = mysql_insert_id($HotelID);
> ******************************************************
> cheers
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set
> for yourself"
>





The variable $HotelID is the hotelId of the record that I just inserted into
database and I want to retrive the Id of that record to insert into another
table.
what is the correct syntax of using mysql_insert_id in this case?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
----- Original Message -----
From: Samantha Savvakis <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>
Cc: PHP General <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 10:20 PM
Subject: RE: [PHP] what is wrong about this sniplet?


> HI Jack,
>
> What is the variable $HotelID ?
>
> mysql_insert_id - has an optional parameter: link_identifier (the database
> handle)
>
> So in this case, is $HotelID your database handle? If not, then just call
> mysql_insert_id() without any parameters.
>
> Otherwise, it is always best to pass around the database handle so that
you
> know which connection you are using.
>
> Sam
>
>
> > -----Original Message-----
> > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 25 January 2001 03:17
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] what is wrong about this sniplet?
> >
> >
> > I have the sniplet to run teh query at the page to insert data as
> > shown below. After it is run, there was en error said something like
> > "Mysql warning, 0 ( zero) is not Mysql index"  and the error
> > point to the line using mysql_insert_id($HotelID);
> > My limited experience cannot tell me what should I be doing in
> > order to get what I need. Any thought?
> > ******************************************************
> > file://insert Hotel detail
> >     $insertHotel     = "INSERT INTO Hoteldetail
> > (HotelName,HotelLocation, HotelCountry,HotelPostcode,
> > HotelTelephone,Hotelfax,HotelURL,
> > HotelContactFirstName,HotelContactLastName, HotelRoomProvided,
> > HotelEmail) VALUES ('$HotelName', '$HotelLocation',
> > '$HotelCountry', '$HotelPostcode', '$Hoteltelephone',
> > '$Hotelfax', '$HotelURL', '$HotelContactFirstName',
> > '$HotelContactLastName', '$HotelRoomProvided', '$HotelEmail')";
> >         $resultHotel     = mysql_query($insertHotel);
> >         // retrive latest HotelID
> >   $latestHotelID = mysql_insert_id($HotelID);
> > ******************************************************
> > cheers
> > Jack
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set
> > for yourself"
> >
>





Hi,

I'm running a PHP script that uses system() to call an expect script.

This expect script uses ssh2 to log into another server, and run some
commands. At the shell prompt (bash) the expect script runs exactly as
I'd hope.

However, when I use system() in PHP to run the script, the output on the
web browser includes lines like this:

]0;root@apache: /root[root@apache /root]# 

I'd hope to see something like this instead of the above:

[root@apache /root]# 


My guess is that there is something that the shell and/or expect is
hiding from me, that system() is displaying instead. Is there some way
of telling system() that it should look exactly like it does in a shell,
or to tell the shell or expect not to generate this hidden info?

Any advice would be appreciated!

TIA,
-- 
Andrew Hill

"Right now, I'd happily snort gunk from the sink if it would take
my brain somewhere away from here...." - JB




Hey, you stole my name!  ::grin::

Man is this going to get confusing.

Best regards,
Andrew
------------------------------------------
Andrew Hill
Director Technology Evangelism
OpenLink Software
http://www.openlinksw.com
XML & E-Business Infrastructure Technology


On 1/23/01 11:35 PM, "Andrew Hill" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> I'm running a PHP script that uses system() to call an expect script.
> 
> This expect script uses ssh2 to log into another server, and run some
> commands. At the shell prompt (bash) the expect script runs exactly as
> I'd hope.
> 
> However, when I use system() in PHP to run the script, the output on the
> web browser includes lines like this:
> 
> ]0;root@apache: /root[root@apache /root]#
> 
> I'd hope to see something like this instead of the above:
> 
> [root@apache /root]#
> 
> 
> My guess is that there is something that the shell and/or expect is
> hiding from me, that system() is displaying instead. Is there some way
> of telling system() that it should look exactly like it does in a shell,
> or to tell the shell or expect not to generate this hidden info?
> 
> Any advice would be appreciated!
> 
> TIA,





Is there a good web site to find people interested in volunteering on PHP 
projects?  I have a fantasy / sci-fi / rpg based web site and wanted to 
find someone interested in helping with the PHP development.  If you're 
interested, feel free to visit the site and contact me.  If you know of 
where I can go to post something like this, I'd appreciate if you'd send me 
a note to let me know.

Thanks! =)

Ed Lazor
AtFantasy Alliance
http://www.AtFantasy.com





hi, 

i dug around and found that there is something called
XSLT and that there are things like coccon etc in java
from apache group, and php's own parser (sablotron?)
that i can use to transform xml into javascript and
html. 

my problem is that i need to create a xslt parser that
i can use both in java and jsp based implementations
as well as php based ones. so most likely i should use
something that is supported on both platforms. 

my questions: 

1. which parser should i use to achieve this? i would
really appreciate any ideas.

2. are there any examples of doing this? i mean
converting an xml file into html and javascript at
runtime? so that i have just one php script that reads
the xml files and draws my pages on my website. 

3. does anyone know why php.net chose sablotron for
their xslt functions? i am interested in just the
reasons that i can bounce off as well. 

thanks in advance/erick



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




Hi

I recently wrote a script that copies about 200 data files from a remote
server, and stores them locally.

It does this under cron every night

Everything has been fine for a couple of weeks, but now when running the
script I get an error message that reads

Warning: file(http://remote.server.com/file.html) - Bad file descriptor in
/home/convert.php on line ...

And the files that the script is copying and referring to are all zero
length.

This doesn't happen all the time. some nights I may get no error messages
and other times I get lots of them.
Last night it was nearly all of them.

The problem seems to be getting increasingly worse as time passes.

I have checked the data files (about half are html and half are images) and
they seem fine.

I'm a bit new to php and I really have no idea what the error message means.
Can someone help and explain what might be going on please

Thanks

Kif
[EMAIL PROTECTED]











Hi people,
Off the topic here again but hope it won't be too much to ask. As inexperience person 
on setup new Db on Mysql for new php project, I need to add new database on Mysql for 
new project, as stupid as I normally am, I don't really know what exactly to do about 
the set up of user and password on that new db after it is added. So the db connection 
could not connect at the code. 
What I did was that after I added new db, log in to Mysql admin via telnet, say "use 
Mysql" database and add new user at "user" table (without password,leave it blank), 
with this query:

 > insert into user values ('216.122.146.147','freesale', 
 >'','y','y','y','y','y','y','y','y','y','y','y','y','y','y');

and freesale is of course username and I left password field as blank and given all 
previliges as yes. 

Then add that username into Db table together with the database name using this query :

>insert into db values 
>('216.122.146.147','FreeSale','freesale','y','y','y','y','y','y','y','y','y','y');

while FreeSale is database name and freesale is username.


Database connection still could not establish, Anything else I miss here?
cheers  
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"




you are forgetting to do a reload.

./mysqladmin reload

> -----Original Message-----
> From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 25 January 2001 04:36
> To: [EMAIL PROTECTED]
> Subject: [PHP] as stupid as I normally am.....
> 
> 
> Hi people,
> Off the topic here again but hope it won't be too much to ask. As 
> inexperience person on setup new Db on Mysql for new php project, 
> I need to add new database on Mysql for new project, as stupid as 
> I normally am, I don't really know what exactly to do about the 
> set up of user and password on that new db after it is added. So 
> the db connection could not connect at the code. 
> What I did was that after I added new db, log in to Mysql admin 
> via telnet, say "use Mysql" database and add new user at "user" 
> table (without password,leave it blank), with this query:
> 
>  > insert into user values ('216.122.146.147','freesale', 
> '','y','y','y','y','y','y','y','y','y','y','y','y','y','y');
> 
> and freesale is of course username and I left password field as 
> blank and given all previliges as yes. 
> 
> Then add that username into Db table together with the database 
> name using this query :
> 
> >insert into db values 
> ('216.122.146.147','FreeSale','freesale','y','y','y','y','y','y','
> y','y','y','y');
> 
> while FreeSale is database name and freesale is username.
> 
> 
> Database connection still could not establish, Anything else I miss here?
> cheers  
> Jack
> [EMAIL PROTECTED]
> "There is nothing more rewarding than reaching the goal you set 
> for yourself"
> 




I did use "./mysqladmin reload" and I got this back on the interface ( using
telnet)
**********************
mysql> ./mysqladmin reload
    ->
*********************
and it does not do anything, is that mean the db serevr has already been
reloaded?
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
----- Original Message -----
From: Samantha Savvakis <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 11:34 PM
Subject: RE: [PHP] as stupid as I normally am.....


> you are forgetting to do a reload.
>
> ./mysqladmin reload
>
> > -----Original Message-----
> > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 25 January 2001 04:36
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] as stupid as I normally am.....
> >
> >
> > Hi people,
> > Off the topic here again but hope it won't be too much to ask. As
> > inexperience person on setup new Db on Mysql for new php project,
> > I need to add new database on Mysql for new project, as stupid as
> > I normally am, I don't really know what exactly to do about the
> > set up of user and password on that new db after it is added. So
> > the db connection could not connect at the code.
> > What I did was that after I added new db, log in to Mysql admin
> > via telnet, say "use Mysql" database and add new user at "user"
> > table (without password,leave it blank), with this query:
> >
> >  > insert into user values ('216.122.146.147','freesale',
> > '','y','y','y','y','y','y','y','y','y','y','y','y','y','y');
> >
> > and freesale is of course username and I left password field as
> > blank and given all previliges as yes.
> >
> > Then add that username into Db table together with the database
> > name using this query :
> >
> > >insert into db values
> > ('216.122.146.147','FreeSale','freesale','y','y','y','y','y','y','
> > y','y','y','y');
> >
> > while FreeSale is database name and freesale is username.
> >
> >
> > Database connection still could not establish, Anything else I miss
here?
> > cheers
> > Jack
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set
> > for yourself"
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





Hello All,
php ISP HOST WANTED
I seek expressions of interest from North American based PHP internet service 
providers (ISP's). We seek a php focused ISP where security, reliability and 
performance are paramount. RAID networking is essential. Our client needs mission 
critical host services on a priority basis. If you use or know of such host services, 
and are completely happy with them, kindly let us know too OFFLINE at:

[EMAIL PROTECTED]

Thank you.

EASYSQL RELEASED
Also, this is the first announcement of a new php MINI application called easySQL. 
easySQL is freely downloadable and lets you query a database using just your browser. 
Essentially it allows for a quick and dirty connect, select and query to a database 
without the need for installing larger programs. It is just one file, is driven by php 
and javascript, has rudimentary configurable password protection, has a reusable query 
option and has been tested for several months in hundreds of installs. 

More info: http://www.dreamriver.com/software/phpEasySQL/index.php
Download: http://www.dreamriver.com/software/

Kind Regards,

Richard Creech
[EMAIL PROTECTED]
250.744.3350 Pacific Time Canada
Download phpYellow Pages for dynamic Website Content
http://dreamriver.com/software/index.php3





best kind of networks, those RAID networks. Much better than
STRIPE printers....

Gfunk         -          http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


----- Original Message -----
From: "Richard Creech - DreamRiver.com" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 4:33 PM
Subject: [PHP] 1. php ISP host wanted, 2. Release of EasySQL


> Hello All,
> php ISP HOST WANTED
> I seek expressions of interest from North American based PHP internet
service providers (ISP's). We seek a php focused ISP where security,
reliability and performance are paramount. RAID networking is essential. Our
client needs mission critical host services on a priority basis. If you use
or know of such host services, and are completely happy with them, kindly
let us know too OFFLINE at:
>
> [EMAIL PROTECTED]
>
> Thank you.
>
> EASYSQL RELEASED
> Also, this is the first announcement of a new php MINI application called
easySQL. easySQL is freely downloadable and lets you query a database using
just your browser. Essentially it allows for a quick and dirty connect,
select and query to a database without the need for installing larger
programs. It is just one file, is driven by php and javascript, has
rudimentary configurable password protection, has a reusable query option
and has been tested for several months in hundreds of installs.
>
> More info: http://www.dreamriver.com/software/phpEasySQL/index.php
> Download: http://www.dreamriver.com/software/
>
> Kind Regards,
>
> Richard Creech
> [EMAIL PROTECTED]
> 250.744.3350 Pacific Time Canada
> Download phpYellow Pages for dynamic Website Content
> http://dreamriver.com/software/index.php3
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





Hi,

I've made a small class that adds RC4 encryption
functionality to those versions of PHP which don't
have mycrypt either installed or the specific version
for RC4 is not installed.

It's a class that simply requires you to pass some
parameters, like key, and the plaintext, and an
optional decrypting value.

http://devhome.net/php/
http://phpclasses.upperdesign.com/browse.html/package/146

Thanks.

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

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




Hi,

I'm making a small quiz script, and wanted to know how
I could minimize repition of questions to a single
user.

And also how to randomize all the questions ?

thanks.

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

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




Nope, it still not working after i refresh the page. I went to database
mysql again and check table "user" and see username "freesale" there with
the host IP and it is empty at the password field in the table.
I also went to check table "db" and look at the fields Host, user and I also
see correct Host IP together with username "freesale".
And the code to set up db connection at the page is below:
**********************************************
$connection = mysql_connect("216.122.146.147", "freesale", "") or die
("Could not connect");
 mysql_select_db("FreeSale", $connection);
***********************************************
Please enlighten me what I have done wrong because I nearly went crazy now
:-)
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
----- Original Message -----
From: Samantha Savvakis <[EMAIL PROTECTED]>
To: Jacky@lilst <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 12:29 AM
Subject: RE: [PHP] as stupid as I normally am.....


> hi,
>
> ok, you did the reload, and now when you try your connect, does it work?
>
> The reload command does not return anything.
>
> Sam
>
>
> > -----Original Message-----
> > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 25 January 2001 05:23
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: [PHP] as stupid as I normally am.....
> >
> >
> > I did use "./mysqladmin reload" and I got this back on the
> > interface ( using
> > telnet)
> > **********************
> > mysql> ./mysqladmin reload
> >     ->
> > *********************
> > and it does not do anything, is that mean the db serevr has already been
> > reloaded?
> > cheers
> > Jack
> > [EMAIL PROTECTED]
> > "There is nothing more rewarding than reaching the goal you set for
> > yourself"
> > ----- Original Message -----
> > From: Samantha Savvakis <[EMAIL PROTECTED]>
> > To: Jacky@lilst <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 23, 2001 11:34 PM
> > Subject: RE: [PHP] as stupid as I normally am.....
> >
> >
> > > you are forgetting to do a reload.
> > >
> > > ./mysqladmin reload
> > >
> > > > -----Original Message-----
> > > > From: Jacky@lilst [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, 25 January 2001 04:36
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] as stupid as I normally am.....
> > > >
> > > >
> > > > Hi people,
> > > > Off the topic here again but hope it won't be too much to ask. As
> > > > inexperience person on setup new Db on Mysql for new php project,
> > > > I need to add new database on Mysql for new project, as stupid as
> > > > I normally am, I don't really know what exactly to do about the
> > > > set up of user and password on that new db after it is added. So
> > > > the db connection could not connect at the code.
> > > > What I did was that after I added new db, log in to Mysql admin
> > > > via telnet, say "use Mysql" database and add new user at "user"
> > > > table (without password,leave it blank), with this query:
> > > >
> > > >  > insert into user values ('216.122.146.147','freesale',
> > > > '','y','y','y','y','y','y','y','y','y','y','y','y','y','y');
> > > >
> > > > and freesale is of course username and I left password field as
> > > > blank and given all previliges as yes.
> > > >
> > > > Then add that username into Db table together with the database
> > > > name using this query :
> > > >
> > > > >insert into db values
> > > > ('216.122.146.147','FreeSale','freesale','y','y','y','y','y','y','
> > > > y','y','y','y');
> > > >
> > > > while FreeSale is database name and freesale is username.
> > > >
> > > >
> > > > Database connection still could not establish, Anything else I miss
> > here?
> > > > cheers
> > > > Jack
> > > > [EMAIL PROTECTED]
> > > > "There is nothing more rewarding than reaching the goal you set
> > > > for yourself"
> > > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>



Reply via email to