php-general Digest 29 Mar 2002 15:28:22 -0000 Issue 1255

Topics (messages 90641 through 90675):

Re: Help with Acrobat FDF support
        90641 by: Rasmus Lerdorf

Mysql adding extra fields.
        90642 by: David Duong
        90643 by: Miguel Cruz
        90646 by: hugh danaher

CyberCash Please
        90644 by: Gabriel Richards

Check for text
        90645 by: Martin Kampherbeek
        90649 by: Jason Wong

Program Looping ?
        90647 by: Jason Caldwell
        90648 by: Demitrious S. Kelly
        90671 by: Hunter, Ray

urlencode and decode are producing \\\' instead of \'
        90650 by: andy
        90658 by: Bogdan Stancescu
        90662 by: andy
        90663 by: Andrey Hristov
        90664 by: andy
        90668 by: Jason Wong
        90669 by: Bogdan Stancescu
        90670 by: Anders Henke

Re: where i get .so [dll] file of linux ?
        90651 by: Prachait Saxena
        90666 by: Rouvas Stathis
        90672 by: Prachait Saxena
        90675 by: Rouvas Stathis

PDF Load Problem
        90652 by: Alexis Antonakis

uploading files problem
        90653 by: Claudio Fedel
        90654 by: Balaji Ankem
        90655 by: Balaji Ankem
        90656 by: andy

Re: Sending a header redirect mid-page
        90657 by: Xavier DELAS

a href problem
        90659 by: Anders Henke

Re: ASP vs PHP
        90660 by: Evan

creating MySQL Users
        90661 by: Liam
        90665 by: Rick Emery
        90674 by: Rafael Perazzo

OT  - representing data
        90667 by: Alastair Battrick

get_browser() problem ?
        90673 by: R'twick Niceorgaw

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 ---
You have to build the FDF extension to include FDF support by adding the
--with-fdftk to the PHP build flags.

-Rasmus

On Thu, 28 Mar 2002, Robert Stoeber wrote:

> I just found the very cool looking new FDF functions to support Acrobat
> forms.  According to the documentation at www.php.net I have to download &
> install the FDF SDK.
>
> Found the latest SDK and I put two files from the C directory of the SDK at:
>
> /usr/lib/php4/libfdftk.so
> /usr/include/fdftk.h
>
> Then I figured that I had to put something into php.ini to load the FDF
> code, so I added a line like this to php.ini:
>
> extension=libfdftk.so
>
> Unfortunately, it doesn't work.  I get an error message:
>
> Invalid library (maybe not a PHP library) 'libfdftk.so'
>
> I've looked all over various newsgroups, forums, etc and that's where the
> instructions stop, but there must be more to it.  Can anyone point me in the
> right direction?
>
> My system is Redhat Linux 7.2, Apache 1.3.22, PHP 4.0.6.
>
> [EMAIL PROTECTED]
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
How do I add extra fields after it has already been set?


--- End Message ---
--- Begin Message ---
On Thu, 28 Mar 2002, David Duong wrote:
> How do I add extra fields after it has already been set?

1) Read the manual conveniently available at http://www.mysql.org; this 
is not rocket science.

2) ALTER TABLE mytable ADD boogers_per_hour INT;

miguel

--- End Message ---
--- Begin Message ---
Try,

[type] can be int or char (9999) or blob or real or something else drawn
from the mysql manual

$query="ALTER table_name ADD column_name [type] AFTER other_column_name";
$result=mysql_query($query);
if (!$result) die("couldn't alter table".mysql_error());

Hope this helps,
Hugh


----- Original Message -----
From: "David Duong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 28, 2002 9:33 PM
Subject: [PHP] Mysql adding extra fields.


> How do I add extra fields after it has already been set?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
Hello.

Would someone who has had experience and/or success with PHP and CyberCash
please contact me.

Thank you.
Gabe

-----
Ender Technology Corp.
Websites, Database Applications, Hosting
(310) 516-7411
[EMAIL PROTECTED]
http://www.endertechnology.com/


--- End Message ---
--- Begin Message ---
Someone submits an url through a form.
Now I want to check in a script to see if there is some tekst in it.

For Example:
Someone submits http://www.mydomain.com/test.htm

In this htm file I want to check the text "hello".


--- End Message ---
--- Begin Message ---
On Friday 29 March 2002 14:40, Martin Kampherbeek wrote:
> Someone submits an url through a form.
> Now I want to check in a script to see if there is some tekst in it.
>
> For Example:
> Someone submits http://www.mydomain.com/test.htm
>
> In this htm file I want to check the text "hello".

fopen(), file() etc
strstr(), preg_match(), preg_grep() etc


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

/*
Artificial intelligence has the same relation to intelligence as
artificial flowers have to flowers.
                -- David Parnas
*/
--- End Message ---
--- Begin Message ---
I've written a script that checks my email.  However, when I run the script
(from the command line) -- I want it to loop with a 5 minute delay and the
ability to stop the program anytime by pressing a key on the keyboard (say)
the ~ key.

Anyone know how to do this?

<?

    function check_mail()
    {
        // my email code is here
    }

    check_mail();

?>

thanks.
jason


--- End Message ---
--- Begin Message ---
Well you'd have to work with inputs, etc... for the key... but the look
isn't hard

$loop=1;
$sleep=300;
while ( $loop == 1 ) {
        code();
        sleep($sleep);
        if ( %%keypresscode%% ) {
                $loop = 0;
        }
}

I'd probably just touch a file somewhere when I want it to stop.. and
make it if (is_file($file)) { $loop=0; }

That's my opinion

-----Original Message-----
From: Jason Caldwell [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 10:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Program Looping ?

I've written a script that checks my email.  However, when I run the
script
(from the command line) -- I want it to loop with a 5 minute delay and
the
ability to stop the program anytime by pressing a key on the keyboard
(say)
the ~ key.

Anyone know how to do this?

<?

    function check_mail()
    {
        // my email code is here
    }

    check_mail();

?>

thanks.
jason



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




--- End Message ---
--- Begin Message ---
You need to also make sure that you change the script execution time allowed
in the php.ini file to 5 minutes or more or else you will get a time out
error.



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


> -----Original Message-----
> From: Jason Caldwell [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 28, 2002 11:56 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Program Looping ?
> 
> 
> I've written a script that checks my email.  However, when I 
> run the script (from the command line) -- I want it to loop 
> with a 5 minute delay and the ability to stop the program 
> anytime by pressing a key on the keyboard (say) the ~ key.
> 
> Anyone know how to do this?
> 
> <?
> 
>     function check_mail()
>     {
>         // my email code is here
>     }
> 
>     check_mail();
> 
> ?>
> 
> thanks.
> jason
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
Hi there,

I am trying to fill a form again when an error occures, therefore I redirect
to the form and pass the values via url like this:

HEADER("Location:/profiles/6".$recipient_id."2.html?subject=".rawurlencode($
subject)."&message=".rawurlencode($message)."");

then I put it in again like this
 <textarea name="message" rows="10" style="width:485px;" cols="58"
wrap="virtual">'.rawurldecode($message).'</textarea>

The problem is, that this is causing a message like this:
test  \\\'

So what's wrong? Can anybody help on this?

Thank you,

Andy


--- End Message ---
--- Begin Message ---
You don't have to rawurlDEcode again - that's done automatically. You 
have to encode so you're HTTP compliant, but the decoding is done by PHP 
(or even Apache? I'm not sure) when receiving urlencoded strings via URL 
and form data.

Bogdan

andy wrote:

>Hi there,
>
>I am trying to fill a form again when an error occures, therefore I redirect
>to the form and pass the values via url like this:
>
>HEADER("Location:/profiles/6".$recipient_id."2.html?subject=".rawurlencode($
>subject)."&message=".rawurlencode($message)."");
>
>then I put it in again like this
> <textarea name="message" rows="10" style="width:485px;" cols="58"
>wrap="virtual">'.rawurldecode($message).'</textarea>
>
>The problem is, that this is causing a message like this:
>test  \\\'
>
>So what's wrong? Can anybody help on this?
>
>Thank you,
>
>Andy
>
>
>



--- End Message ---
--- Begin Message ---
does not help, any other ideas?


"Bogdan Stancescu" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You don't have to rawurlDEcode again - that's done automatically. You
> have to encode so you're HTTP compliant, but the decoding is done by PHP
> (or even Apache? I'm not sure) when receiving urlencoded strings via URL
> and form data.
>
> Bogdan
>
> andy wrote:
>
> >Hi there,
> >
> >I am trying to fill a form again when an error occures, therefore I
redirect
> >to the form and pass the values via url like this:
> >
>
>HEADER("Location:/profiles/6".$recipient_id."2.html?subject=".rawurlencode(
$
> >subject)."&message=".rawurlencode($message)."");
> >
> >then I put it in again like this
> > <textarea name="message" rows="10" style="width:485px;" cols="58"
> >wrap="virtual">'.rawurldecode($message).'</textarea>
> >
> >The problem is, that this is causing a message like this:
> >test  \\\'
> >
> >So what's wrong? Can anybody help on this?
> >
> >Thank you,
> >
> >Andy
> >
> >
> >
>
>
>


--- End Message ---
--- Begin Message ---
try to do double rawurldecode().

Andrey

----- Original Message ----- 
From: "andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 2:36 PM
Subject: Re: [PHP] urlencode and decode are producing \\\' instead of \'


> does not help, any other ideas?
> 
> 
> "Bogdan Stancescu" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > You don't have to rawurlDEcode again - that's done automatically. You
> > have to encode so you're HTTP compliant, but the decoding is done by PHP
> > (or even Apache? I'm not sure) when receiving urlencoded strings via URL
> > and form data.
> >
> > Bogdan
> >
> > andy wrote:
> >
> > >Hi there,
> > >
> > >I am trying to fill a form again when an error occures, therefore I
> redirect
> > >to the form and pass the values via url like this:
> > >
> >
> >HEADER("Location:/profiles/6".$recipient_id."2.html?subject=".rawurlencode(
> $
> > >subject)."&message=".rawurlencode($message)."");
> > >
> > >then I put it in again like this
> > > <textarea name="message" rows="10" style="width:485px;" cols="58"
> > >wrap="virtual">'.rawurldecode($message).'</textarea>
> > >
> > >The problem is, that this is causing a message like this:
> > >test  \\\'
> > >
> > >So what's wrong? Can anybody help on this?
> > >
> > >Thank you,
> > >
> > >Andy
> > >
> > >
> > >
> >
> >
> >
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---
--- Begin Message ---
does not work. Just like the decode function is out of order!
It is not even decoding \'

Andy


"Andrey Hristov" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
00e301c1d71e$b00569a0$0b01a8c0@ANDreY">news:00e301c1d71e$b00569a0$0b01a8c0@ANDreY...
> try to do double rawurldecode().
>
> Andrey
>
> ----- Original Message -----
> From: "andy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 29, 2002 2:36 PM
> Subject: Re: [PHP] urlencode and decode are producing \\\' instead of \'
>
>
> > does not help, any other ideas?
> >
> >
> > "Bogdan Stancescu" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > You don't have to rawurlDEcode again - that's done automatically. You
> > > have to encode so you're HTTP compliant, but the decoding is done by
PHP
> > > (or even Apache? I'm not sure) when receiving urlencoded strings via
URL
> > > and form data.
> > >
> > > Bogdan
> > >
> > > andy wrote:
> > >
> > > >Hi there,
> > > >
> > > >I am trying to fill a form again when an error occures, therefore I
> > redirect
> > > >to the form and pass the values via url like this:
> > > >
> > >
> >
>HEADER("Location:/profiles/6".$recipient_id."2.html?subject=".rawurlencode(
> > $
> > > >subject)."&message=".rawurlencode($message)."");
> > > >
> > > >then I put it in again like this
> > > > <textarea name="message" rows="10" style="width:485px;" cols="58"
> > > >wrap="virtual">'.rawurldecode($message).'</textarea>
> > > >
> > > >The problem is, that this is causing a message like this:
> > > >test  \\\'
> > > >
> > > >So what's wrong? Can anybody help on this?
> > > >
> > > >Thank you,
> > > >
> > > >Andy
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>


--- End Message ---
--- Begin Message ---
On Friday 29 March 2002 20:56, andy wrote:
> does not work. Just like the decode function is out of order!
> It is not even decoding \'

> > > > >I am trying to fill a form again when an error occures, therefore I
> > >
> > > redirect
> > >
> > > > >to the form and pass the values via url like this:
> >
> >HEADER("Location:/profiles/6".$recipient_id."2.html?subject=".rawurlencode
> >(
> >
> > > $
> > >
> > > > >subject)."&message=".rawurlencode($message)."");
> > > > >
> > > > >then I put it in again like this
> > > > > <textarea name="message" rows="10" style="width:485px;" cols="58"
> > > > >wrap="virtual">'.rawurldecode($message).'</textarea>
> > > > >
> > > > >The problem is, that this is causing a message like this:
> > > > >test  \\\'
> > > > >
> > > > >So what's wrong? Can anybody help on this?

Well your problem is not caused by the rawurlencode, rawurldecode. It's 
probably because you have magic_quotes_gpc set to on. 

Try this:

For your URL: rawurlencode(stripslashes($subject)), and same for $message.

For your textarea: htmlspecialchars($subject), & $message.

If you're putting $subject & $message into a DB you would probably want to do 
the reverse of htmlspecialchars() before inserting them into the DB.

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

/*
If you don't know what game you're playing, don't ask what the score is.
*/

--- End Message ---
--- Begin Message ---
Jason Wong wrote:

>Well your problem is not caused by the rawurlencode, rawurldecode. It's 
>probably because you have magic_quotes_gpc set to on. 
>
>Try this:
>
>For your URL: rawurlencode(stripslashes($subject)), and same for $message.
>
>For your textarea: htmlspecialchars($subject), & $message.
>
>If you're putting $subject & $message into a DB you would probably want to do 
>the reverse of htmlspecialchars() before inserting them into the DB.
>

Mr. Wong is wright :-) The only problem is that you should 
rawurlencode(stripslashes($subject)) in the header and 
htmlspecialchars(stripslashes($subject)) in the textarea for the 
expected results.

Bogdan


--- End Message ---
--- Begin Message ---
Hi!

What about using stripslashes:
$variable = stripslashes($variable);

Also see http://www.php.net/stripslashes

/Anders Henke


"Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]...
> On Friday 29 March 2002 20:56, andy wrote:
> > does not work. Just like the decode function is out of order!
> > It is not even decoding \'
>
> > > > > >I am trying to fill a form again when an error occures, therefore
I
> > > >
> > > > redirect
> > > >
> > > > > >to the form and pass the values via url like this:
> > >
> >
>HEADER("Location:/profiles/6".$recipient_id."2.html?subject=".rawurlencode
> > >(
> > >
> > > > $
> > > >
> > > > > >subject)."&message=".rawurlencode($message)."");
> > > > > >
> > > > > >then I put it in again like this
> > > > > > <textarea name="message" rows="10" style="width:485px;"
cols="58"
> > > > > >wrap="virtual">'.rawurldecode($message).'</textarea>
> > > > > >
> > > > > >The problem is, that this is causing a message like this:
> > > > > >test  \\\'
> > > > > >
> > > > > >So what's wrong? Can anybody help on this?
>
> Well your problem is not caused by the rawurlencode, rawurldecode. It's
> probably because you have magic_quotes_gpc set to on.
>
> Try this:
>
> For your URL: rawurlencode(stripslashes($subject)), and same for $message.
>
> For your textarea: htmlspecialchars($subject), & $message.
>
> If you're putting $subject & $message into a DB you would probably want to
do
> the reverse of htmlspecialchars() before inserting them into the DB.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
>
> /*
> If you don't know what game you're playing, don't ask what the score is.
> */
>


--- End Message ---
--- Begin Message ---
Hello
But i would like to ues that modules that are not complied wit PHP

i mean dynamic inclusion of modules... Is that possible ?

Prachait

----- Original Message -----
From: Rouvas Stathis <[EMAIL PROTECTED]>
Newsgroups: php.general
To: Prachait Saxena <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 1:43 AM
Subject: Re: [PHP] where i get .so [dll] file of linux ?


>
> In Linux you don't use dl(). Instead, you compile PHP with the modules
> you need and they are there when you call them.
>
> -Stathis.
>

> Prachait Saxena wrote:
> >
> > Hello
> >
> > I would like to Know, where Site or Link i can get complied .so [dll]
files.
> > of linux
> >
> > as i have php_sockets.dll which works very fine in Windows enviroment.
but
> > on linux....
> >
> > Can you suggest any other option for this.
> >
> > I am using  dl("php_sockets.dll"); while writing my code for windows and
> > what to same for Linux
> >
> > --
> > Bye, and  Have a nice day.
> >
> > Prachait Saxena

--- End Message ---
--- Begin Message ---
I always recompile PHP when I need a new module, but searching the
mailling list archives I found the following post by Rasmus that says
dl() in *nix is possible. Well, if Rasmus says it can be done, he is
propably true:-)

<old_post>

Subject: Re: [PHP] Re: The future of PHP - accessory libraries
   Date: Tue, 28 Aug 2001 11:01:34 -0700 (PDT)
   From: Rasmus Lerdorf <[EMAIL PROTECTED]>
     To: Michael Kimsal <[EMAIL PROTECTED]>
     CC: PHP General <[EMAIL PROTECTED]>

> That's not allowing me to simply dl() an SO file, because I don't have the
> SO file to start with - that's what I was trying to get at.  If I have
> to reconfigure
> everything, there's not much point, I don't think.  Unless I'm missing
> something
> obvious.  I'd like to be able to simply have an SO file I can dl()
> without recompiling.
> Or are you saying that that configure statement WILL create an SO file
> that can
> be dl()ed later, without recompiling PHP?

Exactly.  When you do ./configure --with-foo=shared; make
then modules/foo.so will appear magically and you can dl() that or load
it
using "extension=foo.so" in your php.ini.  You don't have to recompile
PHP.

-Rasmus

</oldPost>

-Stathis

Prachait Saxena wrote:
> 
> Hello
> But i would like to ues that modules that are not complied wit PHP
> 
> i mean dynamic inclusion of modules... Is that possible ?
> 
> Prachait
> 
> ----- Original Message -----
> From: Rouvas Stathis <[EMAIL PROTECTED]>
> Newsgroups: php.general
> To: Prachait Saxena <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, March 29, 2002 1:43 AM
> Subject: Re: [PHP] where i get .so [dll] file of linux ?
> 
> >
> > In Linux you don't use dl(). Instead, you compile PHP with the modules
> > you need and they are there when you call them.
> >
> > -Stathis.
> >
> 
> > Prachait Saxena wrote:
> > >
> > > Hello
> > >
> > > I would like to Know, where Site or Link i can get complied .so [dll]
> files.
> > > of linux
> > >
> > > as i have php_sockets.dll which works very fine in Windows enviroment.
> but
> > > on linux....
> > >
> > > Can you suggest any other option for this.
> > >
> > > I am using  dl("php_sockets.dll"); while writing my code for windows and
> > > what to same for Linux
> > >
> > > --
> > > Bye, and  Have a nice day.
> > >
> > > Prachait Saxena
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Well i did not have the permission for both

edting of php.in and recompling the apache ???

Now what i can do ?

Prachait
----- Original Message -----
From: Rouvas Stathis <[EMAIL PROTECTED]>
Newsgroups: php.general
Cc: <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 6:34 PM
Subject: Re: [PHP] where i get .so [dll] file of linux ?


> I always recompile PHP when I need a new module, but searching the
> mailling list archives I found the following post by Rasmus that says
> dl() in *nix is possible. Well, if Rasmus says it can be done, he is
> propably true:-)
>
> <old_post>
>
> Subject: Re: [PHP] Re: The future of PHP - accessory libraries
>    Date: Tue, 28 Aug 2001 11:01:34 -0700 (PDT)
>    From: Rasmus Lerdorf <[EMAIL PROTECTED]>
>      To: Michael Kimsal <[EMAIL PROTECTED]>
>      CC: PHP General <[EMAIL PROTECTED]>
>
> > That's not allowing me to simply dl() an SO file, because I don't have
the
> > SO file to start with - that's what I was trying to get at.  If I have
> > to reconfigure
> > everything, there's not much point, I don't think.  Unless I'm missing
> > something
> > obvious.  I'd like to be able to simply have an SO file I can dl()
> > without recompiling.
> > Or are you saying that that configure statement WILL create an SO file
> > that can
> > be dl()ed later, without recompiling PHP?
>
> Exactly.  When you do ./configure --with-foo=shared; make
> then modules/foo.so will appear magically and you can dl() that or load
> it
> using "extension=foo.so" in your php.ini.  You don't have to recompile
> PHP.
>
> -Rasmus
>
> </oldPost>
>
> -Stathis
>
> Prachait Saxena wrote:
> >
> > Hello
> > But i would like to ues that modules that are not complied wit PHP
> >
> > i mean dynamic inclusion of modules... Is that possible ?
> >
> > Prachait
> >
> > ----- Original Message -----
> > From: Rouvas Stathis <[EMAIL PROTECTED]>
> > Newsgroups: php.general
> > To: Prachait Saxena <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Friday, March 29, 2002 1:43 AM
> > Subject: Re: [PHP] where i get .so [dll] file of linux ?
> >
> > >
> > > In Linux you don't use dl(). Instead, you compile PHP with the modules
> > > you need and they are there when you call them.
> > >
> > > -Stathis.
> > >
> >
> > > Prachait Saxena wrote:
> > > >
> > > > Hello
> > > >
> > > > I would like to Know, where Site or Link i can get complied .so
[dll]
> > files.
> > > > of linux
> > > >
> > > > as i have php_sockets.dll which works very fine in Windows
enviroment.
> > but
> > > > on linux....
> > > >
> > > > Can you suggest any other option for this.
> > > >
> > > > I am using  dl("php_sockets.dll"); while writing my code for windows
and
> > > > what to same for Linux
> > > >
> > > > --
> > > > Bye, and  Have a nice day.
> > > >
> > > > Prachait Saxena
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
You should ask your administrator to do it for you.
BTW, most propably you don't have to recompile Apache.

-Stathis.

PS: Please, forward only to the list and to individual emails (if it is
possible).

Prachait Saxena wrote:
> 
> Well i did not have the permission for both
> 
> edting of php.in and recompling the apache ???
> 
> Now what i can do ?
> 
> Prachait
> ----- Original Message -----
> From: Rouvas Stathis <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, March 29, 2002 6:34 PM
> Subject: Re: [PHP] where i get .so [dll] file of linux ?
> 
> > I always recompile PHP when I need a new module, but searching the
> > mailling list archives I found the following post by Rasmus that says
> > dl() in *nix is possible. Well, if Rasmus says it can be done, he is
> > propably true:-)
> >
> > <old_post>
> >
> > Subject: Re: [PHP] Re: The future of PHP - accessory libraries
> >    Date: Tue, 28 Aug 2001 11:01:34 -0700 (PDT)
> >    From: Rasmus Lerdorf <[EMAIL PROTECTED]>
> >      To: Michael Kimsal <[EMAIL PROTECTED]>
> >      CC: PHP General <[EMAIL PROTECTED]>
> >
> > > That's not allowing me to simply dl() an SO file, because I don't have
> the
> > > SO file to start with - that's what I was trying to get at.  If I have
> > > to reconfigure
> > > everything, there's not much point, I don't think.  Unless I'm missing
> > > something
> > > obvious.  I'd like to be able to simply have an SO file I can dl()
> > > without recompiling.
> > > Or are you saying that that configure statement WILL create an SO file
> > > that can
> > > be dl()ed later, without recompiling PHP?
> >
> > Exactly.  When you do ./configure --with-foo=shared; make
> > then modules/foo.so will appear magically and you can dl() that or load
> > it
> > using "extension=foo.so" in your php.ini.  You don't have to recompile
> > PHP.
> >
> > -Rasmus
> >
> > </oldPost>
> >
> > -Stathis
> >
> > Prachait Saxena wrote:
> > >
> > > Hello
> > > But i would like to ues that modules that are not complied wit PHP
> > >
> > > i mean dynamic inclusion of modules... Is that possible ?
> > >
> > > Prachait
> > >
> > > ----- Original Message -----
> > > From: Rouvas Stathis <[EMAIL PROTECTED]>
> > > Newsgroups: php.general
> > > To: Prachait Saxena <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Friday, March 29, 2002 1:43 AM
> > > Subject: Re: [PHP] where i get .so [dll] file of linux ?
> > >
> > > >
> > > > In Linux you don't use dl(). Instead, you compile PHP with the modules
> > > > you need and they are there when you call them.
> > > >
> > > > -Stathis.
> > > >
> > >
> > > > Prachait Saxena wrote:
> > > > >
> > > > > Hello
> > > > >
> > > > > I would like to Know, where Site or Link i can get complied .so
> [dll]
> > > files.
> > > > > of linux
> > > > >
> > > > > as i have php_sockets.dll which works very fine in Windows
> enviroment.
> > > but
> > > > > on linux....
> > > > >
> > > > > Can you suggest any other option for this.
> > > > >
> > > > > I am using  dl("php_sockets.dll"); while writing my code for windows
> and
> > > > > what to same for Linux
> > > > >
> > > > > --
> > > > > Bye, and  Have a nice day.
> > > > >
> > > > > Prachait Saxena
--- End Message ---
--- Begin Message ---
Hi,

One user to a site I have developed has complained that when they are trying
to view a PDF file on the site, that the server is closing the connection
with the browser window before the page has loaded.  The file is only 13
pages long and has a few very small images in it.

What I was wondering was whether anyone else has come across this sort of
problem, and if so, what advice would they be able to give to speed up the
loading/storage of PDF files.

Many Thanks
Alexis

--- End Message ---
--- Begin Message ---
hi there,

I'm trying to upload a file using php on an apache server running on
linux.

The code of the form I'm using is as follow:

<form  enctype=\"multipart/form-data\" method=POST
action=$PHP_SELF?action=doupload >
<p>File to upload:<br>
<input type=file name=file size=30>
<input type=text name=zio size=30>
<p><button name=submit type=submit>
Upload
</button>
</form>


when I press the submit button after selecting the file, nothing
happens. 
I tried to print the filename passed by the form but it is empty.
If I run the same page on my win2k server, everything works fine.
It seems as that the form doesn't pass post variables. I also tried to
delete the enctype parameter and in this case the variables are printed
on screen.

Is there any particular setting on linux for this page to work?

thanks



--- End Message ---
--- Begin Message ---
hi  friend,

do we have static variables in php?

If we have can u give the syntax!!1

Thanks in advance
Balaji
Content-Type: multipart/alternative;
        boundary="----_=_NextPart_001_01C1D70D.F3519000"


------_=_NextPart_001_01C1D70D.F3519000
Content-Type: text/plain

hi there,

I'm trying to upload a file using php on an apache server running on
linux.

The code of the form I'm using is as follow:

<form  enctype=\"multipart/form-data\" method=POST
action=$PHP_SELF?action=doupload >
<p>File to upload:<br>
<input type=file name=file size=30>
<input type=text name=zio size=30>
<p><button name=submit type=submit>
Upload
</button>
</form>


when I press the submit button after selecting the file, nothing
happens. 
I tried to print the filename passed by the form but it is empty.
If I run the same page on my win2k server, everything works fine.
It seems as that the form doesn't pass post variables. I also tried to
delete the enctype parameter and in this case the variables are printed
on screen.

Is there any particular setting on linux for this page to work?

thanks




------_=_NextPart_001_01C1D70D.F3519000--

**************************Disclaimer************************************
      


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 ********************************************************************
--- End Message ---
--- Begin Message ---
specify the value attribute in input elements!!!

----- Original Message -----
From: "Balaji Ankem" <[EMAIL PROTECTED]>
Date: Friday, March 29, 2002 4:27 pm
Subject: Re: [PHP] uploading files problem

> hi  friend,
> 
> do we have static variables in php?
> 
> If we have can u give the syntax!!1
> 
> Thanks in advance
> Balaji
> Content-Type: multipar    boundary="----
> _=_NextPart_001_01C1D70D.F3519000"
> 
> ------_=_NextPart_001_01C1D70D.F3519000
> Content-Type: text/plain
> 
> hi there,
> 
> I'm trying to upload a file using php on an apache server running on
> linux.
> 
> The code of the form I'm using is as follow:
> 
> <form  enctype=\"multipart/form-data\" method=POST
> action=$PHP_SELF?action=doupload >
> <p>File to upload:<br>
> <input type=file name=file size=30>
> <input type=text name=zio size=30>
> <p><button name=submit type=submit>
> Upload
> </button>
> </form>
> 
> 
> when I press the submit button after selecting the file, nothing
> happens. 
> I tried to print the filename passed by the form but it is empty.
> If I run the same page on my win2k server, everything works fine.
> It seems as that the form doesn't pass post variables. I also 
> tried to
> delete the enctype parameter and in this case the variables are 
> printedon screen.
> 
> Is there any particular setting on linux for this page to work?
> 
> thanks
> 
> 
> 
> 
> ------_=_NextPart_001_01C1D70D.F3519000--
> 
> 
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
**************************Disclaimer************************************
      


Information contained in this E-MAIL being proprietary to Wipro Limited
is 'privileged' and 'confidential' and intended for use only by the
individual or entity to which it is addressed. You are notified that any
use, copying or dissemination of the information contained in the E-MAIL
in any manner whatsoever is strictly prohibited.



 ********************************************************************
--- End Message ---
--- Begin Message ---
put dubble quotes inside your html. I think this is in the spec, as soon as
it is no numeric format:

<input type="file" name="file" size=30>

Cheers, Andy


"Claudio Fedel" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi there,
>
> I'm trying to upload a file using php on an apache server running on
> linux.
>
> The code of the form I'm using is as follow:
>
> <form  enctype=\"multipart/form-data\" method=POST
> action=$PHP_SELF?action=doupload >
> <p>File to upload:<br>
> <input type=file name=file size=30>
> <input type=text name=zio size=30>
> <p><button name=submit type=submit>
> Upload
> </button>
> </form>
>
>
> when I press the submit button after selecting the file, nothing
> happens.
> I tried to print the filename passed by the form but it is empty.
> If I run the same page on my win2k server, everything works fine.
> It seems as that the form doesn't pass post variables. I also tried to
> delete the enctype parameter and in this case the variables are printed
> on screen.
>
> Is there any particular setting on linux for this page to work?
>
> thanks
>
>
>
>


--- End Message ---
--- Begin Message ---
You can do that with a javascript command:

if($dbfail) {
ob_end_clean();
print("
<script language=javascript>
parent.location.href=http://".$SERVER_NAME."/closed.php";;
</script>
");
exit;  // Halt the rest of the page from loading
 };




"Dan Tappin" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> I am trying to add error trapping to my site.  In particular I want to
> direct visitors to an error page when for what ever reason a MySQL
> connection can not be made.  Rather than a page full of errors I want a
> generic 'we are temporarily closed performing maintenance etc.. etc'
>
> Basically after a failed mysql_connect attempt I want a redirection to
this
> error page.  I have searched the PHP site and mailing lists and I have
seen
> a few solutions.
>
> In particular I found the use of ob_start() before the header info is send
> on the page then the use of the follow for the redirect:
>
> if($dbfail) {
>
> ob_end_clean();
> header("Location: http://".$SERVER_NAME."/closed.php";);
> exit;  // Halt the rest of the page from loading
>
> };
>
> I have also thought about just using a mysql_connect test in the header of
> each page that I have a mysql query in and have the redirect there.  I
want
> to have such an include any way to add some generic functions to call from
> anywhere as well.
>
> My only concern is that I am adding another mysql_connect and I don't want
> to slow things down any (things are blazing fast now but I want to keep it
> that way).
>
> It would be really nice if there was a one line function that could do
this.
> I also use Lasso and they have a simple [URL_Redirect:'http://domain.com']
> tag which does the job.
>
> I am also unfamiliar with the output buffer functions even after reading
up
> on them in the manual.  If I call ob_start() at the start of my page do I
> need to call a closing ob function after my $dbfail code if the connection
> is successful and my redirect ob_end_clean(); call is not made?
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Dan
> P.S. Please CC me/the list as I am on Digest Mode :^)
> --
> Dan Tappin
> Wavefront Communications Limited
> P:(403) 241-0062
> F:(403) 241-0302
> E: [EMAIL PROTECTED]
>
>


--- End Message ---
--- Begin Message ---
Hi folks!

Im running this forum for Flash users and I have created it in Flash. Now,
I've got this little problem... If a users writes a URL like
http://www.test.com, the url becomes clickable thanks to the code below.

$text = str_replace("<", "&lt;", $text);
$text = str_replace(">", "&gt;", $text);
$text = str_replace("www.", "http://www.";, $text);
$text = str_replace("http://http://";, "http://";, $text);
$text = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])",
"<u><a href=\"\\1://\\2\\3\" target=\"_blank\">\\1://\\2\\3</a></u>",
$text);
$text =
eregi_replace("(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-]))", "<u><a
href=\"mailto:\\1\";>\\1</a></u>", $text);
$text = urlencode($text);

Everything works just fine, until someone writes <a
href="http://www.test.com";>http://www.test.com</a>. The output then becomes
<a href="<a href="http://www.test.com";
target="_blank">http://www.test.com</a>
target="_blank">http://www.test.com</a>.


Does anyone have a solution for this?

Regards

Anders Henke


--- End Message ---
--- Begin Message ---
Hope this will help you:

1) Macromedia Ultradev + PHAkt extension (www.macromedia.com) $$
2) www.phpide.de
3) www.phpedit.com
4) http://dd.cron.ru/dbg (debugger)


Evan


"Ciro Martins" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi!
>
>
> I've been programming in PHP for long. But one question that always is
> coming to my mind is to know if there exists some kind of tools (like
> for SP. It exists a tool called ASPWebTools for wich it is possible to
> develop applications written in ASP and connecting with DB like SQL
> Server in an automatic way) that can help in the development of
> applications using PHP and databases. For instance, that could allow to
> develop automatically forms to connect to databases using PHP.
>
> Does anyone know any related application or tools.
> Because in ASP with that tool is more easy to develop code.
>
> Thanks in advance
>
> Ciro Martins
>


--- End Message ---
--- Begin Message ---
29/03/2002 10:26:41 PM

Hi, I've been trying to work this out, but I can't.
Myabe I need more sleep, I'm sure it's something really stupid.

Could someone have a look over this code for me please?
It's meant to add MySQL users.


<FORM METHOD=POST ACTION="<?echo "$PHP_SELF";?>">
<INPUT TYPE="text" NAME="username">User<BR>
<INPUT TYPE="text" NAME="password">Password<BR>
<INPUT TYPE="submit">
</FORM>
<BR><BR>
<? 
if ($REQUEST_METHOD=="POST") { 

        $mysql_access = mysql_connect("localhost", "root", "password");
        if (!$mysql_access) { echo("ERROR: " . mysql_error() . "\n"); }
        $query = "GRANT SELECT,INSERT,UPDATE,DELETE,ALTER";
        $query .= "ON $username";
        $query .= "TO $username@localhost";
        $query .= "IDENTIFIED BY '$password';";
        mysql_query($query, $mysql_access);

        print("Successfully added $username to the MySQL database!");
    
} 
?>


Thanks,
Liam


--- End Message ---
--- Begin Message ---
>       $query .= "ON $username";

The ON clause should identify the database name, not the user.  It should
appear as "*.*.

-----Original Message-----
From: Liam [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 4:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] creating MySQL Users


29/03/2002 10:26:41 PM

Hi, I've been trying to work this out, but I can't.
Myabe I need more sleep, I'm sure it's something really stupid.

Could someone have a look over this code for me please?
It's meant to add MySQL users.


<FORM METHOD=POST ACTION="<?echo "$PHP_SELF";?>">
<INPUT TYPE="text" NAME="username">User<BR>
<INPUT TYPE="text" NAME="password">Password<BR>
<INPUT TYPE="submit">
</FORM>
<BR><BR>
<? 
if ($REQUEST_METHOD=="POST") { 

        $mysql_access = mysql_connect("localhost", "root", "password");
        if (!$mysql_access) { echo("ERROR: " . mysql_error() . "\n"); }
        $query = "GRANT SELECT,INSERT,UPDATE,DELETE,ALTER";
        $query .= "ON $username";
        $query .= "TO $username@localhost";
        $query .= "IDENTIFIED BY '$password';";
        mysql_query($query, $mysql_access);

        print("Successfully added $username to the MySQL database!");
    
} 
?>


Thanks,
Liam



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Try this query : 

   $query = "GRANT SELECT,INSERT,UPDATE,DELETE,ALTER
";
   $query .= "ON $username ";
   $query .= "TO $username@localhost ";
   $query .= "IDENTIFIED BY '$password';";

Make sure that you put a blank space after each
string, except the last one. 
I hope this work!

Rafael Perazzo 

--- Liam <[EMAIL PROTECTED]> wrote:
> 29/03/2002 10:26:41 PM
> 
> Hi, I've been trying to work this out, but I can't.
> Myabe I need more sleep, I'm sure it's something
> really stupid.
> 
> Could someone have a look over this code for me
> please?
> It's meant to add MySQL users.
> 
> 
> <FORM METHOD=POST ACTION="<?echo "$PHP_SELF";?>">
> <INPUT TYPE="text" NAME="username">User<BR>
> <INPUT TYPE="text" NAME="password">Password<BR>
> <INPUT TYPE="submit">
> </FORM>
> <BR><BR>
> <? 
> if ($REQUEST_METHOD=="POST") { 
> 
>       $mysql_access = mysql_connect("localhost", "root",
> "password");
>       if (!$mysql_access) { echo("ERROR: " .
> mysql_error() . "\n"); }
>       $query = "GRANT SELECT,INSERT,UPDATE,DELETE,ALTER";
>       $query .= "ON $username";
>       $query .= "TO $username@localhost";
>       $query .= "IDENTIFIED BY '$password';";
>       mysql_query($query, $mysql_access);
> 
>       print("Successfully added $username to the MySQL
> database!");
>     
> } 
> ?>
> 
> 
> Thanks,
> Liam
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
--- End Message ---
--- Begin Message ---
Hi All

I have over 26000 urls in a table. They are all urls and query strings of
hits to the same 10 - 20 sites.

I need to have a way to allow the user to select one of these, and then do
some processing on it, and I'm struggling to find a way.

I did have a select dropdown with a list of them, but that has become
unmanageable, even when coupled with a restrictor text box. For example, the
user types 'david' in the restrictor, and then the dropdown only lists those
urls with '%david%'

Has anyone got a genius way of allowing the user to select one easily and
without having to download all 26000.

TIA

Alastair Battrick
Senior Developer
Lightwood Consultancy Ltd
http://www.lightwood.net

--- End Message ---
--- Begin Message ---
Hi all,
I'm trying to get some info from get_browser() function. But, I'm getting a
page can not be displayed error.
The script is a simple one as give below. My hosting comapny says,
get_browser() works on their system and there must be some error in my
script but I couldn't find any error. Can some one tell me if indeed I have
an error there ?

I have PHP 4.1.2 running on freeBSD. detail PHP configuration can be found
here http://66.216.8.221/phpi.php

and the script is http://66.216.8.221/brw.php

Any help would be much appreciated.

Regards
R'twick

Code copied from the browser script :
------------------------------------------

<HTML>
<HEAD><TITLE> BROWSER TEST</TITLE></HEAD>
<BODY>
<?php
echo "$HTTP_USER_AGENT<hr>\n";
$br = get_browser($HTTP_USER_AGENT);
while (list($k,$v)=each($br))
     echo "$k = $v<BR>";
?>
</BODY>
</HTML>




--- End Message ---

Reply via email to