Re: [PHP] Re: intalling pear:db

2004-11-25 Thread Jason Wong
On Thursday 25 November 2004 15:56, Merlin wrote: I successfully upgraded with this command. However the system still says: Fatal error: Call to undefined function: fetchrow() The error message will say which line caused the error. Examine that line and see how fetchrow() is being called.

Re: [PHP] Re: intalling pear:db

2004-11-25 Thread Merlin
Hi Jason, All the pear stuff are just files that you include. I do not understand?! How come the pear site provides a command line installer: http://pear.php.net/manual/en/installation.cli.php When I call pear list it tells me that pear:db is installed. I also tried to compile php '--with-PEAR',

RE: [PHP] How to $_POST from a grid

2004-11-25 Thread Graham Cossey
[snip] I'm doing my development in Dreamweaver though the code is basic. To get to the grid I'm passing over the userID . Then basic a select statement in the results grid with a while loop the returns all the records related to the userID. It's just odd - because in Dreamweaver I build

Re: [PHP] RE: [firebird-php] auto increment last insert

2004-11-25 Thread John Nichel
Greg Donald wrote: On Thu, 25 Nov 2004 09:33:41 +0600, Raditha Dissanayake [EMAIL PROTECTED] wrote: many people in this list believe that people who do not RTFM are lazy and do not deserve help. That's because people who expect free help without RTFM are lazy and do not deserve help. How else do

[PHP] Happy Thanksgiving

2004-11-25 Thread John Nichel
Happy Turkey Day ladies and gents. Disclaimer : If you are not in the US, or do not celebrate Thanksgiving, you are still allowed to have a 'happy' day. ;) -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Getting the contents of a file

2004-11-25 Thread Octavian Rasnita
Hi all, I am trying to use the file() function, but without success. Here is the code: $url = http://www.rasd.ro/Quotes/11-24-2004.txt; $file = file($url); And this is the error: PHP Parse error: syntax error, unexpected T_VARIABLE in [FILE] on line 13 The line 13 contains: $file =

RE: [PHP] Getting the contents of a file

2004-11-25 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 10:11, Octavian Rasnita wrote: Hi all, I am trying to use the file() function, but without success. Here is the code: $url =

Re: [PHP] Secure Password (MySQL) Storage

2004-11-25 Thread Jason Wong
On Thursday 25 November 2004 17:43, Olaf van der Spek wrote: I'm more worried about the data (in MySQL), not the code. By protecting the MySQL password from being read by scripts directly and only allowing access based on the current vhost, only this vhost can access it's own database and not

Re: [PHP] Secure Password (MySQL) Storage

2004-11-25 Thread Olaf van der Spek
Raditha Dissanayake wrote: Olaf van der Spek wrote: Hi, Is there a way to store MySQL (or other sensitive data) that will be It should read MySQL passwords. passed to a library in such a way that scripts itself can't access this? A per-vhost store would be ideal. If not, would this be a good idea

Re: [PHP] Getting the contents of a file

2004-11-25 Thread Burhan Khalid
Octavian Rasnita wrote: Hi all, I am trying to use the file() function, but without success. Here is the code: $url = http://www.rasd.ro/Quotes/11-24-2004.txt; $file = file($url); You are missing a ; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] SAFE MODE Restriction - mkdir()

2004-11-25 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 00:47, SED wrote: Then, shouldn't the owner be able to handle the new directory? In my case, the owner creates the directory X but can't create a

RE: [PHP] How to $_POST from a grid

2004-11-25 Thread Stuart Felenstein
--- Graham Cossey [EMAIL PROTECTED] wrote: Hi Stuart Have you looked at the HTML generated by your PHP code? Using view source you'll see what values each of your 3 forms contains and therefore what will be submitted in the POST. My guess from one of your previous posts is that all 3

Re: [PHP] SAFE MODE Restriction - mkdir()

2004-11-25 Thread Marek Kilimajer
SED wrote: It just seems not making sence. I have read the manual and it does not explain this specially. If the user owns this folder: www\myfolders And runs a PHP-script in safe mode that creates the folder www\myfolders\who. Who owns the who folder? If the webserver is run under user nobody,

Re: [PHP] RE: [firebird-php] auto increment last insert

2004-11-25 Thread Greg Donald
On Thu, 25 Nov 2004 11:43:56 +0600, Raditha Dissanayake [EMAIL PROTECTED] wrote: hey greg, don't jump on me, i was trying to say the same thing you are saying perhaps i should have worded it better :-)) Sorry if I offended you. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/

[PHP] What else can cause unexpected T_SL error other than heredoc?

2004-11-25 Thread D. D. Brierton
We've been getting the following error: [error] PHP Parse error: parse error, unexpected T_SL in /foo/bar.php on line 136 (where foo and bar obviously are stand-ins for real values). The weird thing is that the file generating the error, bar.php, DOESN'T contain any heredoc quotations. bar.php

Re: [PHP] Happy Thanksgiving

2004-11-25 Thread Greg Donald
On Thu, 25 Nov 2004 04:25:10 -0500, John Nichel [EMAIL PROTECTED] wrote: Happy Turkey Day ladies and gents. Same to you. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What else can cause unexpected T_SL error other than heredoc?

2004-11-25 Thread Greg Donald
On Thu, 25 Nov 2004 12:17:01 +, D. D. Brierton [EMAIL PROTECTED] wrote: We've been getting the following error: [error] PHP Parse error: parse error, unexpected T_SL in /foo/bar.php on line 136 Can you post some of this code? Are all your heredoc instances completely left justified?

[PHP] Re: Regular Expression

2004-11-25 Thread Ing. Ivo F.A.C. Fokkema
On Wed, 24 Nov 2004 13:17:48 -0500, Ankur Os wrote: Hi, This is quite simpal problem that i want to made regular expression which can read this kind of structure... a,b,c not like this 1. ,a,a,a 2. a,,,aa,, 3. a,a,a,,, means simpal structure with comma (a,b,c...) Hi, Try

Re: [PHP] What else can cause unexpected T_SL error other than heredoc?

2004-11-25 Thread D. D. Brierton
On Thu, 25 Nov 2004 06:26:22 -0600, Greg Donald wrote: On Thu, 25 Nov 2004 12:17:01 +, D. D. Brierton [EMAIL PROTECTED] wrote: We've been getting the following error: [error] PHP Parse error: parse error, unexpected T_SL in /foo/bar.php on line 136 Can you post some of this code?

[PHP] How does one get into programming?

2004-11-25 Thread Ewald
I've been in IT for about 12 years and is looking to change my direction to programming. Can anyone direct me in the right direction as to what to study or where to start??? Thx Ewald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Path to ImageMagick??

2004-11-25 Thread Aaron Wolski
Hey all, How can I find out the path ImageMagick on my server the php is running on? Need it for a software and I don't know where to look. Phpinfo() tells me nothing. Thanks! Aaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Path to ImageMagick??

2004-11-25 Thread Jon Hill
The two programmes you will probably use are called 'convert' and 'mogrify' Usually found in /usr/bin if you are running Linux. Cyril On Thursday 25 November 2004 13:35, Aaron Wolski wrote: Hey all, How can I find out the path ImageMagick on my server the php is running on? Need it for a

Re: [PHP] RE: [firebird-php] auto increment last insert

2004-11-25 Thread Raditha Dissanayake
John Nichel wrote: Greg Donald wrote: On Thu, 25 Nov 2004 09:33:41 +0600, Raditha Dissanayake [EMAIL PROTECTED] wrote: many people in this list believe that people who do not RTFM are lazy and do not deserve help. That's because people who expect free help without RTFM are lazy and do not deserve

[PHP] Problems compiling mnogosearch

2004-11-25 Thread Mario Bittencourt
Hi, I can't compile php 5 (or 4) with mnogosearch and mysql support. I saw a couple of posts but I was wondering what do I have to do in order to make it compile. mnogosearch is already installed and working. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Problems compiling mnogosearch

2004-11-25 Thread John Nichel
Mario Bittencourt wrote: Hi, I can't compile php 5 (or 4) with mnogosearch and mysql support. I saw a couple of posts but I was wondering what do I have to do in order to make it compile. mnogosearch is already installed and working. Thanks. The way I was able to get it working was to

[PHP] Re: Happy Thanksgiving

2004-11-25 Thread Daniel Schierbeck
John Nichel wrote: Happy Turkey Day ladies and gents. Disclaimer : If you are not in the US, or do not celebrate Thanksgiving, you are still allowed to have a 'happy' day. ;) I just can't wait 'til Talk Like A Pirate Day (September 19 if I remember correctly)! Arrr, shiver me timbers! There be

RE: [PHP] SAFE MODE Restriction - mkdir()

2004-11-25 Thread SED
This answer from Mike solved this (e.g. create a CGI process for this task): [...] So, yes, you can create a directory which it is then impossible to access -- this is an unfortunate side-effect of safe mode when PHP runs as an Apache module and hence as the Apache user. This is why hosted

Re: [PHP] Problems compiling mnogosearch

2004-11-25 Thread Mario Bittencourt
Hi, I've tried this but keep getting Stopping httpd:[FAILED] Starting httpd: Syntax error on line 190 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: libmnogosearch-3.2.so: failed to map segment from shared

Re: [PHP] Happy Thanksgiving

2004-11-25 Thread John Holmes
John Nichel wrote: Happy Turkey Day ladies and gents. Disclaimer : If you are not in the US, or do not celebrate Thanksgiving, you are still allowed to have a 'happy' day. ;) What's this got to do with PHP? I'm on a 1.4bps connection and it took me all day to download your message. For each

Re: [PHP] Happy Thanksgiving

2004-11-25 Thread Ryan A
On 11/25/2004 5:28:47 PM, John Holmes ([EMAIL PROTECTED]) wrote: John Nichel wrote: Happy Turkey Day ladies and gents. Disclaimer : If you are not in the US, or do not celebrate Thanksgiving, you are still allowed to have a 'happy' day. ;) What's this got to do with

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

2004-11-25 Thread Francisco M. Marzoa Alonso
I've code like follows: ?php class TestClass { public static $Data = 'This is the data'; } $Obj = new TestClass (); $ClassName = get_class ($Obj); echo $ClassName::$Data; ? It gives me an error like: Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM ... I've found googling that it

Re: [PHP] Happy Thanksgiving

2004-11-25 Thread John Nichel
John Holmes wrote: John Nichel wrote: Happy Turkey Day ladies and gents. Disclaimer : If you are not in the US, or do not celebrate Thanksgiving, you are still allowed to have a 'happy' day. ;) What's this got to do with PHP? I'm on a 1.4bps connection and it took me all day to download your

[PHP] Read PDF files with Php

2004-11-25 Thread Jacob Friis
Do I need PDFlib in order to read PDF files? Is there another way? Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] free cache/accelerator for php5?

2004-11-25 Thread Ivan Voras
Hi! Is there any free php cache/accelerator that works with php5? I was using turck-mmcache with 4.x, but it's buggy with php5 (old-style class constructors don't get called on cached classes), and the development seems to be stalled. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Happy Thanksgiving

2004-11-25 Thread Christopher Way
I believe that is what one would called humour/humor... - Original Message - From: Ryan A [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 25, 2004 11:47 AM Subject: Re: [PHP] Happy Thanksgiving On 11/25/2004 5:28:47 PM, John Holmes ([EMAIL

RE: [PHP] Happy Thanksgiving[Scanned]

2004-11-25 Thread Michael Egan
Hey, national 'cry like a baby day' is next week ;) Could you specify which day next week? That's one festival I look forward to taking part in :-) Michael Egan The information contained in this email (and in any attachments sent with it) is confidential. It is intended for the

Re: [PHP] Read PDF files with Php

2004-11-25 Thread Christopher Way
There is a nifty tutorial on this subject over at zends.com .. Here is a link to it http://www.zend.com/zend/tut/tutorial-PDFgen1.php -Christopher Way - Original Message - From: Jacob Friis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 25, 2004 12:20 PM Subject:

[PHP] Overriding static members?

2004-11-25 Thread Francisco M. Marzoa Alonso
Can I override static members in someway under PHP5? Is the answer is negative, Why not? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date Format error

2004-11-25 Thread Stuart Felenstein
I'm getting a: Parse error: parse error, unexpected '%' in /home/mysite/public_html/userpage.php on line 120 th scope=row?php echo $rsVJ-Fields('DATE_FORMAT(LstUpdate,'%m/%d/%Y')'); ?/th th scope=row?php echo $rsVJ-Fields('DATE_FORMAT(InitOn,'%m/%d/%Y')'); ?/th th

RE: [PHP] Date Format error

2004-11-25 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 18:39, Stuart Felenstein wrote: I'm getting a: Parse error: parse error, unexpected '%' in /home/mysite/public_html/userpage.php on line 120 th

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

2004-11-25 Thread Daniel Schierbeck
Francisco M. Marzoa Alonso wrote: I've code like follows: ?php class TestClass { public static $Data = 'This is the data'; } $Obj = new TestClass (); $ClassName = get_class ($Obj); echo $ClassName::$Data; ? It gives me an error like: Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM

Re: [PHP] Secure Password (MySQL) Storage

2004-11-25 Thread Olaf van der Spek
Jason Wong wrote: On Thursday 25 November 2004 17:43, Olaf van der Spek wrote: I'm more worried about the data (in MySQL), not the code. By protecting the MySQL password from being read by scripts directly and only allowing access based on the current vhost, only this vhost can access it's own

[PHP] NH05 to 5, NH07 to 7

2004-11-25 Thread Wiberg
hi there! i guess you know a simple solution to convert the string NH01 into 1 NH02 into 2 .. ... NH13 into 13 and so on /Gustav Wiberg --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543 - Release Date:

Re: [PHP] Secure Password (MySQL) Storage

2004-11-25 Thread Jason Wong
On Friday 26 November 2004 05:52, Olaf van der Spek wrote: That's a reasonable solution, but what if multiple SQL users per vhost are needed? Frankly, if that vhost is going to require that level of 'complexity' then that vhost would be better off on a dedicated server. A dedicated server

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

2004-11-25 Thread Raditha Dissanayake
Wiberg wrote: hi there! i guess you know a simple solution to convert the string NH01 into 1 NH02 into 2 .. ... NH13 into 13 and so on yes /Gustav Wiberg --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.799 / Virus Database: 543

[PHP] Odd Behaviour: DIE function

2004-11-25 Thread Andre Dubuc
I've noticed some strange behaviour with respect to validation of user input. Normally, using Linux, the die function in user input validation works as expected. However, the same code in IE, the DIE function does not work as expected. I've noticed that fields, that should die and barf an

Re: [PHP] Odd Behaviour: DIE function

2004-11-25 Thread Jon-Eirik Pettersen
Andre Dubuc wrote: I've noticed some strange behaviour with respect to validation of user input. Normally, using Linux, the die function in user input validation works as expected. However, the same code in IE, the DIE function does not work as expected. I've noticed that fields, that should

[PHP] remember me cookie

2004-11-25 Thread 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. Is there anything else I should be doing, or an article I should be

Re: [PHP] remember me cookie

2004-11-25 Thread John Nichel
Justin French wrote: 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. Is there anything else I should be doing, or an

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

2004-11-25 Thread Jake Press
Hi Francisco, Your not alone, a number of other users have enountered this bug. :( I have submitted a bug report, here: http://bugs.php.net/bug.php?id=30716 It would be appreciated if you show your support for this bug by commenting/voting etc :) I also have a `thread` on the php.generals

Re: [PHP] Re: intalling pear:db

2004-11-25 Thread Greg Beaver
Merlin wrote: that did not help. The pear manual says that this can be installed via command line, plus pear list tells me that the package is installed. However if I call phpinfo() there is no mentioning about pear in any way?! Do I have to enable it first anyhow?` I assume you have very little

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

2004-11-25 Thread Greg Beaver
Francisco M. Marzoa Alonso wrote: I've code like follows: ?php class TestClass { public static $Data = 'This is the data'; } $Obj = new TestClass (); $ClassName = get_class ($Obj); echo $ClassName::$Data; ? http://www.php.net/manual/en/language.oop5.reflection.php ?php class TestClass {

Re: [PHP] Re: intalling pear:db

2004-11-25 Thread Ryan King
On Nov 25, 2004, at 1:56 AM, Merlin wrote: Hi, that did not help. The pear manual says that this can be installed via command line, plus pear list tells me that the package is installed. However if I call phpinfo() there is no mentioning about pear in any way?! Do I have to enable it first