OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 8 Nov 2004 22:55:04 -0000 Issue 3101

php-general-digest-helplists.php.net
Date: Mon Nov 08 2004 - 16:55:04 CST


php-general Digest 8 Nov 2004 22:55:04 -0000 Issue 3101

Topics (messages 201516 through 201579):

Re: Question: Exiting a script
        201516 by: Richard Davey

Re: undefined index: $_FILES || $HTTP_POST_FILES
        201517 by: Tobias Neumann

mysql networking ??
        201518 by: Aalee
        201519 by: Aalee

mysql netwoking??
        201520 by: Aalee
        201521 by: John Nichel
        201524 by: Robert Cummings

What about pgsql error codes ?
        201522 by: Bambero

Re. [PHP] mysql networking ?
        201523 by: Manoj Kumar

Re: Detecting image types for uploaded images
        201525 by: Karthik

Re: pspell problems
        201526 by: John Nichel
        201531 by: Jason Wong

set_include_path() isn't persistent
        201527 by: Justin French
        201529 by: John Nichel
        201530 by: Justin French
        201532 by: Justin French
        201543 by: Skippy

PEAR mail
        201528 by: marc serra
        201533 by: Ben Ramsey
        201539 by: Jim Wharton
        201541 by: Ben Ramsey
        201546 by: Matthew Weier O'Phinney

Re: Syntax highlighting of odd language
        201534 by: Aaron Gould

Re: You know you're a geek when...
        201535 by: Greg Donald

Re: Session Handling
        201536 by: Greg Donald

Sub selects vs nested loop was:Re: [PHP] You know you're a geek when...
        201537 by: raditha dissanayake
        201554 by: Greg Donald

Re: Search engine : build a new one or use an alreadry existing one ?
        201538 by: Greg Donald
        201542 by: Ben Ramsey

whoops, forgot to change the subject on that last one...
        201540 by: Jim Wharton

Re: FW by MAILER-DAEMONpb1.pair.com : *****SPAM_sub***** failure notice
        201544 by: Michelle Konzack

New/changing subject... was [PHP] Re: PEAR mail
        201545 by: Jim Wharton
        201548 by: Matthew Weier O'Phinney
        201549 by: Jim Wharton
        201559 by: Greg Donald

Drawing polygons from traverse information
        201547 by: Jim Wharton
        201560 by: Greg Donald

Variable for search results
        201550 by: Stuart Felenstein
        201551 by: Ben Ramsey
        201553 by: Stuart Felenstein
        201558 by: Ben Ramsey

DATE()
        201552 by: Aaron Todd
        201557 by: Greg Donald

Re: PHP Accelerator
        201555 by: Adrian Madrid
        201556 by: Paul Reinheimer

Re: Trying to Integrate PHP 4.3.4 w/ JDK 1.5.0
        201561 by: Jost Boekemeier

User's language settings
        201562 by: Dmitri Pissarenko
        201566 by: Daniel Schierbeck
        201570 by: Marek Kilimajer
        201575 by: Daniel Schierbeck

Re: apache 2, mysql 5.0.1.rpm and php 5.0.2 on RH9
        201563 by: Greg Donald

upload via FTP
        201564 by: Alessandro Rosa

Re: images doesn't seem to cache
        201565 by: Marek Kilimajer

Why cookie is created?
        201567 by: Jerry Swanson
        201568 by: Jay Blanchard
        201569 by: John Nichel
        201571 by: Jerry Swanson
        201572 by: John Nichel
        201573 by: Marek Kilimajer
        201576 by: Greg Donald
        201577 by: Jerry Swanson
        201578 by: Greg Donald
        201579 by: Paul Reinheimer

Re: Auto Form Fill on option select
        201574 by: GH

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

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

attached mail follows:


Hello Stuart,

Monday, November 8, 2004, 10:46:00 AM, you wrote:

SF> I think white space is my problem. What causes white
SF> space ?

Spaces and similar characters, carriage-returns, line-feeds, etc
output to the browser. Perhaps before the opening PHP tag, or after
the closing PHP tag. Any would screw it.

Best regards,

Richard Davey
--
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

attached mail follows:


On Mon, 08 Nov 2004 15:52:53 +0600, Raditha Dissanayake wrote:

> Quick question: is file uploads enabled on this server and is the
> temporary directory writable?

Hmm. upload_tmp_dir was unset. The php.ini says that in this case the
systems default tempoary directory is used. So I guessed it would be
/tmp, because php also saves the session data there. Now I set the
upload_tmp_dir explicit to /tmp and it works.

So where on linux systems is the default tempoary directory set?

attached mail follows:


Hi guys,
I have a small home network working with just 4 computers (PC's on WinXP
Pro) connected through a switch just using the local ip's 192.168.0.1 and so
on. And the netwok is working fine. I have installed MySQL on one computer
and setup a database and installed MySQL on the other PCs aswell. But am
having problem getting into the server computer where the databases are
setup. Does any one of you know of any good tutorials out there how to setup
a small network using MySQL using windows XP. I have come across some tutes,
but most of them are on using Linux. Or any advice would be helpful.

Thanks on advance

attached mail follows:


Hi guys,
I have a small home network working with just 4 computers (PC's on WinXP
Pro) connected through a switch just using the local ip's 192.168.0.1 and so
on. And the netwok is working fine. I have installed MySQL on one computer
and setup a database and installed MySQL on the other PCs aswell. But am
having problem getting into the server computer where the databases are
setup. Does any one of you know of any good tutorials out there how to setup
a small network using MySQL using windows XP. I have come across some tutes,
but most of them are on using Linux. Or any advice would be helpful.

Thanks on advance
aalee

attached mail follows:


Hi guys,
I have a small home network working with just 4 computers (PC's on WinXP
Pro) connected through a switch just using the local ip's 192.168.0.1 and so
on. And the netwok is working fine. I have installed MySQL on one computer
and setup a database and installed MySQL on the other PCs aswell. But am
having problem getting into the server computer where the databases are
setup. Does any one of you know of any good tutorials out there how to setup
a small network using MySQL using windows XP. I have come across some tutes,
but most of them are on using Linux. Or any advice would be helpful.

Thanks on advance
aalee

attached mail follows:


Aalee wrote:

> Hi guys,
> I have a small home network working with just 4 computers (PC's on WinXP
> Pro) connected through a switch just using the local ip's 192.168.0.1 and so
> on. And the netwok is working fine. I have installed MySQL on one computer
> and setup a database and installed MySQL on the other PCs aswell. But am
> having problem getting into the server computer where the databases are
> setup. Does any one of you know of any good tutorials out there how to setup
> a small network using MySQL using windows XP. I have come across some tutes,
> but most of them are on using Linux. Or any advice would be helpful.
>
> Thanks on advance
> aalee
>

This is still the PHP mailing list, right?

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

attached mail follows:


On Mon, 2004-11-08 at 07:41, John Nichel wrote:
> Aalee wrote:
>
> > Hi guys,
> > I have a small home network working with just 4 computers (PC's on WinXP
> > Pro) connected through a switch just using the local ip's 192.168.0.1 and so
> > on. And the netwok is working fine. I have installed MySQL on one computer
> > and setup a database and installed MySQL on the other PCs aswell. But am
> > having problem getting into the server computer where the databases are
> > setup. Does any one of you know of any good tutorials out there how to setup
> > a small network using MySQL using windows XP. I have come across some tutes,
> > but most of them are on using Linux. Or any advice would be helpful.
> >
> > Thanks on advance
> > aalee
> >
>
> This is still the PHP mailing list, right?

You Eeeeeeeeediot. We became a MySQL list a few months ago. We retained
the name php-general for backwards compatibility :l

Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

attached mail follows:


Hello

How can I get an error code of my last pgsql query like in mysql
'mysql_errno()' ?

http://www.postgresql.org/docs/7.4/static/errcodes-appendix.html

Bambero

attached mail follows:


Hi its a php mailing list ? Okey .....

-- Manoj Kr. Sheoran

"Aalee" <ayyaalihotmail.com> wrote in message news:20041108114155.87870.qmailpb1.pair.com...
> Hi guys,
> I have a small home network working with just 4 computers (PC's on WinXP
> Pro) connected through a switch just using the local ip's 192.168.0.1 and so
> on. And the netwok is working fine. I have installed MySQL on one computer
> and setup a database and installed MySQL on the other PCs aswell. But am
> having problem getting into the server computer where the databases are
> setup. Does any one of you know of any good tutorials out there how to setup
> a small network using MySQL using windows XP. I have come across some tutes,
> but most of them are on using Linux. Or any advice would be helpful.
>
> Thanks on advance
> aalee
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


Hi,

   same thing mate - comes up as "image/jpeg image/jpeg" - The images
in question are definitely pjpegs - i.e. checking file type during
uploads registers them as pjpegs.

Cheers,
-K

On Mon, 8 Nov 2004 01:17:24 -0800, natesavingadvice.com
<natesavingadvice.com> wrote:
> What about mime_content_type()... see what that returns.
>
> Nate
>
> -----Original Message-----
> From: Karthik [mailto:narakasuragmail.com]
> Sent: Monday, November 08, 2004 12:35 AM
> To: php-generallists.php.net
> Subject: [PHP] Detecting image types for uploaded images
>
> Hi,
>
> How do I differentiate between progressive and standard jpegs for
> files "already" on the server ? getimagesize does return a mime type,
> but doesn't seem to differentiate between image/jpeg and image/pjpeg
> and returns image/jpeg for all jpeg images.
>
> Any ideas?
> Thanks
> -K

attached mail follows:


Jason Wong wrote:
> Methinks you need to install both. pspell provides an interface into aspell,
> it is aspell which actually does the dirty work. Some distros combine both
> aspell and pspell in one package, whilst others mat have split them up.
>

It depends on what version you install. All the latest versions of
aspell ( > 0.50 I think) contain both...at least when doing a source
install. When they first combined this, I had problems getting php to
configure with pspell when both pspell and aspell were installed on the
system.

BTW, what's up with your system clock Jason? ;)

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
johnkegworks.com

attached mail follows:


On Monday 08 November 2004 14:12, John Nichel wrote:

> BTW, what's up with your system clock Jason? ;)

I'll figure out how to set the clock one of these days. (Stop laughing).

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Never call a man a fool. Borrow from him.
*/

attached mail follows:


Hi,

Experimenting with set_include_path(), but it would appear that it
doesn't persist for the duration of the request, just the current
script. That is to say, an included file will not inherit the
include_path() of the parent file.

Is there any way to persist this without re-setting it on each file?

Justin

attached mail follows:


Justin French wrote:
> Hi,
>
> Experimenting with set_include_path(), but it would appear that it
> doesn't persist for the duration of the request, just the current
> script. That is to say, an included file will not inherit the
> include_path() of the parent file.
>
> Is there any way to persist this without re-setting it on each file?
>
> Justin
>

.htaccess or in the httpd.conf

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
johnkegworks.com

attached mail follows:


On 09/11/2004, at 1:26 AM, John Nichel wrote:

> Justin French wrote:
>> Hi,
>> Experimenting with set_include_path(), but it would appear that it
>> doesn't persist for the duration of the request, just the current
>> script. That is to say, an included file will not inherit the
>> include_path() of the parent file.
>> Is there any way to persist this without re-setting it on each file?
>> Justin
>
> .htaccess or in the httpd.conf

Figured as much... the catch is that I'd rather not have to explicitly
set the path in htaccess (eg "/usr/home/foo/public/bah/"), but can't
find a way yet to set a relative path in htaccess (eg "../" for "one
level up from this htaccess file).

Any ideas?

Justin

attached mail follows:


On 09/11/2004, at 1:19 AM, Justin French wrote:

> Experimenting with set_include_path(), but it would appear that it
> doesn't persist for the duration of the request, just the current
> script.

Actually, it does apply to included files... I just ____ed up my paths
:)

Justin

attached mail follows:


On Tue, 9 Nov 2004 01:39:03 +1100 Justin French
<justin.frenchindent.com.au> wrote:
>
> On 09/11/2004, at 1:26 AM, John Nichel wrote:
>
> > Justin French wrote:
> >> Hi,
> >> Experimenting with set_include_path(), but it would appear that it
> >> doesn't persist for the duration of the request, just the current
> >> script. That is to say, an included file will not inherit the
> >> include_path() of the parent file.
> >> Is there any way to persist this without re-setting it on each file?
> >> Justin
> >
> > .htaccess or in the httpd.conf
>
> Figured as much... the catch is that I'd rather not have to explicitly
> set the path in htaccess (eg "/usr/home/foo/public/bah/"), but can't
> find a way yet to set a relative path in htaccess (eg "../" for "one
> level up from this htaccess file).
>
> Any ideas?

Did you try ini_set('include_path','path')? I recall doing this recently in
a root script and then include() -ing other scripts. It worked out well.

--
Skippy - Romanian Web Developers - http://ROWD.ORG

attached mail follows:


hi,

i'm using Mail PEAR package and i want to send a mail to a recipient and
to some other in Cc.
So i try to add Cc in header but it failed and mail didn't been
delivered to Cc. It was only delivered to adress specified in From field.

I use that code :

    $hdrs = array(
                    "From" => "adresse1test.com",
                    "Cc" => "adresse2test.com"
                    "Subject" => "Tests"
                    );
    $mime = new Mail_mime($crlf);
    $mime->setHTMLBody(stripslashes($html));
    $body = $mime->get();
    $hdrs = $mime->headers($hdrs);
    $mail =& Mail::factory('smtp',$params);
    $mail->send($recipients, $hdrs, $body);

Can someone say me how to use pear package to send a mail to an adress
and to send it in copy to another one ?

Marc SERRA.

attached mail follows:


Marc Serra wrote:
> $hdrs = array(
> "From" => "adresse1test.com",
> "Cc" => "adresse2test.com"
> "Subject" => "Tests"
> );

In your $hdrs array, you're missing a comma separating Cc from Subject.
That's probably causing the problem. It should be:

$hdrs = array(
         "From" => "adresse1test.com",
         "Cc" => "adresse2test.com",
         "Subject" => "Tests"
);

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com

---------------------------------------------------
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---------------------------------------------------

attached mail follows:


I'm not very familiar with php's drawing abilities. I have found out how
to get it to create multipoint polygons.

What I am trying to do is implement something along the lines of LOGO.
(You know, that old language that told a robotic turtle to draw on the
floor)

Seriously, I currently have an inherited Java program that takes traverse
information (strings that look like this: BAS(L66D24R66U24)) and createds
this: Left:66 Down:24 Right: 66 Up:24 and draws it out to the screen.
These are building drawings made by field appraisers (for the local
property appraisers office).

I would really like to drop the Java stuff as I don't really use it. What
I would really like to do is somehow turn these strings into coordinates
so I can draw them using PHP's polygon function.

attached mail follows:


Is this somehow related to the "PEAR mail" thread? I don't see the
connection. I think you're trying to ask a new question. When doing so,
please don't reply to an existing message in an existing thread (even if
you change the subject) because you're new question will become a part
of the old thread. ALWAYS start a brand new message; a descriptive
subject is also helpful. You'll get a better response and more help this
way.

Thanks!

Jim Wharton wrote:
> I'm not very familiar with php's drawing abilities. I have found out how
> to get it to create multipoint polygons.
>
> What I am trying to do is implement something along the lines of LOGO.
> (You know, that old language that told a robotic turtle to draw on the
> floor)
>
> Seriously, I currently have an inherited Java program that takes traverse
> information (strings that look like this: BAS(L66D24R66U24)) and createds
> this: Left:66 Down:24 Right: 66 Up:24 and draws it out to the screen.
> These are building drawings made by field appraisers (for the local
> property appraisers office).
>
> I would really like to drop the Java stuff as I don't really use it. What
> I would really like to do is somehow turn these strings into coordinates
> so I can draw them using PHP's polygon function.

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com

---------------------------------------------------
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---------------------------------------------------

attached mail follows:


* Marc Serra <mserragdwd.com>:
> i'm using Mail PEAR package and i want to send a mail to a recipient and
> to some other in Cc.
> So i try to add Cc in header but it failed and mail didn't been
> delivered to Cc. It was only delivered to adress specified in From field.
>
> I use that code :
>
>
> $hdrs = array(
> "From" => "adresse1test.com",
> "Cc" => "adresse2test.com"
                                                 ^
Need a comma at the end of that line.

> "Subject" => "Tests"
> );
> $mime = new Mail_mime($crlf);
> $mime->setHTMLBody(stripslashes($html));
> $body = $mime->get();
> $hdrs = $mime->headers($hdrs);
> $mail =& Mail::factory('smtp',$params);
> $mail->send($recipients, $hdrs, $body);

What is $recipients? Is it an array with both adresse1test.com and
adresse2test.com? or a comma-separated string with both addresses?

Those are the two accepted forms for the first argument to the send()
method. The common pitfall I run into is that I forget to add the Cc
and/or Bcc elements to it before sending -- which means they do not get
delivered.

--
Matthew Weier O'Phinney | mailto:matthewgarden.org
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org

attached mail follows:


M. Sokolewicz wrote:
> Now, the problem with such a "solution" is the following. Imagine you
> have the following keywords:
> include
> require
> in
> of
> typof
> now, when you replace include with <span
> class="highlighted">include</span>, it'll go on, and also replace all
> instances of in, so you'll end up with things like <span
> class="highlighted"><span class="highlighted">in</span>clude</span>
> (very ugly).

I did encounter this during some experimenting. I figured I'd just sort
the array of commands from from shortest strong to longest string. But
like you said, far too many embedded <span> tags would result!

> *a* way to get around that is by using word boundries around the keyword
> to be replaced (eg. preg_replace('\(\W|^)+('.$highlight[$i].')(\W|$)\i',
> '$1<span class="highlight">$2</span>$3') )

My regular expression skills are very basic, but I understand the gist
of your preg_replace statement. Now I just need to polish my regex
knowledge!

Thanks,
--
Aaron Gould
Parts Canada - Web Developer

attached mail follows:


On Mon, 08 Nov 2004 10:40:30 +0600, raditha dissanayake
<jabberraditha.com> wrote:
> You know you're a geek when you know which list deals with which top
> and when you know that subselects in mysql is not much faster than the
> nested loop you have been using.

Can you point me to some benchmarks that support this claim? Thanks.

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


On Mon, 8 Nov 2004 15:00:33 +0530, Vinayakam Murugan
<mvinayakamgmail.com> wrote:
> Can anyone point me a good tutorial for session handling in PHP? I
> want answers to questions like

> ./google.pl "php session" 10
Result:
http://www.php.net/session
http://www.phpfreaks.com/tutorials/41/0.php
http://www.webkreator.com/php/configuration/php-session-security.html
http://www.sitepoint.com/blog-post-view.php?id=156260
http://www.sitepoint.com/article/users-php-sessions-mysql
http://martin.f2o.org/php/session
http://www.onlamp.com/pub/a/php/excerpt/webdbapps_8/
http://www.zend.com/manual/ref.session.php
http://www.easysoft.com/tech/php/tut_001/main.phtml
http://shiflett.org/talks/phpworks2004/php-session-security

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


Greg Donald wrote:

>On Mon, 08 Nov 2004 10:40:30 +0600, raditha dissanayake
><jabberraditha.com> wrote:
>
>
>>You know you're a geek when you know which list deals with which top
>>and when you know that subselects in mysql is not much faster than the
>>nested loop you have been using.
>>
>>
>
>Can you point me to some benchmarks that support this claim? Thanks.
>
>
Sorry no benchmarks, i am talking from personal experience where I
converted some code from a php nested loop to mysql. I was rather
surprised by the results. I will concede that I may not have optimized
the query properly or that I may not have had the correct indexes, but
since I have been doing this for quite a few years i like to think i got
the query right. (feel free to deflate my ego :-) )

--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.

attached mail follows:


On Mon, 08 Nov 2004 21:57:41 +0600, raditha dissanayake
<jabberraditha.com> wrote:
> Sorry no benchmarks, i am talking from personal experience where I
> converted some code from a php nested loop to mysql. I was rather
> surprised by the results. I will concede that I may not have optimized
> the query properly or that I may not have had the correct indexes, but
> since I have been doing this for quite a few years i like to think i got
> the query right. (feel free to deflate my ego :-) )

Well yeah.. It's hard to believe a well written MySQL sub select query
with proper indexing would be slower than looping through the results
with PHP scripting.

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


On Sun, 7 Nov 2004 19:10:32 -0400, robert mena <robert.menagmail.com> wrote:
> I need to improve my current "search mecanism" but got stuck in a
> dilema : build one or use an existing engine?

I recently put together a large company intranet site search using
htdig and a simple php wrapper script:

http://www.devshed.com/c/a/PHP/Search-This/
http://www.htdig.org/

This setup allows me a great deal of graphical customization in the
results display while putting all the real work with search results
and search logic on htdig.

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


Greg Donald wrote:
>>I need to improve my current "search mecanism" but got stuck in a
>>dilema : build one or use an existing engine?
>
> I recently put together a large company intranet site search using
> htdig and a simple php wrapper script:
>
> http://www.devshed.com/c/a/PHP/Search-This/
> http://www.htdig.org/

I've used the Zoom search engine by Wrensoft
<http://www.wrensoft.com/zoom/> with PHP on a Windows system, and it
worked well. Also, I've never used it, but I've heard that mnoGoSearch
works, well, too.

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com

---------------------------------------------------
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---------------------------------------------------

attached mail follows:


Jim Wharton said:
> I'm not very familiar with php's drawing abilities. I have found out how
> to get it to create multipoint polygons.
>
> What I am trying to do is implement something along the lines of LOGO.
> (You know, that old language that told a robotic turtle to draw on the
> floor)
>
> Seriously, I currently have an inherited Java program that takes traverse
> information (strings that look like this: BAS(L66D24R66U24)) and createds
> this: Left:66 Down:24 Right: 66 Up:24 and draws it out to the screen.
> These are building drawings made by field appraisers (for the local
> property appraisers office).
>
> I would really like to drop the Java stuff as I don't really use it. What
> I would really like to do is somehow turn these strings into coordinates
> so I can draw them using PHP's polygon function.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Am 2004-11-08 02:38:48, schrieb Curt Zirzow:
> * Thus wrote Michelle Konzack:

> > For every Message I send I get an error Message...
> > But the E-Mails was correctly delivered...
> >
>
> This is rather new.. I'm looking into why this is occuring.

Thanks

> Curt

Greetings
Michelle

--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917 ICQ #328449886
                   50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBj5zBC0FPBMSS+BIRAgHMAJkBtQmMCQN8YYUTkxWt/snz54lydQCfU8Fw
pRmeRCGo5uoON6rJCUhSZ2U=
=dfmA
-----END PGP SIGNATURE-----

attached mail follows:


Ben Ramsey said:
>
> Is this somehow related to the "PEAR mail" thread? I don't see the
> connection. I think you're trying to ask a new question. When doing so,
> please don't reply to an existing message in an existing thread (even if
> you change the subject) because you're new question will become a part
> of the old thread. ALWAYS start a brand new message; a descriptive
> subject is also helpful. You'll get a better response and more help this
> way.
>
> Thanks!

Yeah, sorry, I am aware of that. I wasn't sure of the list's address, so I
replied to an existing message. I simply forgot to change the subject
line.

attached mail follows:


* Jim Wharton <creole3bellsouth.net>:
> Ben Ramsey said:
> >
> > Is this somehow related to the "PEAR mail" thread? I don't see the
> > connection. I think you're trying to ask a new question. When doing
> > so, please don't reply to an existing message in an existing thread
> > (even if you change the subject) because you're new question will
> > become a part of the old thread. ALWAYS start a brand new message; a
> > descriptive subject is also helpful. You'll get a better response
> > and more help this way.
> >
> > Thanks!
>
> Yeah, sorry, I am aware of that. I wasn't sure of the list's address,
> so I replied to an existing message. I simply forgot to change the
> subject line.

Actually, you *did* change the subject. Read what was said in that
paragraph:

    [P]lease don't reply to an existing message in an existing thread
    (even if you change the subject) because you're new question will
    become a part of the old thread.

If you use a threaded mail/news reader, as many people do, your messages
will be grouped based on the original topic sent:

    timestamp sender subject
    -------------------------------------------------------------------
    10:00am <> PEAR Mail
    10:05am <> -> Re: PEAR Mail
    10:07am <> -> Re: PEAR Mail
    10:06am <> -> Something about something else
    10:08am <> -> Re: PEAR Mail

What's more, such readers also have the ability to 'collapse' threads
and show message counts -- so you can visually save space in your box,
and see if certain threads have received new messages. So it's rather
frustrating to open up a thread on PEAR Mail and discover something
about PHP's drawing functions inside it.

If you want to start a new thread, but don't know the list address...
Look at another post's To: or CC: headers; you'll likely find it there.
Then put that address in your address book so you don't need to look
next time.

--
Matthew Weier O'Phinney | mailto:matthewgarden.org
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org

attached mail follows:


Matthew Weier O'Phinney said:
<snip>
>
> Actually, you *did* change the subject. Read what was said in that
> paragraph:
>
> [P]lease don't reply to an existing message in an existing thread
> (even if you change the subject) because you're new question will
> become a part of the old thread.
>
> If you use a threaded mail/news reader, as many people do, your messages
> will be grouped based on the original topic sent:

I'm a mutt user typically. I know this.

> So it's rather
> frustrating to open up a thread on PEAR Mail and discover something
> about PHP's drawing functions inside it.

I'm truly sorry about that. What's even more frustrating is making a
simple mistake and having a bunch of people jump down your throat about
it. Point taken. Apology offered.

I am sorry though. Any more correspondance on this particular issue needs
to be directed to my personal email address - not the list. (That is,
unless, you feel the need to publically teach me a lesson.)

attached mail follows:


On Mon, 8 Nov 2004 12:08:30 -0500 (EST), Jim Wharton
<creole3bellsouth.net> wrote:
> I'm truly sorry about that. What's even more frustrating is making a
> simple mistake and having a bunch of people jump down your throat about
> it. Point taken. Apology offered.

I just pretend like I'm posting to vger.kernel.org.. seems to keep
most people from yelling at me too much.

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


Sorry for the traffic I have created with this:

I'm not very familiar with php's drawing abilities. I have found out how
to get it to create multipoint polygons.

What I am trying to do is implement something along the lines of LOGO.
(You know, that old language that told a robotic turtle to draw on the
floor)

Seriously, I currently have an inherited Java program that takes traverse
information (strings that look like this: BAS(L66D24R66U24)) and createds
this: Left:66 Down:24 Right: 66 Up:24 and draws it out to the screen.
These are building drawings made by field appraisers (for the local
property appraisers office).

I would really like to drop the Java stuff as I don't really use it. What
I would really like to do is somehow turn these strings into coordinates
so I can draw them using PHP's polygon function.

attached mail follows:


On Mon, 8 Nov 2004 11:36:39 -0500 (EST), Jim Wharton
<creole3bellsouth.net> wrote:
> What I am trying to do is implement something along the lines of LOGO.
> (You know, that old language that told a robotic turtle to draw on the
> floor)

Man.. it was like 1987 when I last used LOGO. We were using Apple
IIc's and stuff. The nostalgia is overwhelming. :)

> Seriously, I currently have an inherited Java program that takes traverse
> information (strings that look like this: BAS(L66D24R66U24)) and createds
> this: Left:66 Down:24 Right: 66 Up:24 and draws it out to the screen.

This sort of string parsing could be handled with preg_match_all().

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


I have a form element which allows a user to go back
"x number of days" in the records.

$sql.=sprintf("SELECT * FROM records WHERE
Date_Sub(Curdate(), interval day) "$%s" <=
PostStart")

This formula works when I actually hardcode the number
of days in where this mess --> "$%s" is right now.

I'm not entirely sure how this should be coded. Can I
put the variable right there?

I'll take any suggestions, cause I'm stuck here.

Thank you,
Stuart

attached mail follows:


Stuart Felenstein wrote:
> $sql.=sprintf("SELECT * FROM records WHERE
> Date_Sub(Curdate(), interval day) "$%s" <=
> PostStart")

Yes, you can put the variable in right there. Read up on variables here
<http://www.php.net/variables>.

I'm not exactly sure what the SQL statement you have above is supposed
to do, but you could just do something like this:

$curdate = date('Y-m-d H:i:s');
$sql = "SELECT * FROM records WHERE '$curdate' <= PostStart;";

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com

---------------------------------------------------
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---------------------------------------------------

attached mail follows:


--- Ben Ramsey <listsbenramsey.com> wrote:

> I'm not exactly sure what the SQL statement you have
> above is supposed
> to do, but you could just do something like this:
>
> $curdate = date('Y-m-d H:i:s');
> $sql = "SELECT * FROM records WHERE '$curdate' <=
> PostStart;";
>

I'm having some problems still. I'm trying to work
here with a Dreamweaver extension and the code is not
clear. Are there are good tutorials around , to learn
how to create a database search and results page.
Basically there would be about 6 form elements, some
list boxes, some text fields. The more criteria that
is filled in on the form the more refined the search.
Not sure if this is beyond my skill level or not.
Beginner.

Thank you
Stuart

attached mail follows:


Stuart Felenstein wrote:
> --- Ben Ramsey <listsbenramsey.com> wrote:
>>I'm not exactly sure what the SQL statement you have
>>above is supposed
>>to do, but you could just do something like this:
>>
>>$curdate = date('Y-m-d H:i:s');
>>$sql = "SELECT * FROM records WHERE '$curdate' <=
>>PostStart;";
>>
> I'm having some problems still. I'm trying to work
> here with a Dreamweaver extension and the code is not
> clear. Are there are good tutorials around , to learn
> how to create a database search and results page.
> Basically there would be about 6 form elements, some
> list boxes, some text fields. The more criteria that
> is filled in on the form the more refined the search.
> Not sure if this is beyond my skill level or not.
> Beginner.

While you may be a beginner and this may be beyond your current skill
level, I think it's an excellent exercise for you to learn how to work
with both PHP and a SQL database. So, turn to both the PHP manual
<http://www.php.net/manual> and some manual on SQL syntax (use the
manual for the database you're using).

It appears to me that you're relying on Dreamweaver (or the DW
extension) to write the code for you, and my advice to you is: don't let
Dreamweaver write the code for you; you'll never learn anything that
way. Instead, take this as an opportunity to learn how to code in PHP
and to learn how to write SQL queries on your own.

First off, I'm not sure what database you're working from, so it would
help to know that, but I did a quick Google search on "php search
tutorial" and found a good many links to tutorials that might help.

Here's one in particular that may do the job
<http://www.phpbuilder.com/columns/clay19990421.php3>

Hope that gets you started.

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com

---------------------------------------------------
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---------------------------------------------------

attached mail follows:


Is there any way yo get the date and time using date() from a Internet time
server? Right now I am getting it from my servers date and time which seems
to be unpredictable since my ISP seems to change it at random.

Windows shows two time servers time.windows.com and time.nist.gov and I was
wondering if I could use one of them instead of the time from my server.

Thanks,

Aaron

attached mail follows:


On Mon, 8 Nov 2004 13:06:41 -0500, Aaron Todd <aaloki88hotmail.com> wrote:
> Is there any way yo get the date and time using date() from a Internet time
> server?

php -r "system('ntpdate -q ntp.nasa.gov');"

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


Klaus Reimer wrote:

> raditha dissanayake wrote:
>
>> this one:
>>
>>> - Turck MMCache for PHP
>>
>
> Turck MM Cache does not work with PHP 5. It's possible to compile and
> load it and some pages are working but most of the time it segfaults.
>
> By the way: Does anybody know if the Turck MM Cache project is still
> active? The last change in CVS is 5 months old, the last release is
> nearly a year old. And there were rumors that the main developer was
> assimilated by Zend.

I've been running Turck for some time now on PHP5 and haven't had
segfault problems yet. I must say I'm running the latest CVS and using
file sessions (Turck's would give you segfaults). About new developments
there's been a lot of talk in the forums but so far only one person
mentioned having done changes int he code. The original developers have
not answered the call so far so we would have to hope for somebody else
to step up.

--
Adrian Madrid
HyperX Inc.
Mobile: 801.815.1870
Office: 801.566.0670
aemadridhyperxmedia.com
www.hyperxmedia.com

9000 S. 45 W.
Sandy, UT 84070

attached mail follows:


I tried using MMCache With PHP5, and Apache 1.x, it segfaulted
frequently. Serendipity's HTML nuggets stopped working, as did a lot
of my own scripts.

I am under the impression that the author of Turck is now employed by
Zend, so I doubt that he will continue the project as it is in direct
competition with Zend's own commercial accelerator.

I spoke with one of the programmers behind APC a week or two ago, and
he suggested that it would be PHP 5 ready within a few weeks.

paul

On Mon, 08 Nov 2004 11:49:55 -0700, Adrian Madrid
<aemadridhyperxmedia.com> wrote:
> Klaus Reimer wrote:
>
>
>
> > raditha dissanayake wrote:
> >
> >> this one:
> >>
> >>> - Turck MMCache for PHP
> >>
> >
> > Turck MM Cache does not work with PHP 5. It's possible to compile and
> > load it and some pages are working but most of the time it segfaults.
> >
> > By the way: Does anybody know if the Turck MM Cache project is still
> > active? The last change in CVS is 5 months old, the last release is
> > nearly a year old. And there were rumors that the main developer was
> > assimilated by Zend.
>
> I've been running Turck for some time now on PHP5 and haven't had
> segfault problems yet. I must say I'm running the latest CVS and using
> file sessions (Turck's would give you segfaults). About new developments
> there's been a lot of talk in the forums but so far only one person
> mentioned having done changes int he code. The original developers have
> not answered the call so far so we would have to hope for somebody else
> to step up.
>
> --
> Adrian Madrid
> HyperX Inc.
> Mobile: 801.815.1870
> Office: 801.566.0670
> aemadridhyperxmedia.com
> www.hyperxmedia.com
>
> 9000 S. 45 W.
> Sandy, UT 84070
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
Paul Reinheimer
Zend Certified Engineer

attached mail follows:


[resent, this time with the correct subject, sorry]

> I have tried to compile "php-java-bridge" v1.0.5.
> /opt/php/php-4.3.9/php-java-
> bridge_1.0.5/server/natcJavaBridge.c:202:
> too many arguments to function `sigwait'

Solaris has a non-standard sigwait() function. It
requires a special flag to archive POSIX compatibility
(see man page). Another Solaris problem is that stdio
is broken; you cannot use stdio buffering for
non-seekable streams.

Version 1.0.6a of the PHP/Java Bridge solves both
problems. I have tested on a Sparc64 system with
Solaris 9.

-->
http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_1.0.6a.tar.bz2?download

> compile the standard java extension in "ext/java"

Even if you succeed to compile the bridge, this will
not help you to solve the problem on Unix. The
"standard" java extension does not work on Unix with
the default (prefork) Apache because of its design.

On Unix it is necessary to separate the JVM from the
apache request handling processes. Either by running
a servlet engine or via the php/java bridge.

Jost

        

        
                
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 100MB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

attached mail follows:


Hello!

I have a web-site, part of which is in Russian and another part in English.

English and Russian parts are located in different directories. The
web-site is static.

I want to create a PHP file, which redirects the user from /index.php to
/ru/index.html, when his primary language is Russian and to
/en/index.html, when his primary language is non-Russian.

In other words:

<?php

if ($languageRussian)
{
header("Location: http://dapissarenko.com/ru/index.html");
}
else
{
header("Location: http://dapissarenko.com/en/index.html");
}

exit;
?>

How can I determine user's primary language?

Thanks!

dap
--
Dmitri Pissarenko
Software Engineer
http://dapissarenko.com

attached mail follows:


Dmitri Pissarenko wrote:
> Hello!
>
> I have a web-site, part of which is in Russian and another part in English.
>
> English and Russian parts are located in different directories. The
> web-site is static.
>
> I want to create a PHP file, which redirects the user from /index.php to
> /ru/index.html, when his primary language is Russian and to
> /en/index.html, when his primary language is non-Russian.
>
> In other words:
>
> <?php
>
> if ($languageRussian)
> {
> header("Location: http://dapissarenko.com/ru/index.html");
> }
> else
> {
> header("Location: http://dapissarenko.com/en/index.html");
> }
>
> exit;
> ?>
>
> How can I determine user's primary language?
>
> Thanks!
>
> dap
I don't think it's possible. You can, however, ask the user to select
which language he wishes to see, then store that option in a cookie so
he doesn't have to do it every time he visits the site.

--
Daniel Schierbeck

Help spread Firefox (www.getfirefox.com):
http://www.spreadfirefox.com/?q=user/register&r=6584

attached mail follows:


Dmitri Pissarenko wrote:
> Hello!
>
> I have a web-site, part of which is in Russian and another part in English.
>
> English and Russian parts are located in different directories. The
> web-site is static.
>
> I want to create a PHP file, which redirects the user from /index.php to
> /ru/index.html, when his primary language is Russian and to
> /en/index.html, when his primary language is non-Russian.
>
> In other words:
>
> <?php
>
> if ($languageRussian)
> {
> header("Location: http://dapissarenko.com/ru/index.html");
> }
> else
> {
> header("Location: http://dapissarenko.com/en/index.html");
> }
>
> exit;
> ?>
>
> How can I determine user's primary language?
>
> Thanks!
>
> dap

$_SERVER["HTTP_ACCEPT_LANGUAGE"] - string with user's language
preferences. However only a fraction of users willingly set it, so many
times it will be on its default value, english even for russian speaking
visitors.

attached mail follows:


Marek Kilimajer wrote:
> Dmitri Pissarenko wrote:
>
>> Hello!
>>
>> I have a web-site, part of which is in Russian and another part in
>> English.
>>
>> English and Russian parts are located in different directories. The
>> web-site is static.
>>
>> I want to create a PHP file, which redirects the user from /index.php
>> to /ru/index.html, when his primary language is Russian and to
>> /en/index.html, when his primary language is non-Russian.
>>
>> In other words:
>>
>> <?php
>>
>> if ($languageRussian)
>> {
>> header("Location: http://dapissarenko.com/ru/index.html");
>> }
>> else
>> {
>> header("Location: http://dapissarenko.com/en/index.html");
>> }
>>
>> exit;
>> ?>
>>
>> How can I determine user's primary language?
>>
>> Thanks!
>>
>> dap
>
>
> $_SERVER["HTTP_ACCEPT_LANGUAGE"] - string with user's language
> preferences. However only a fraction of users willingly set it, so many
> times it will be on its default value, english even for russian speaking
> visitors.
Yup. I think it's better if you let the visitors decide.

--
Daniel Schierbeck

Help spread Firefox (www.getfirefox.com):
http://www.spreadfirefox.com/?q=user/register&r=6584

attached mail follows:


On Mon, 8 Nov 2004 07:19:30 +0500, Haseeb Iqbal <hasibiqbalmagic.net.pk> wrote:
> /usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9d0): first defined here
> collect2: ld returned 1 exit status
> make: *** [libphp5.la] Error 1

Does /usr/lib/mysql/libmysqlclient.a actually exist? After you
installed MySQL from rpms, did you run ldconfig?

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


Dear all subscribers,

I'm coding a send-mail form, also including
edit boxes keeping the path of files to be uploaded
from the remote host onto an FTP server.

Is there the possibility (and if so, which ones) to
manage FTP permissions to have a file including
the variable with ID and PSW (for FTP access)
and which is usable
by the code running on the server exclusively but
cannot be accessed by any other user?

Alessandro

attached mail follows:


anders thoresson wrote:
>> This code seems to work. Have I got it right?
>
>
> No. I have not. Sometimes the images are viewed from the cache, just to
> get downloaded from the server again next time, just a minute later,
> when I try again.
>
> My local development server is running IIS, my production server is
> running Apache. Where is the best place to look for If-Modified-Since?
> Is $_GET['If-Modified-Since'] a safe bet?

No, it's a http header, not a get parameter. I'm not sure if this header
is made available under IIS. Under apache you could use
apache_request_headers().

attached mail follows:


I don't use cookie for my page. I use session. As I understand cookies
don't create any files on user computer. I have this code below on my
page.
When I access this page immediately cookie is created on my computer.
Any ideas why?

<?php
session_start();
$referral = $_SESSION['referral'];
if(empty($referral)) {
        $referral = $_SERVER['QUERY_STRING'];
        $_SESSION['referral'] = $referral;
}

?>

attached mail follows:


[snip]
...SESSION...
[/snip]

Because the use of sessions creates cookies....but you can set it up
where it will not...

http://www.php.net/session

attached mail follows:


Jerry Swanson wrote:
> I don't use cookie for my page. I use session. As I understand cookies
> don't create any files on user computer. I have this code below on my
> page.
> When I access this page immediately cookie is created on my computer.
> Any ideas why?

As soon as you call session_start(), you are 'given' a session id. To
track this id from page to page throughout you site, it is stored in a
cookie by default. It's all in the manual...

http://us4.php.net/session

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
johnkegworks.com

attached mail follows:


; Whether to use cookies.
session.use_cookies = 0

; This option enables administrators to make their users invulnerable to
; attacks which involve passing session ids in URLs; defaults to 0.
session.use_only_cookies = 1

I changed the global variables on PHP. It still stores cookies on my
harddrive. Any ideas why?
PHP version 4.3.4

On Mon, 08 Nov 2004 16:01:27 -0500, John Nichel <johnkegworks.com> wrote:
> Jerry Swanson wrote:
> > I don't use cookie for my page. I use session. As I understand cookies
> > don't create any files on user computer. I have this code below on my
> > page.
> > When I access this page immediately cookie is created on my computer.
> > Any ideas why?
>
> As soon as you call session_start(), you are 'given' a session id. To
> track this id from page to page throughout you site, it is stored in a
> cookie by default. It's all in the manual...
>
> http://us4.php.net/session
>
> --
> John C. Nichel
> ÜberGeek
> KegWorks.com
> 716.856.9675
> johnkegworks.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Jerry Swanson wrote:
> ; Whether to use cookies.
> session.use_cookies = 0
>
> ; This option enables administrators to make their users invulnerable to
> ; attacks which involve passing session ids in URLs; defaults to 0.
> session.use_only_cookies = 1
>
> I changed the global variables on PHP. It still stores cookies on my
> harddrive. Any ideas why?
> PHP version 4.3.4

You're telling to not use cookies, then telling it to only use cookies?

Anywho, did you restart your webserver?

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
johnkegworks.com

attached mail follows:


Jerry Swanson wrote:
> ; Whether to use cookies.
> session.use_cookies = 0
>
> ; This option enables administrators to make their users invulnerable to
> ; attacks which involve passing session ids in URLs; defaults to 0.
> session.use_only_cookies = 1

These settings don't make much sense. You forbid their usage and require
it at the same time.

>
> I changed the global variables on PHP. It still stores cookies on my
> harddrive. Any ideas why?
> PHP version 4.3.4
>
>
>
>
> On Mon, 08 Nov 2004 16:01:27 -0500, John Nichel <johnkegworks.com> wrote:
>
>>Jerry Swanson wrote:
>>
>>>I don't use cookie for my page. I use session. As I understand cookies
>>>don't create any files on user computer. I have this code below on my
>>>page.
>>>When I access this page immediately cookie is created on my computer.
>>>Any ideas why?
>>
>>As soon as you call session_start(), you are 'given' a session id. To
>>track this id from page to page throughout you site, it is stored in a
>>cookie by default. It's all in the manual...
>>
>>http://us4.php.net/session

attached mail follows:


On Mon, 8 Nov 2004 15:56:03 -0500, Jerry Swanson <pmysqlgmail.com> wrote:
> I don't use cookie for my page. I use session. As I understand cookies
> don't create any files on user computer.

Your understanding is incorrect. Using cookies does indeed place
files on the user's computer. That's what a cookie is, a file on the
user's computer, created by the web client.

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


I don't want to use cookies.
I want to use session. When I use this code. It stores data on the harddrive.

session_start();
$referral = $_SESSION['referral'];
if(empty($referral)) {
        $referral = $_SERVER['QUERY_STRING'];
        $_SESSION['referral'] = $referral;
}

On Mon, 8 Nov 2004 16:19:49 -0600, Greg Donald <destineygmail.com> wrote:
> On Mon, 8 Nov 2004 15:56:03 -0500, Jerry Swanson <pmysqlgmail.com> wrote:
> > I don't use cookie for my page. I use session. As I understand cookies
> > don't create any files on user computer.
>
> Your understanding is incorrect. Using cookies does indeed place
> files on the user's computer. That's what a cookie is, a file on the
> user's computer, created by the web client.
>
> --
> Greg Donald
> Zend Certified Engineer
> http://gdconsultants.com/
> http://destiney.com/
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


On Mon, 8 Nov 2004 17:31:33 -0500, Jerry Swanson <pmysqlgmail.com> wrote:
> I don't want to use cookies.
> I want to use session. When I use this code. It stores data on the harddrive.

You must have your PHP sessions configured to use cookies.

ini_set('session.use_cookies', 0);

will override the php.ini setting.

--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

attached mail follows:


 --
 I don't want to use cookies.
 I want to use session. When I use this code. It stores data on the harddrive.
 --
 
 When you use Sessions, the data you put in the session is NOT stored
 on the users hard drive in a cookie. Only the Session ID is stored
 there. All of the other information you store in the session (say
 their userid, name, prefernces, security level, etc) is stored on the
 SERVER. The session ID stored in the cookie only serves as a pointer
 to the data stored on your server.
 
 The alternative to allowing PHP to store the users session id in a
 cookie is to have php re-write all of the urls on your page to include
 their session id. Generally this is not the preferred solution for
 several reasons:
 1. URLs look a lot messier eg:
 a) without cookies
 http://forum.example.com/index.php?sid=a568a4c022a2f8491323c5f3ef5888d8
 b) with cookies
 http://forum.edonkey.com/index.php
 2. Users may accidentally give away their session id, and possibly
 open the door to session hijacking.
 3. Users bookmark pages with stale session ids
 
 So, in summary. Using sessions only stores the session id on the users
 hard drive. The rest of the data stored in the session is saved on the
 server.
 
 paul
 
 --
 Paul Reinheimer

attached mail follows:


prado? Hunh?

On Sun, 7 Nov 2004 14:56:36 -0600 (CST), Jonel Rienton <jonelroad14.com> wrote:
> This can be done with javascript or you can use an event-driven solution
> like PRADO
>
>
>
> > Hi all,
> > I have a question that I can't get my head around and was hoping
> > someone
> > could answer for me.
> >
> > I have a form with a number of fields.
> >
> > Field one is a <td><select name="thisSteamField"></td>
> > The option fields are built from an sql statement and a where clause
> > builds the options fields
> > ...
> > <option value="<? echo $teamname; ?>"><? echo
> > $teamname;
> > ?></option>
> > ....
> > etc...
> >
> > When I select one of the options, the form automatically goes off and
> > does another sql select a with the WHERE value of the selected
> > $teamname, and then populates the next field, but I can't think how.
> >
> > Any pointers?
> >
> > TIA
> > K
>
>
> --
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>