php-general Digest 10 Jan 2005 11:28:50 -0000 Issue 3219
Topics (messages 205921 through 205950):
Re: E-mails with mail() as UTF-8
205921 by: Ligaya Turmelle
Advice for Experienced web developer newish to PHP
205922 by: Justin
205938 by: tr
libphp4.so not created on upgrade
205923 by: heath boutwell
205927 by: Rasmus Lerdorf
Re: DOM or DOM XML ?
205924 by: Chris
PHP code to analize email HELP
205925 by: Alejandro Mar�n Uribe
205928 by: Robby Russell
205936 by: Zareef Ahmed
Re: "*** glibc detected *** double free or corruption:" error
205926 by: Raditha Dissanayake
205950 by: Alex Greg
Re: How do I start at a specific position in an array? Is there
205929 by: Thomas Goyne
PHP form POST question
205930 by: James \(IFMS\)
205931 by: Leon Poon
205932 by: Tom Rogers
205933 by: James \(IFMS\)
Re: PHP any Mysql connection- new b
205934 by: Sagar C Nannapaneni
205935 by: Zareef Ahmed
long running page on apache 2
205937 by: Bret Hughes
problem with 'setcookie'
205939 by: Andrew Maxwell
205940 by: M. Sokolewicz
unable to load curl
205941 by: Sagar C Nannapaneni
Website and Mozilla/Firefox
205942 by: Lester Caine
205944 by: Tommy Skarateppen
205946 by: Richard Davey
205947 by: John Holmes
205948 by: Lester Caine
PHP Accellerator into Zend Engine2 by default
205943 by: kioto
exec() function
205945 by: akshay
205949 by: tr
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 ---
Have you tried base64 encoding of your message before placing it in your
mail()? That is how I have my program sending japanese characters in
the body. As far as I know the subject line is only supposed to be from
the latin character sets.
Respectfully,
Ligaya Turmelle
Kimmo Alm wrote:
Hey again!
I'm having major trouble using mail() to deliver UTF-8 e-mails.
They get sent and delivered successfully, but seem to be... messed up
when they arrive (they go through my ISP's relay e-mail server).
My headers basically look like this: "From: Test
<[EMAIL PROTECTED]>\nMIME-Version: 1.0\nContent-Type: text/plain;
charset=UTF-8\n".
I want to be able to use UTF-8 chars both in the subject and the body.
When I check the letters in my e-mail client (Opera's built-in one --
M2), it shows "UTF-16". Also, the headers look different than from the
ones I send.
Is the relay server altering my letters? What the hell is happening?
--- End Message ---
--- Begin Message ---
Hi all,
I'm a experienced web programmer, that is taking on a PHP project. I'm
really looking to get the tricks and tips that come with experience, the
lazy way :-)
Project Overview
Its basically a corporate info website, with an admin section to
add/change content. It will have several top level section some of which
will have subsection contain different type of articles
e.g. news, press releases section, and events.
Some of these will have fields specific to the clients website e.g.
"Internal Part No."
I don't need :
Forums
Polls
User login/ membership (except admin)
I've looked at some of the CMS out there, but they seem too complex for
my needs. I need something more geared to an information site than a
community
Constraints
- Can't use zone/plone
- Shared server
What I'm looking for
- libs, classes etc. to help displaying html and forms. e.g. paging
records 10 at a time, generating client side validation etc.
- some sort of database abstraction layer . it would be nice to have
this layer return objects of the correct type
- a php rss lib
- a simple php based gallery example.
-
Thanks All .
--- End Message ---
--- Begin Message ---
Justin wrote / nap�sal (a):
Hi all,
I'm a experienced web programmer, that is taking on a PHP project. I'm
really looking to get the tricks and tips that come with experience, the
lazy way :-)
Project Overview
Its basically a corporate info website, with an admin section to
add/change content. It will have several top level section some of which
will have subsection contain different type of articles
e.g. news, press releases section, and events.
Some of these will have fields specific to the clients website e.g.
"Internal Part No."
I don't need :
Forums
Polls
User login/ membership (except admin)
I've looked at some of the CMS out there, but they seem too complex for
my needs. I need something more geared to an information site than a
community
Constraints
- Can't use zone/plone
- Shared server
What I'm looking for
- libs, classes etc. to help displaying html and forms. e.g. paging
records 10 at a time, generating client side validation etc.
- some sort of database abstraction layer . it would be nice to have
this layer return objects of the correct type
- a php rss lib
- a simple php based gallery example.
-
Thanks All .
PEAR pear.php.net framework
SMARTY smarty.php.net template engine
trobi
--- End Message ---
--- Begin Message ---
Upgrading to 4.3.10, Make, make test and make install work with no errors.
Using same configure options I used to install 4.3.8:
./configure --prefix=/usr --with-apx=/usr/local/apache/bin/apxs
--libdir=/usr/lib/php4 --datadir=/usr/share/php
--with-sybase-ct=/usr/local/freetds --with-config-file-path=/etc
--enable-inline-optimization --enable-magic-quotes --enable-track-vars
--enable-memory-limit --enable-bcmath --enable-sigchild
--with-openssl--enable-sysvsem=shared --enable-sysvshm=shared
--enable-shmop=shared --with-unixODBC=shared --with-mysql=shared,/usr
--with-gettext=shared --enable-sockets=shared --with-curl=/usr/include/curl
--enable-posix=shared --with-zlib --with-mm
/usr/local/apache/bin/httpd -l
Compiled-in modules:
http_core.c
mod_so.c
suexec: enabled; valid wrapper /usr/local/apache/bin/suexec
I've also tried make clean and deleting the old libphp4.so as well as deleting
config.cache. I've
googled for anyone else having this problem and its only encountered when make
failed.
Make returns no errors but the file isn't generated and make install output
doesn't list it as a
created file.
Any ideas?
Thanks.
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
--- End Message ---
--- Begin Message ---
heath boutwell wrote:
Upgrading to 4.3.10, Make, make test and make install work with no errors.
Using same configure options I used to install 4.3.8:
./configure --prefix=/usr --with-apx=/usr/local/apache/bin/apxs
--libdir=/usr/lib/php4 --datadir=/usr/share/php
--with-sybase-ct=/usr/local/freetds --with-config-file-path=/etc
--enable-inline-optimization --enable-magic-quotes --enable-track-vars
--enable-memory-limit --enable-bcmath --enable-sigchild
--with-openssl--enable-sysvsem=shared --enable-sysvshm=shared
--enable-shmop=shared --with-unixODBC=shared --with-mysql=shared,/usr
--with-gettext=shared --enable-sockets=shared --with-curl=/usr/include/curl
--enable-posix=shared --with-zlib --with-mm
/usr/local/apache/bin/httpd -l
Compiled-in modules:
http_core.c
mod_so.c
suexec: enabled; valid wrapper /usr/local/apache/bin/suexec
I've also tried make clean and deleting the old libphp4.so as well as deleting
config.cache. I've
googled for anyone else having this problem and its only encountered when make
failed.
Well, what is created? Do you get a .libs/libphp4 file with no
extension? If so, you can either just rename that to .libs/libphp4.so
or run libtoolize --force and re-run ./configure
-Rasmus
--- End Message ---
--- Begin Message ---
Ok, that answers my questions.
Thanks a lot!
Chris
Yann Larriv�e wrote:
Hello
If you don't wish to have XML support please use.
--disable-simplexml --disable-libxml --disable-xml
By Default, libxml is needed to compile PHP5.
It tries to load DOM. DOMXML is history :)
Hop this helps.
Yann
On January 9, 2005 13:35, Chris wrote:
I'm currently compiling (at the ./configure step at the moment) 5.03 on
Redhat 9 and ran into something that confused me. I got the error
message included below.
[EMAIL PROTECTED] ./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-gd --with-mysql=/usr/local/mysql41
--with-mysqli=/usr/local/mysql41/bin/mysql_config
. . .
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2
installation.
That, in itself, isn't too confusing, it's looking for something that's
not there. Simple. I've been trying to figure out a few things though,
and could use outside help:
1) Why is it trying to enable LIBXML support?
2) Which extension is it trying to load? DOM? DOM XML? Something else?
Upon review I think I'd like to compile in DOM, but the manual (
http://www.php.net/dom ) doesn't mention anything about how to compile
it in.
Thanks,
Chris
--- End Message ---
--- Begin Message ---
Hi all
I really need help. I have an idea about to create a piece of code that it
analyze an email, extract certain data (this email contains Name, email and
telephone of a person in a standar html) and insert this data in MySQL
database. It this posible?
I'm a newbie in PHP/MySQL, any ideas?
Thanks,
excuse my english
--- End Message ---
--- Begin Message ---
On Sun, 2005-01-09 at 19:20 -0500, Alejandro MarÃn Uribe wrote:
> Hi all
>
> I really need help. I have an idea about to create a piece of code that it
> analyze an email, extract certain data (this email contains Name, email and
> telephone of a person in a standar html) and insert this data in MySQL
> database. It this posible?
>
> I'm a newbie in PHP/MySQL, any ideas?
>
> Thanks,
>
> excuse my english
>
You can probably search online and find some tutorials for this. Some
terms that might help are 'php parse html email'
-Robby
--
/***************************************
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON | www.planetargon.com
* Portland, OR | [EMAIL PROTECTED]
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
* --- Now supporting PHP5 ---
****************************************/
--- End Message ---
--- Begin Message ---
On Sun, 09 Jan 2005 18:00:09 -0800, Robby Russell <[EMAIL PROTECTED]> wrote:
> On Sun, 2005-01-09 at 19:20 -0500, Alejandro Mar�n Uribe wrote:
> > Hi all
> >
> > I really need help. I have an idea about to create a piece of code that it
> > analyze an email, extract certain data (this email contains Name, email and
> > telephone of a person in a standar html) and insert this data in MySQL
> > database. It this posible?
> >
> > I'm a newbie in PHP/MySQL, any ideas?
> >
> > Thanks,
> >
regular expressions are the answeres of your problems
zareef ahmed.
> > excuse my english
> >
>
> You can probably search online and find some tutorials for this. Some
> terms that might help are 'php parse html email'
>
> -Robby
>
> --
> /***************************************
> * Robby Russell | Owner.Developer.Geek
> * PLANET ARGON | www.planetargon.com
> * Portland, OR | [EMAIL PROTECTED]
> * 503.351.4730 | blog.planetargon.com
> * PHP/PostgreSQL Hosting & Development
> * --- Now supporting PHP5 ---
> ****************************************/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net
--- End Message ---
--- Begin Message ---
Alex Greg wrote:
(apologies if this reaches the list twice - the first time I sent it,
it didn't arrive within 12 hours)
Hi,
Recently I migrated the front-end of our bulletin board (running
phpBB, patched against the recently highlight vulnerability) to a pair
of servers running Fedora Core 3. I compiled Apache 1.3.33 and PHP
4.3.10 from source. The MySQL database is running on a separate machine.
This morning, the servers slowed down to the point that they were
almost completely unresponsive. After a while I managed to SSH into
the machines and saw that the httpd processes had grown to 35MB each
and were using up all the swap and RAM on the machines (they have 1GB
RAM, 1GB swap). I then set MaxClients to 30 and restarted Apache, but
the slowdown happened again:
I then checked the error log and found this:
*** glibc detected *** double free or corruption: 0x097ec7e8 ***
Quite curiously I had this same problem just yesterday and spent quite a
bit of time scratching around trying to get it to work again. I upgraded
all of apache, glibc and php to know avail. Though this error had been
seen many times before by others i found nothing relevent in google. In
my case however it turned out to be a really trivial and stupid mistake:
I had AddModule lines for the both the PHP4 and PHP5 SO in my httpd.conf
file. Please check your own httpd.conf file. If not that it could also
be conflicting extensions.
--
Raditha Dissanayake.
------------------------------------------------------------------
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/ | Drag and Drop Upload
--- End Message ---
--- Begin Message ---
On Mon, 10 Jan 2005 06:58:21 +0600, Raditha Dissanayake
<[EMAIL PROTECTED]> wrote:
> Alex Greg wrote:
>
> >(apologies if this reaches the list twice - the first time I sent it,
> >it didn't arrive within 12 hours)
> >
> >Hi,
> >
> >Recently I migrated the front-end of our bulletin board (running
> >phpBB, patched against the recently highlight vulnerability) to a pair
> >of servers running Fedora Core 3. I compiled Apache 1.3.33 and PHP
> >4.3.10 from source. The MySQL database is running on a separate machine.
> >
> >This morning, the servers slowed down to the point that they were
> >almost completely unresponsive. After a while I managed to SSH into
> >the machines and saw that the httpd processes had grown to 35MB each
> >and were using up all the swap and RAM on the machines (they have 1GB
> >RAM, 1GB swap). I then set MaxClients to 30 and restarted Apache, but
> >the slowdown happened again:
> >
> >
> >I then checked the error log and found this:
> >
> >*** glibc detected *** double free or corruption: 0x097ec7e8 ***
> >
> >
> Quite curiously I had this same problem just yesterday and spent quite a
> bit of time scratching around trying to get it to work again. I upgraded
> all of apache, glibc and php to know avail. Though this error had been
> seen many times before by others i found nothing relevent in google. In
> my case however it turned out to be a really trivial and stupid mistake:
> I had AddModule lines for the both the PHP4 and PHP5 SO in my httpd.conf
> file. Please check your own httpd.conf file. If not that it could also
> be conflicting extensions.
On Mon, 10 Jan 2005 06:58:21 +0600, Raditha Dissanayake
<[EMAIL PROTECTED]> wrote:
> Alex Greg wrote:
>
> >(apologies if this reaches the list twice - the first time I sent it,
> >it didn't arrive within 12 hours)
> >
> >Hi,
> >
> >Recently I migrated the front-end of our bulletin board (running
> >phpBB, patched against the recently highlight vulnerability) to a pair
> >of servers running Fedora Core 3. I compiled Apache 1.3.33 and PHP
> >4.3.10 from source. The MySQL database is running on a separate machine.
> >
> >This morning, the servers slowed down to the point that they were
> >almost completely unresponsive. After a while I managed to SSH into
> >the machines and saw that the httpd processes had grown to 35MB each
> >and were using up all the swap and RAM on the machines (they have 1GB
> >RAM, 1GB swap). I then set MaxClients to 30 and restarted Apache, but
> >the slowdown happened again:
> >
> >
> >I then checked the error log and found this:
> >
> >*** glibc detected *** double free or corruption: 0x097ec7e8 ***
> >
> >
> Quite curiously I had this same problem just yesterday and spent quite a
> bit of time scratching around trying to get it to work again. I upgraded
> all of apache, glibc and php to know avail. Though this error had been
> seen many times before by others i found nothing relevent in google. In
> my case however it turned out to be a really trivial and stupid mistake:
> I had AddModule lines for the both the PHP4 and PHP5 SO in my httpd.conf
> file. Please check your own httpd.conf file. If not that it could also
> be conflicting extensions.
Hi,
I've checked our httpd.conf files, and we're only loading PHP once:
LoadModule php4_module libexec/libphp4.so
...
AddModule mod_php4.c
Additionally, does anyone know why the httpd processes are growing so
big? This is common under mod_perl as it caches compiled code in
memory, but PHP doesn't do this so I've no idea why the httpd
processes are in the region of 35MB each. The only application we're
running on these servers is phpBB. Possibly PHP is leaking memory?
The reason why we didn't see this on our Fedora Core 1 servers is
because the glibc on Fedora Core 3 reports these corruptions (whereas
FC1's glibc doesn't). However, we do still see the 35MB httpd
processes on Fedora Core 1. From the FC3 release notes:
glibc
The version of glibc provided with Fedora Core 3 performs
additional internal sanity checks to prevent and detect data
corruption as early as possible. By default, should corruption
be detected, a message similar to the following will be displayed
on standard error (or logged via syslog if stderr is not open):
*** glibc detected *** double free or corruption: 0x0937d008 ***
By default, the program that generated this error will also be
killed; however, this (and whether or not an error message is
generated) can be controlled via the MALLOC_CHECK_ environment
variable. The following settings are supported:
0 -- Do not generate an error message, and do not kill the program
1 -- Generate an error message, but do not kill the program
2 -- Do not generate an error message, but kill the program
3 -- Generate an error message and kill the program
Note
If MALLOC_CHECK_ is explicitly set a value other than 0, this
causes glibc to perform more tests that are more extensive than
the default, and may impact performance.
Should you have a program from a third party ISV that triggers
these corruption checks and displays a message, you should
file a defect report with the application's vendor, since this
indicates a serious bug.
Any further advice would be greatly appreciated.
Regards,
-- Alex
--- End Message ---
--- Begin Message ---
On Sun, 09 Jan 2005 23:58:18 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote:
can't recall what it was exactly, but I believe it was a case where I
didn't know the key of the array, nor the value, but knew the "place" in
the array.
Can't exactly remember what it was... I am now thinking that what I'm
saying in my last line can be done easily by using array_values and
using a numeric key....
But... as I said, I can't recall what it was. In the end I simply
rewrote whatever it was to use a more efficient way of handling things
array_keys($arr)[$place] will get you the key for the current place in the
array.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
http://www.smempire.org
--- End Message ---
--- Begin Message ---
I just narrowed something down about forms and POST and would like
education. In the following scenarios, all work except #4. $_POST is
null. Why is that?
Setup:
1) Running on localhost
2) /foo/index.php has the following:
<? var_dump($_POST); var_dump($_GET); ?>
3) /index.php contends vary per scenario (below)
Running RHEL 3, all updates (PHP 4.3.2).
SCENARIO 1:
/index.php contains the following:
<form method="get" action="/foo/index.php">
<input name="foobutton" type="submit">
</form>
In this case in /foo/index.php $_GET has the right value, i.e.
array('foobutton' => '');
SCENARIO 2:
/index.php contains the following:
<form method="get" action="/foo">
<input name="foobutton" type="submit">
</form>
In this case in /foo/index.php $_GET has the right value, i.e.
array('foobutton' => '');
SCENARIO 3:
/index.php contains the following:
<form method="post" action="/foo/index.php">
<input name="foobutton" type="submit">
</form>
In this case in /foo/index.php $_POST has the right value, i.e.
array('foobutton' => '');
SCENARIO 4:
/index.php contains the following:
<form method="post" action="/foo">
<input name="foobutton" type="submit">
</form>
In this case in /foo/index.php $_POST is NULL.
HUH? Why is $_POST empty? Is Apache doing something to kill the form's
post information when it has to resolve /foo to /foo/index.php?
--- End Message ---
--- Begin Message ---
When you access /foo, the server will redirect the client to /foo/ (because
it is a directory). At the redirected page, the post data will not be sent
again by the browser thus there are no _POST values.
Try using action="/foo/". That may work.
----- Original Message -----
From: "James (IFMS)" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, January 10, 2005 10:04 AM
Subject: [PHP] PHP form POST question
I just narrowed something down about forms and POST and would like
education. In the following scenarios, all work except #4. $_POST is null.
Why is that?
Setup:
1) Running on localhost
2) /foo/index.php has the following:
<? var_dump($_POST); var_dump($_GET); ?>
3) /index.php contends vary per scenario (below)
Running RHEL 3, all updates (PHP 4.3.2).
SCENARIO 1:
/index.php contains the following:
<form method="get" action="/foo/index.php">
<input name="foobutton" type="submit">
</form>
In this case in /foo/index.php $_GET has the right value, i.e.
array('foobutton' => '');
SCENARIO 2:
/index.php contains the following:
<form method="get" action="/foo">
<input name="foobutton" type="submit">
</form>
In this case in /foo/index.php $_GET has the right value, i.e.
array('foobutton' => '');
SCENARIO 3:
/index.php contains the following:
<form method="post" action="/foo/index.php">
<input name="foobutton" type="submit">
</form>
In this case in /foo/index.php $_POST has the right value, i.e.
array('foobutton' => '');
SCENARIO 4:
/index.php contains the following:
<form method="post" action="/foo">
<input name="foobutton" type="submit">
</form>
In this case in /foo/index.php $_POST is NULL.
HUH? Why is $_POST empty? Is Apache doing something to kill the form's
post information when it has to resolve /foo to /foo/index.php?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
Monday, January 10, 2005, 12:04:28 PM, you wrote:
JI> I just narrowed something down about forms and POST and would like
JI> education. In the following scenarios, all work except #4. $_POST is
JI> null. Why is that?
JI> Setup:
JI> 1) Running on localhost
JI> 2) /foo/index.php has the following:
JI> <? var_dump($_POST); var_dump($_GET); ?>
JI> 3) /index.php contends vary per scenario (below)
JI> Running RHEL 3, all updates (PHP 4.3.2).
JI> SCENARIO 1:
JI> /index.php contains the following:
JI> <form method="get" action="/foo/index.php">
JI> <input name="foobutton" type="submit">
JI> </form>
JI> In this case in /foo/index.php $_GET has the right value, i.e.
array('foobutton' =>> '');
JI> SCENARIO 2:
JI> /index.php contains the following:
JI> <form method="get" action="/foo">
JI> <input name="foobutton" type="submit">
JI> </form>
JI> In this case in /foo/index.php $_GET has the right value, i.e.
array('foobutton' =>> '');
JI> SCENARIO 3:
JI> /index.php contains the following:
JI> <form method="post" action="/foo/index.php">
JI> <input name="foobutton" type="submit">
JI> </form>
JI> In this case in /foo/index.php $_POST has the right value, i.e.
array('foobutton' =>> '');
JI> SCENARIO 4:
JI> /index.php contains the following:
JI> <form method="post" action="/foo">
JI> <input name="foobutton" type="submit">
JI> </form>
JI> In this case in /foo/index.php $_POST is NULL.
JI> HUH? Why is $_POST empty? Is Apache doing something to kill the form's
JI> post information when it has to resolve /foo to /foo/index.php?
If you do a post to just the domain name apache does a redirect to
/foo/index.php
losing the post info.
--
regards,
Tom
--- End Message ---
--- Begin Message ---
When you access /foo, the server will redirect the client to /foo/
(because it is a directory). At the redirected page, the post data will
not be sent again by the browser thus there are no _POST values.
Try using action="/foo/". That may work.
Yes, /foo/ does work.
The explanation makes sense.
Bugger! All that time spent banging my head against the wall. :-)
Thanks!
--- End Message ---
--- Begin Message ---
You didnt mentioned where your problem is and what the error that you are
getting.
check in the line
mysql_select_db (userpass);
That you have the grant and other administrative privilages to the user and
the database
you have to operate on is "mysql"
mysql_select_db (mysql);
Anyhow note that PHP5 has released...i dont see any good reason why u r
still using php 3.
/sagar
----- Original Message -----
From: "M. Sokolewicz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, January 08, 2005 9:55 PM
Subject: [PHP] Re: PHP any Mysql connection- new b
> php 3.0???!
>
> man, you seriously need to think about upgrading :| PHP 3 is seriously
> outdated
>
> - tul
> Babu wrote:
>
> > Hi all,
> >
> > I am using php 3.0 and mysql and win xp.
> > i want to add users to database through php page.
> >
> > adduser.php
> > <html>
> > <FORM METHOD="post" ACTION="add.php">
> > Real Name: <INPUT TYPE=text MAXLENGTH=70 NAME="real_name" SIZE=20><Br>
> > Username: <INPUT TYPE=text MAXLENGTH=70 NAME="username" SIZE=20><Br>
> > Password: <Input Type=text Maxlength=70 Name="userpass" Size=10><Br>
> >
> > <INPUT TYPE=submit VALUE="Add"> <INPUT type=reset VALUE="Reset
Form"></form>
> > </tr></td></table></tr></td></table>
> > </body>
> > </html>
> >
> > when i enter the fileds and submit ,the action is not performed, instead
add.php file is opened.
> >
> > add.php
> > <?
> >
> > $ID = uniqid("userID");
> >
> > $db = mysql_connect("localhost","root","halfdinner");
> >
> > mysql_select_db (userpass);
> >
> > $result = mysql_query ("INSERT INTO users (id, real_name, username,
password )
> > VALUES ('$ID', '$real_name', '$username', '$userpass') ");
> > if(!$result)
> >
> > echo "<b>User not added:</b> ", mysql_error();
> > exit;
> > }
> > if($result)
> >
> > mysql_close($db);
> > print "User <b>$username</b> added sucessfully!";
> > }
> > else
> >
> > print ("Wrong Password");
> > }
> > ?>
> >
> > is the problem due to mysql and php connection.i am using windows xp
with apache2.
> >
> > i followed the steps said by someone in the previous thread.that is
adding libmysql.dll to system32 and so on. I cannot find php_mysql.dll in
php.ini.
> > can some one help
> >
> > Thanks
> > babu
> >
> >
> >
> > ---------------------------------
> > ALL-NEW Yahoo! Messenger - all new features - even more fun!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
On Sat, 8 Jan 2005 16:10:47 +0000 (GMT), babu <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am using php 3.0 and mysql and win xp.
> i want to add users to database through php page.
>
> adduser.php
> <html>
> <FORM METHOD="post" ACTION="add.php">
> Real Name: <INPUT TYPE=text MAXLENGTH=70 NAME="real_name" SIZE=20><Br>
> Username: <INPUT TYPE=text MAXLENGTH=70 NAME="username" SIZE=20><Br>
> Password: <Input Type=text Maxlength=70 Name="userpass" Size=10><Br>
>
> <INPUT TYPE=submit VALUE="Add"> <INPUT type=reset VALUE="Reset Form"></form>
> </tr></td></table></tr></td></table>
> </body>
> </html>
>
> when i enter the fileds and submit ,the action is not performed, instead
> add.php file is >opened.
What do you mean by it? You have action as add.php then it must be
opened. Are you getting all page code in plain text? If so please
check your php installation.
BTW php3 is outdated and I never see it running on Apache 2 with win xp.
zareef ahmed
> add.php
> <?
>
> $ID = uniqid("userID");
>
> $db = mysql_connect("localhost","root","halfdinner");
>
> mysql_select_db (userpass);
>
> $result = mysql_query ("INSERT INTO users (id, real_name, username, password )
> VALUES ('$ID', '$real_name', '$username', '$userpass') ");
> if(!$result)
> {
> echo "<b>User not added:</b> ", mysql_error();
> exit;
> }
> if($result)
> {
> mysql_close($db);
> print "User <b>$username</b> added sucessfully!";
> }
> else
> {
> print ("Wrong Password");
> }
> ?>
>
> is the problem due to mysql and php connection.i am using windows xp with
> apache2.
>
> i followed the steps said by someone in the previous thread.that is adding
> libmysql.dll to system32 and so on. I cannot find php_mysql.dll in php.ini.
> can some one help
>
> Thanks
> babu
>
>
> ---------------------------------
> ALL-NEW Yahoo! Messenger - all new features - even more fun!
>
--
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net
--- End Message ---
--- Begin Message ---
As I begin to write this I wonder if this really an apache issue but
will ask here to see if anyone has some idea.
We have a php interface to our system running apache 2 on fedora 1 box.
One page calls a script that does a system() call on a script that runs
for several minutes. The issue is that no other calls to the server
will return from the client until the script returns. I like the
ability to watch the progress of this script but is suppose I can send
the output to a file and occasionally retrieve the contents of the file
but that seems really inefficient. If there is another way to have
apache process additional requests, from the same client, that would be
a good thing. As far as can tell, the same apache process is is used
each time, but i am having trouble verifying that to my satisfaction.
Any tips appreciated.
All work is done in https and there is extensive use of php sessions on
the system if that makes a difference.
Bret
--- End Message ---
--- Begin Message ---
I am running the latest version of XAMPP from apachefriends.org, when
i try to set an authenticating cookie it doesnt make the cookie. It
doesnt give me any errors or anything. I was looking through the
PHP.ini file and it didnt have anything about the setcookie function.
Can anyone tell me what is going on?
~Andrew
--- End Message ---
--- Begin Message ---
Andrew Maxwell wrote:
I am running the latest version of XAMPP from apachefriends.org, when
i try to set an authenticating cookie it doesnt make the cookie. It
doesnt give me any errors or anything. I was looking through the
PHP.ini file and it didnt have anything about the setcookie function.
Can anyone tell me what is going on?
~Andrew
what's the URL to the script that sets it, and what parameters do you use?
--- End Message ---
--- Begin Message ---
Hi,
I've got a strange issue here....
i'm using apache2 with php 4.3.9 on win 2000.
I've pointed the php extension directory to
extension_dir = "C:\php\extensions"
where all the extension dlls reside.
All extensions are working and all dlls are loading properly,,
but when i try to load curl i'm getting an error saying that
"Unable to load module. C:\php\extensions\php_curl.dll could not be found"
But i can see the file from the file browser.
Please help me out...
/sagar
--- End Message ---
--- Begin Message ---
All of a sudden I am having problems with www.php.net, selecting
download or manual flashes up the relevant page, and then it goes blank.
It's doing it on three machines that have been accessing those pages
fine for weeks, with both Firefox1 and Mozilla1.7, and nothing has been
changed on the machines.
If I switch to my gash client machine that has IE on, things are OK, and
changing mirrors gives the same problem.
Anybody seeing/seen the same problem?
I don't fancy having to use IE just to look at the php pages :(
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
--- End Message ---
--- Begin Message ---
I have exactly the same problem. I've never had problems displaying the
php.net site with Firefox before, but now suddenly it flashes the correct
page for a short moment before it goes blank. It seems like I'm beeing
redirected to a new location. If I manage to hit the Esc-button, before I'm
redirected, I can view the page. What's happening? Anyone have a solution
for this? As Lester Caine says, I don't fancy having to use IE just to look
at the php pages...
-Tommy
-----Opprinnelig melding-----
Fra: Lester Caine [mailto:[EMAIL PROTECTED]
Sendt: 10. januar 2005 09:24
Til: [email protected]
Emne: [PHP] Website and Mozilla/Firefox
All of a sudden I am having problems with www.php.net, selecting
download or manual flashes up the relevant page, and then it goes blank.
It's doing it on three machines that have been accessing those pages
fine for weeks, with both Firefox1 and Mozilla1.7, and nothing has been
changed on the machines.
If I switch to my gash client machine that has IE on, things are OK, and
changing mirrors gives the same problem.
Anybody seeing/seen the same problem?
I don't fancy having to use IE just to look at the php pages :(
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello Tommy,
Monday, January 10, 2005, 9:30:23 AM, you wrote:
TS> I have exactly the same problem. I've never had problems displaying the
TS> php.net site with Firefox before, but now suddenly it flashes the correct
TS> page for a short moment before it goes blank. It seems like I'm beeing
TS> redirected to a new location. If I manage to hit the Esc-button, before I'm
TS> redirected, I can view the page. What's happening? Anyone have a solution
TS> for this? As Lester Caine says, I don't fancy having to use IE just to look
TS> at the php pages...
Same happens here too - I think we can safely say someone has utterly
foo-bar'd the PHP site in a recent change.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde
--- End Message ---
--- Begin Message ---
Lester Caine wrote:
All of a sudden I am having problems with www.php.net, selecting
download or manual flashes up the relevant page, and then it goes blank.
It's doing it on three machines that have been accessing those pages
fine for weeks, with both Firefox1 and Mozilla1.7, and nothing has been
changed on the machines.
If I switch to my gash client machine that has IE on, things are OK, and
changing mirrors gives the same problem.
I switched from using the us2.php.net mirror to the us4.php.net mirror
and things were fine.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
John Holmes wrote:
> I switched from using the us2.php.net mirror to the us4.php.net mirror
and things were fine.
That has been 'knobled' now.
At least now I know I'm not going mad ;)
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
--- End Message ---
--- Begin Message ---
PHP is scripting language interpreted and not compiled.
I want know about the difference beetwean the bytecode of JSP and ASP.NET
than PHP-Accelerator. Why this extension isn't a built-in into Zend
Engine parsing ?
This is a better solution to comparison the performace of PHP versus
other technologies like JSP and ASP.NET ?
--- End Message ---
--- Begin Message ---
exec() function is not working.
Is there any setting in PHP.ini
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
--- End Message ---
--- Begin Message ---
akshay wrote / napÃsal (a):
exec() function is not working.
Is there any setting in PHP.ini
Do you use PHP5?
If yes, use instead: example: $var=shell_exec('ls');
trobi
--- End Message ---