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

2003-09-09 Thread Adrian Teasdale
There is also a free obfuscator at SourceGuardian: http://www.sourceguardian.com/downloads/sg20.zip The encryption tools to look at are: Zend encoder SourceGuardian Pro Turck MMCache Ioncube Doing a google search for any of the above will bring up enough for you to work with > -Original M

Re: [PHP] Re: yahoo messeger scrpt php

2003-09-09 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > [...snip blank lines...] > > Roy Daniel , ST , IT Application Support & Development EngineerPT > BERCA COMPUTEL > > > [EMAIL PROTECTED]// [EMAIL PROTECTED] > What is all this in the beginning of your email? > [...snip more un

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > * 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 me

Re: [PHP] Try/Catch

2003-09-09 Thread Curt Zirzow
* Thus wrote -- ([EMAIL PROTECTED]): > 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 > ret

[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

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 serve

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 fu

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 o

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

[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] 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 exc

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 ser

[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 t

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 s

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 they

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 Krejča wrote: Hello, I have following xml file: http://www.w3.org/2001/XML

[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 introdu

[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 goin

[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 coun

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

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

[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] 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 : that's all the

[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, b

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: [E

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 number_forma

[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 588,23

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 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 intereste

[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 packa

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 = B

RE: [PHP] countries,states and cities

2003-09-09 Thread Chris W. Parker
Augusto Cesar Castoldi 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

[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 revie

RE: [PHP] str_replace question

2003-09-09 Thread Wouter van Vliet
$String = ""; 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? -> -O

[PHP] str_replace question

2003-09-09 Thread Al
I've got a simple expression " where "xx" is a number from 0 to 99. I want to replace it with simply . 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 simple thi

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 "" . $items[$row]['title'] . "" . $items[$row]['description'] . ""; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Some xml to array

2003-09-09 Thread Bc. Radek Krejča
Hello, I have following xml file: http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> Hello, how are you? Radek Krejca Radek Krejca Zizkova 226/3 Ceske Budejovice 370 01 cz [EMAIL PROTECTED] I can make following assoc.

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 > http://www.devsh

[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 wha

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

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 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 success

[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 cou

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

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-soc

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 usi

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. > >

[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 /var/lib/m

[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

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 he

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 y

Re: [PHP] PREG-pattern, help needed

2003-09-09 Thread Armand Turpel
Hi, What about: $string = preg_replace("/(]*/","\\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-pat

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'] = 'r

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] = 'reg

[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 w

[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 there

[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 w

[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 and replace them with . This is as far as I have come in my code: tabell2 cell1 tabell2 cell2 första cell i rad två Detta är den sista '; $counter = 0; function bla($matches) { global $counter; $counter++; re

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 gpc_magic_

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? - Br

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] 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] 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 -- $num_list_

[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 without

[PHP] Lost Connection to MySQL server during query

2003-09-09 Thread Donald Tyler
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 progress. The script seems to run fine the first time I run it, but w

[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 $co

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 http://richard.fairthorne.is-a-geek.com/utils_obfuscate.p

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: http://www.php.net/unsub.p

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 http://www.somedomain.com/somepage.php'; var $exitP

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

2003-09-09 Thread André Cupini
Save all programers! (sorry my "brazilian english") I have a simple doubt, but i´m tired because i not found answers... Why, inside a class, declarare $this variables in a format "var $varname;" before of a constructor? And, please, what intend the "&" signal before functions name? I know the ar

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] 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] 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] 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] 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 tha

[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 Li

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] 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 det

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 fir

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 The results 12.2345 12.235 12.23

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); http://php.net/manual/

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 Mai

[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 s

[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

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 seco

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

[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 o

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 = " forum\n$"."ForumId=".$tabletofind.";\n"; > > $stringtowrite .= > "$"."ForumActive='1';\n$"."ForumName='".$sportname."';\n"; > > $stringtowrite .= "$".

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 la

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] 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 install

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 exce

[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 fiel

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 th

[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] 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

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 kin

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] -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 safe_mo

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 me

[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') bu

  1   2   >