[PHP] requirement to using Interbase/Firebird in PHP

2004-08-12 Thread Tan Ghee Shan (NTPM)
Dear Sir/Madam, I had spend many days search in the Internet to get the installation guide for PHP with Interbase/Firebird. Unfortunately, I can't get the documentation which is really can work for me. For your information, I am using the SuSE 9.0. During the installation of SuSE, I didn't install

[PHP] Thumbnail Problem

2004-08-12 Thread Me2resh
i have a class that generates thumbnails without making actual file on the server it works good on my local server but on my web hosting it gives me  " Fatal error: Call to undefined function: exif_imagetype() in /home/me2resh/public_html/furniture/class_THUMB.php on line 58 " how can i pass

[PHP] Template Question

2004-08-12 Thread Jonathan Hadddad
Here is my situation: I have created a template system. A template is a single file that simply has the word {content} in it where the content belongs. The logo and the nav are in the template. The first half of the file is read (up to {content} ). Then the content from the actual file is eval

[PHP] [Newbie Guide] For the benefit of new members

2004-08-12 Thread Ma SivaKumar
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try ht

Re: [PHP] Looking for article

2004-08-12 Thread Curt Zirzow
* Thus wrote Ashley M. Kirchner: > >Anyone have an article written, or can point me to one that talks > about converting URLS from: > >http://www.domain.com/script.php?var=1&var=2 > >...to: > >http://www.domain.com/script/var1/var2 I'm not aware of any articles but the trick b

[PHP] Kerberos authentication

2004-08-12 Thread Matthew Runo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello- I am working on a project that requires Kerberos authentication, however - we are unable to use the apache module that one would normally use [sys admin.. *grumble*]. I searched the archives to find a script that would authenticate a user a

[PHP] Re: [PHP-FIREWALL] Page Referer question

2004-08-12 Thread John Holmes
Curt Zirzow wrote: You know.. I still wonder on earth why on hell a firewall has this duty. What's this got to do with PHP ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailin

Re: [PHP] Page Referer question

2004-08-12 Thread Curt Zirzow
* Thus wrote Justin Patrin: > On Thu, 12 Aug 2004 13:43:04 -0700, Robby Russell <[EMAIL PROTECTED]> wrote: > > On Thu, 2004-08-12 at 13:34, Jed R. Brubaker wrote: > > > Hello all. I am looking to create script will detect the page from which the > > > user just came so that after they do something

[PHP] Re: [PHP-APACHE] Looking for article

2004-08-12 Thread raditha dissanayake
Ashley M. Kirchner wrote: Anyone have an article written, or can point me to one that talks about converting URLS from: 1) Archives for this week. 2) or the apache url rewriting guide. http://www.domain.com/script.php?var=1&var=2 ...to: http://www.domain.com/script/var1/var2 -- Radith

[PHP] Looking for article

2004-08-12 Thread Ashley M. Kirchner
Anyone have an article written, or can point me to one that talks about converting URLS from: http://www.domain.com/script.php?var=1&var=2 ...to: http://www.domain.com/script/var1/var2 -- M | I haven't lost my mind; it's backed up on tape somewhere. +-

Re: [PHP] checking for upper case letter on string

2004-08-12 Thread Jason Wong
On Friday 13 August 2004 05:32, C.F. Scheidecker Antunes wrote: > I need to check if there are any upper case letters on a given string. > There can be one or more letters that might be upper case on a given > string no matter their position within the string. > > Is there any way to check for it?

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Eric Sammons
The issue was resolved by building my own version of PHP. It seems that Red Hat EL 3.0 AS does not ship with a copy of MySQL server so I installed an RPM from MySQL's web site. Everything installed in the appropriate locations, /usr. It seems though that was not good enough for the Red Hat v

Re: [PHP] Page Referer question

2004-08-12 Thread Robby Russell
On Thu, 2004-08-12 at 13:55, Justin Patrin wrote: > On Thu, 12 Aug 2004 13:43:04 -0700, Robby Russell <[EMAIL PROTECTED]> wrote: > > On Thu, 2004-08-12 at 13:34, Jed R. Brubaker wrote: > > > Hello all. I am looking to create script will detect the page from which the > > > user just came so that af

Re: [PHP] checking for upper case letter on string

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 15:32:33 -0600, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote: > Hello all, > > I need to check if there are any upper case letters on a given string. > There can be one or more letters that might be upper case on a given > string no matter their position within the string

[PHP] checking for upper case letter on string

2004-08-12 Thread C.F. Scheidecker Antunes
Hello all, I need to check if there are any upper case letters on a given string. There can be one or more letters that might be upper case on a given string no matter their position within the string. Is there any way to check for it? obs: I do not want to convert to lowercase, but to check for

RE: [PHP] Global persistent variables

2004-08-12 Thread Lance Lovette
If you have the ability to compile extensions into PHP and you're not running under Windows you may find useful an extension I wrote that is one solution to this problem (and more). http://pwee.sourceforge.net/ Note that I haven't yet compiled it under anything later than PHP 4.2.1. Lance

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
btw, see bug 26737 for more details... http://bugs.php.net/bug.php?id=26737 Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Page Referer question

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 13:43:04 -0700, Robby Russell <[EMAIL PROTECTED]> wrote: > On Thu, 2004-08-12 at 13:34, Jed R. Brubaker wrote: > > Hello all. I am looking to create script will detect the page from which the > > user just came so that after they do something on the current page (login) > > it w

[PHP] Re: Page Referer question

2004-08-12 Thread Jed R. Brubaker
Thank you all for the great feedback. "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all. I am looking to create script will detect the page from which the > user just came so that after they do something on the current page (login) > it will send them back t

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Brad Bonkoski
try restarting apache. if mysql were not running they would see a mysql error, not a PHP error saying the function is not defined. Is is something to do with how mysql is built into PHP and how PHP interacts with apache, so if all else fails, try rebuilding PHP. -B - Original Message -

Re: [PHP] RE: MySQL & PHP Examples & Training Providers Required

2004-08-12 Thread Harlequin
Jay, guys. Thanks very much for all your responses on this issue. I'm sorry if I don't always reply through the group but if I am working from the office I have a problem connecting to the mailing list. which is just one of the reasons I prefer working from home. I, along with your help, have ins

RE: [PHP] Re: Creating plotted graphs on the fly

2004-08-12 Thread Jay Blanchard
[snip] I'm looking to do the same thing later down the line. I'd appreciate you keeping in touch by mail and perhaps we can help each other out on this one...? [/snip] http://www.aditus.nu/jpgraph/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Page Referer question

2004-08-12 Thread John Holmes
Jed R. Brubaker wrote: Hello all. I am looking to create script will detect the page from which the user just came so that after they do something on the current page (login) it will send them back to the page they wanted. I was thinking about $_SERVER['HTTP_REFERER'], but php.net says: 'HTTP_REFER

[PHP] Output buffering (gzip) on Mac OS X 10.3.5

2004-08-12 Thread René Fournier
Zend (http://www.zend.com/zend/art/buffering.php) offers some suggestions on output buffering, which I am trying to implement on my web server (Mac OS X 10.3.5, Apache/1.3.29 (Darwin) PHP/4.3.6). So far, unsuccessfully. Has anyone got this working? Here's what I've got: ob_start("ob_gzhandler"

Re: [PHP] Page Referer question

2004-08-12 Thread Robby Russell
On Thu, 2004-08-12 at 13:34, Jed R. Brubaker wrote: > Hello all. I am looking to create script will detect the page from which the > user just came so that after they do something on the current page (login) > it will send them back to the page they wanted. I was thinking about > $_SERVER['HTTP_REF

Re: [PHP] Page Referer question

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 14:34:11 -0600, Jed R. Brubaker <[EMAIL PROTECTED]> wrote: > Hello all. I am looking to create script will detect the page from which the > user just came so that after they do something on the current page (login) > it will send them back to the page they wanted. I was thinking

[PHP] Re: Creating plotted graphs on the fly

2004-08-12 Thread Harlequin
Ryan I'm looking to do the same thing later down the line. I'd appreciate you keeping in touch by mail and perhaps we can help each other out on this one...? -- - Michael Mason Arras People www.arraspeople.co.uk - "Ryan C . Spaulding" <

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
* Thus wrote Frdric Hardy: > I'am using php 5.0.0 release. > > Try this : > var_dump($test); > var_dump(unserialize(serialize($test))); > > You should obtain something like that for fist var_dump : > > object test > string test -> 'var' > > and for the second var_dump : > > object test >

[PHP] Page Referer question

2004-08-12 Thread Jed R. Brubaker
Hello all. I am looking to create script will detect the page from which the user just came so that after they do something on the current page (login) it will send them back to the page they wanted. I was thinking about $_SERVER['HTTP_REFERER'], but php.net says: 'HTTP_REFERER' The address of th

[PHP] Re: LRC (longitudinal redundancy check) and Even Parity

2004-08-12 Thread Dominic Schanen
I was calculating the LRC before setting even parity. I'm hoping that was my problem. If so, this is the change that I made, in case anyone else can find use in these functions: /* LRC / /*** taken from Perl module String::LRC ***/ function lrc($buffer) {

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Jason Wong
Please do not top post. On Friday 13 August 2004 04:04, Eric L. Sammons wrote: > No I see no mysql section in my phpinfo page. I am in the process of > rebuilding php to see if this resolves the problem. If you mean recompile PHP then you had better be sure you know what you're doing. My recom

Re: FWD: RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Jason Wong
On Friday 13 August 2004 03:15, Eric L. Sammons wrote: > did this, all answers came back stating to install php-mysql package. > Already have that installed. Some have stated they recompiled php, I > really would like to avoid doing that so I don't affect my Red Hat support > agreements. Seems

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread John Nichel
Eric L. Sammons wrote: No I see no mysql section in my phpinfo page. I am in the process of rebuilding php to see if this resolves the problem. Did you restart Apache after installing the php-mysql rpm? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing

RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Eric L. Sammons
No I see no mysql section in my phpinfo page. I am in the process of rebuilding php to see if this resolves the problem. >= Original Message From [EMAIL PROTECTED] = >On Thu, 12 Aug 2004 15:38:45 -0400, Eric L. Sammons <[EMAIL PROTECTED]> wrote: >> I have done phpinfo and I see --with-my

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 15:38:45 -0400, Eric L. Sammons <[EMAIL PROTECTED]> wrote: > I have done phpinfo and I see --with-mysql=shared,/usr > That doesn't really matter. Is there a mysql section in the phpinfo()? It should have information similar to this: MySQL Support enabled Active Persistent Li

RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Eric L. Sammons
I have started mysql, all is working (when I use the mysql client). >= Original Message From Jay Blanchard <[EMAIL PROTECTED]> = >[snip] >I have done phpinfo and I see --with-mysql=shared,/usr >[/snip] > >Have you started the mysql daemon? > >-- >PHP General Mailing List (http://www.php.

RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Jay Blanchard
[snip] I have done phpinfo and I see --with-mysql=shared,/usr [/snip] Have you started the mysql daemon? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Eric L. Sammons
I have done phpinfo and I see --with-mysql=shared,/usr >= Original Message From Jay Blanchard <[EMAIL PROTECTED]> = >[snip] >did this, all answers came back stating to install php-mysql package. >Already >have that installed. Some have stated they recompiled php, I really >would >like to

RE: RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Jay Blanchard
[snip] did this, all answers came back stating to install php-mysql package. Already have that installed. Some have stated they recompiled php, I really would like to avoid doing that so I don't affect my Red Hat support agreements. [/snip] have you done phpinfo() to see if it really compiled? -

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread John Nichel
Eric L. Sammons wrote: Trying set up php-syslog-ng on my Red Hat EL 3.0 AS system. I have verified that I can in fact access mysql and that I have the necessary database and that the user, password, and host are setup correctly in db_fns.php. It seems; however, that I still receive the given e

FWD: RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Eric L. Sammons
>= Original Message From "Eric L. Sammons" <[EMAIL PROTECTED]> = >= Original Message From "Eric L. Sammons" <[EMAIL PROTECTED]> = did this, all answers came back stating to install php-mysql package. Already have that installed. Some have stated they recompiled php, I really would

RE: [PHP] odd results with database string comparisons

2004-08-12 Thread Jay Blanchard
[snip] I have a database table with the column described as address_line_2 varchar(255) NOT NULL default '', if($row["address_line_2"]==' ') // there is a space between the quotes [/snip] address_line_2 varchar(255) NOT NULL default '', <--- no space between quotes so if('' == $row['address_

Re: [PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread bbonkosk
The tip.. copy and paste your error code into google ;-) Do it for all errors, you'll be amazed @ how many have already been answered - Original Message - From: "Eric L. Sammons" <[EMAIL PROTECTED]> Date: Thursday, August 12, 2004 2:44 pm Subject: [PHP] Fatal error: Call to undefined

Re: [PHP] str_split()

2004-08-12 Thread - Edwin -
On Friday 13 August 2004 03:27, Aaron Todd wrote: (B> Do you know of a simular function that will split a string in the (B> same way. I have phone numbers stored in a database in the format (B> ##. I need to display the number on the page in the format (B> ###-###-. str_split() wo

[PHP] Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/includes/db_fns.php on line 6

2004-08-12 Thread Eric L. Sammons
Trying set up php-syslog-ng on my Red Hat EL 3.0 AS system. I have verified that I can in fact access mysql and that I have the necessary database and that the user, password, and host are setup correctly in db_fns.php. It seems; however, that I still receive the given error: Fatal error: Cal

[PHP] odd results with database string comparisons

2004-08-12 Thread Matthew Oatham
I have a database table with the column described as address_line_2 varchar(255) NOT NULL default '', when I do a select I want to see if there is anything in that column if there is text I will display it in a html table if there is nothing (the table default) I will write   However the follow

Re: [PHP] PHP 4.3.8 Session Handling w/ JavaScript

2004-08-12 Thread James E Hicks III
On Thursday 12 August 2004 10:32 am, James E Hicks III wrote: > On a server that is running PHP 4.3.6 I can use a link like this and the Please disregard this request for help, as the problem seems to be the nut behind the wheel. James -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] str_split()

2004-08-12 Thread Jay Blanchard
[snip] Do you know of a simular function that will split a string in the same way. I have phone numbers stored in a database in the format ##. I need to display the number on the page in the format ###-###-. str_split() worked perfectly for this. Is there another function? [/snip] ht

Re: [PHP] str_split()

2004-08-12 Thread Aaron Todd
Do you know of a simular function that will split a string in the same way. I have phone numbers stored in a database in the format ##. I need to display the number on the page in the format ###-###-. str_split() worked perfectly for this. Is there another function? Thanks, Aaron

RE: [PHP] str_split()

2004-08-12 Thread Jay Blanchard
[snip] I thought someone might ask me that. I honestly dont know. I have been looking for a comand that I can run to find out, but I havent found one. I have SSH access to the server so if you know of a way to get the version please let me know. [/snip] >From the command line type php -v It'll r

Re: [PHP] str_split()

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 14:11:13 -0400, Aaron Todd <[EMAIL PROTECTED]> wrote: > HAH...I found it. I have version 4.3.3 > > Does that version not have this function or something? > http://us3.php.net/manual/en/function.str-split.php Look at the top. Only PHP5 is listed. > Thanks, > > Aaron > > "J

Re: [PHP] str_split()

2004-08-12 Thread John Nichel
Aaron Todd wrote: HAH...I found it. I have version 4.3.3 Does that version not have this function or something? Thanks, Aaron According to the manual... http://us4.php.net/str_split str_split() is a php5 function. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP Genera

Re: [PHP] str_split()

2004-08-12 Thread John Nichel
Aaron Todd wrote: I thought someone might ask me that. I honestly dont know. I have been looking for a comand that I can run to find out, but I havent found one. I have SSH access to the server so if you know of a way to get the version please let me know. Well, it looks like str_split() was int

RE: [PHP] str_split()

2004-08-12 Thread Jay Blanchard
[snip] HAH...I found it. I have version 4.3.3 Does that version not have this function or something? [/snip] Looking at http://www.php.net/str_split I see that it is valid for PHP 5 only -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] str_split()

2004-08-12 Thread Jay Blanchard
[snip] I thought someone might ask me that. I honestly dont know. I have been looking for a comand that I can run to find out, but I havent found one. I have SSH access to the server so if you know of a way to get the version please let me know. [/snip] make a page like this And run it from y

Re: [PHP] str_split()

2004-08-12 Thread Aaron Todd
HAH...I found it. I have version 4.3.3 Does that version not have this function or something? Thanks, Aaron "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Aaron Todd wrote: > > I was just wondering if anyone can look an the following code and tell me if > > there

Re: [PHP] str_split()

2004-08-12 Thread Aaron Todd
I thought someone might ask me that. I honestly dont know. I have been looking for a comand that I can run to find out, but I havent found one. I have SSH access to the server so if you know of a way to get the version please let me know. Thanks, Aaron "John Nichel" <[EMAIL PROTECTED]> wrote

Re: [PHP] str_split()

2004-08-12 Thread John Nichel
Aaron Todd wrote: I was just wondering if anyone can look an the following code and tell me if there are any obvious errors. I wrote this in DZsoft PHP editor where it works perfectly. But then when I run it on my webserver it gave me a fatal error: Fatal error: Call to undefined function: st

[PHP] str_split()

2004-08-12 Thread Aaron Todd
I was just wondering if anyone can look an the following code and tell me if there are any obvious errors. I wrote this in DZsoft PHP editor where it works perfectly. But then when I run it on my webserver it gave me a fatal error: Fatal error: Call to undefined function: str_split() in /hom

Re: [PHP] string manipulation

2004-08-12 Thread John Nichel
Jason Wong wrote: str_pad(), please RTFM before you ask such questions. It's obvious from your subject that you know it's something to do with strings, so where better than to look at the chapter on String Functions? Browse through them, checkout the examples, it's a good way to learn. But I se

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Hannes Magnusson
On Thu, 12 Aug 2004 10:04:00 -0700 [EMAIL PROTECTED] (Justin Patrin) wrote: > On Thu, 12 Aug 2004 09:20:44 -0400, Deepak Dhake > <[EMAIL PROTECTED]> wrote: > > $query4 = mysql_query("SELECT result FROM TBL_result WHERE survey_no=2"; > > while($row2 = mysql_fetch_array($query4)) { > > //print arr

Re: [PHP] string manipulation

2004-08-12 Thread Jason Wong
On Friday 13 August 2004 01:00, Matthew Oatham wrote: > Hi I am trying to track down a method for transferring a database id such > as 5 into a nice formatted order id such as ORD0005 - where the format for > the order id is "ORD" + 5 digits made up of the database id str_pad(), please RTFM before

Re: [PHP] 1.4 second lag before page loads

2004-08-12 Thread raditha dissanayake
Justin Patrin wrote: On Thu, 12 Aug 2004 14:07:52 +0100, Adrian Teasdale <[EMAIL PROTECTED]> wrote: Hi there On one site we have a 1.4 second delay before a page loads. We've added mod_gzip and mmCache to the server. Mod_gzip has definitely helped with the speed of page loading, but this 1.4 s

Re: [PHP] problem with mysql_fetch_array

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 09:20:44 -0400, Deepak Dhake <[EMAIL PROTECTED]> wrote: > $query4 = mysql_query("SELECT result FROM TBL_result WHERE survey_no=2"; > while($row2 = mysql_fetch_array($query4)) { > //print array > } > > this will print whole array. i just want to print a row at a time and it sh

Re: [PHP] string manipulation

2004-08-12 Thread Michal Migurski
> Hi I am trying to track down a method for transferring a database id > such as 5 into a nice formatted order id such as ORD0005 - where the > format for the order id is "ORD" + 5 digits made up of the database id See documentation for sprintf(). Try something like: $formatted = sprintf

RE: [PHP] [discuss] Rename this list

2004-08-12 Thread Matthew Sims
> >> Imagine all the people that'll want to post to a John Holmes list!!! > > People would be wide open for that list. > > Sorry.., I couldn't resist... Just had to take the low road... > > > > alex hogan Damn, that was pretty good. :) -- --Matthew Sims -- -- PHP Gener

Re: [PHP] 1.4 second lag before page loads

2004-08-12 Thread Justin Patrin
On Thu, 12 Aug 2004 14:07:52 +0100, Adrian Teasdale <[EMAIL PROTECTED]> wrote: > Hi there > > On one site we have a 1.4 second delay before a page loads. We've added > mod_gzip and mmCache to the server. Mod_gzip has definitely helped with > the speed of page loading, but this 1.4 second delay i

[PHP] string manipulation

2004-08-12 Thread Matthew Oatham
Hi I am trying to track down a method for transferring a database id such as 5 into a nice formatted order id such as ORD0005 - where the format for the order id is "ORD" + 5 digits made up of the database id Thanks Matt

RE: [PHP] [discuss] Rename this list

2004-08-12 Thread Alex Hogan
> Imagine all the people that'll want to post to a John Holmes list!!! People would be wide open for that list. Sorry.., I couldn't resist... Just had to take the low road... alex hogan * The contents of this

[PHP] PHP 5.0 capabiity - does it support threads?

2004-08-12 Thread Don
Hi, Does anyone know if PHP 5.x supports threading or is planning to? This would be something akin to Java threads. My system would be Fedora Linux - latest build. Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A function in PHP that changes html in a string from to ?

2004-08-12 Thread Curt Zirzow
* Thus wrote SED: > Is there any function in PHP that changes html in a string from align=center> to ? (e.g. adding the double quotes) You can use tidy to clean up html. http://php.net/tidy Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been heari

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Frédéric Hardy
I'am using php 5.0.0 release. Try this : var_dump($test); var_dump(unserialize(serialize($test))); You should obtain something like that for fist var_dump : object test string test -> 'var' and for the second var_dump : object test string test -> 'var' string test -> & null

Re: [PHP] question about file_put_contents

2004-08-12 Thread Curt Zirzow
* Thus wrote Corey Hitchcock: > Hi, I'm relatively new with php but I have a question about this 'new' > function. If I use file_put_contents("file.txt", "whatever") then it, of > course, writes "whatever" in the "file.txt". If I later do the same thing > but put a different word (say "other") from

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
* Thus wrote Frdric Hardy: > > class foo > { > private $var = 'var'; > ... > > function __sleep() > { > return array('var'); > } > } > > and php code like this : > > $myFoo = new foo(); > var_dump(serialize($myFoo)); > > the 'var' property was not serialized because

Re: [PHP] [discuss] Rename this list

2004-08-12 Thread John Holmes
raditha dissanayake wrote: I vote this list be renamed as php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. If I give a big donation, can I get my name in there, too??? Imagine all the people that'll want to post to a John Holmes list!!! -- ---John Holmes...

[PHP] question about file_put_contents

2004-08-12 Thread Corey Hitchcock
Hi, I'm relatively new with php but I have a question about this 'new' function. If I use file_put_contents("file.txt", "whatever") then it, of course, writes "whatever" in the "file.txt". If I later do the same thing but put a different word (say "other") from "whatever" then it overwrites that en

[PHP] Re: Changing MySQL Date Format

2004-08-12 Thread Torsten Roehr
"Harlequin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm using a hell of a lot of dates in my databases and wondered if it was > possible to change the date format in my databases from -00-00 to: > 00-00-...? This would make ordering by date impossible - do you really

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
Jay Blanchard wrote: [snip] Wait, wait...I have it. php-general-apache-mysql-imap-iis-javascript-HTML-perl-car_repair-side_p aneling-medical_doctor-tv_repair-shoelace_tying [/snip] we-do-not-know-it-all-but-we-stayed-at-a-Holiday-Inn-Express-last-night@ lists.foo Laides and gentlemen, I think we ha

[PHP] Re: [PHP-INSTALL] Re: [PHP] Netegrity's siteminder + PHP + Apache

2004-08-12 Thread Saqib . N . Ali
Hello Sam, Thanks for the response. I don't have much documentation to work with. I very familiar with mod_LDAP + Apache + PHP, but new to Siteminder. I was wondering if you point me to some good resources on the web, or if you have some documentation, that would be helpful as well. Thanks. Sa

Re: [PHP] php+iptables

2004-08-12 Thread Robby Russell
On Thu, 2004-08-12 at 01:31, Joel n.solanki wrote: > Dear all Gurus, > > I have read little manul from www.php.net > I want to create web based firewall with php+iptables . Can any one give > me some documentation or guides or Examples ??I am using redhat linux > ..all things are installed. > I ha

RE: [PHP] Escaping quotes [solution]

2004-08-12 Thread Alex Hogan
[snip] 2) By not escaping quotes in the data ... You can do it this way but you must make sure that any strings in your values array have been escaped before with [/snip] There is no quotes in the data. The data coming in is a $_POST array. $dbmssql->dbinsert($_POST, $table); However this did

RE: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Jay Blanchard
[snip] Wait, wait...I have it. php-general-apache-mysql-imap-iis-javascript-HTML-perl-car_repair-side_p aneling-medical_doctor-tv_repair-shoelace_tying [/snip] we-do-not-know-it-all-but-we-stayed-at-a-Holiday-Inn-Express-last-night@ lists.foo -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] A function in PHP that changes html in a string from to ?

2004-08-12 Thread Frédéric Hardy
str_replace('', '', $string) However, align argument is deprecated in last version of html. Use css instead. Best regards Fred raditha dissanayake wrote: SED wrote: Is there any function in PHP that changes html in a string from to ? (e.g. adding the double quotes) no but you can do so with se

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Matthew Sims
> raditha dissanayake wrote: >> I vote this list be renamed as >> >> php-general-apache-mysql-imap-iis discussion list. >> >> all those not in favour please flame. >> >> > > We could just move this list to a Yahoo! group, then we can answer > questions for any topic, and have the trolls too. ;) > >

Re: [PHP] A function in PHP that changes html in a string from to ?

2004-08-12 Thread raditha dissanayake
SED wrote: Is there any function in PHP that changes html in a string from to ? (e.g. adding the double quotes) no but you can do so with sed. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.radi

[PHP] LRC (longitudinal redundancy check) and Even Parity

2004-08-12 Thread Dominic Schanen
Hello, I'm working on some code to authorize and settle directly with Vital. Some of the inspiration and code samples have come from the Perl module Business::OnlinePayment::VirtualNet. Things are working good approximately 99% of the time. However, my communication is getting Nak'd on settleme

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
raditha dissanayake wrote: I vote this list be renamed as php-general-apache-mysql-imap-iis discussion list. all those not in favour please flame. We could just move this list to a Yahoo! group, then we can answer questions for any topic, and have the trolls too. ;) -- John C. Nichel ÜberGeek Ke

[PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Frédéric Hardy
Hello ! I have a problem with __sleep() and __wakeup() with php 5.0.0. if you have a class like that : class foo { private $var = 'var'; function __construct() { ... } function __sleep() { return array('var'); } function wakeup() { } } and php

Re: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Jake Stonebender
On Thu, 12 Aug 2004 09:12:41 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: | And then we can answer questions on dating, sex, marriage, religion, and | politics! Wooohoo! We may just as well call it IRC then. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Frédéric Hardy
Hello ! I have a problem with __sleep() and __wakeup() with php 5.0.0. if you have a class like that : class foo { private $var = 'var'; function __construct() { ... } function __sleep() { return array('var'); }

[PHP] Re: XML session

2004-08-12 Thread Miguel Manso
Miguel Manso wrote: Hi. I'm trying to create a session support where i can keep persistent objects. I'm using XML to structure the data in the session file. But i've come into a problem. When i execute the following code the (-->>) marked instruction simply breaks the function execution: $ses

RE: [PHP] A function in PHP that changes html in a string from to ?

2004-08-12 Thread Jay Blanchard
[snip] Is there any function in PHP that changes html in a string from to ? (e.g. adding the double quotes) [/snip] Nah, but you could write a function to add quotes to attributes of any tag that you would like. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] A function in PHP that changes html in a string from to ?

2004-08-12 Thread SED
Is there any function in PHP that changes html in a string from to ? (e.g. adding the double quotes) Regards, Sumarlidi Einar Dadason SED DESIGN _ Email: [EMAIL PROTECTED] Website: http://www.sed.is -- PHP General Mailing List (http://www.php.

[PHP] PHP 4.3.8 Session Handling w/ JavaScript

2004-08-12 Thread James E Hicks III
On a server that is running PHP 4.3.6 I can use a link like this and the accompanying javascript to get a popup window in my application. After upgrading to PHP version 4.3.8 this no longer works. For some reason when you click on this link now, it looks like it creates a new session which of c

Re: [PHP] The Y2038 "bug"

2004-08-12 Thread Peter Risdon
Justin French wrote: Hi all, Is anyone giving much thought to the Y2038 "bug/issue" in relation to Unix Timestamps? From what I read, they have a range of 1970-2038 (or earlier than 1970 on *nix). Either you or I misunderstand this issue... There's this limit because the start point is Jan 1 197

Re: [PHP] mod rewrite urls

2004-08-12 Thread John Nichel
Jason Wong wrote: On Thursday 12 August 2004 21:37, John Nichel wrote: Jay Blanchard wrote: a. Have you sent this to an Apache list? 2. I just almost cannot bring myself to say it, but this relates to PHP how? Didn't you get the memo? To be PC, we now have to answer all questions releated to php

Re: [PHP] timestamp according to timezone?

2004-08-12 Thread Jason Wong
On Thursday 12 August 2004 22:11, Justin French wrote: > You're absolutely right, it doesn't make sense, and even though it was > less than an hour ago, I can't really remember how I decided I needed > such a thing. It's part of an endless loop of confusion I currently > have with timezones for a

[PHP] The Y2038 "bug"

2004-08-12 Thread Justin French
Hi all, Is anyone giving much thought to the Y2038 "bug/issue" in relation to Unix Timestamps? From what I read, they have a range of 1970-2038 (or earlier than 1970 on *nix). The reason I ask is because I always store my dates in timestamps, and I don't really want to be responsible for any m

RE: [PHP] [discuss] Rename this list was:Re: [PHP] mod rewrite urls

2004-08-12 Thread Jay Blanchard
[snip] > php-general-apache-mysql-imap-iis discussion list. > > all those not in favour please flame. Heh, just drop the php and call it the general list :) Shorter and more to the point. [/snip] And then we can answer questions on dating, sex, marriage, religion, and politics! Wooohoo! We now

Re: [PHP] timestamp according to timezone?

2004-08-12 Thread Justin French
On 12/08/2004, at 11:26 PM, Jason Wong wrote: On Thursday 12 August 2004 21:06, Justin French wrote: How can I get a unix timestamp of the current timezone, rather than GMT as supplied by time()? What are you trying to solve? The unix timestamp is based off GMT (UTC). All calculations involving s

  1   2   >