php-general Digest 31 Dec 2001 20:15:47 -0000 Issue 1084
Topics (messages 79096 through 79146):
Re: php4 and PHPLib
79096 by: Björn Schotte
79125 by: Gerard Samuel
Select box won't display in Netscape 4.xx
79097 by: Edwin Boersma
79102 by: Miles Thompson
79106 by: David Jackson
79133 by: Mike Eheler
79137 by: Jim Lucas [php]
79143 by: sundogcurt
Sessions Problems!
79098 by: Phillip M.(Mike) Bishop
79138 by: Jim Lucas [php]
79146 by: Phillip M.(Mike) Bishop
How to strip off all html-comments
79099 by: Martin
79101 by: James Cox
79117 by: Brian Clark
79118 by: Richard S. Crawford
79136 by: Mike Eheler
Re: Need some Linux/Apache help
79100 by: Edwin Boersma
79116 by: Brian Clark
79121 by: Todd Cary
79129 by: Brian Clark
79141 by: Brian Clark
web mail clients?
79103 by: Philip Jeffs
79104 by: Brian V Bonini
79105 by: David Jackson
79135 by: Mike Eheler
arrays aka headache
79107 by: Louis Grenzebach
Testing: Igonore This Message
79108 by: John Monfort
Re: Testing: DON'T Ignore This Message
79109 by: Bogdan Stancescu
Apache Error 500
79110 by: patricka.wfw.wtb.tue.nl
79111 by: Bogdan Stancescu
79114 by: Andrew Hill
TEST---Please Ignore
79112 by: John Monfort
Re: Session troubles
79113 by: Jaime Bozza
Regular Expression
79115 by: John Monfort
Regular Expression Help
79119 by: John Monfort
79123 by: Brian Clark
Listing files
79120 by: Todd Cary
79124 by: Brian Clark
79126 by: George Nicolae
79145 by: George Nicolae
Re: Real Simple, but i'm new!!
79122 by: Robert V. Zwink
Test
79127 by: John Monfort
length of string
79128 by: Ray Todd Stevens
79131 by: Bogdan Stancescu
79132 by: Brian Clark
Re: how to read posted data?
79130 by: Emile Bosch
79142 by: David Jackson
Re: mysql_fetch_array
79134 by: Vincent Stoessel
Support for GIF, PNG and JPEG. How ?
79139 by: Robert Mena
79140 by: Brian Clark
servlet sapi is broken in 4.1.0
79144 by: Vincent Stoessel
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
* Gerard Samuel wrote:
> I want to), and I didn't see anything in its docs about php4
> Is it possible to run this thing on a box with php4??
Of course, since PHPLIB is only a set of PHP classes.
--
Sichere PHP Applikationen / Notfall-Consulting mit der
PHP Feuerwehr / Code inspection / Code rehearsal / API
Checkup. mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I was looking through the archive and there were some references about
changing apache's config to recognise php3 files in php4. When I tried
to add a mime type for php3, restarted apache and tried to go to a test
php3 page with phpinfo() in it my browswer wants to download it, instead
of displaying phpinfo().
Anyone knows of any pointers of getting php4 to recoginise php3 files as
php files. Im currently using apache 1.3.22, php 4.0.6.
Thanks..
Björn Schotte wrote:
> Hi,
>
> * Gerard Samuel wrote:
>
>>I want to), and I didn't see anything in its docs about php4
>>Is it possible to run this thing on a box with php4??
>>
>
> Of course, since PHPLIB is only a set of PHP classes.
>
>
--- End Message ---
--- Begin Message ---
Hi,
I'm developing a website for multiple browsers. In Netscape 4.xx (both
Win98 and Linux versions), the php-scripts display the select boxes in
my forms only as plain text. I cannot make any selections. In other
browsers (NS 6 and IE5), it works fine.
Anyone seen this behavior before?
Regards,
Edwin
--- End Message ---
--- Begin Message ---
Sounds like a problem with HTML syntax. NS is notoriously fussy and IE
remarkably lax. Capture your source and compare against the HTML standard.
I'm surprised NS6 is accepting what NS4 is choking on.
Happy New Year - Miles
PS I'd bet a cup of coffee that a closing tag is missing.
At 12:06 PM 12/31/2001 +0100, Edwin Boersma wrote:
>Hi,
>
>I'm developing a website for multiple browsers. In Netscape 4.xx (both
>Win98 and Linux versions), the php-scripts display the select boxes in
>my forms only as plain text. I cannot make any selections. In other
>browsers (NS 6 and IE5), it works fine.
>
>Anyone seen this behavior before?
>
>Regards,
>Edwin
>
>
>--
>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]
--- End Message ---
--- Begin Message ---
Miles ---
Here's the link to W3C: HTML/XHTML and CSS validation page.
It's a excellent tool for debuging pages.
http://validator.w3.org/
David
>
> Sounds like a problem with HTML syntax. NS is notoriously fussy and IE
> remarkably lax. Capture your source and compare against the HTML
> standard. I'm surprised NS6 is accepting what NS4 is choking on.
>
> Happy New Year - Miles
>
> PS I'd bet a cup of coffee that a closing tag is missing.
>
> At 12:06 PM 12/31/2001 +0100, Edwin Boersma wrote:
>>Hi,
>>
>>I'm developing a website for multiple browsers. In Netscape 4.xx (both
>>Win98 and Linux versions), the php-scripts display the select boxes in
>>my forms only as plain text. I cannot make any selections. In other
>>browsers (NS 6 and IE5), it works fine.
>>
>>Anyone seen this behavior before?
>>
>>Regards,
>>Edwin
>>
>>
>>--
>>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]
--
--- End Message ---
--- Begin Message ---
This happens when a <select> tag is not within a <form> block in
netscape 4.. if the select isn't meant to be part of a form, and is just
for navigation (javascript onchange or whatever), then just do
<form><select>...</select></form>
Mike
Edwin Boersma wrote:
> Hi,
>
> I'm developing a website for multiple browsers. In Netscape 4.xx (both
> Win98 and Linux versions), the php-scripts display the select boxes in
> my forms only as plain text. I cannot make any selections. In other
> browsers (NS 6 and IE5), it works fine.
>
> Anyone seen this behavior before?
>
> Regards,
> Edwin
>
>
--- End Message ---
--- Begin Message ---
check and make sure the you have the correct opening and closing form tags.
NS 4.x will "choke" if you don't have an opening and closing tag. While IE
5, 5.5 and 6 will work fine.
Jim
----- Original Message -----
From: "Edwin Boersma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 3:06 AM
Subject: [PHP] Select box won't display in Netscape 4.xx
> Hi,
>
> I'm developing a website for multiple browsers. In Netscape 4.xx (both
> Win98 and Linux versions), the php-scripts display the select boxes in
> my forms only as plain text. I cannot make any selections. In other
> browsers (NS 6 and IE5), it works fine.
>
> Anyone seen this behavior before?
>
> Regards,
> Edwin
>
>
> --
> 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]
>
>
--- End Message ---
--- Begin Message ---
Have you double and triple checked to be sure your form elements are
nested properly?
[EMAIL PROTECTED] wrote:
>Hi,
>
>I'm developing a website for multiple browsers. In Netscape 4.xx (both
>Win98 and Linux versions), the php-scripts display the select boxes in
>my forms only as plain text. I cannot make any selections. In other
>browsers (NS 6 and IE5), it works fine.
>
>Anyone seen this behavior before?
>
>Regards,
>Edwin
>
>
--- End Message ---
--- Begin Message ---
I am having problems with my sessions. I authenticate the user against a
mysql db. The authentication works fine and the session script works fine
for all my other domains except one. They all reside on the same webserver
using the same session class. The problem I have is when the user logs in,
they get to the first page. When they go to another page they have to
relogin. The session file is created but it is empty. This script worked
fine on this domain until Friday. Nothing has changed what could be the
cause of this.
Thanks in advance for any insight into this problem.
Mike
--- End Message ---
--- Begin Message ---
when you say that nothing changed, does that include permissions on the tmp
session directory, the httpd.conf file or any related configurations?
Jim
----- Original Message -----
From: "Phillip M.(Mike) Bishop" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 2:58 AM
Subject: [PHP] Sessions Problems!
> I am having problems with my sessions. I authenticate the user against a
> mysql db. The authentication works fine and the session script works fine
> for all my other domains except one. They all reside on the same webserver
> using the same session class. The problem I have is when the user logs in,
> they get to the first page. When they go to another page they have to
> relogin. The session file is created but it is empty. This script worked
> fine on this domain until Friday. Nothing has changed what could be the
> cause of this.
>
> Thanks in advance for any insight into this problem.
>
> Mike
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
Correct. The same authentication script is used on 4 other domains on my
server. They are able to write the session file to /tmp and so is the other
domain expect the file is a 0 byte file.
----- Original Message -----
From: "Jim Lucas [php]" <[EMAIL PROTECTED]>
To: "Phillip M.(Mike) Bishop" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 12:57 PM
Subject: Re: [PHP] Sessions Problems!
> when you say that nothing changed, does that include permissions on the
tmp
> session directory, the httpd.conf file or any related configurations?
>
> Jim
> ----- Original Message -----
> From: "Phillip M.(Mike) Bishop" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 31, 2001 2:58 AM
> Subject: [PHP] Sessions Problems!
>
>
> > I am having problems with my sessions. I authenticate the user against a
> > mysql db. The authentication works fine and the session script works
fine
> > for all my other domains except one. They all reside on the same
webserver
> > using the same session class. The problem I have is when the user logs
in,
> > they get to the first page. When they go to another page they have to
> > relogin. The session file is created but it is empty. This script
worked
> > fine on this domain until Friday. Nothing has changed what could be the
> > cause of this.
> >
> > Thanks in advance for any insight into this problem.
> >
> > Mike
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> PHP 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]
>
--- End Message ---
--- Begin Message ---
Hello! How can I easily strip off all html-comments (<! Comment >) from
a string?
Martin
--- End Message ---
--- Begin Message ---
http://www.php.net/stripcodes
happy new year!
James Cox
--
James Cox :: [EMAIL PROTECTED]
Please CC me when replying to my messages
> -----Original Message-----
> From: Martin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 31, 2001 11:07 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to strip off all html-comments
>
>
> Hello! How can I easily strip off all html-comments (<! Comment >) from
> a string?
>
> Martin
>
>
>
> --
> 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]
>
>
--- End Message ---
--- Begin Message ---
* James Cox ([EMAIL PROTECTED]) [Dec 31. 2001 06:38]:
> http://www.php.net/stripcodes
I think you mean strip_tags()
<http://www.php.net/strip_tags>
[...]
> > Hello! How can I easily strip off all html-comments (<! Comment >) from
> > a string?
> > Martin
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Forget Napster. Why not really break the law?
--- End Message ---
--- Begin Message ---
Martin,
strip_tags() would be useful for removing *all* HTML from a string, though
you can specify that certain tags should be retained. For example, if you
want to remove all *but* anchor tags from your string, your function would
look like this:
$str = strip_tags($str,'<a>');
However, if you want to remove *just* comment tags, though, you're better
off using the ereg_replace() or eregi_replace() function to remove the
comment tags, something like this:
$str = eregi_replace("<!--[^>]*-->","",$str);
...which would be a lot easier than including every other possible tag in
the second field of the strip_tags() function.
This regexp is very similar to one that I used to remove img tags from a
string in a project I was working on.
Good luck!
At 07:58 AM 12/31/2001, Brian Clark wrote:
>* James Cox ([EMAIL PROTECTED]) [Dec 31. 2001 06:38]:
>
> > http://www.php.net/stripcodes
>
>I think you mean strip_tags()
>
><http://www.php.net/strip_tags>
>
>[...]
>
> > > Hello! How can I easily strip off all html-comments (<! Comment >) from
> > > a string?
>
> > > Martin
>
>--
>Brian Clark | Avoiding the general public since 1805!
>Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
>Forget Napster. Why not really break the law?
>
>
>--
>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]
Sliante,
Richard S. Crawford
http://www.mossroot.com
AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford
MSN: [EMAIL PROTECTED]
"It is only with the heart that we see rightly; what is essential is
invisible to the eye." --Antoine de Saint Exupéry
"Push the button, Max!"
--- End Message ---
--- Begin Message ---
Checkout the preg_replace page in the PHP manual (at
http://www.php.net/manual/en). There is an example there on removing all
HTML tags. You can just modify it to work on just comments.
Mike
Martin wrote:
> Hello! How can I easily strip off all html-comments (<! Comment >) from
> a string?
>
> Martin
>
>
>
--- End Message ---
--- Begin Message ---
Hi Todd,
Has Apache been restarted ton use the new libphp4.so? And if so, does it use
the correct one (you might have another one on your system)?
If Apache starts without probs, check the httpd.conf for php mime types.
What does Apache respond if you load your test script?
Regards,
Edwin
Todd Cary wrote:
> Coming from a Windows background, I am having difficulty understanding
> rpm's, compiling, and making packages. My hope is that someone will
> have the patience to take me through the steps, since the HowTo's are
> out of date and do not address my current Red Hat 7.2 environment.
>
> With Red Hat 7.2 installed, Apache is installed along with PHP 4.0.6,
> however, Interbase is not installed Here is what I have done so far:
>
> I did a "rpm -qa | grep php" and found the rpm that was
> installed.(php-4.0.6-7). When I tried "rpm -e php-4.0.6-7", I received
> a list of php modules that were dependent on it. So, I "erased" each of
> those and finally did the "rpm -e php-4.0.6-7". Then I put
> php-4.0.6-7.src.rpm into /tmp and did a "rpm -i php-4.0.6-7.rpm" which
> put a tar'd file into /usr/src/redhat/SOURCES.
>
> I did "tar -xzvf /usr/src/redhat/SOURCES/php-4.0.6pl1.tar.gz" which
> created a directory /tmp/php-4.0.6. I cd'd into that directory and did
> a ./configure --with-interbase=/opt/interbase
> --with-apache=/usr/include/apache
>
> After quite a period, I received a "Thank you for using PHP" message. I
> followed this with a "make" and a "make install".
>
> Now Apache does not respond to a "testphp.php" script that contains
> "phoinfo()" and it use to.
>
> What have I missed.........????
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
* Edwin Boersma ([EMAIL PROTECTED]) [Dec 31. 2001 06:15]:
> Has Apache been restarted ton use the new libphp4.so? And if so, does it use
He will have no libphp4.so since he used --with-apache. In order to
create a DSO, he'll need to use --with-apxs
> the correct one (you might have another one on your system)?
> If Apache starts without probs, check the httpd.conf for php mime types.
> What does Apache respond if you load your test script?
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Avoid strange women and temporary variables.
--- End Message ---
--- Begin Message ---
Brian -
That is correct: libphp4.so no longer exists (locate libphp4.so).
I am not sure where the Apache source code exists with the default RH
7.2 intallation, or if it exists at all. When I do
# rpm -qa | grep apache
I am told that apache-1.3.20-16 is loaded, however there are 4 or so
other applications dependent on it. If I were to do a "rpm -e
apache-1.3.20-16" with the "ignore dependencies" directive, what will
happen?
Can I then get my Linux installation reconfigured so that
"/etc/rc.d/init.d/httpd start" will start Apache? I have the
"apache-1.3.20-16.src.rpm" and I do know how to intall it and untar the
resulting file, but from there on I am lost when it comes to setting up
the "configure".
Sorry for such basic questions, but my Windows background is certainly a
liability - not a help!
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 11:34]:
[...]
> I am told that apache-1.3.20-16 is loaded, however there are 4 or so
> other applications dependent on it. If I were to do a "rpm -e
> apache-1.3.20-16" with the "ignore dependencies" directive, what will
> happen?
You probably don't need to do all this.. when you configure PHP, just
use --with-apxs=/path/to/apxs/that/exists/on/your/system instead of
--with-apache=/path/to/apache/source
> Can I then get my Linux installation reconfigured so that
> "/etc/rc.d/init.d/httpd start" will start Apache? I have the
> "apache-1.3.20-16.src.rpm" and I do know how to intall it and untar the
> resulting file, but from there on I am lost when it comes to setting up
> the "configure".
If you use --with-apxs when configuring PHP, you don't have to mess
around with your current Apache install. For the exaception of making
sure httpd.conf is correct after you install PHP, you don't need to do
anything else to your existing apache install.
Just download PHP tarball, unpack it somewhere.
./configure --with-apxs=/path/to/your/apxs [rest of your options here]
make install
Then check httpd.conf to make sure it has a LoadModule line for php and
AddType lines for php. You should see them commented out in httpd.conf.
You should only need to uncomment the LoadModule line for PHP4, not
PHP3.
Then restart apache: /path/to/apachectl restart
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
I intend to live forever - so far, so good.
--- End Message ---
--- Begin Message ---
* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 13:15]:
> Brian et al -
Looks like you meant to send this to the list? :-)) I waited to see if
one would roll on in, but it doesn't look like it will be, sooo...
> This is starting to make some sense, however, there are still some areas
> of confusion:
> <<<
> just use --with-apxs=/path/to/apxs/that/exists/on/your/system
> >>>
> What is the best way to determine where RH 7.2 put that? What am I
> actually looking for?
You are looking for an executable (a perl program actually) named apxs.
At your shell prompt, try:
which apxs
If that returns nothing, try:
locate apxs
or
locate apxs | grep bin
> <<<
> If you use --with-apxs when configuring PHP, you don't have to mess
> around with your current Apache install. For the exception of making
> sure httpd.conf is correct after you install PHP, you don't need to do
> anything else to your existing apache install.
> >>>
> This makes sense now. Apache, and I am sure other application, use
> modules, however, I am not sure of the mechanism at the application
> level. In the Delphi/Windows environment, I can use packages at compile
> time, but they do become part of the EXE file.
Using --with-apache is the equivalent. But unless you've done this
before and know exactly what configure arguments you need, you might
want to use --with-apxs to build PHP as a loadable module so that you
can easily re-configure PHP and build it all over again if you need to
add support for something else (for example, if you decided a week from
now you wanted MySQL support in PHP).
Bottom line:
If you use --with-apache you will have to build Apache *and* PHP and
install them.
If you use --with-apxs you only need to build PHP and install it.
> <<<
> Just download PHP tarball, unpack it somewhere.
> ./configure --with-apxs=/path/to/your/apxs [rest of your options here]
> make install
> >>>
> Again, I am not sure how to find the path.
See the notes at the top. :)
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Error:015 - Unable to exit Windows. Try the door.
--- End Message ---
--- Begin Message ---
Hi,
I'm looking into setting up a web based mail client for personal use.
I've got most of it figured out (sending, recieving, forwarding etc..).
I need to be able to use folders in the mail client to organise the messages. Whats
the best way of moving messages around?
Do i need to store them as files / in a database or is there an easier way to do it?
Thanks.
-----------------------------
Philip Jeffs
The Tickle Group
The Gate House
Summerseat
Bury
Lancashire
BL9 5PE
United Kingdom
W: http://www.tickle.co.uk
T: 01706 823456
F: 01706 829500
E: [EMAIL PROTECTED] (daytime)
[EMAIL PROTECTED] (evening)
-----------------------------
--- End Message ---
--- Begin Message ---
This has been done, no need to re-invent the wheel
unless of course you wanted to.
> -----Original Message-----
> From: Philip Jeffs [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 31, 2001 8:30 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] web mail clients?
>
>
> Hi,
>
> I'm looking into setting up a web based mail client for personal use.
>
> I've got most of it figured out (sending, recieving, forwarding etc..).
>
> I need to be able to use folders in the mail client to organise
> the messages. Whats the best way of moving messages around?
>
> Do i need to store them as files / in a database or is there an
> easier way to do it?
>
> Thanks.
>
> -----------------------------
> Philip Jeffs
>
> The Tickle Group
> The Gate House
> Summerseat
> Bury
> Lancashire
> BL9 5PE
> United Kingdom
> W: http://www.tickle.co.uk
> T: 01706 823456
> F: 01706 829500
> E: [EMAIL PROTECTED] (daytime)
> [EMAIL PROTECTED] (evening)
> -----------------------------
>
>
--- End Message ---
--- Begin Message ---
Philip --
If you just want to install one:
http://freshmeat.net "Browse" down to PHP project, there 4-6 are ready out
there.
If you want to "roll your own" check out the tutorials at:
http://www.melonfire.com/community/columns/trog/
Note: The mail client I send this mail from appears to be a
PHP front to "mailx", the saved mail is store in "Unix" type mail
folders in my home directory. i.e. it appends messages to the
end of a text file.
Hope this helps.
David
> Hi,
>
> I'm looking into setting up a web based mail client for personal use.
>
> I've got most of it figured out (sending, recieving, forwarding etc..).
>
>
> I need to be able to use folders in the mail client to organise the
> messages. Whats the best way of moving messages around?
>
> Do i need to store them as files / in a database or is there an easier
> way to do it?
>
> Thanks.
>
> -----------------------------
> Philip Jeffs
>
> The Tickle Group
> The Gate House
> Summerseat
> Bury
> Lancashire
> BL9 5PE
> United Kingdom
> W: http://www.tickle.co.uk
> T: 01706 823456
> F: 01706 829500
> E: [EMAIL PROTECTED] (daytime)
> [EMAIL PROTECTED] (evening)
> -----------------------------
--
--- End Message ---
--- Begin Message ---
Depends what you want to do with it.
If you want it to grab messages from a POP server, and download them to
your local machine, then some sort of cyclic folders database structure
would help:
int auto_inc folderid
int default(0) parentid (= 0 if root, otherwise id of parent folder)
str foldername
Then your mail database:
int auto_inc mailid
int default(0) folderid
subject
... etc ...
I would suggest setting up an IMAP server somewhere.. in which case all
you really need to do is grab Horde/IMP from http://www.horde.org/imp
and use that. The latest version is quite good.
Mike
Philip Jeffs wrote:
> Hi,
>
> I'm looking into setting up a web based mail client for personal use.
>
> I've got most of it figured out (sending, recieving, forwarding etc..).
>
> I need to be able to use folders in the mail client to organise the messages. Whats
>the best way of moving messages around?
>
> Do i need to store them as files / in a database or is there an easier way to do it?
>
> Thanks.
>
> -----------------------------
> Philip Jeffs
>
> The Tickle Group
> The Gate House
> Summerseat
> Bury
> Lancashire
> BL9 5PE
> United Kingdom
> W: http://www.tickle.co.uk
> T: 01706 823456
> F: 01706 829500
> E: [EMAIL PROTECTED] (daytime)
> [EMAIL PROTECTED] (evening)
> -----------------------------
>
>
>
--- End Message ---
--- Begin Message ---
Okay so I have a multidimensional associative array, $userlist[$file][$stat], $stat
only contains one value, I want to sort $userlist[$file] based off some associative
element in $stat, say like 'wins'. array_multisort isn't appropriate as far as I can
tell since $stat isn't an array, it's just a value, like, $userlist[$files]['wins']=4.
An exampleof the data would be as follows:
$userlist['000001']['wins']=4
$userlist['000002']['wins']=9
$userlist['000003']['wins']=2
I'd like, after running whatever command/function, to have the list be sorted as
follows-
$userlist['000002']['wins']=9
$userlist['000001']['wins']=4
$userlist['000003']['wins']=2
I'm sure it's possible, I'm just clueless as to HOW to go about it. Any help much
appreciated.
Regards
Louis Grenzebach
--- End Message ---
--- Begin Message ---
Test
Cannot submit to list.
Test
--- End Message ---
--- Begin Message ---
It seems to work. I'll use this thread to ask an admin question: why
doesn't the mailing list daemon add a reply-to address similar to the
one I manually added here? Wouldn't it be more comfortable for all
parties concerned?
Bogdan
John Monfort wrote:
> Test
> Cannot submit to list.
> Test
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi,
I am using the list comment to decompose urls for navigation.
This works fine. Except on one particular server and I don't know
why..
if my url is like : test.php everything is ok, but when I use
test.php/1, I get the Apache Internal 500 Error.
I believe that apache is checking if the 1 in the dir test.php
exists, which of course is not the case since test.php is a file.
I am only allowed to modify a htaccess file...
Does anyone have a suggestion how to fix this?
Thanks,
Patrick
PS:
my file test.php looks like
list($dummy1,$dummy2,$pid1,$pid2) = split("/",$PHP_SELF);
switch( $pid1 ) {
case 1:
include "file1.html";
break;
case 2:
include "file2.html";
break;
default:
include "default.html";
break;
}
--- End Message ---
--- Begin Message ---
Out of curiosity, why would you ever need this kind of URL? And what would
you expect Apache to do - issue a 404 error instead?
Bogdan
[EMAIL PROTECTED] wrote:
> if my url is like : test.php everything is ok, but when I use
> test.php/1, I get the Apache Internal 500 Error.
--- End Message ---
--- Begin Message ---
Patrick,
It's likeley that one that one server PHP is installed as a GGI -
unfortunatley the trick you want to use only work when PHP is installed as a
module.
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.openlinksw.com
Universal Data Access & Data Integration Technology Providers
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 31, 2001 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Apache Error 500
>
>
> Hi,
>
> I am using the list comment to decompose urls for navigation.
> This works fine. Except on one particular server and I don't know
> why..
>
> if my url is like : test.php everything is ok, but when I use
> test.php/1, I get the Apache Internal 500 Error.
>
> I believe that apache is checking if the 1 in the dir test.php
> exists, which of course is not the case since test.php is a file.
> I am only allowed to modify a htaccess file...
>
> Does anyone have a suggestion how to fix this?
>
> Thanks,
>
> Patrick
>
>
>
> PS:
>
> my file test.php looks like
>
> list($dummy1,$dummy2,$pid1,$pid2) = split("/",$PHP_SELF);
> switch( $pid1 ) {
> case 1:
> include "file1.html";
> break;
> case 2:
> include "file2.html";
> break;
> default:
> include "default.html";
> break;
> }
>
> --
> 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]
>
>
>
--- End Message ---
--- Begin Message ---
=Testing=
Having trouble sending mail...
=Testing=
Please ignore.
--- End Message ---
--- Begin Message ---
Sean,
From your php error_log, it's saying the following:
Failed to write session data (user)
which sounds like it's having problems writing to the user-defined
session handler. Are you using a user-defined session handler? If not,
make sure your php.ini file has:
session.save_handler = files
And *NOT*:
session.save_handler = user
That will make a big difference.
Jaime Bozza
-----Original Message-----
From: Sean LeBlanc [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 29, 2001 1:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Session troubles
On 12-29 12:56, David Jackson wrote:
> Sean --
> Don't know if this help but here's what I just worked for me. What
> ver. of PHP are you using? It seem to me that 3.x.x needs
> PHPLIB: http://sourceforge.net/projects/phplib
> to handle sessions? -- David Jackson
>
> --- sean.php -------
> <?php include("seaninc.php"); ?>
>
> --- seaninc.php ------
> <?php
> session_start();
> session_register("i");
> $i++;
> echo $i;
> ?>
I'm using 4.0.6. I believe session handling was added as part of
standard 4.x, right (if configured to compile it)?
Some more info: I tried with Konqueror, as I know a cookie needs to be
sent during the session_start() phase - I did get a dialog pop-up asking
if I wanted to accept the cookie, but I still got the error:
Fatal error: Failed to initialize session module in
/usr/local/apache/htdocs/sesstest.php on line 2
It says line 2 because I deleted some white space and commented out code
thas was before session_start().
I set logging errors on, and sent it to syslog. Here's what it says: Dec
29 12:12:57 free httpd: PHP Fatal error: Failed to initialize session
module in /usr/local/apache/htdocs/sesstest.php on line 2 Dec 29
12:12:57 free httpd: PHP Warning: Failed to write session data (user).
Please verify that the current setting of session.save_path is correct
(/tmp) in Unknown on line 0
But /tmp exists, and is world writeable:
free# ls -ld /tmp
drwxrwxrwt 16 root wheel 1024 Dec 29 12:14 /tmp
> > On 12-29 09:59, Miles Thompson wrote:
> >> Sean,
> >>
> >> What's going on in incl.php. Are you issuing a session_start()?
> >
> > No, I was not.
> >
> >> What if it's rearranged like so, as I understand you have to
> >> register the session variable before using it.
> >>
> >> include("incl.php");
> >> session_start();
> >> session_register("mine");
> >> $mine++;
> >> echo $mine;
> >
> > No dice, either. Actually, I had tried several permutations of the
> > order before posting. :)
> >
> >>
> >> There's the divide and conquer approach too. What do you see if
> >> you comment out the include, then issue a phpinfo() and a die()?
> >
> > Okay, I tried commenting out include, resulting in this code:
> >
> > session_start();
> > session_register("i");
> > $i++;
> > echo $i;
> >
> > When I run the above, I get this:
> > Fatal error: Failed to initialize session module in
> > /usr/local/apache/htdocs/sesstest.php on line 6
> >
> > Which is getting somewhere, in a way. Line 6 is session_start();
> >
> > What part from phpinfo() output were you interested in? Or did you
> > want to see all of it?
> >
> > Thanks for the help.
> >
> >>
> >> HTH and Merry Christmas / Happy New Year - Miles Thompson
> >>
> >> On Friday 28 December 2001 11:26 pm, Sean LeBlanc wrote:
> >> > I asked this on php-install list, but got no response so here
> >> > goes...
> >> >
> >> > I simply cannot get session to work correctly. Here's the test
> >> > script:
> >> >
> >> > include("incl.php");
> >> > session_start();
> >> > $mine++;
> >> > session_register("mine");
> >> > echo $mine;
> >> >
> >> > incl.php includes code to save/retrieve session information
> >> > to/from DB. It calles session_set_save_handler at the end.
> >> >
> >> > What happens is I get an error because it is trying to read the
> >> > variable out and I get a DB error, but my session writing routine
> >> > is never called...I know, because I have a print in there. And of
> >> > course, the var doesn't increment upon refreshes - it remains 1.
> >> >
> >> > I've seen this before, and it was fixed, but I forget how it was
> >> > done, as I didn't actually implement the solution (I hear and I
> >> > forget, I do and I remember, I guess). About my system:
> >> >
> >> > FreeBSD 4.4
> >> > Apache 1.3.20
> >> > PHP 4.0.6
> >> >
> >> > Any and all help appreciated.
> >
> > --
> > Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
> > ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
> > One learns to itch where one can scratch.
> > -Ernest Bramah
> > Management QOTD:Get hopping on the domain expertise!!
> >
> >
> > --
> > 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]
--
Sean LeBlanc:[EMAIL PROTECTED] Yahoo:seanleblancathome
ICQ:138565743 MSN:seanleblancathome AIM:sleblancathome
In most countries selling harmful things like drugs is punishable. Then
howcome people can sell Microsoft software and go unpunished?
-Hasse Skrifvars
Management QOTD:Work out a solution that fits with problem management!!
--
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]
--- End Message ---
--- Begin Message ---
Hello everyone!
I'm trying to get the text inside the <BODY> tag, using regular
expression.
$area = eregi('(<body)(.*)<">)',$str);
Where $str is the string containing
<body bgcolor="#999999" tex="#..." ...>
When I print $area, the string contains the entire content of $str. I
get something like:
<body ...>
<p>
.
.
.
</body>
</html>
__________John Monfort_________________
_+-----------------------------------+_
P E P I E D E S I G N S
www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___________________________________+-
--- End Message ---
--- Begin Message ---
Hello everyone,
I'm using regular expression to extract all text within the <body> tag.
With a BODY tag like
<body bgcolor="" ... text=""> \\only interested in this line.
I use
eregi("( <body ) (.*) (\">) ",$str,$out);
\\spaces included, here, for easy reading.
echo "$out[0]";
However, this prints everything following (and including) the '<BODY'
portion of the BODY tag.
Ex.
<body text=" "...alink="">
<table>....</table>
...
</body>
</html>
I want it to ONLY take the text within the openning body tag. Like,
<body ... >
how do I do this? What am I missing, in the above?
eregi("(<body)(.*)(>)",$str,$out);
-Please help.
-john
--- End Message ---
--- Begin Message ---
* John Monfort ([EMAIL PROTECTED]) [Dec 31. 2001 11:30]:
> I'm using regular expression to extract all text within the <body> tag.
> With a BODY tag like
> <body bgcolor="" ... text=""> \\only interested in this line.
[...]
> echo "$out[0]";
> However, this prints everything following (and including) the '<BODY'
> portion of the BODY tag.
"$matches[0] will contain the text that matched the full pattern,
$matches[1] will have the text that matched the first captured
parenthesized subpattern"
So you want: $out[1]
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Press Ctrl-Alt-Del for more information.
--- End Message ---
--- Begin Message ---
I would like to present the surfer with a list of files in a directory
(I'll probably put then into a drop-down) and then I want to send the
file to the surfer if one is selected. I am not sure of the syntax to
1) List the files in a directory
2) Send a selected file to the surfer
Many thanks for any help in getting the correct syntax to do this......
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
* Todd Cary ([EMAIL PROTECTED]) [Dec 31. 2001 11:32]:
> I would like to present the surfer with a list of files in a directory
> (I'll probably put then into a drop-down) and then I want to send the
> file to the surfer if one is selected. I am not sure of the syntax to
> 1) List the files in a directory
Using PHP 4.x?
<http://www.php.net/manual/en/class.dir.php>
> 2) Send a selected file to the surfer
<http://www.php.net/manual/en/function.header.php>
Scroll 3/4 down.
> Many thanks for any help in getting the correct syntax to do this......
HTH
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Avoid strange women and temporary variables.
--- End Message ---
--- Begin Message ---
$path="c:/";//your path
function GetDirArray($sPath)
{
//Load Directory Into Array
$handle=opendir($sPath);
while ($file = readdir($handle)) if(($file!=".")&($file!=".."))
$retVal[(isset($retVal))?count($retVal):0] = $file;
//Clean up and sort
closedir($handle);
sort($retVal);
return $retVal;
}
$a=GetDirArray($path);
//echo "test".count($a);
//for ($i=0;$i<count($a);$i++) echo $a[$i]."<br>";
?>
<select name="select">
<?
for ($i=0;$i<count($a);$i++) {
?>
<option value="test" onchange='location="//go to the specific location
and/or file"'><?echo $a[$i];?></option>
<?
}
?>
</select>
--
Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com
"Todd Cary" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to present the surfer with a list of files in a directory
> (I'll probably put then into a drop-down) and then I want to send the
> file to the surfer if one is selected. I am not sure of the syntax to
>
> 1) List the files in a directory
>
> 2) Send a selected file to the surfer
>
> Many thanks for any help in getting the correct syntax to do this......
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
I am very honour of your suggestion but I am not the author of the function
GetDirArray($sPath). The author is [EMAIL PROTECTED] (I don't know him). It
isn't ethic to publish this function under my name.
Best regards,
George Nicolae
IT Manager
___________________
X-Playin - Professional Web Design
www.x-playin.f2s.com
----- Original Message -----
From: "Boaz Yahav" <[EMAIL PROTECTED]>
To: "George Nicolae" <[EMAIL PROTECTED]>
Sent: Monday, December 31, 2001 9:05 PM
Subject: RE: [PHP] Re: Listing files
This looks like a great example to add to weberdev.
Care to spend 3 minutes and let other PHP developers
enjoy from your experience?
You are one click away from doing a good deed :)
http://www.weberdev.com/index.php3?GoTo=addexample.php3
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-----Original Message-----
From: George Nicolae [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 31, 2001 7:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Listing files
$path="c:/";//your path
function GetDirArray($sPath)
{
//Load Directory Into Array
$handle=opendir($sPath);
while ($file = readdir($handle)) if(($file!=".")&($file!=".."))
$retVal[(isset($retVal))?count($retVal):0] = $file;
//Clean up and sort
closedir($handle);
sort($retVal);
return $retVal;
}
$a=GetDirArray($path);
//echo "test".count($a);
//for ($i=0;$i<count($a);$i++) echo $a[$i]."<br>";
?>
<select name="select">
<?
for ($i=0;$i<count($a);$i++) {
?>
<option value="test" onchange='location="//go to the specific location
and/or file"'><?echo $a[$i];?></option>
<?
}
?>
</select>
--
"Todd Cary" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to present the surfer with a list of files in a directory
> (I'll probably put then into a drop-down) and then I want to send the
> file to the surfer if one is selected. I am not sure of the syntax to
>
> 1) List the files in a directory
>
> 2) Send a selected file to the surfer
>
> Many thanks for any help in getting the correct syntax to do
this......
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> [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]
--- End Message ---
--- Begin Message ---
FYI
This example does not return the expected result.
Accessing:
http://server.com/empty.phtml?variable
Then:
<?php
if(!empty($variable)){
echo TRUE;
}
?>
Will never print TRUE according to the example. The "isset()" function is
likely better suited for this person's purposes.
Robert V. Zwink
http://www.zwink.net/daid.php
-----Original Message-----
From: scott [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 29, 2001 10:48 PM
To: Php-General
Subject: RE: [PHP] Real Simple, but i'm new!!
well, if your URL is index.php?links
if (!empty($links))
is similar to what you'd want to use.
> -----Original Message-----
> From: Brian Clark [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, December 29, 2001 9:44 PM
> To: PHP is not a drug.
> Subject: Re: [PHP] Real Simple, but i'm new!!
>
>
> * FiShcAkE ([EMAIL PROTECTED]) [Dec 29. 2001 13:07]:
>
> > Hey,
>
> Howdydo
>
> > I've just started learning php and I need to know this... What are the
> > commands I use to get i.e. index.php?links and index.php?news to
> > work?
>
> You can use QUERY_STRING, but you could also use action=news,
> action=links, action=asdfg and use a switch($action)
>
> I guess you're trying to make the URL as pretty as possible, right?
>
> --
> Brian Clark | Avoiding the general public since 1805!
> Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
> A library is an arsenal of liberty.
>
>
> --
> 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]
--- End Message ---
--- Begin Message ---
Test: cannot send mail, but can read.
Please ignore.
--- End Message ---
--- Begin Message ---
I can't seem to find this anywhere in the manuals. What is the
maximum length of a string?
--------------------------------------------------------------------
Ray Todd Stevens Specialists in Network and Security
Consulting
Senior Consultant Software audit service available
Stevens Services
Suite 21
3754 Old State Rd 37 N
Bedford, IN 47421
(812) 279-9394
[EMAIL PROTECTED]
Thought for the day:
Book (n): a utensil used to pass time while waiting
for the TV repairman.
For PGP public key send message with subject
please send PGP key
If this message refers to an attachment the attachment
may arrive as a seperate mail message depending on the
type of mail client and gateway software you are using.
--- End Message ---
--- Begin Message ---
Take a look at the maximum allowed memory size used by PHP -- too much in a
hurry to provide a link. Approx. 8MB is the default. That's the limit for
strings too.
Bogdan
Ray Todd Stevens wrote:
> I can't seem to find this anywhere in the manuals. What is the
> maximum length of a string?
> --------------------------------------------------------------------
> Ray Todd Stevens Specialists in Network and Security
> Consulting
> Senior Consultant Software audit service available
> Stevens Services
> Suite 21
> 3754 Old State Rd 37 N
> Bedford, IN 47421
> (812) 279-9394
> [EMAIL PROTECTED]
>
> Thought for the day:
> Book (n): a utensil used to pass time while waiting
> for the TV repairman.
>
> For PGP public key send message with subject
> please send PGP key
>
> If this message refers to an attachment the attachment
> may arrive as a seperate mail message depending on the
> type of mail client and gateway software you are using.
>
> --
> 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]
--- End Message ---
--- Begin Message ---
* Ray Todd Stevens ([EMAIL PROTECTED]) [Dec 31. 2001 12:15]:
> I can't seem to find this anywhere in the manuals. What is the
> maximum length of a string?
This probably depends on the Operating System.. for Linux you can check
out limits.h, but for Windows, I have no idea.
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
$ mount -t neuro /dev/brain /mnt/head
--- End Message ---
--- Begin Message ---
USE
$HTTP_RAW_POST_DATA
or something like that
i'll look it up for you
"Zhiqiang He" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> i have resolved this problem, use $HTTP_RAW_POST_DATA.
>
> On Thu, 11 Oct 2001 13:12:54 GMT, [EMAIL PROTECTED] (Zhiqiang He) wrote:
>
> >problem like this:
> >
> >The data in HTML form POSTs is packaged into name value pairs. But
> >when IE 5 exports its favorites file to a server (an HTML file), it
> >sends a raw HTTP POST of the data (there are no names and values, just
> >a raw text stream.
> >
> >On Thu, 11 Oct 2001 12:58:09 +0300, [EMAIL PROTECTED]
> >(=?Iso-8859-1?Q?Niklas_lamp=E9n?=) wrote:
> >
> >>Use $FieldName or $HTTP_POST_VARS.
> >>
> >>
> >>Niklas
> >>
> >>-----Original Message-----
> >>From: ZhiQiang He [mailto:[EMAIL PROTECTED]]
> >>Sent: 11. lokakuuta 2001 12:54
> >>To: [EMAIL PROTECTED]
> >>Subject: [PHP] how to read posted data?
> >>
> >>
> >>we want to use post data in php, how can we read it?
> >>note, this post data is not sent by form.
> >>thanks in advance, ^_^
> >>
> >>--
> >>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]
> >>
> >
>
--- End Message ---
--- Begin Message ---
Also check out tutorials at:
http://www.melonfire.com/community/columns/trog/
-- david
> USE
> $HTTP_RAW_POST_DATA
> or something like that
>
> i'll look it up for you
> "Zhiqiang He" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
>> i have resolved this problem, use $HTTP_RAW_POST_DATA.
>>
>> On Thu, 11 Oct 2001 13:12:54 GMT, [EMAIL PROTECTED] (Zhiqiang He) wrote:
>>
>> >problem like this:
>> >
>> >The data in HTML form POSTs is packaged into name value pairs. But
>> >when IE 5 exports its favorites file to a server (an HTML file), it
>> >sends a raw HTTP POST of the data (there are no names and values,
>> >just a raw text stream.
>> >
>> >On Thu, 11 Oct 2001 12:58:09 +0300, [EMAIL PROTECTED]
>> >(=?Iso-8859-1?Q?Niklas_lamp=E9n?=) wrote:
>> >
>> >>Use $FieldName or $HTTP_POST_VARS.
>> >>
>> >>
>> >>Niklas
>> >>
>> >>-----Original Message-----
>> >>From: ZhiQiang He [mailto:[EMAIL PROTECTED]]
>> >>Sent: 11. lokakuuta 2001 12:54
>> >>To: [EMAIL PROTECTED]
>> >>Subject: [PHP] how to read posted data?
>> >>
>> >>
>> >>we want to use post data in php, how can we read it?
>> >>note, this post data is not sent by form.
>> >>thanks in advance, ^_^
>> >>
>> >>--
>> >>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]
--
--- End Message ---
--- Begin Message ---
you can also do
$queryString = "select table1.uid as 'my_uid' , table2.uid as 'their_uid'
from table1, table2
where ... ";
Greg Sidelinger wrote:
>
> ------------------------------------------------------------------------
>
> Subject:
>
> [PHP] mysql_fetch_array
> From:
>
> "Greg Sidelinger" <[EMAIL PROTECTED]>
> Date:
>
> Sun, 30 Dec 2001 18:44:44 -0500
> To:
>
> [EMAIL PROTECTED]
>
> To:
>
> [EMAIL PROTECTED]
>
>
> Ok I have use mysql_fetch_array to dump the results of a select query with a
> join in it.
> if my tables contain a column with the same name how can I distinguish from
> them. I'm used to
> table_name.value method in other languages but when I tried
> $row['table_name.value'] I don't get any values.
> can anyone point me in the right direction.
>
>
>
>
--
Vincent Stoessel [EMAIL PROTECTED]
Java Linux Apache Mysql Php (JLAMP) Engineer
(301) 362-1750 Mobile (410) 419-8588
AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica
--- End Message ---
--- Begin Message ---
Hi,
I was wondering if there is a wayto compile php with
gd support for the gif, png and jpg file types.
As far as I know gd dropped gif support while ago when
it added png.
regards,
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--- End Message ---
--- Begin Message ---
* Robert Mena ([EMAIL PROTECTED]) [Dec 31. 2001 13:00]:
> I was wondering if there is a wayto compile php with
> gd support for the gif, png and jpg file types.
> As far as I know gd dropped gif support while ago when
> it added png.
I know gd version 1.3 supports gif. YOu can probably dig it up on
google... wait.. I think I remember "fly" using gd 1.3.x and I think it
provides the source with it.
<http://martin.gleeson.com/fly/>
If you download the tarball, it *should* have gd version 1.3 in a
directory in there somehwere.
No idea if it still works with PHP.
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Multitasking: Screwing up several things at once.
--- End Message ---
--- Begin Message ---
After doing a lot of hoop jumping trying to get
php4.1.0 compiled and working as a servlet for tomcat 4.0.1
I finally tried going back to php 4.0.6 with the same configure
options and so far it runs flawlessly as a servet.
You can view the history of my problem here:
http://marc.theaimsgroup.com/?t=100966546600002&r=1&w=2&n=2
I was about to post a bug, report but I see one already there.
This is just a heads up to the java/php developer then.
http://bugs.php.net/bug.php?id=14441
--
Vincent Stoessel [EMAIL PROTECTED]
Java Linux Apache Mysql Php (JLAMP) Engineer
(301) 362-1750 Mobile (410) 419-8588
AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica
--- End Message ---