Re: [PHP] how to use PHP-Nuke in safe mode

2004-07-22 Thread Marek Kilimajer
Jordi Canals wrote: Porcupine PC wrote: How can i use PHP-Nuke in this safe mode? You must try to ask this in a PHP-Nuke especific list ... But the answer is NO, cannot be used in safe mode. Weird, I've seen php-nukes running in safe mode. -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Gd2 & Fonts

2004-07-22 Thread Alexandru Boulescu
Hi, I'm a newbie to linux and I have a question related to gd2 and ttf fonts under this operating system. I hava a php script that writes a text on a picture using functions like and i don't know how and where to install ttf fonts for this script to work. i've tried to put them in the same dir

Re: [PHP] [Fwd: [PECL-DEV] problems with file upload]

2004-07-22 Thread Curt Zirzow
* Thus wrote Gordon Heydon: > Hello, > > Can anyone please help me with this. please respond to me directly as I > am not on this list. > > Thanks in advance. > Gordon > -Forwarded Message- > From: Gordon Heydon <[EMAIL PROTECTED]> > To: PECL Develpment <[EMAIL PROTECTED]> > Subject: [PEC

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Curt Zirzow
* Thus wrote Dan Joseph: > Hi, > > Or... > > #!/usr/bin/perl > > Use CGI; > > $q = new CGI; > > if ( $q->param_url("var") ) > { > Print $q->param_url("var") > } Excellent point! I guess my point with my random perl/php code snipplet was that php out of the box is much nicer than p

Re: [PHP] Finding a value in an array

2004-07-22 Thread charles kline
Thanks!!! On Jul 22, 2004, at 11:39 PM, Justin Patrin wrote: On Thu, 22 Jul 2004 23:34:56 -0400, charles kline <[EMAIL PROTECTED]> wrote: Hi all, I am using fgetcsv() to get a tab delimited text file into an array. It gives me an array in this format: Array ( [0] => Array (

Re: [PHP] Finding a value in an array

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 23:34:56 -0400, charles kline <[EMAIL PROTECTED]> wrote: > Hi all, > > I am using fgetcsv() to get a tab delimited text file into an array. It > gives me an array in this format: > > Array > ( > [0] => Array > ( > [0] => 97 > [1] => Effe

[PHP] Finding a value in an array

2004-07-22 Thread charles kline
Hi all, I am using fgetcsv() to get a tab delimited text file into an array. It gives me an array in this format: Array ( [0] => Array ( [0] => 97 [1] => Effects of Slow Heating Rates on Products of Polyethylene Pyrolysis ) [1] => Array (

Re: [PHP] Re: Project-browser-function / required/included

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 22:22:28 +0700, Frank Munch <[EMAIL PROTECTED]> wrote: > > Hi, > > thanks for your comment. Right, and similarly, it struck me that in case > there are variable-names in the path, like in > > require_once $my_lib_dir . "some_funcs.php"; > > the variable $my_lib_dir could onl

Re: [PHP] what is difference between php and perl

2004-07-22 Thread raditha dissanayake
Manuel Lemos wrote: Hello, On 07/22/2004 09:26 PM, Raditha Dissanayake wrote: I would have thought perl and php programmer would want to get together and trash asp or something. I think you mean, VBScript because ASP itself is not a language but rather a framework for using languages. You can us

[PHP] Aggregating classes?

2004-07-22 Thread Jason Barnett
Since I can't have a class inherit from two parent classes, does anyone know how I could aggregate class methods / properties together? I thought of using __call, __get and __set but I'm having a tough time wrapping my mind around that one - mostly potential problems with $this. -- PHP General

Re: [PHP] Best practice to re-write a tutorial website

2004-07-22 Thread Justin French
On 23/07/2004, at 6:48 AM, EE wrote: 1. Printer Friendly Version Capability This can be achieved with media specific style sheets stylesheets -- no need for separate templates. 2. Search-ability For the most part, this can be achieved with MySQL's fulltext search capabilities. You just need to

[PHP] Re: DirectoryIterator

2004-07-22 Thread Jason Barnett
Jason Barnett wrote: Hey guys, I'm getting some unexpected results when trying to use ArrayIterator - but since it's undocumented this might be correct. When Typo... I actually got ArrayIterator to work... should have said DirectoryIterator which doesn't inherit from ArrayIterator. Life would

Re: [PHP] Re: Project-browser-function / required/included

2004-07-22 Thread Jason Barnett
Frank Munch wrote: Hi, thanks for your comment. Right, and similarly, it struck me that in case there are variable-names in the path, like in require_once $my_lib_dir . "some_funcs.php"; the variable $my_lib_dir could only be known at run-time and not by any simple script just scanning the sourc

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Manuel Lemos
Hello, On 07/22/2004 09:26 PM, Raditha Dissanayake wrote: I would have thought perl and php programmer would want to get together and trash asp or something. I think you mean, VBScript because ASP itself is not a language but rather a framework for using languages. You can use PHP code in ASP lik

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Matthew Sims
> I would have thought perl and php programmer would want to get together > and trash asp or something. PHP coders trash ASP. Perl coders trash everyone. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Justin Patrin
On Fri, 23 Jul 2004 06:26:07 +0600, raditha dissanayake <[EMAIL PROTECTED]> wrote: > I would have thought perl and php programmer would want to get together > and trash asp or something. > ASP SUCKS! Happy now? Seriously, though, Perl is ok for some scripts and some people prefer it. I just don

Re: [PHP] Disk serial number

2004-07-22 Thread Tom Rogers
Hi, Friday, July 23, 2004, 8:26:56 AM, you wrote: R> Hi, R> Is there a way to get with PHP script ( maybe with some module) serial R> number of the hard disk? R> Thanks in advance! On windows you can use the win32api like this: registerfunction("long GetLastError Alias GetError () From ker

Re: [PHP] what is difference between php and perl

2004-07-22 Thread raditha dissanayake
I would have thought perl and php programmer would want to get together and trash asp or something. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP ap

Re: [PHP] Re: adding *** on email address upon view

2004-07-22 Thread Louie Miranda
or how about using the spam protection on php's site when u insert a comment check he manual links: http://nl.php.net/manual/en/function.eregi-replace.php Is source available for this page? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Re: smpt server requiring authentication

2004-07-22 Thread Manuel Lemos
Hello, On 07/22/2004 04:47 PM, Chris Hunt wrote: anyone know how to configure php's outgoing mail to use a smtp server that requires authentication? No, the mail() function does not support SMTP authentication even under Windows. As John correctly pointed, I have a solution that consists of a PHP

Re: [PHP] Disk serial number

2004-07-22 Thread Rosen
I would like to create it as module for PHP like function - like "gethdserial()" - and function to retrieve me serial number of HDD. I know how to retrieve serial number in C, Delphi. "Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Rosen wrote: > > > I can write

Re: [PHP] how to use PHP-Nuke in safe mode

2004-07-22 Thread Jordi Canals
Porcupine PC wrote: How can i use PHP-Nuke in this safe mode? You must try to ask this in a PHP-Nuke especific list ... But the answer is NO, cannot be used in safe mode. Regards, Jordi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Disk serial number

2004-07-22 Thread Rosen
Is there a documentation how to create a module for PHP ? Thanks in advance! "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Rosen: > > Hi, > > Is there a way to get with PHP script ( maybe with some module) serial > > number of the hard disk? > > There ha

Re: [PHP] Disk serial number

2004-07-22 Thread Lars Torben Wilson
Rosen wrote: I can write it to another language ( like C, Delphi ) but I don't know how to "integrate" this with PHP - i.e. to create it as module for PHP. I would suggest going the simple route for now, then if you need it (for performance or whatever) later on, write it up as a module then. Write

Re: [PHP] Disk serial number

2004-07-22 Thread Curt Zirzow
* Thus wrote Rosen: > Hi, > Is there a way to get with PHP script ( maybe with some module) serial > number of the hard disk? There has been a proposol in PECL back in June about making an extension for this very thing. I'm not sure what the current status is but here is the discussion on it:

[PHP] [Fwd: [PECL-DEV] problems with file upload]

2004-07-22 Thread Gordon Heydon
Hello, Can anyone please help me with this. please respond to me directly as I am not on this list. Thanks in advance. Gordon -Forwarded Message- From: Gordon Heydon <[EMAIL PROTECTED]> To: PECL Develpment <[EMAIL PROTECTED]> Subject: [PECL-DEV] problems with file upload Date: Thu, 22 Jul

Re: [PHP] Disk serial number

2004-07-22 Thread Rosen
I can write it to another language ( like C, Delphi ) but I don't know how to "integrate" this with PHP - i.e. to create it as module for PHP. "Matthew Sims" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Yes, on Linux there is a command to get this info, but on windows I think >

[PHP] how to use PHP-Nuke in safe mode

2004-07-22 Thread Porcupine PC
I am very new to PHP-Nuke. I am running Ravens 7.3 Custom Distro. I have all the tables installed etc. When i try to enter admin.php it says "access denied" I can however see the main page index.php I just changed hosting companies and was told that their server runs in "safe mode" How can i us

Re: [PHP] Disk serial number

2004-07-22 Thread Matthew Sims
> Yes, on Linux there is a command to get this info, but on windows I think > there'n no thath command. > Is there a module for PHP to do this ? > > Thanks! > > My guess is no since it's operating system specific. Unless someone on the list knows for sure. Check Google Groups to see if there's a

Re: [PHP] Disk serial number

2004-07-22 Thread Rosen
Yes, on Linux there is a command to get this info, but on windows I think there'n no thath command. Is there a module for PHP to do this ? Thanks! "Matthew Sims" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > Is there a way to get with PHP script ( maybe with some module

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Jason Davidson
Why not just use some javascript to put the new value right into the drop down, provided the db query went thru sucessfully, this shouldnt be an issue right. on the popup window, after you insert the new record, get the last inserted id, use php then to generate some JS that will push that new rec

Re: [PHP] Disk serial number

2004-07-22 Thread Matthew Sims
> Hi, > Is there a way to get with PHP script ( maybe with some module) serial > number of the hard disk? > > Thanks in advance! If there's a command on your operating system to get this information, then use PHP's exec function. $serialNum = exec('command to get serial number'); -- --Matthew Si

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 18:11:21 -0400, Vern <[EMAIL PROTECTED]> wrote: > I have a page where a user comes to the page and submits a form after > filling it out with dropdown menus that are dynamically driven and get their > info form out tables. > > Now there are times when some one needs to add to t

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Matthew Sims
>> POST data from form fields are usually only sent through a submit >> request. >> Maybe changing you Javascript refresh to a submit that redirects back to >> the same page might help? > > Is there a way to do that? Any examples? > I believe Javascript is capable of performing a submit...but if t

[PHP] Disk serial number

2004-07-22 Thread Rosen
Hi, Is there a way to get with PHP script ( maybe with some module) serial number of the hard disk? Thanks in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Vern
> POST data from form fields are usually only sent through a submit request. > Maybe changing you Javascript refresh to a submit that redirects back to > the same page might help? Is there a way to do that? Any examples? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Matthew Sims
> I have a page where a user comes to the page and submits a form after > filling it out with dropdown menus that are dynamically driven and get > their > info form out tables. > > Now there are times when some one needs to add to this drop down list so I > have a separate page open up that allows

[PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Vern
I have a page where a user comes to the page and submits a form after filling it out with dropdown menus that are dynamically driven and get their info form out tables. Now there are times when some one needs to add to this drop down list so I have a separate page open up that allows the user to a

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Matthew Sims
> One way to reduce the amount of spam your server receives is to have it > validate the domain of the sender. In this case, the mail server tried > to lookup the domain rahul.local, which of course doesn't exist, so > your mail was rejected. Read up on the mail() command, specifically the > additi

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Sounds interesting and what I need to do, so let me try this first. Thanks A ton! RSJ On 7/22/04 5:03 PM, "Brent Baisley" <[EMAIL PROTECTED]> wrote: > One way to reduce the amount of spam your server receives is to have it > validate the domain of the sender. In this case, the mail server trie

Re: [PHP] Best practice to re-write a tutorial website

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 23:48:54 +0300, EE <[EMAIL PROTECTED]> wrote: > Dears, > > I am planing to rewrite my website. My site is tutorial-type site I > wrote it, when I first learned php3, as an undergraduate research class. > I think the code is sloppy as it is mixed with the HTML. I would like to >

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Brent Baisley
One way to reduce the amount of spam your server receives is to have it validate the domain of the sender. In this case, the mail server tried to lookup the domain rahul.local, which of course doesn't exist, so your mail was rejected. Read up on the mail() command, specifically the additional h

[PHP] Best practice to re-write a tutorial website

2004-07-22 Thread EE
Dears, I am planing to rewrite my website. My site is tutorial-type site I wrote it, when I first learned php3, as an undergraduate research class. I think the code is sloppy as it is mixed with the HTML. I would like to rewrite the site utilizing the good things such OOP classes, template, etc. I

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Astrum Et Securis I tried using the "mail" command at the Terminal Window In fact it did have all my sent messages recorded there, but they are all giving an error... Which is something like this: __ Content-Description: Delivery error report Content-Type: message/delivery-status Rep

RE: [PHP] smpt server requiring authentication

2004-07-22 Thread PHP User
I had the same problem and found a script - phpmailer-1.72 - that works great. Very little configuration to setup, and I have it working on a Linux and Windows platform. Beauford -Original Message- From: Chris Hunt [mailto:[EMAIL PROTECTED] Sent: July 22, 2004 3:48 PM To: [EMAIL PROTECT

[PHP] Flexy Template and IF condition statements

2004-07-22 Thread Adrian Madrid
Is there any way to test a condition other than true/false with flexy? I mean, how/can you test $x == 'hello' in flexy? Sorry about my ignorance, just trying to learn Flexy. BTW, are there any other resources besides the PEAR manuals? Thanks in advance, -- Adrian Madrid http://www.hyperxmed

Re: [PHP] smpt server requiring authentication

2004-07-22 Thread John W. Holmes
Chris Hunt wrote: anyone know how to configure php's outgoing mail to use a smtp server that requires authentication? Can't. Use an SMTP class from phpclasses.org (Manuel will be on here soon, I'm sure ;) or PEAR. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|

Re: [PHP] smpt server requiring authentication

2004-07-22 Thread Jason Wong
On Friday 23 July 2004 03:47, Chris Hunt wrote: > anyone know how to configure php's outgoing mail to use a smtp server that > requires authentication? You can't. Search the archives for the solutions to this FAQ. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Sys

[PHP] smpt server requiring authentication

2004-07-22 Thread Chris Hunt
Hi, anyone know how to configure php's outgoing mail to use a smtp server that requires authentication? thanks for any help, cheers, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: interesting problem with zlib/ob_gzhandler compression

2004-07-22 Thread Christian Calloway
Well 3 hours later I have a solution.. I turned off output_compression using the ini_set function, within the scripts dynamically generating javascript variables. This wasn't possible earlier, as I think there was a bug that didn't allow me to use ini_set on the zlib.output_compression directive.

[PHP] Compilation problem with PHP5 and MySQL 4.1

2004-07-22 Thread Rodolfo Gonzalez Gonzalez
Hi, I know that this should go to the php-inst ml, but I can not resubscribe (the error in the P.S.). I'm trying to install PHP 5 + MySQL 4.1.3 in Apache 1.3 and I'm getting these messages: (tons of "first defined" messages before", just pasted a sample below) ... /usr/lib/mysql/libmysqlclient.a

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Brent Baisley
I'm betting that the problem is with security. By default, Apple ships the mail server configured to NOT be an open relay. Meaning, you need to provide a login name and password in order to send email. This is a very good thing, otherwise your machine would be used to send out spam. In order to

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Jason Wong
On Friday 23 July 2004 02:44, PHP Junkie wrote: > I used the Postfix Enabler software which sets up the mail server. > How do I test the mail server? How can I determine if it actually sends > mail? You can usually use the command line program 'mail'. man mail for details. Refer to the postfix d

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Matthew Sims
> Astrum Et Securis > > I used the Postfix Enabler software which sets up the mail server. > How do I test the mail server? How can I determine if it actually sends > mail? > > RSJ > > > On 7/22/04 2:45 PM, "Matthew Sims" <[EMAIL PROTECTED]> wrote: > >>> Astrum Et Securis, >>> >>> I'm using a Power

Re: [PHP] Trouble with sin()

2004-07-22 Thread Jonathan Haddad
as in 20 degrees? float *sin* ( float arg) *sin()* returns the sine of the arg parameter. The arg parameter is in radians. RADIANS. |sin(deg2rad(20)); | Jon Marcus Strube wrote: Hi, i'm working with PHP 5.0.0 (Linux) and have some trouble using function sin(). In PHPs opinion sin(20) is 0

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Astrum Et Securis I used the Postfix Enabler software which sets up the mail server. How do I test the mail server? How can I determine if it actually sends mail? RSJ On 7/22/04 2:45 PM, "Matthew Sims" <[EMAIL PROTECTED]> wrote: >> Astrum Et Securis, >> >> I'm using a PowerMac G5 machine, whi

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 14:21:38 -0400, PHP Junkie <[EMAIL PROTECTED]> wrote: > Astrum Et Securis, > > I'm using a PowerMac G5 machine, which has the MacOS X Panther. It comes > with the Postfix mail server, which I'm now trying to use with PHP. > > I was able to define the sendmail_path to the Postf

Re: [PHP] postfix with PHP on Mac OS X

2004-07-22 Thread Jason Wong
On Friday 23 July 2004 02:21, PHP Junkie wrote: > I was able to define the sendmail_path to the Postfix sendmail in the > PHP.INI .. And you restarted the webserver? > Now what happens is, on my localhost when I run the website, and I run a > php page that sends form data to email using the mail

[PHP] postfix with PHP on Mac OS X

2004-07-22 Thread PHP Junkie
Astrum Et Securis, I'm using a PowerMac G5 machine, which has the MacOS X Panther. It comes with the Postfix mail server, which I'm now trying to use with PHP. I was able to define the sendmail_path to the Postfix sendmail in the PHP.INI .. Now what happens is, on my localhost when I run the we

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Justin Patrin
On Thu, 22 Jul 2004 18:23:08 +, Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Jurgen Stroo: > > "End of the commercial break, we're going back to the news headlines" > > > >... > > Net), perl is not mature, limited or inflexible (why do you think perl > > was able to evaluate to incorp

RE: [PHP] what is difference between php and perl

2004-07-22 Thread Dan Joseph
Hi, Or... #!/usr/bin/perl Use CGI; $q = new CGI; if ( $q->param_url("var") ) { Print $q->param_url("var") } Really, if you look at a lot of functions in PHP and Perl, they mimic each other, and other languages (C, etc..).. It's a personal preference choice. PHP was designed f

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Curt Zirzow
* Thus wrote Jurgen Stroo: > "End of the commercial break, we're going back to the news headlines" > >... > Net), perl is not mature, limited or inflexible (why do you think perl > was able to evaluate to incorpate full OO, oh well). #!/usr/bin/perl print "HTTP/1.0 200\r\n"; print "Content-Type

[PHP] interesting problem with zlib/ob_gzhandler compression

2004-07-22 Thread Christian Calloway
I have ran into a rather interesting problem while zlib or gzip compression is enabled on my site. I have an external javascript-php file (a javascript file that is dynamically generated as in filename.js.php) which is included in the main template using the element (for example