[PHP] Re: Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
I have tried to figure it out how to use it with those, but I can not find a solution. - Best Of Times /Peter "Sebastian Mendel" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Peter Lauri wrote: > > Best groupmember, > > > > I have an multidim array that looks something like th

Re: [PHP] PHP Supremacy...

2004-11-17 Thread Jeffery Fernandez
Octavian Rasnita wrote: What do you mean by "perl discontinued"? Perl 5 is continuu updated and this year I have seen perl 5.8.1, 5.8.3, 5.8.4, 5.8.5 is almost done. That was meant to be a JOKE lol Perl 6 is planned to run in a precompiled code (like Java programs) in an environment that will al

Re: [PHP] PHP Supremacy...

2004-11-17 Thread Octavian Rasnita
What do you mean by "perl discontinued"? Perl 5 is continuu updated and this year I have seen perl 5.8.1, 5.8.3, 5.8.4, 5.8.5 is almost done. Perl 6 is planned to run in a precompiled code (like Java programs) in an environment that will also be able to run programs created in other programming l

Re: [PHP] PHP 4 to 5 class issues involving static methods and $this

2004-11-17 Thread Klaus Reimer
Chris wrote: How can I rewrite my class for PHP 5 to emulate the functionality I had in PHP 4 in an error free way? Have you tried this: function format_string($string) { // format the string... $result = string; if (isset($this)) $this->elements[] = $result; return $result; } In

[PHP] Subscription Request

2004-11-17 Thread sujis sakethram
Hello sir, Previously i was subscribed to this list with email id [EMAIL PROTECTED] but it is geniune account that receives all important mails i mean from companies and personal. So, please subscribe me to this mail-id. Thanking you sir, yours

[PHP] Re: What should I name my base class?

2004-11-17 Thread Greg Beaver
Brent Clements wrote: I know this probably doesn't matter, but what is the pretty standard naming convention for base class names? Should I name it "base.class", "main.class", or the name of my application, "application.class"? What does everyone else use? Avoid base classes like the plague. They

Re: [PHP] mp3 cropping

2004-11-17 Thread Ryan King
On Nov 17, 2004, at 10:05 PM, Robby Russell wrote: On Wed, 2004-11-17 at 21:53 -0600, Ryan King wrote: Anyone out there know of a tool or technique for cropping an MP3 file (e.g., cutting the first 30 sec out into another file)? PHP would be nice, but not necessary. TIA, ryan a php question would b

Re: [PHP] mp3 cropping

2004-11-17 Thread Ryan King
On Nov 17, 2004, at 10:05 PM, Robby Russell wrote: On Wed, 2004-11-17 at 21:53 -0600, Ryan King wrote: Anyone out there know of a tool or technique for cropping an MP3 file (e.g., cutting the first 30 sec out into another file)? PHP would be nice, but not necessary. TIA, ryan a php question would b

Re: [PHP] debug_backtrace bug?

2004-11-17 Thread Greg Beaver
Marek Kilimajer wrote: The 'class' index reflects what __CLASS__ constant would show. Bug report: http://bugs.php.net/22960 Status: It works as expected and intended. right, but this states that __CLASS__ is bar inside bar::b() and is foo inside foo::b(). In this case, debug_backtrace() is report

Re: [PHP] mp3 cropping

2004-11-17 Thread Robby Russell
On Wed, 2004-11-17 at 21:53 -0600, Ryan King wrote: > Anyone out there know of a tool or technique for cropping an MP3 file > (e.g., cutting the first 30 sec out into another file)? PHP would be > nice, but not necessary. > > TIA, > ryan > a php question would be nice, but not necessary. :-p

RE: [PHP] How do I get referer in php?

2004-11-17 Thread Zareef Ahmed
Hi use Print $_SERVER['HTTP_REFRER']; But some time browser do not send it properly so please check it with another browser if fails. Zareef Ahmed -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 3:39 AM Cc: [EMAIL PROTECTED] Subje

[PHP] mp3 cropping

2004-11-17 Thread Ryan King
Anyone out there know of a tool or technique for cropping an MP3 file (e.g., cutting the first 30 sec out into another file)? PHP would be nice, but not necessary. TIA, ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to parse a string parse with ereg

2004-11-17 Thread Jason Wong
On Thursday 18 November 2004 06:51, [EMAIL PROTECTED] wrote: > Well this work's fine in the case the user input is correct :-) > > But it's not required to proof in the case I would assume that a > user input is correct. > > To explode with the device as line break to allocate an array mem > lead'

Re: [PHP] PHP Supremacy...

2004-11-17 Thread Jason Wong
On Thursday 18 November 2004 06:55, Matthew Sims wrote: > If Microsoft one day decides to stop work on .NET or goes out of business, > well then that's just too bad. It's proprietary, belongs only to Microsoft > and no one has access to the source code to continue its work. If the demand is there

[PHP] How can i compile a separate module manually

2004-11-17 Thread 成應元
I downloaded php-4.3.9.tar.gz and compiled it in FreeBSD 5.2, the steps I followed as below: 1) tar zxvf php-4.3.9.tar.gz 2) cd php-4.3.9 3) ./configure --with-ftp 4) cd ext 5) cc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I. -I.. -I../Zend -I../main -I ../TSRM -c -o ftp.o ftp/php_ftp.c 6) cc -shar

Re: [PHP] Question regarding constructors and child classes

2004-11-17 Thread Jordi Canals
Hi, Comment inline On Wed, 17 Nov 2004 20:19:01 -0600, Brent Clements <[EMAIL PROTECTED]> wrote: > > > class foo { > > function foo () { > > echo "constructed!"; > > } > > } > > class childFoo extends foo { > > function childFoo() { > /

Re: [PHP] PHP Supremacy...

2004-11-17 Thread Jordi Canals
On Wed, 17 Nov 2004 16:17:44 -0600, Pedro Irán Méndez Pérez <[EMAIL PROTECTED]> wrote: > Hello my friends, I need your help in convince to my boss in adopt php for > development of a tool for intranet in my office, he told me that php is open > source and we don´t know if will disappear in a year,

[PHP] Question regarding constructors and child classes

2004-11-17 Thread Brent Clements
If I have the following: Is there any way to run both the parent and child constructor? The reason I'm asking this is because in my parent class, the constructor creates the database connection, in the child constructor it set's up all variables for the child class. If I

[PHP] Segmentation Fault

2004-11-17 Thread Jerry Swanson
I have index.php file. On one server it executes with no problem. On another server it gives me Segmentation Fault error. 4.3.2 - Segmentation Fault 4.3.4 - no problem What can cause such problem? This is simple login page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] What should I name my base class?

2004-11-17 Thread John Holmes
Brent Clements wrote: I know this probably doesn't matter, but what is the pretty standard naming convention for base class names? Should I name it "base.class", "main.class", or the name of my application, "application.class"? Application.class.php If you name it application.class, it'll more than

Re: [PHP] Auto Class loading

2004-11-17 Thread Jordi Canals
On Wed, 17 Nov 2004 19:17:13 -0200, Bruno B B Magalhães <[EMAIL PROTECTED]> wrote: > Continuing the classes questions... > > I have a class loader called 'load_core_class($class=''), but if $class > equals to all I would like to load all classes in the core directory, > include then AND start the

[PHP] What should I name my base class?

2004-11-17 Thread Brent Clements
I know this probably doesn't matter, but what is the pretty standard naming convention for base class names? Should I name it "base.class", "main.class", or the name of my application, "application.class"? What does everyone else use? If I went by the pear standards, they use a ba

[PHP] database adapters

2004-11-17 Thread Justin French
Hi, Just upgraded to PHP5 and MySQL 4.1, so I'm keen to try out the mysqli_* functions, SQLite, etc etc. What I'm trying to decide here is if I should go with PHP's dbx module, or accept the fact that it's going to be quite rare for me to switch databases once an application is live, and just w

Re: [PHP] Re: PHP Supremacy...

2004-11-17 Thread Brian Dunning
what arguments can I show for convince him to try PHP? http://www.php.net/usage.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pear integration

2004-11-17 Thread Rayan Lahoud
Hy, i installed the pear manager on my php5 on windows, bur i am having some problems with running files that use the pecl packages. I am having this error: Warning: main(Inline_C.php) [function.main]: failed to open stream: No such file or directory in c:\wamp\www\test.php on line 3 Fatal e

[PHP] IBM Universe + PHP

2004-11-17 Thread daniel
Hi there, I am coming here as a last resort (yes I have thoroughly googled) . Work has purchased aad space sales application that uses a U2 low level database. I am having extreme issues trying toget PHP on unix to be able to talk to this database or sync it with mysql. We have the I386 versionon

[PHP] Re: PHP Supremacy...

2004-11-17 Thread Matthew Weier O'Phinney
* Pedro irán méndez pérez <[EMAIL PROTECTED]>: > Hello my friends, I need your help in convince to my boss in adopt php > for development of a tool for intranet in my office, he told me that > php is open source and we don´t know if will disappear in a year, or > if php have a support like .net. >

RE: [PHP] PHP Supremacy...

2004-11-17 Thread Mike
I was really sad to see Perl discontinued so many years ago... damned open source community not taking care of it's own. -Original Message- From: Pedro Irán Méndez Pérez [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 5:18 PM To: Lista de Php-General Subject: [PHP] PHP Suprem

Re: [PHP] debug_backtrace bug?

2004-11-17 Thread Marek Kilimajer
The 'class' index reflects what __CLASS__ constant would show. Bug report: http://bugs.php.net/22960 Status: It works as expected and intended. Thomas Peri wrote: I wanted to run this past the list before submitting a bug report. (I've searched the bugs and haven't found anything relevant to my p

[PHP] Re: PHP Supremacy...

2004-11-17 Thread Chris
On Wed, 17 Nov 2004 16:17:44 -0600, Pedro irÃn mÃndez pÃrez <[EMAIL PROTECTED]> wrote: Hello my friends, I need your help in convince to my boss in adopt php for development of a tool for intranet in my office, he told me that php is open source and we donÂt know if will disappear in a year,

[PHP] Re: PHP 4 to 5 class issues involving static methods and $this

2004-11-17 Thread Greg Beaver
Chris wrote: I have a class where I need to be able to use the methods as static methods as well as using them inside an initialized class. Here's an example of what I need to do: class my_class { var $elements = array(); // holds all of my elements function format_string($string) {

[PHP] Re: debug_backtrace bug?

2004-11-17 Thread Greg Beaver
Thomas Peri wrote: I wanted to run this past the list before submitting a bug report. (I've searched the bugs and haven't found anything relevant to my problem.) The problem is that when s method of one class is overridden in a subclass, debug_backtrace() doesn't distinguish between the two me

Re: [PHP] How do I get referer in php?

2004-11-17 Thread John Holmes
John Nichel wrote: M. Sokolewicz wrote: I'm sure he meant echo '',print_r($_SERVER,1),''; ---^---^ then... ;) hadn't noticed that param... I feel ashamed... :$ Didn't notice that those were commas and not periods either, eh? ;) Didn't notice the result is the same either

RE: [PHP] PHP Supremacy...

2004-11-17 Thread Vail, Warren
Because among 17 million installed domains, and because the Open Source is "open", someone in those 17 million domains will keep it going. http://www.php.net/usage.php Some people never get it, you confuse them with too many facts, hope your manager has an open mind. Warren Vail > -Origina

Re: [PHP] Auto Class loading

2004-11-17 Thread Marek Kilimajer
Bruno B B MagalhÃes wrote: Continuing the classes questions... I have a class loader called 'load_core_class($class=''), but if $class equals to all I would like to load all classes in the core directory, include then AND start then this way: $this->$loadedclassname = new $loadedclassname; Is it

Re: [PHP] How do I get referer in php?

2004-11-17 Thread John Nichel
M. Sokolewicz wrote: I'm sure he meant echo '',print_r($_SERVER,1),''; ---^---^ then... ;) hadn't noticed that param... I feel ashamed... :$ Didn't notice that those were commas and not periods either, eh? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PR

[PHP] PHP 4 to 5 class issues involving static methods and $this

2004-11-17 Thread Chris
I have a class where I need to be able to use the methods as static methods as well as using them inside an initialized class. Here's an example of what I need to do: class my_class { var $elements = array(); // holds all of my elements function format_string($string) {

[PHP] fwrite() seems to destroy Special Characters

2004-11-17 Thread Dennis Lahay
I'm having trouble with writing special charcaters to a text file. The characters are your run-of-the-mill accented characters. Passing them back and forth in the database and displaying them on screen is NOT a problem. code snippet: $row = mysql_fetch_array($query_result, MYSQL_ASSOC); foreach

Re: [PHP] how to parse a string parse with ereg

2004-11-17 Thread Mark-Walter
Hi, > I have to admit I'm not following you. My suggestion that you use explode() > was based on the premise that you have a bunch of lines: > > ... > xxx.x.x.x   0.0.0.0 255.255.255.255 UH 0      0        0 ppp0 > 192.168.0.0 0.0.0.0 255.255.255.0 U    0      0        0 eth1 > 0.0.0.0     xxx.x

Re: [PHP] PHP Supremacy...

2004-11-17 Thread Matthew Sims
> Hello my friends, I need your help in convince to my boss in adopt php for > development of a tool for intranet in my office, he told me that php is > open > source and we don´t know if will disappear in a year, or if php have a > support like .net. > > what arguments can I show for convince him

Re: [PHP] PHP Supremacy...

2004-11-17 Thread Robby Russell
On Wed, 2004-11-17 at 16:17 -0600, Pedro IrÃn MÃndez PÃrez wrote: > Hello my friends, I need your help in convince to my boss in adopt php for > development of a tool for intranet in my office, he told me that php is open > source and we donÂt know if will disappear in a year, or if php have a > su

Re: [PHP] How to assure that php.ini is being obeyed?

2004-11-17 Thread Mailit, LLC
Yes, I restarted httpd and ran phpinfo() to check if the parameter values were being recognized by php. Two different Linux servers respond differently to the same change in php.ini. That is why I suspect that my server has some basic setting that overrides everything that I do for php. I am ask

[PHP] PHP Supremacy...

2004-11-17 Thread Pedro Irán Méndez Pérez
Hello my friends, I need your help in convince to my boss in adopt php for development of a tool for intranet in my office, he told me that php is open source and we don´t know if will disappear in a year, or if php have a support like .net. what arguments can I show for convince him to try PHP?

Re: [PHP] How do I get referer in php?

2004-11-17 Thread M. Sokolewicz
John Holmes wrote: M. Sokolewicz wrote: Chris W. Parker wrote: echo "",print_r($_SERVER),""; why are you echoing the result of print_r ?! The result is a boolean true or false. the actual output ON SCREEN is done from WITHIN the function automatically. Echoing the result is useless, and even m

RE: [PHP] How do I get referer in php?

2004-11-17 Thread Chris W. Parker
John Nichel on Wednesday, November 17, 2004 2:01 PM said: > M. Sokolewicz wrote: >>> I'm sure he meant >>> >>> echo '',print_r($_SERVER,1),''; > ---^---^ > >>> then... ;) >>> >> hadn't noticed that param... I feel ashamed... :$ >> >

Re: [PHP] How to assure that php.ini is being obeyed?

2004-11-17 Thread Mailit, LLC
I set display_errors, startup_errors, track_errors On in php.ini, restarted Apache and reran an upload session. The only error message displayed upon attempt to upload a large file is "This document contains no data" The specified log file is empty. I am using Apache 2.0, but could not find Limit

[PHP] Auto Class loading

2004-11-17 Thread Bruno B B Magalhães
Continuing the classes questions... I have a class loader called 'load_core_class($class=''), but if $class equals to all I would like to load all classes in the core directory, include then AND start then this way: $this->$loadedclassname = new $loadedclassname; Is it possible? Regards, Bruno B

Re: [PHP] How do I get referer in php?

2004-11-17 Thread John Holmes
M. Sokolewicz wrote: Chris W. Parker wrote: echo "",print_r($_SERVER),""; why are you echoing the result of print_r ?! The result is a boolean true or false. the actual output ON SCREEN is done from WITHIN the function automatically. Echoing the result is useless, and even more, it adds to con

Re: [PHP] How do I get referer in php?

2004-11-17 Thread M. Sokolewicz
Chris W. Parker wrote: Brent Clements on Wednesday, November 17, 2004 11:55 AM said: Let's say I have a page at another site that links to a php script on my server. Is there anyway to get the referrer to the php script using php? Yes, and more. echo "",print_r(

Re: [PHP] How do I get referer in php?

2004-11-17 Thread Robby Russell
On Wed, 2004-11-17 at 13:54 -0600, Brent Clements wrote: > Let's say I have a page at another site that links to a php script on my > server. Is there anyway to get the referrer to the php script using php? > > Look in the $_SERVER array. -Robby -- /*** *

RE: [PHP] How do I get referer in php?

2004-11-17 Thread Chris W. Parker
Brent Clements on Wednesday, November 17, 2004 11:55 AM said: > Let's say I have a page at another site that links to a php script on > my server. Is there anyway to get the referrer to the php script > using php? Yes, and more. ",print_r($_SERVER),""; -- PHP Gen

Re: [PHP] How do I get referer in php?

2004-11-17 Thread Randy Rinehart
Yes, you should be able to use $_SERVER['HTTP_REFERER']; -Randy Rinehart - Original Message - From: "Brent Clements" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 17, 2004 1:54 PM Subject: [PHP] How do I get referer in php? > Let's say I have a page at an

[PHP] How do I get referer in php?

2004-11-17 Thread Brent Clements
Let's say I have a page at another site that links to a php script on my server. Is there anyway to get the referrer to the php script using php? Thanks, Brent

RE: [PHP] How to assure that php.ini is being obeyed?

2004-11-17 Thread Jay Blanchard
[snip] Did anybody have this experience before? [/snip] Just out of curiosity, did you restart Apache after you made the changes to the php.ini? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] > You should get yourself a *real* mail client :) Cut Jay some slack. There's not too many clients available out there for the TSR-80. ;) [/snip] Oh great! Now my secret is out! What am I going to do when fossil fuels become a thing of the past? -- PHP General Mailing List (http://www.p

[PHP] Re: Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
I have tried to figure it out how to use it with those, but I can not find a solution. - Best Of Times /Peter "Sebastian Mendel" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Peter Lauri wrote: > > Best groupmember, > > > > I have an multidim array that looks something like th

[PHP] debug_backtrace bug?

2004-11-17 Thread Thomas Peri
I wanted to run this past the list before submitting a bug report. (I've searched the bugs and haven't found anything relevant to my problem.) The problem is that when s method of one class is overridden in a subclass, debug_backtrace() doesn't distinguish between the two methods. For exampl

Re: [PHP] How to assure that php.ini is being obeyed?

2004-11-17 Thread Jason Wong
On Thursday 18 November 2004 01:32, Mailit, LLC wrote: > My problem: To upload large files. > Although /etc/php.ini on my Linux server specifies > upload_max_filesize = 8M > post_max_size = 8M > only files smaller than 512 kB are uploaded, while larger files fail > with message > "File contains no

[PHP] Re: How to assure that php.ini is being obeyed?

2004-11-17 Thread M. Sokolewicz
Sebastian Mendel wrote: Llc Mailit wrote: My problem: To upload large files. Although /etc/php.ini on my Linux server specifies upload_max_filesize = 8M post_max_size = 8M only files smaller than 512 kB are uploaded, while larger files fail with message "File contains no data" Everything happens a

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread John Nichel
Jason Wong wrote: On Thursday 18 November 2004 00:45, Jay Blanchard wrote: Yeah, I know. I hit reply-to-all and got that. Force of habit. You should get yourself a *real* mail client :) Cut Jay some slack. There's not too many clients available out there for the TSR-80. ;) -- John C. Nichel Üb

[PHP] Re: How to assure that php.ini is being obeyed?

2004-11-17 Thread Sebastian Mendel
Llc Mailit wrote: My problem: To upload large files. Although /etc/php.ini on my Linux server specifies upload_max_filesize = 8M post_max_size = 8M only files smaller than 512 kB are uploaded, while larger files fail with message "File contains no data" Everything happens as if php.ini were being

[PHP] How to assure that php.ini is being obeyed?

2004-11-17 Thread Mailit, LLC
My problem: To upload large files. Although /etc/php.ini on my Linux server specifies upload_max_filesize = 8M post_max_size = 8M only files smaller than 512 kB are uploaded, while larger files fail with message "File contains no data" Everything happens as if php.ini were being ignored, although

[PHP] Re: Array unset

2004-11-17 Thread Greg Beaver
Bruno b b magalhães wrote: So, the question, how resort the numeric values to 1,2,3,4? http://www.php.net/array_values Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jason Wong
On Thursday 18 November 2004 00:45, Jay Blanchard wrote: > Yeah, I know. I hit reply-to-all and got that. Force of habit. You should get yourself a *real* mail client :) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * In

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jason Wong
On Wednesday 17 November 2004 23:15, Merlin wrote: > actually that is not as easy as it looks. Nowhere in your original post did you specify what exactly it is you wanted. > Lets say we want to ad a \n after each 80 characters. There is always the > problem what happens if the line has already a

[PHP] Re: Array unset

2004-11-17 Thread Sebastian Mendel
Bruno b b magalhães wrote: The problem is that when I delete an specific array, it outputs something like this: ( [0] => Array ( [moduleId] => 4 [moduleName] => Contents [modulePath] => contents [moduleAliasPath] => [moduleC

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] It's usually not a good idea to include the author in your reply unless they specifically asked to be CC'ed. There's little value in receiving two copies of the same post. [/snip] Yeah, I know. I hit reply-to-all and got that. Force of habit. -- PHP General Mailing List (http://www.php.n

Re: [PHP] Images problem

2004-11-17 Thread Phpu
It's working Thanks a lot - Original Message - From: "Randy Rinehart" <[EMAIL PROTECTED]> To: "Phpu" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 17, 2004 6:29 PM Subject: Re: [PHP] Images problem > I believe you can use imagecopymerged to do this. > > http:

RE: [PHP] Images problem

2004-11-17 Thread Mike
If you're looking for a way to merge images, look at imagecopyresized() If you're going to be doing a lot with images in PHP, it's good to spend a lot of time reading the images section of the manual - there's a lot in there and all with somewhat similar names - it can get confusing at first. -M

[PHP] Re: File Handing Windows / Linux

2004-11-17 Thread Sebastian Mendel
Steve Vernon wrote: Hiya! I am trying to make some code which gets a handle to a directory, but has different code for my localhost (Windows) and for online (Linux server). Basically, I want either of the below lines. Say if the first fails, it must be on Linux and then it uses the line below.

[PHP] Re: Sorting multidim array and keeping associations

2004-11-17 Thread Sebastian Mendel
Peter Lauri wrote: Best groupmember, I have an multidim array that looks something like this: [40] => [1]=32, [2]=>55, ["total"]=>87 [22] => [8]=2, [7]=>105, ["total"]=>107 [142] => [2]=3, [7]=>8, ["total"]=>11 I want to sort this array according to the "total" and still keep the acc. with the base

Re: [PHP] Images problem

2004-11-17 Thread Eakin, W
Phpu wrote: If i have 2 images: $im1 = imagecreate (100, 100); $white = ImageColorAllocate ($im1, 255, 255, 255); $im2 = imagecreate (50, 50); $black = ImageColorAllocate ($im2, 0, 0, 0); How can i put $im2 over $im1 and result one single image? Is there a function to do this? Thank You thi

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jason Wong
On Wednesday 17 November 2004 23:33, Jay Blanchard wrote: > And your e-mail address keeps getting bounced... > > The following recipient(s) could not be reached: It's usually not a good idea to include the author in your reply unless they specifically asked to be CC'ed. There's little value in r

Re: [PHP] Images problem

2004-11-17 Thread Randy Rinehart
I believe you can use imagecopymerged to do this. http://us2.php.net/manual/en/function.imagecopymerge.php please let me know if that helps. Thanks -randy rinehart - Original Message - From: "Phpu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 17, 2004 10:05 AM

[PHP] Images problem

2004-11-17 Thread Phpu
If i have 2 images: $im1 = imagecreate (100, 100); $white = ImageColorAllocate ($im1, 255, 255, 255); $im2 = imagecreate (50, 50); $black = ImageColorAllocate ($im2, 0, 0, 0); How can i put $im2 over $im1 and result one single image? Is there a function to do this? Thank You

[PHP] Re: DOS-textfile?

2004-11-17 Thread Felipe Alcacibar
Gustav: Christopher give you the differences within unix, dos [return] characters.. you can use chop() perl function to strip carrige return of the strings, example: $line = chop(fgets($fileHandler, 1024)); also you can use str_replace: function file2unix($stringFile) { return /* mac cas

RE: [PHP] how to show errors in browser

2004-11-17 Thread Jack . van . Zanen
Hi In your PHP.INI there is a section that will take care of that ;; ; Error handling and logging ; ;; ; error_reporting is a bit-field. Or each number up to get desired error ; reporting level ; E_ALL - All errors and warnin

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] ... [/snip] And your e-mail address keeps getting bounced... The following recipient(s) could not be reached: [EMAIL PROTECTED] on 11/17/2004 9:31 AM The e-mail account does not exist at the organization this message was sent to. Check the e-mail address, or contact the

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] That looks very complicated to me. Can anybody point me into the right direction? Thanx for any help, [/snip] strip the \n from the existing text first, then '>' . $line . '\n' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Merlin
Chris Boget wrote: Hi there, I would like to add a > symbol infront of each line I pull out of a database. Similar to the function seen in online e-mail clients when you click on reply. Has anybody an idea on how to add a symbol in front of each line?` Should be simple enough using explode() follo

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] I would like to add a > symbol infront of each line I pull out of a database. Similar to the function seen in online e-mail clients when you click on reply. Has anybody an idea on how to add a symbol in front of each line?` [/snip] Use a '.' example -- while(!feof($file)){ $line = fg

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Chris Boget
> Hi there, > I would like to add a > symbol infront of each line I pull out of a database. > Similar to the function seen in online e-mail clients when you click on reply. > Has anybody an idea on how to add a symbol in front of each line?` Should be simple enough using explode() followed by impl

Re: [PHP] Problem typing in PHP forms on Mac OS

2004-11-17 Thread Brent Baisley
For the record, this is NOT a PHP problem. I have no problem on my Mac using Safari or FireFox, or even Camino .7. However, there is a problem using IE on the Mac. Which, if you have Mac users still using IE, you should tell them to cease and desist. It's a discontinued product. But, you may no

[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
Best groupmember, I have an multidim array that looks something like this: [40] => [1]=32, [2]=>55, ["total"]=>87 [22] => [8]=2, [7]=>105, ["total"]=>107 [142] => [2]=3, [7]=>8, ["total"]=>11 I want to sort this array according to the "total" and still keep the acc. with the basekey. I know I ca

[PHP] Sorting multidim array and keeping associations

2004-11-17 Thread Peter Lauri
Best groupmember, I have an multidim array that looks something like this: [40] => [1]=32, [2]=>55, ["total"]=>87 [22] => [8]=2, [7]=>105, ["total"]=>107 [142] => [2]=3, [7]=>8, ["total"]=>11 I want to sort this array according to the "total" and still keep the acc. with the basekey. I know I ca

[PHP] adding a symbol in front of each line

2004-11-17 Thread Merlin
Hi there, I would like to add a > symbol infront of each line I pull out of a database. Similar to the function seen in online e-mail clients when you click on reply. Has anybody an idea on how to add a symbol in front of each line?` Thanx for any hint, Merlin -- PHP General Mailing List (http://

[PHP] Re: File Handing Windows / Linux

2004-11-17 Thread Ing. Ivo F.A.C. Fokkema
On Sun, 14 Nov 2004 18:21:23 +0100, M. Sokolewicz wrote: > Steve Vernon wrote: > >> Hiya! >> >> I am trying to make some code which gets a handle to a directory, but >> has different code for my localhost (Windows) and for online (Linux >> server). >> >> Basically, I want either of the below li

Re: [PHP] how to show errors in browser

2004-11-17 Thread Jason Wong
On Wednesday 17 November 2004 22:00, Rayan Lahoud wrote: > Hy, i am opening php files from my browser. If there are some errors in the > php file i can not see what are the errors in the browser Put:     error_reporting(E_ALL);     ini_set('display_errors', TRUE); at the beginning of your pa

Re: [PHP] Sorting...

2004-11-17 Thread Matt M.
> array ( > 20040310, Title, Author > 20041115, Title, Author > 20040513, Title, Author > ) > > where each array element is 1 line from the csv. When I go to print it > out, Im going to explode each by , and then print it out the way I like. > > BUT, I want to sor

Re: [PHP] Sorting...

2004-11-17 Thread Francisco M. Marzoa Alonso
If each element of the array is a string with those contains, it should be sorted as you want just calling sort function. It will considerate also rest of characters, of course, but the most significative should be the first ones. Another alternative is to wrote a quicksort function in PHP cust

[PHP] Re: how to show errors in browser

2004-11-17 Thread Peter Lauri
Check the function error_reporting() or check the settings in the php.ini - Best Of Times /Peter "Rayan Lahoud" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Hy, i am opening php files from my browser. If there are some errors in the php file i can not see what are the errors

Re: [PHP] Sorting...

2004-11-17 Thread Ramil Sagum
On Wed, 17 Nov 2004 09:03:12 -0500 (EST), Russell P Jones <[EMAIL PROTECTED]> wrote: > I have an array filled with CSV data... > > array ( > 20040310, Title, Author > 20041115, Title, Author > 20040513, Title, Author > ) > > where each array element is 1 line from

Re: [PHP] Saving thumbnails [SOLVED]

2004-11-17 Thread Phpu
I resolv the problem. Thanks anyway - Original Message - From: "Eakin, W" <[EMAIL PROTECTED]> To: "Phpu" <[EMAIL PROTECTED]> Sent: Wednesday, November 17, 2004 3:21 PM Subject: Re: [PHP] Saving thumbnails > Phpu wrote: > > >Hi, > >I found a tutorial that creates thumbnails on the fly. The

RE: [PHP] Saving thumbnails

2004-11-17 Thread Mike
Use imagejpeg() http://us2.php.net/manual/en/function.imagejpeg.php -M -Original Message- From: Phpu [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 17, 2004 6:23 AM To: [EMAIL PROTECTED] Subject: [PHP] Saving thumbnails Hi, I found a tutorial that creates thumbnails on the fly. The

[PHP] Sorting...

2004-11-17 Thread Russell P Jones
I have an array filled with CSV data... array ( 20040310, Title, Author 20041115, Title, Author 20040513, Title, Author ) where each array element is 1 line from the csv. When I go to print it out, Im going to explode each by , and then print it out the way I like

[PHP] how to show errors in browser

2004-11-17 Thread Rayan Lahoud
Hy, i am opening php files from my browser. If there are some errors in the php file i can not see what are the errors in the browser Can anyone help please? - Do you Yahoo!? Discover all that’s new in My Yahoo!

RE: [PHP] Efficency in looping arrays?

2004-11-17 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Peter Lauri [mailto:[EMAIL PROTECTED] > Sent: 17 November 2004 12:11 > For the moment when I loop an array I use something like this: > > rese

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Dirk Kredler
Hey again :) Peter Lauri: > But what if the array have a unordered keystructure? What your loop do is > to call the value with key $i, or am I wrong? What if the keys are strings? $arr= array(1 => "dirk", 'wife' => "iris", 'dog' => "feivel", 'peter' => "lauri"); $values= array_values($arr); f

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Peter Lauri
Probably, thank you :) "Pluance" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > You mean this? > > foreach ($arr as $key => $value) { > echo "\$arr[${key}] = $value"; > } > > On Wed, 17 Nov 2004 14:05:23 +0100, Peter Lauri <[EMAIL PROTECTED]> wrote: > > Hey :) > > > > But what i

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Pluance
You mean this? foreach ($arr as $key => $value) { echo "\$arr[${key}] = $value"; } On Wed, 17 Nov 2004 14:05:23 +0100, Peter Lauri <[EMAIL PROTECTED]> wrote: > Hey :) > > But what if the array have a unordered keystructure? What your loop do is > to call the value with key $i, or am I wrong? W

  1   2   >