Re: [PHP] Single Quotes vs Double Quotes

2003-09-09 Thread Raditha Dissanayake
Hi, the $ sign inside single quotes is just a dollar sign. When you place it inside double quotes it's the start of a variable name. This is because what is inside single quotes are unparsed while whats inside double quotes are parsed. For this reasong if you are having to print out lengthy

[PHP] Question about MySQL 4.0

2003-09-09 Thread T. Hart
I'm just curious that if anything special has to be done to PHP (besides recompiling) after upgrading to MySQL 4.0. I noticed that they are removing C API commands like mysql_connect() and was unsure if these are the same ones that PHP uses. Any help would be appreciated. Thanks.

[PHP] Installing php with gd what a pain!

2003-09-09 Thread Dhaval Desai
Hello Guys, I am trying to install php 4.3.2 with gd support. I have already installed zlib and jpeg-6b. My configure line options are as below: ./configure --with-gd --with-jpeg-dir=/usr/lib it doesn't work. I tried ./configure --with-gd --with-jpeg-dir=/usr/local/bin it still doesn't work

Re: [PHP] adodb and php5

2003-09-09 Thread SLanger
Hello Did you compile mysql or any of the other databases into php5? As far as I know php5 does not come with mysql anymore because of some licence issues. So if you haven't compiled it yourself it shouldn't be available and hence not supported by adodb. Just a guess Regards Stefan Langer

Re: [PHP] Installing php with gd what a pain!

2003-09-09 Thread Jason Wong
On Tuesday 09 September 2003 14:49, Dhaval Desai wrote: I am trying to install php 4.3.2 with gd support. I have already installed zlib and jpeg-6b. My configure line options are as below: PHP + GD installation problems have been covered many times before on the list and almost everything

Re: [PHP] Mail() question

2003-09-09 Thread Jason Wong
On Tuesday 09 September 2003 08:12, Ryan A wrote: I am trying to create a new newsletter software as the ones i found on hotscripts were just not good enough or mucho $$ which i dont have :-( [snip] All your questions have been covered before and the answers are in the archives. Please

[PHP] Session Variables in a Class

2003-09-09 Thread micro brew
Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session variable directly ($_SESSION['name']='somevalue')

RE: [PHP] Single Quotes vs Double Quotes

2003-09-09 Thread Ralph Guzman
Read this article: http://www.zend.com/zend/tut/using-strings.php -Original Message- From: micro brew [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 9:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Single Quotes vs Double Quotes Hi everyone, Could somebody please explain to

Re: [PHP] -f function ???

2003-09-09 Thread Ivo Fokkema
[snip] Does this parameter have anything to do with the -f option of the Unix/Linux sendmail command? [/snip] I'm not a linux expert, but as far as I know, it's the same. It allows users to set the Return-Path header with the mail() function, but this is disallowed when your PHP is set to

Re: [PHP] Mail() question

2003-09-09 Thread Ryan A
Hey, Thanks for replying. I had a look at quick ezmlm but it seems to be more of a mailing list software than a newsletter one, and since its not in php i cant really dig in and shape it to my needs...:-( Thanks anyway, Cheers, -Ryan Hi, Why don't you take a look at ezmlm instead. This is open

Re: [PHP] Mail() question

2003-09-09 Thread Ryan A
Hey Jason, Thanks for replying. I did search the archive for newsletter, newsletter software and variations but didnt come up with much. I got a lot of german and other results too from php general,debian etc Will do another search on mail now. Please note that i I intend to add a kind of

Re: [PHP] Mail() question

2003-09-09 Thread Jason Wong
On Tuesday 09 September 2003 17:02, Ryan A wrote: I did search the archive for newsletter, newsletter software and variations but didnt come up with much. I got a lot of german and other results too from php general,debian etc Will do another search on mail now. mass mailing, bulk mailing

[PHP] Re: Problem Coding a Tutorial

2003-09-09 Thread Kae Verens
Stephen Tiano wrote: Kae, Excuse my being dense, but I just want to get your meaning with the lines you added. You're saying to substitute if($_POST['submit']=='Sign!') for if ($submit == Sign!) and to try ('$_POST[name]', ... (and not $_POST['name'])? in your code, the first variable was

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Marco Schuler
Am Die, 2003-09-09 um 10.19 schrieb micro brew: Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the

[PHP] Re: Mail() question

2003-09-09 Thread Kae Verens
Ryan A wrote: Hi everyone, I am trying to create a new newsletter software as the ones i found on hotscripts were just not good enough or mucho $$ which i dont have :-( Have finished the basics but need some advise now. I am using a mysql database instead of text files. I have a table with the

RE: [PHP] Try/Catch

2003-09-09 Thread --
Hello Jay, Yes, I´m running PHP5. And in my code you can see that the exception is throwed in an a call to a methode from an aggregated object in a suclassed one ($this-curl-GET()). The GET() methode throws the excpetion if curl_exec returns an error. But one would expect that the

Re: [PHP] Installing php with gd what a pain!

2003-09-09 Thread Desi
You must also install devel packages from jpeg, png and so on... Desi Jason Wong wrote: On Tuesday 09 September 2003 14:49, Dhaval Desai wrote: I am trying to install php 4.3.2 with gd support. I have already installed zlib and jpeg-6b. My configure line options are as below: PHP + GD

Re: [PHP] Session Variables in a Class

2003-09-09 Thread CPT John W. Holmes
From: micro brew [EMAIL PROTECTED] I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session variable directly

Re: [PHP] Mail() question

2003-09-09 Thread Chris Hayes
At 09:40 9-9-03, you wrote: On Tuesday 09 September 2003 08:12, Ryan A wrote: I am trying to create a new newsletter software as the ones i found on hotscripts were just not good enough or mucho $$ which i dont have :-( Please note that i I intend to add a kind of word merge functionality

RE: [PHP] using fwrite to create PHP files

2003-09-09 Thread Ford, Mike [LSS]
On 05 September 2003 19:44, Chris Sherwood wrote: this is a sample of what I do when I need to write a php file $stringtowrite = ?PHP\n// Bulletin Board forum\n$.ForumId=.$tabletofind.;\n; $stringtowrite .= $.ForumActive='1';\n$.ForumName='.$sportname.';\n; $stringtowrite .=

[PHP] Multiple image buttons

2003-09-09 Thread Hardik Doshi
Hi Group, I have a page on which there are multiple image buttons. Is there any way to determine which button is pressed by the user? For example, there is a page on which i display all the users of the system with the edit and delete button beside each user entry. Now if admin wants to delete

Re: [PHP] Multiple image buttons

2003-09-09 Thread CPT John W. Holmes
From: Hardik Doshi [EMAIL PROTECTED] I have a page on which there are multiple image buttons. Is there any way to determine which button is pressed by the user? For example, there is a page on which i display all the users of the system with the edit and delete button beside each user

Re: [PHP] Re: Mail() question

2003-09-09 Thread Jason Sheets
You can also use ini_set or .htaccess to increase the max execution time for the PHP script. I have some reports that used to take 5 or 6 minutes to run and this worked well, note though that IE has a timeout where it will close the connection if the page has not finished loading within n

[PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Shaun
Hi, I am dividing a number by another number and printing the result to the screen. How can I ensure that the number is rounded up to 2 decimal places? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] BMP - GD image?

2003-09-09 Thread DvDmanDT
Hello, I wanted to know if anyone has a good way to convert windows bitmaps into png, jpeg, gif or something else that GD2 can work with? The reason for this is that I wanna be able to colorize them in a special way which GD is great at... Just that GD can't handle BMPs so... My first idea was to

Re: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Raditha Dissanayake
printf(%.2f,$number); Shaun wrote: Hi, I am dividing a number by another number and printing the result to the screen. How can I ensure that the number is rounded up to 2 decimal places? Thanks for your help -- http://www.radinks.com/upload Drag and Drop File Uploader. -- PHP General

Re: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Marco Schuler
Hi Am Die, 2003-09-09 um 16.06 schrieb Shaun: Hi, I am dividing a number by another number and printing the result to the screen. How can I ensure that the number is rounded up to 2 decimal places? Use printf with format strings like printf(Value: %.2f, $value);

RE: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Jay Blanchard
[snip] I am dividing a number by another number and printing the result to the screen. How can I ensure that the number is rounded up to 2 decimal places? [/snip] Why others never test these things I'll never know...but here is a small test you can run ?php /* ** rounding / number format

Re: [PHP] BMP - GD image?

2003-09-09 Thread Matthias Nothhaft
DvDmanDT wrote: Hello, I wanted to know if anyone has a good way to convert windows bitmaps into png, jpeg, gif or something else that GD2 can work with? The reason for this is that I wanna be able to colorize them in a special way which GD is great at... Just that GD can't handle BMPs so... My

[PHP] Re: PHP and Apache

2003-09-09 Thread Ray Mordy
Hi After installing Apache then PHP, i was told by php that apache wasnt configured, so i followed the instructions in the install.txt file. But everytime i view the files through the local host but i only see the written code, So how do i get this to work, assuming that Apache isnt giving the

Re: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Marek Kilimajer
It is not mentioned in the manual, but it seems dec_point cannot be empty. If it is empty, default (.) is taken. Jay Blanchard wrote: [snip] I am dividing a number by another number and printing the result to the screen. How can I ensure that the number is rounded up to 2 decimal places? [/snip]

[PHP] addslashes() || Why the multiple slashes?

2003-09-09 Thread CF High
Hey All. Simple ? why does PHP add 3 slashes to the following var: $apostrophe = I've got an apostrophe; $slashed = addslashes($apostrophe); echo $slashed; Result: I\\\'ve got an apostrophe. What's up with that -- why not just add a single backslash? --Noah -- -- PHP General Mailing

Re: [PHP] Re: PHP and Apache

2003-09-09 Thread Chris Hayes
At 16:58 9-9-03, you wrote: Hi After installing Apache then PHP, i was told by php that apache wasnt configured, so i followed the instructions in the install.txt file. But everytime i view the files through the local host but i only see the written code, So how do i get this to work, assuming

RE: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Jay Blanchard
[snip] It is not mentioned in the manual, but it seems dec_point cannot be empty. If it is empty, default (.) is taken. echo number_format($number, 4, '', ',').\n; number_format() does allow an empty set of single quotes in the third attribute which it will default to a period (.) for the

Re: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Marek Kilimajer
I meant you cannot set decimal point to be '', it will always display. Yes you can supply '' for the third argument. Jay Blanchard wrote: [snip] It is not mentioned in the manual, but it seems dec_point cannot be empty. If it is empty, default (.) is taken. echo number_format($number, 4,

RE: [PHP] How do I get the result of a Division to 2 decimal places?

2003-09-09 Thread Jay Blanchard
[snip] I meant you cannot set decimal point to be '', it will always display. Yes you can supply '' for the third argument. [/snip] Ah! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] addslashes() || Why the multiple slashes?

2003-09-09 Thread Marek Kilimajer
WFM. Is $apostrophe from a REQUEST variable. Then it already is addslashed, as your magic_quotes_gpc is on in php.ini. CF High wrote: Hey All. Simple ? why does PHP add 3 slashes to the following var: $apostrophe = I've got an apostrophe; $slashed = addslashes($apostrophe); echo $slashed;

Re: [PHP] Session Variables in a Class

2003-09-09 Thread micro brew
Here's my class. I start the session in the constructor and in later methods attempt to register session variables. You can see I've tried a couple different methods but none of them maintain the session variable values. Any suggestions? Mike ?php class login { //This variable tells the

Re: [PHP] No answers found - Why var and why ?

2003-09-09 Thread Brad Pauly
André Cupini wrote: But what's the diference of the sintax: function bla($var) That means the function will return a reference. http://www.php.net/manual/en/functions.returning-values.php - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Encrypt/Serialize Source Code for Sale

2003-09-09 Thread Ivo Fokkema
Hi, I've actually been looking for this kind of things for a while as well. However, I would not want my client to install something to uncode the scripts (probably causing the scripts to be unencoded easier). I found these: PHP OBFUSCATOR

[PHP] count() numerical arrays....

2003-09-09 Thread CF High
Hey all. Another simple, yet baffling for me, question: I have a comma delimited list of numbers; e.g. $num_list = 1,2,3,4 I split the number list to array -- $num_list_array = split(, $num_list) I then count the number of elements -- $count = count($num_list_array); I do not get 4 for

[PHP] Setting execution time for a loop

2003-09-09 Thread zavaboy
How do I set execution time for a for() loop? Like I have a loop stop once it finds 3 things, but what happens when there are only 2 things? It keeps looking for 30 seconds then shows this error: Fatal error: Maximum execution time of 30 seconds exceeded in... How can I set it to 3 seconds

Re: [PHP] count() numerical arrays....

2003-09-09 Thread Cesar Cordovez
Use explode instead... $num_list_array = explode(, $num_list) more information at php.net/explode Cesar CF High wrote: Hey all. Another simple, yet baffling for me, question: I have a comma delimited list of numbers; e.g. $num_list = 1,2,3,4 I split the number list to array --

Re: [PHP] count() numerical arrays....

2003-09-09 Thread Brad Pauly
CF High wrote: I split the number list to array -- $num_list_array = split(, $num_list) Any ideas? split uses a regular expression. I think you want to use explode here. $num_list_array = explode(',', $num_list) - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Lost Connection to MySQL server during query

2003-09-09 Thread Marek Kilimajer
Are you using mysql_pconnect or just mysql_connect? Donald Tyler wrote: I have a script that is processing data from a single table and splitting it into smaller normalized tables. The script takes anywhere between 5-10 minutes to complete, and as it runs it constantly outputs a report on its

Re: [PHP] addslashes() || Why the multiple slashes?

2003-09-09 Thread Brad Pauly
CF High wrote: why does PHP add 3 slashes to the following var: $apostrophe = I've got an apostrophe; $slashed = addslashes($apostrophe); echo $slashed; Result: I\\\'ve got an apostrophe. What's up with that -- why not just add a single backslash? Do you have gpc_magic_quotes enabled? -

Re: [PHP] addslashes() || Why the multiple slashes?

2003-09-09 Thread Brad Pauly
Brad Pauly wrote: CF High wrote: why does PHP add 3 slashes to the following var: $apostrophe = I've got an apostrophe; $slashed = addslashes($apostrophe); echo $slashed; Result: I\\\'ve got an apostrophe. What's up with that -- why not just add a single backslash? Do you have

[PHP] PREG-pattern, help needed

2003-09-09 Thread Tobias Talltorp
I need help with a preg-pattern for preg_replace_callback(). I need to match td(+all properties) and replace them with td id=$counter. This is as far as I have come in my code: ?php $html = 'table border=1 id=myTable tr td table border=1 tr td width=20tabell2 cell1/td td width=40tabell2

[PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Bobby Patel
Hello Everyone, I want to emulate session objects (as opposed to variables). I stumbled upon creating multi-dimensional arrays, so I can do this: $name = 'Bob'; $year = '2003'; $HTTP_SESSION_VARS[$user][$year] = 'registered'; which gives $HTTP_SESSION_VARS['Bob']['2003'] = 'registered'; but I

[PHP] Is there an issue using sessions with IE/Mac?

2003-09-09 Thread Matt MacLeod
I've built a log in system which sets the user's id as a session if succesfully logged in. However, a user on IE5/Mac tells me that the site logs her out even though she has entered the correct login details. I have tried using her details on Firebird/Windows and have had no problems. Are

[PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Bobby Patel
Hello Everyone, I want to emulate session objects (as opposed to variables). I stumbled upon creating multi-dimensional arrays, so I can do this: $name = 'Bob'; $year = '2003'; $HTTP_SESSION_VARS[$user][$year] = 'registered'; which gives $HTTP_SESSION_VARS['Bob']['2003'] = 'registered'; but I

Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Tom Rogers
Hi, Tuesday, September 9, 2003, 2:19:28 PM, you wrote: BP Hello Everyone, BP I want to emulate session objects (as opposed to variables). I stumbled BP upon creating multi-dimensional arrays, so I can do this: BP $name = 'Bob'; BP $year = '2003'; BP $HTTP_SESSION_VARS[$user][$year] =

Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Brad Pauly
Bobby Patel wrote: Hello Everyone, I want to emulate session objects (as opposed to variables). I stumbled upon creating multi-dimensional arrays, so I can do this: $name = 'Bob'; $year = '2003'; $HTTP_SESSION_VARS[$user][$year] = 'registered'; which gives $HTTP_SESSION_VARS['Bob']['2003'] =

Re: [PHP] PREG-pattern, help needed

2003-09-09 Thread Armand Turpel
Hi, What about: $string = preg_replace(/(td)[^]*/,\\1 id={$counter},$string); atur - Original Message - From: Tobias Talltorp [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 6:35 PM Subject: [PHP] PREG-pattern, help needed I need help with a preg-pattern

Re: [PHP] Dynamic Multi Dimensional Arrays

2003-09-09 Thread Bobby Patel
Brad Pauly wrote: $HTTP_SESSION_VARS[$user]['options'] = $options; yes this is what I wanted. You could then add elements to this array like this: $HTTP_SESSION_VARS[$user]['options']['registered'] = 1; Is that what you are trying to do? - Brad I will try this out and see what happens. Thank

Re: [PHP] Is there an issue using sessions with IE/Mac?

2003-09-09 Thread Richard Baskett
on 9/9/03 9:33 AM, Matt MacLeod at [EMAIL PROTECTED] wrote: I've built a log in system which sets the user's id as a session if succesfully logged in. However, a user on IE5/Mac tells me that the site logs her out even though she has entered the correct login details. I have tried using her

[PHP] Re: PHP and Apache

2003-09-09 Thread jsWalter
I have a complete setup and testing procedure for windows class machines. Hope it can help you. www.torres.ws/dev/php Walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Mark McCulligh
I am trying to ./configure PHP 4.3.3 on a system that already has MySQL 4.0.14 on it. In the configure line --with-mysql=/path/to/mysql were is the path for RPM versions of MySQL. I have search the computer but it looks like the mysql files are all over the place. Database files are in

Re: [PHP] Is there an issue using sessions with IE/Mac?

2003-09-09 Thread Lowell Allen
I've built a log in system which sets the user's id as a session if succesfully logged in. However, a user on IE5/Mac tells me that the site logs her out even though she has entered the correct login details. I have tried using her details on Firebird/Windows and have had no problems. Are

Re: [PHP] Is there an issue using sessions with IE/Mac?

2003-09-09 Thread Richard Baskett
on 9/9/03 11:46 AM, Lowell Allen at [EMAIL PROTECTED] wrote: I've built a log in system which sets the user's id as a session if succesfully logged in. However, a user on IE5/Mac tells me that the site logs her out even though she has entered the correct login details. I have tried using her

Re: [PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Ray Hunter
In the configure line --with-mysql=/path/to/mysql were is the path for RPM versions of MySQL. I have search the computer but it looks like the mysql files are all over the place. Database files are in /var/lib/mysql BIN files are in /usr/bin/, etc... use --with-mysql or --with-mysql-sock

Re: [PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Mark McCulligh
Thanks, If you just use --with-mysql it will use PHP's built-in mysql client lib 3.23.49, but I have MySQL 4.0.14 installed. Won't this make a difference. I want to make sure PHP is compiled this the right libraries for MySQL. Mark. Ray Hunter [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Brainiacs please help! PostgreSQL and foreach() problem

2003-09-09 Thread Peter Sharpe
I have a database full of names. each name could be linked to any number of sub-names, each sub-name could be linked to any number of sub-sub-names, to infinity (unlikely but possible). I need to iterate through this nest of names starting with a main name; lets call the main name Peter. Peter

Re: [PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Ray Hunter
mark, from what i understand of the configuration script it will go out and look in various locations for the mysql libraries. If you want to specify something then I would suggest using the --with-mysql-sock and pass the socket file. I like to use the socket file and have always had great

Re: [PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Mark McCulligh
Ok, when I compiled with --with-mysql only, phpinfo() said: Client API version: 3.23.49 I will recompile PHP with --with-mysql-sock instead. I want to make sure PHP is using the right MySQL Client version. Thanks, Mark. Ray Hunter [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Brad Pauly
Mark McCulligh wrote: when I compiled with --with-mysql only, phpinfo() said: Client API version: 3.23.49 I will recompile PHP with --with-mysql-sock instead. I don't think this will change the client version. It is my understanding that this will just tell the client to look in a specific place

[PHP] Help with Displaying RSS feed links

2003-09-09 Thread Frank Miller
Hello all, I'm working on an entry page where I would like to show some of the current headlines from technology websites. I've been following and pretty much understand the article on devshed http://www.devshed.com/Server_Side/PHP/PHPRDF/page1.html Plugging RDF content into your Website. From

Re: [PHP] Help with Displaying RSS feed links

2003-09-09 Thread Alister
On Tue, 9 Sep 2003 15:35:48 -0500 Frank Miller [EMAIL PROTECTED] wrote: Hello all, I'm working on an entry page where I would like to show some of the current headlines from technology websites. I've been following and pretty much understand the article on devshed

[PHP] Some xml to array

2003-09-09 Thread Bc. Radek Kreja
Hello, I have following xml file: ?xml version=1.0 encoding=UTF-8 standalone=no? epp xmlns=urn:ietf:params:xml:ns:epp-1.0 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd response result code=1000 msgHello, how are you?/msg

Re: [PHP] Help with Displaying RSS feed links

2003-09-09 Thread Matt Matijevich
could you use this for your loop? $sizeArr = sizeof($items); for ($row=0; $row$sizeArr; $row++) { echo trtda href= . $items[$row]['link'] . . $items[$row]['title'] . /abr . $items[$row]['description'] . /td/tr; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] str_replace question

2003-09-09 Thread Al
I've got a simple expression quesxx where xx is a number from 0 to 99. I want to replace it with simply ques. That is, I want to remove the numbers. Will str_replace do it, or must I use ereg_replace? I haven't figured out from reading the php manual on regular expression how to do this

RE: [PHP] str_replace question

2003-09-09 Thread Wouter van Vliet
$String = ques99; preg_replace('/*\[a-z]+)[0-9]+(\)/', '$1$2', $String); will most likeley do. Btw, does anybody know why preg_replace is adviced over ereg_replace in the manual? .. and if ereg_replace doesn't have any advantages over preg_replace, couldn't this function get depricated? -

[PHP] maillist php manger/interface

2003-09-09 Thread Boulytchev, Vasiliy
Ladies and Gents, I need the following: 1. A online place for people to subscribe to mailing list. 2. A online place to unsibscribe from a mailing list. 3. Several admins for different mailing lists. 4. mysql integration. What do you guys use? Any free software out there? I have

RE: [PHP] countries,states and cities

2003-09-09 Thread Chris W. Parker
Augusto Cesar Castoldi mailto:[EMAIL PROTECTED] on Monday, September 08, 2003 4:16 PM said: where can I download a database with all countries and states and cities? I don't know but I would also be interested in this!! like: http://www.datingplace.com/servlet/NewRegistration What? No

RE: [PHP] countries,states and cities

2003-09-09 Thread Chris Shiflett
where can I download a database with all countries and states and cities? http://www.maxmind.com/ That's a good open source one with APIs for just about everything, including an Apache module that you can use for real-time queries even under significant load. Hope that helps. Chris =

[PHP] A complete EXIF extension?

2003-09-09 Thread Greg Militello
Hey all, I've been dealing with EXIF data in images for a while now. Reading in PHP is available, however editing, or creating EXIF entries doesn't exist. I am going to work on a set of classes to interphase with libexif a C package at: http://sourceforge.net/projects/libexif/ The

Re: [PHP] countries,states and cities

2003-09-09 Thread Kevin Stone
Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Augusto Cesar Castoldi mailto:[EMAIL PROTECTED] on Monday, September 08, 2003 4:16 PM said: where can I download a database with all countries and states and cities? I don't know but I would also be interested in

[PHP] divide

2003-09-09 Thread phpu
Hello, I'm new in php and i've got allready a problem. I wanna divide 2 numbers and the result to be an integer separated by comma. For example: $number1=1000; $number2=17; $result=$number1 / $number2; In this case the result is 588235.29411764 And I wanna the result to be like this

Re: [PHP] divide

2003-09-09 Thread phpu
yes but if the result is a number like this 34056983 i wanna display this number like this 34,056,983 Please help me with this one - Original Message - From: Nathan Taylor To: phpu Sent: Wednesday, September 10, 2003 2:49 AM Subject: Re: [PHP] divide Check out

Re: [PHP] divide

2003-09-09 Thread phpu
Sorry I've got it. Thanks a lot - Original Message - From: Nathan Taylor To: phpu Sent: Wednesday, September 10, 2003 2:59 AM Subject: Re: [PHP] divide Check out number_format() like I said. - Original Message - From: phpu To: Nathan Taylor Cc:

[PHP] argg - new install of php 4.3.3 on iis/w2k - post variables are empty

2003-09-09 Thread Tom H
Hi, I wonder if anyone has got a fix or explanation for this; I;ve just just installed php 4.3.3 on a new w2k server and uploaded a well tested php application to the new site. basically the problem is that the $HTTP_POST_VARS, $_POST variables are empty, its probably a config problem somewhere,

Re: [PHP] divide

2003-09-09 Thread Gabriel Guzman
On Tuesday 09 September 2003 05:04 pm, phpu wrote: yes but if the result is a number like this 34056983 i wanna display this number like this 34,056,983 Please help me with this one that's exactly what number_format() does... from the example on www.php.net/number_format : ?php $number =

[PHP] Multiple Forms

2003-09-09 Thread Dan Anderson
Is it possible to tell a browser to send form a to URL a and form b to URL b? (i.e. post to two different URLS) Thanks, -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] str_replace question

2003-09-09 Thread Robert Cummings
I think (and don't quote me on this, and feel free to correct me :) that preg_replace() is fast being based on perl regular expressions. ereg_replace() however, follows the POSIX standard for regular expression matching. Cheers, Rob. On Tue, 2003-09-09 at 17:36, Wouter van Vliet wrote: $String

Re: [PHP] Multiple Forms

2003-09-09 Thread Robert Cummings
You can have two different forms posted to two different URLs. Not sure if you can in a single submit post two different forms to two different URLs except maybe with Javascript. Cheers, Rob. On Tue, 2003-09-09 at 20:11, Dan Anderson wrote: Is it possible to tell a browser to send form a to URL

[PHP] Explode and multple lines

2003-09-09 Thread Sweet T
Hello, I am using php to explode the lines of a text file (delimited by a comma), break it into an array, and echo only one of the array elements. I have accomplished all of this, but it only echos the text for one line. How do I get php to scan multiple lines? I tried to introduce a line

[PHP] Re: maillist php manger/interface

2003-09-09 Thread zavaboy
I have been thinking on developing one for some time now. I can make one for free for you, I also have a friend that wants one too. It may take me a week or two, when do you need it? If you're willing to wait 3 weeks max, I can make it for free. I can even put it in your site if you want. I'm

[PHP] Re: Explode and multple lines

2003-09-09 Thread David
Sweet T wrote: Hello, I am using php to explode the lines of a text file (delimited by a comma), break it into an array, and echo only one of the array elements. I have accomplished all of this, but it only echos the text for one line. How do I get php to scan multiple lines? I tried to

Re: [PHP] Some xml to array

2003-09-09 Thread Raditha Dissanayake
Hi, Looks like a crash course is XML is in order :-) I suggest you take a look at the xml parser functions in the manual. to start off with. Then there are some good tutorials at w3schools.com all the best Bc. Radek Kreja wrote: Hello, I have following xml file: ?xml version=1.0

Re: [PHP] Encrypt/Serialize Source Code for Sale

2003-09-09 Thread Jason Sheets
Take a look at Turck MMCache and Zend Encoder, both will require your user to install a free Loader. Turck MMCache is free, Zend Encoder is not, either will make your applications run faster. You should workout good licensing deals with your clients because with enough motivation and time

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Curt Zirzow
* Thus wrote micro brew ([EMAIL PROTECTED]): Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session

[PHP] SID set or unset?

2003-09-09 Thread Jean-Christian IMbeault
Is the PHP constant SID always defined? I have found conflicting answer in the documentation. One page of the docs says it is always defined while another says it is defined only if the right cookie hasn't been passed to the server. Also how can I check if the SID is set or not? I have tried

Re: [PHP] Lost Connection to MySQL server during query

2003-09-09 Thread Curt Zirzow
* Thus wrote Donald Tyler ([EMAIL PROTECTED]): The script seems to run fine the first time I run it, but with subsequent runs (To see if it incorrectly creates duplicates of records etc), after a couple of minutes the script ends with an error message saying Lost connection to MySQL server

Re: [PHP] Setting execution time for a loop

2003-09-09 Thread Curt Zirzow
* Thus wrote zavaboy ([EMAIL PROTECTED]): How do I set execution time for a for() loop? Like I have a loop stop once it finds 3 things, but what happens when there are only 2 things? It keeps looking for 30 seconds then shows this error: Fatal error: Maximum execution time of 30 seconds

[PHP] gforge

2003-09-09 Thread electroteque
anyone managed to get gforge working with mysql at all ? sorry if this might be off topic but i found the link off this list, let me know thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] count() numerical arrays....

2003-09-09 Thread Curt Zirzow
* Thus wrote CF High ([EMAIL PROTECTED]): Hey all. Another simple, yet baffling for me, question: I have a comma delimited list of numbers; e.g. $num_list = 1,2,3,4 I split the number list to array -- $num_list_array = split(, $num_list) I then count the number of elements -- $count =

Re: [PHP] Brainiacs please help! PostgreSQL and foreach() problem

2003-09-09 Thread Raditha Dissanayake
Hi, It's not very clear what you are trying to do. From what i understand from your mail, i think a recursive call to select_names would be the ideal solution. In these scenario you call select_names() once and from within the function you call select_name() again for the each of the matches

Re: [PHP] ereg_replace vs. preg_replace [was: str_replace question]

2003-09-09 Thread Curt Zirzow
* Thus wrote Wouter van Vliet ([EMAIL PROTECTED]): Btw, does anybody know why preg_replace is adviced over ereg_replace in the manual? .. and if ereg_replace doesn't have any advantages over preg_replace, couldn't this function get depricated? I've done some testing with ereg and preg

Re: [PHP] SID set or unset?

2003-09-09 Thread Curt Zirzow
* Thus wrote Jean-Christian IMbeault ([EMAIL PROTECTED]): Is the PHP constant SID always defined? I have found conflicting answer in the documentation. One page of the docs says it is always defined while another says it is defined only if the right cookie hasn't been passed to the server.

[PHP] Re: yahoo messeger scrpt php

2003-09-09 Thread RoyD
Roy Daniel , ST , IT Application Support Development EngineerPT BERCA COMPUTEL [EMAIL PROTECTED]// [EMAIL PROTECTED] ICQ : # 103507581 / Handphone : +62-8161192832 / yahoo_messeger : roy_daniel91

  1   2   >