Re: [PHP] NH05 to 5, NH07 to 7

2004-11-26 Thread Hidayet Dogan
echo str_replace(NH, , NH13); Hidayet Dogan [EMAIL PROTECTED] Pleksus Bilisim Teknolojileri D.T.O. A.S. -- caldiran sok. 14/6 06420 kolej ankara * www.pleksus.com.tr

Re: [PHP] Getting static member for a class which name is stored in a variable

2004-11-26 Thread Simas Toleikis
Jake Press wrote: Hi Francisco, Your not alone, a number of other users have enountered this bug. string get_class ( object obj ) Its not a bug... You are getting class name as a string for output purposes etc.. Doing something like TestClass::some_static is ofcourse illegal wih strings. -- PHP

[PHP] fedora core 3 mail() not working from web

2004-11-26 Thread Minuk Choi
hey gang, I have a fedora core 3, with standard PHP and MySQL included with the distribution. I'm having a rather odd problem. the following script(mailTest.php) ?PHP $result = mail('[EMAIL PROTECTED]', 'test subject', 'test message'); if (!$result) echo FAILURE; else echo SUCCESS;

[PHP] Problem with recursion and FTP transfer

2004-11-26 Thread [EMAIL PROTECTED]
Hi all I have create a script for FTP function. When i have testing the script with little file and directory it's ok The script read data in all folder with recursive function and the same path of data like C:\backup\folder1\file.txt is the same on remolte folder /httpdcos/folder1/file.txt The

[PHP] test

2004-11-26 Thread franco bevilacqua
éàélàél -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] NH05 to 5, NH07 to 7

2004-11-26 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 25 November 2004 22:11, Wiberg wrote: i guess you know a simple solution to convert the string NH01 into 1 I can think of several. Oh, you want one? How about: $x =

Re: [PHP] fedora core 3 mail() not working from web

2004-11-26 Thread Angelo Zanetti
Hi, It could have something to do with your PHP.ini file?? Can you post the error message, as it will give us a better idea of what could be wrong. Angelo Minuk Choi [EMAIL PROTECTED] 11/26/2004 10:31:59 AM hey gang, I have a fedora core 3, with standard PHP and MySQL included with the

Re: [PHP] Problem with recursion and FTP transfer

2004-11-26 Thread Raditha Dissanayake
[EMAIL PROTECTED] wrote: Hi all I have create a script for FTP function. When i have testing the script with little file and directory it's ok The script read data in all folder with recursive function and the same path of data like C:\backup\folder1\file.txt is the same on remolte folder

[PHP] Sending text file to users

2004-11-26 Thread Rosen
Hi, How can I send 3 text files to user generated from PHP script? Should I must to generate them first and then to send them to user? Is there a way to send 3 text files to user in just one PHP script ? Thanks in advance ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] rounding down

2004-11-26 Thread Brad Ciszewski
hi everyone, i am looking for a snipplet to round down a number. i was wondering if you could put a negative number in the round() statement to do this, i want it to round down even if its at something.9, as long as its not a whole number, if needs to be rounded down. can anyone help me?

Re: [PHP] rounding down

2004-11-26 Thread John Nichel
Brad Ciszewski wrote: hi everyone, i am looking for a snipplet to round down a number. i was wondering if you could put a negative number in the round() statement to do this, i want it to round down even if its at something.9, as long as its not a whole number, if needs to be rounded down. can

Re: [PHP] rounding down

2004-11-26 Thread David Bevan
On November 26, 2004 08:58, Brad Ciszewski wrote: hi everyone, i am looking for a snipplet to round down a number. i was wondering if you could put a negative number in the round() statement to do this, i want it to round down even if its at something.9, as long as its not a whole number, if

Re: [PHP] rounding down

2004-11-26 Thread Marek Kilimajer
Brad Ciszewski wrote: hi everyone, i am looking for a snipplet to round down a number. i was wondering if you could put a negative number in the round() statement to do this, i want it to round down even if its at something.9, as long as its not a whole number, if needs to be rounded down. can

[PHP] Script Name

2004-11-26 Thread Jerry Swanson
What variable(parameter) in PHP stores file name? TH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script Name

2004-11-26 Thread John Nichel
Jerry Swanson wrote: What variable(parameter) in PHP stores file name? TH Stores what filename? The name of the file being executed? $_SERVER['SCRIPT_NAME'] -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Script Name

2004-11-26 Thread Robert Cummings
On Fri, 2004-11-26 at 09:46, John Nichel wrote: Jerry Swanson wrote: What variable(parameter) in PHP stores file name? TH Stores what filename? The name of the file being executed? $_SERVER['SCRIPT_NAME'] Or if you want the name of the file included or whatnot... __FILE__ Cheers,

[PHP] Re: Getting static member for a class which name is stored in a variable

2004-11-26 Thread Daniel Schierbeck
Daniel Schierbeck wrote: public static function getData () Ooops, the method shouldn't have been static :) -- Daniel Schierbeck Help spread Firefox (www.getfirefox.com): http://www.spreadfirefox.com/?q=user/registerr=6584 -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Read PDF files with Php

2004-11-26 Thread Jacob Friis
Do I need PDFlib in order to read PDF files? Is there another way? There is a nifty tutorial on this subject over at zends.com Can I read PDF files with that? Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing PHP5 on Red Hat

2004-11-26 Thread Sandy Keathley
Has anyone come across this problem? PHP5 on Red Hat Linux (Enterprise version) Can't locate API module structure `php5_module' in file /usr/local/lib/libphp5.so: /usr/lib/libapr-0.so.0: undefined symbol: php5_module Thanks. Sandy Keathley -- PHP General Mailing List (http://www.php.net/)

[PHP] Running PHP as CGI

2004-11-26 Thread Tim Traver
Hi all, In the quest to secure php script running, I am starting to think about running php as a cgi instead of through the module. I generally set the open_basedir directory within the apache configuration file for individual hosts. If I ran php as a CGI, would that directive still be in

Re: [PHP] Read PDF files with Php

2004-11-26 Thread Brad Ciszewski
i am not sure if this uses PDFlib but, this is a wonderful script which helps create a PDF file. http://sourceforge.net/projects/pdf-php/ - Original Message - From: Jacob Friis [EMAIL PROTECTED] To: Christopher Way [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 26, 2004

[PHP] automatic responder

2004-11-26 Thread Alessandro Rosa
How about coding an automatic responder via PHP ? Alessandro Rosa

[PHP] proxy - detect

2004-11-26 Thread Brad Ciszewski
does anyone know the function to get the IP address before the proxy-IP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] proxy - detect

2004-11-26 Thread Jason Wong
On Saturday 27 November 2004 02:10, Brad Ciszewski wrote: does anyone know the function to get the IP address before the proxy-IP? print_r($_SERVER) If it's there it's there. If not change proxy(!) -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems

[PHP] Passing Parameters

2004-11-26 Thread David Blackburn
Hi I used to pass parameters to my scripts like this shellphp myscript.php dog=maxcat=jess Since I have upgraded to PHP5 I dont seem to have this functionality any more, has anyone else noticed this ? or know of a way to get this working again ? Thanks Dave -- PHP General Mailing List

[PHP] mysql_connect vs mysql_pconnect

2004-11-26 Thread fabien champel
hello, I do not know when I must use mysql_pconnect instead of the mysql_connect :( what are the real advantages of persistent connections, please ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] proxy - detect

2004-11-26 Thread Rens Admiraal
Is only possible with proxy servers which support it (transparant proxy's)... otherwise it won't work... Brad Ciszewski wrote: does anyone know the function to get the IP address before the proxy-IP?

[PHP] unlink images

2004-11-26 Thread Julian
Hello, I would like to delete a set of images right after they are displayed on the page using unlink. Unfortunately, with unlink the images are deleted before they display on the user's browser. Is there a way to do this? Thank you! -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: automatic responder

2004-11-26 Thread Manuel Lemos
Hello, On 11/26/2004 03:58 PM, Alessandro Rosa wrote: How about coding an automatic responder via PHP ? The most portable solution is to have a POP3 mailbox associated with the e-mail address to which the messages are received and use a POP3 client to access and process the message replying to

RE: [PHP] unlink images

2004-11-26 Thread Vail, Warren
PHP has wonderful capabilities to generate images on the fly, such that they are never stored on disk, perhaps you should look into that as an option, you could even make the code decide who should be able to see the image and who should not. http://www.php.net/manual/en/ref.image.php Warren

RE: [PHP] unlink images

2004-11-26 Thread Mike
What you may want to try doing is when the script is ran, it goes through a clean-up function and deletes everything that it doesn't need for the current execution. Though, realize that if two people hit a page within a few seconds, you may end up deleting some images that the first user is

Re: [PHP] unlink images

2004-11-26 Thread Jason Wong
On Saturday 27 November 2004 03:13, Julian wrote: I would like to delete a set of images right after they are displayed on the page using unlink. I'm curious to know why you want this. Unfortunately, with unlink the images are deleted before they display on the user's browser. Is there a

[PHP] PHP arrays and javascript

2004-11-26 Thread Nick Peters
Hey, i know this probally a simple question, but it has been stumping me for quite some time now. How do i pass a php array to a javascript? i tryed: script language=javascript var myarray = new Array(?PHP echo $myarray; ?); /script but it didn't work. Anybody got any ideas? thanks in advance.

Re: [PHP] remember me cookie

2004-11-26 Thread Curt Zirzow
* Thus wrote Justin French: I've done these plenty of times, but today i've decided to take a serious look at how I do it, and do it the right way. My current method is just to store the username and an md5 of the password in a couple of cookies. I'd avoid storing username and expecially

Re: [PHP] fedora core 3 mail() not working from web

2004-11-26 Thread Curt Zirzow
* Thus wrote Minuk Choi: hey gang, I have a fedora core 3, with standard PHP and MySQL included with the distribution. I'm having a rather odd problem. the following script(mailTest.php) ?PHP $result = mail('[EMAIL PROTECTED]', 'test subject', 'test message'); if (!$result)

RE: [PHP] PHP arrays and javascript

2004-11-26 Thread Pablo Gosse
snip i know this probally a simple question, but it has been stumping me for quite some time now. How do i pass a php array to a javascript? i tryed: script language=javascript var myarray = new Array(?PHP echo $myarray; ?); /script but it didn't work. Anybody got any ideas? /snip You need to

Re: [PHP] Script Name

2004-11-26 Thread Jerry Swanson
I meant, file that are being executed. On Fri, 26 Nov 2004 09:46:05 -0500, John Nichel [EMAIL PROTECTED] wrote: Jerry Swanson wrote: What variable(parameter) in PHP stores file name? TH Stores what filename? The name of the file being executed? $_SERVER['SCRIPT_NAME'] --

Re: [PHP] PHP arrays and javascript

2004-11-26 Thread Marek Kilimajer
Nick Peters wrote: Hey, i know this probally a simple question, but it has been stumping me for quite some time now. How do i pass a php array to a javascript? i tryed: script language=javascript var myarray = new Array(?PHP echo $myarray; ?); /script but it didn't work. Anybody got any ideas?

Re: [PHP] Re: automatic responder

2004-11-26 Thread Curt Zirzow
* Thus wrote Manuel Lemos: Hello, On 11/26/2004 03:58 PM, Alessandro Rosa wrote: How about coding an automatic responder via PHP ? The most portable solution is to have a POP3 mailbox associated with the e-mail address to which the messages are received and use a POP3 client to

Re: [PHP] help with html through php

2004-11-26 Thread Curt Zirzow
* Thus wrote Todd Alexander: Hello all, I am a complete newbie to php so apologies for what I'm sure is a simple/dumb question. I want to use php to include another html doc in an existing set of documents. In other words 123.html will use php to call on abc.html so I can make changes to

Re: [PHP] Running PHP as CGI

2004-11-26 Thread Curt Zirzow
* Thus wrote Tim Traver: Hi all, In the quest to secure php script running, I am starting to think about running php as a cgi instead of through the module. I generally set the open_basedir directory within the apache configuration file for individual hosts. If I ran php as a CGI, would

[PHP] Re: automatic responder

2004-11-26 Thread Matthew Weier O'Phinney
* Manuel Lemos [EMAIL PROTECTED]: Hello, On 11/26/2004 03:58 PM, Alessandro Rosa wrote: How about coding an automatic responder via PHP ? The most portable solution is to have a POP3 mailbox associated with the e-mail address to which the messages are received and use a POP3 client to

[PHP] Go Back Problem

2004-11-26 Thread Cyrus
Dear All, I have a problem of back to the previous page in php. I need to create a form let people to fill in .It can let user to preview the form, if information is not correct , user can back to previous page and correct it, I have used the javascript : OnClick='history.go(-1)' and

RE: [PHP] Re: automatic responder

2004-11-26 Thread Michael Sims
Matthew Weier O'Phinney wrote: * Manuel Lemos [EMAIL PROTECTED]: On 11/26/2004 03:58 PM, Alessandro Rosa wrote: How about coding an automatic responder via PHP ? The most portable solution is to have a POP3 mailbox associated with the e-mail address to which the messages are received and

Re: [PHP] mysql_connect vs mysql_pconnect

2004-11-26 Thread Robby Russell
On Fri, 2004-11-26 at 19:55 +0100, fabien champel wrote: hello, I do not know when I must use mysql_pconnect instead of the mysql_connect :( what are the real advantages of persistent connections, please ? http://www.google.com/search?q=advantages+of+persistent+connection --

[PHP] Reg Jpgraph...

2004-11-26 Thread Sagar C Nannapaneni
Hi all, I think I shouldnt post this here...but i didnt find proper support at the jpgraph forums. I'm using PHP 4.3.9 with GDK precompiled on apache2 using win2k. When i open any of the jpgraph example files its giving me an error saying IE cannot find the site your are requesting. But when i

Re: [PHP] Go Back Problem

2004-11-26 Thread StDog
27 2004 04:59 Cyrus (a): Dear All, I have a problem of back to the previous page in php. I need to create a form let people to fill in .It can let user to preview the form, if information is not correct , user can back to previous page and correct it, I have used the javascript :

[PHP] just for test

2004-11-26 Thread StDog
testing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running PHP as CGI

2004-11-26 Thread Tim Traver
I guess what I'm really asking is do the php_admin environment variables that can get set in Apache get passed to the CGI version of php when called as a CGI ? Tim. Curt Zirzow wrote: * Thus wrote Tim Traver: Hi all, In the quest to secure php script running, I am starting to think about