RE: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Flavien CHANTELOT
2007 16:55 À : php-general@lists.php.net Objet : Re: [PHP] preview string with strlen PHP (help) Dear all, hmm.. sorry the $previewstext thing was a typo in my mail. But yes it is working but it will only display the first record of the recordset. I have like a list for items with short text

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Dwayne Heronimo
YES this works thank nemeth: ?php function previewString($showcatvar) { $minitxt = $showcatvar; $len = strlen($minitxt); if ($len 235) { $len = 235; } else { $len = $len; } $newstring = substr($minitxt,0,$len); $previewtext = $newstring; return $previewtext; } ? and to

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Németh Zoltán
2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: YES this works thank nemeth: your welcome but please call me Zoltán ;) (my first name is Zoltán. in Hungary we write names the opposite order than anywhere else ;) so that's why my mailbox is set to display 'Németh Zoltán' but

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Tijnema !
On 3/23/07, Németh Zoltán [EMAIL PROTECTED] wrote: 2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta: YES this works thank nemeth: your welcome but please call me Zoltán ;) (my first name is Zoltán. in Hungary we write names the opposite order than anywhere else ;) so that's

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Richard Lynch
On Fri, March 23, 2007 10:18 am, Dwayne Heronimo wrote: function previewString($showcatvar) { $minitxt = $showcatvar; $len = strlen($minitxt); if ($len 235) { $len = 235; } else { $len = $len; } Take out this whole else block -- Assigning a variable to itself is just

Re: [PHP] preview string with strlen PHP (help)

2007-03-23 Thread Richard Lynch
You don't need a function to do something repeatedly. You need some kind of loop, such as 'while', 'for' or 'foreach' Try working through a PHP / MySQL tutorial, as it will cover this. On Fri, March 23, 2007 10:55 am, Dwayne Heronimo wrote: Dear all, hmm.. sorry the $previewstext thing was a

[PHP] Help: DOMXPath-Query, quotes and apostrophes

2007-03-15 Thread Adam Randall
I seem to be hitting a wall here. I have the need to run an XPath query on strings that may contain quotes, apostrophes or both. Going through google turned up some interesting information, but nothing that solved my issue. An example of what I am trying to do is as follows: $query = '\'foobar';

Re: [PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-14 Thread markw
On Tue, March 13, 2007 7:27 pm, Mark wrote: I have a web session management server that makes PHP clustering easy and fast. I have been getting a number of requests for some level of redundancy. As it is, I can save to an NFS or GFS file system, and be redundant that way. Talk to Jason

Re: [PHP] help with script needed

2007-03-13 Thread Stut
Richard Lynch wrote: You could also just use: if (($i % 15) === 0) echo FooBar; elseif (($i % 3) === 0) echo Foo; elseif (($i % 5) === 0) echo Bar; 15 works because 3 and 5 are mutually prime or whatever it's called. Good point, missed that one. A minimalist might not even bother with the

[PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-13 Thread Mark
I have a web session management server that makes PHP clustering easy and fast. I have been getting a number of requests for some level of redundancy. As it is, I can save to an NFS or GFS file system, and be redundant that way. Here is an explanation of how it works:

Re: [PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 7:27 pm, Mark wrote: I have a web session management server that makes PHP clustering easy and fast. I have been getting a number of requests for some level of redundancy. As it is, I can save to an NFS or GFS file system, and be redundant that way. Talk to Jason at

Re: [PHP] help with script needed

2007-03-12 Thread Richard Lynch
You could also just use: if (($i % 15) === 0) echo FooBar; elseif (($i % 3) === 0) echo Foo; elseif (($i % 5) === 0) echo Bar; 15 works because 3 and 5 are mutually prime or whatever it's called. The order matters, though, as moving the 15 after the other if tests would fail, as 3 and/or 5 would

Re: [PHP] Help with captcha

2007-03-09 Thread Tijnema !
I'm not sure but i think that you need to place your javascript inside the head tags, which you (i guess) output in header.php Tijnema On 3/9/07, Joker7 [EMAIL PROTECTED] wrote: Im trying to use a captcha script from : http://www.boutell.com/newfaq/creating/captcha.html I can get it to work

[PHP] Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Jevos, Peter
Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul Lesniewski But I found the bug in this plugin. The bug seems to be related with variable and memory. The scripts are really slow and sometimes takes 20-30 seconds

Re: [PHP] Help with the php bug in the Squirrelmail plugin's script

2007-03-09 Thread Tijnema !
If there are no people willing to, i am, but i don't have a lot of time. I hope it isn't urgent. Tijnema On 3/9/07, Jevos, Peter [EMAIL PROTECTED] wrote: Hi I'd like to ask you for the help I'm using Squirellmail with plugin Shared calendar. This is simple nice plugin written by Paul

Re: [PHP] help with script needed

2007-03-08 Thread Jochem Maas
Stut wrote: Bruce Gilbert wrote: Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; if ($i%3 == 0) echo Foo ; elseif ($i%5 == 0) echo Bar; } ? [/php] and the results can be seen here

[PHP] help with script needed

2007-03-07 Thread Bruce Gilbert
I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for example. How do I go about doing this? -- ::Bruce:: -- PHP

Re: [PHP] help with script needed

2007-03-07 Thread Tijnema !
On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote: I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for example.

Re: [PHP] help with script needed

2007-03-07 Thread afan
try this if ($i%5 == 0) echo foobr; -afan I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for

Re: [PHP] help with script needed

2007-03-07 Thread Tijnema !
oops, ofcourse whe have the modular :) On 3/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: try this if ($i%5 == 0) echo foobr; -afan I have a little script that prints a number out from 1 to 100 [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; } ? [/php] I just need to

Re: [PHP] help with script needed

2007-03-07 Thread Martin Marques
Tijnema ! escribió: On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote: I just need to add code to print something different, say foo if the output is a multiple of 5 or 10 for example. How do I go about doing this? I've seen that question a lot, what i use is fairly simple if( intval($number

Re: [PHP] help with script needed

2007-03-07 Thread Bruce Gilbert
Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; if ($i%3 == 0) echo Foo ; elseif ($i%5 == 0) echo Bar; } ? [/php] and the results can be seen here http://www.inspired-evolution.com/image_test/numbers_output.php I

Re: [PHP] help with script needed

2007-03-07 Thread Jake McHenry
Marques martin@bugs.unl.edu.ar Cc: Tijnema ! [EMAIL PROTECTED]; PHP-General php-general@lists.php.net Sent: Wednesday, March 07, 2007 4:00 PM Subject: Re: [PHP] help with script needed Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i

Re: [PHP] help with script needed

2007-03-07 Thread Stut
Bruce Gilbert wrote: Thanks for the responses so far. This is what I have come up with [php] ?php for( $i=1; $i=100; $i++ ) { echo $i; echo br; if ($i%3 == 0) echo Foo ; elseif ($i%5 == 0) echo Bar; } ? [/php] and the results can be seen here

Re: [PHP] help with script needed

2007-03-07 Thread Jake McHenry
LOL I told'ya I rememberd it from my 2nd semester :) Ok, this is commonly known as the FizzBuzz problem and is used a lot as a university project or interview question. If you can't do it, be afraid!! http://dev.stut.net/php/fizzbuzz.php -Stut -- PHP General Mailing List

[PHP] Help with a within week function

2007-03-05 Thread Joey
I have been trying to find a way to search a DB and match a range within a week ( php mysql ). This doesn't make sense, so I will describe it in more detail. Hi everyone, I need help with a search, lets say a record has a date of 2/5/2007 and if someone visits the website between 2/5/07 and

RE: [PHP] Help with a within week function

2007-03-05 Thread Jim Moseby
I have been trying to find a way to search a DB and match a range within a week ( php mysql ). This doesn't make sense, so I will describe it in more detail. Hi everyone, I need help with a search, lets say a record has a date of 2/5/2007 and if someone visits the website

Re: [PHP] Help with a within week function

2007-03-05 Thread David Giragosian
On 3/5/07, Jim Moseby [EMAIL PROTECTED] wrote: I have been trying to find a way to search a DB and match a range within a week ( php mysql ). This doesn't make sense, so I will describe it in more detail. Hi everyone, I need help with a search, lets say a record has a date of

Fw: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Haydar Tuna
- From: Németh Zoltán [EMAIL PROTECTED] To: Haydar Tuna [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, March 02, 2007 12:19 PM Subject: Re: [PHP] Help! I cannot send e-mail to your mail groups 2007. 03. 2, péntek keltezéssel 09.57-kor Haydar Tuna ezt írta: Hello, I have

Re: Fw: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Németh Zoltán
a confirmation email and that's all... greets Zoltán Németh - Original Message - From: Németh Zoltán [EMAIL PROTECTED] To: Haydar Tuna [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, March 02, 2007 12:19 PM Subject: Re: [PHP] Help! I cannot send e-mail to your mail groups

Re: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Haydar Tuna
-general@lists.php.net Sent: Friday, March 02, 2007 12:19 PM Subject: Re: [PHP] Help! I cannot send e-mail to your mail groups 2007. 03. 2, péntek keltezéssel 09.57-kor Haydar Tuna ezt írta: Hello, I have been Linux user for 7 years and I have been membership of Linux Community group for 3

[PHP] Help! I cannot send e-mail to your mail groups

2007-03-01 Thread Haydar Tuna
Hello, I have been Linux user for 7 years and I have been membership of Linux Community group for 3 years in Turkey. As you know, linux users share all of experiences and knownledges and I'm writing a book about PHP. I'm a PHP professional for this reason I want to help any people on the world

Re: [PHP] Help with directory listing code

2007-02-23 Thread Richard Lynch
On Wed, February 21, 2007 10:41 am, Joker7 wrote: Hi - I'm having a bit of a problem with this directory listing code, found it some time ago and have been modifying it.I have run up against one or two problems. 1\ How can I make it not list its self 2\ Is there away to specify what files

[PHP] Help with sessions on Log in and Log out

2007-02-17 Thread Ashish Rizal
I am having some problem working with my script on session stuffs. Well, i have a login page which authenticates users by using sql script then if login is successful i have PHP Code: $_SESSSION['logged in']=true; and $_SESSION[userid]=$userid and when login is true i have included the page

Re: [PHP] Help with matching numbers 0-100

2007-02-07 Thread Jochem Maas
Richard Lynch wrote: On Sat, February 3, 2007 10:55 am, Chilling Lounge Admin wrote: I need help with matching a variable. The variable would be e.g. 0-15 , 16-30 etc. and when the variable is equal to a certain range, it would echo an image. Does anyone know what function I should use?

Re: [PHP] Help with matching numbers 0-100

2007-02-04 Thread Richard Lynch
On Sat, February 3, 2007 10:55 am, Chilling Lounge Admin wrote: I need help with matching a variable. The variable would be e.g. 0-15 , 16-30 etc. and when the variable is equal to a certain range, it would echo an image. Does anyone know what function I should use? preg_match? The code

[PHP] Help with matching numbers 0-100

2007-02-03 Thread Chilling Lounge Admin
Hi. I need help with matching a variable. The variable would be e.g. 0-15 , 16-30 etc. and when the variable is equal to a certain range, it would echo an image. Does anyone know what function I should use? preg_match? The code would be something like if(preg_match([16-30],$variable)) { echo

Re: [PHP] Help with matching numbers 0-100

2007-02-03 Thread Myron Turner
Chilling Lounge Admin wrote: Hi. I need help with matching a variable. The variable would be e.g. 0-15 , 16-30 etc. and when the variable is equal to a certain range, it would echo an image. Does anyone know what function I should use? preg_match? The code would be something like

Re: [PHP] Help wtih a query?

2007-01-31 Thread Satyam
- Original Message - From: Jon Anderson [EMAIL PROTECTED] To: Skip Evans [EMAIL PROTECTED] Cc: PHP-General php-general@lists.php.net Sent: Tuesday, January 30, 2007 11:46 PM Subject: Re: [PHP] Help wtih a query? Wrong list. Putting $sql=... in there doesn't make it a PHP question

[PHP] Help wtih a query?

2007-01-30 Thread Skip Evans
Hey all, I have the following query: $sql=SELECT count(*) AS count,votes.storyID,stories.title,stories.storyID as sID,stories.approved, stories.story,stories.userID, fname, lname FROM `bsp_story_votes` as votes, bsp_story_stories AS stories, users AS usr

Re: [PHP] Help wtih a query?

2007-01-30 Thread Jon Anderson
Wrong list. Putting $sql=... in there doesn't make it a PHP question. ;-) Skip Evans wrote: Is that what the left/right joins do??? Yea. LEFT JOIN will give you NULL entries in the left joined table, so you'd just have to say WHERE ISNULL(left joined table.some field in that table). Of

Re: [PHP] Help wtih a query?

2007-01-30 Thread Brad Bonkoski
Skip Evans wrote: Hey all, I have the following query: $sql=SELECT count(*) AS count,votes.storyID,stories.title,stories.storyID as sID,stories.approved, stories.story,stories.userID, fname, lname FROM `bsp_story_votes` as votes, bsp_story_stories AS stories, users AS usr

Re: [PHP] Help wtih a query?

2007-01-30 Thread Philip Thompson
On Jan 30, 2007, at 4:33 PM, Skip Evans wrote: Hey all, I have the following query: $sql=SELECT count(*) AS count,votes.storyID,stories.title,stories.storyID as sID,stories.approved, stories.story,stories.userID, fname, lname FROM `bsp_story_votes` as votes,

Re: [PHP] Help With Inventory

2007-01-23 Thread Jim Lucas
Brandon Bearden wrote: What I WANT to see is something like this DVD ID | TITLE | GENRE 1 | GENRE 2 | GENRE 3 | ACT | QTY BCK |HLD | INC | OG USR | OUT DATE | OUT USR | IN DATE | IN USR CY GENRE: ACTION - 1 TITLES 20860023 | Movie name | ACTION | | | 1

Re: [PHP] [HELP] Fatal error when uploading large files!

2007-01-23 Thread Jay Paulson
Hi everyone, Hopefully you all can help! I¹m at a loss as to what to do next. I¹m running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the following PHP error when trying to upload a larger file. I have AllowOverride turned on in the httpd.conf file so my .htaccess file

Re: [PHP] [HELP] Fatal error when uploading large files!

2007-01-23 Thread Jay Paulson
Hi everyone, Hopefully you all can help! I¹m at a loss as to what to do next. I¹m running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the following PHP error when trying to upload a larger file. I have AllowOverride turned on in the httpd.conf file so my .htaccess file

Re: [PHP] [HELP] Fatal error when uploading large files!

2007-01-23 Thread Richard Lynch
On Tue, January 23, 2007 1:48 pm, Jay Paulson wrote: php_value memory_limit 40M php_value post_max_size 30M php_value upload_max_filesize 30M php_value display_errors On php_value max_execution_time 300 php_value max_input_time 300 I *think* PHP (used to?) take the MINIMUM of the php.ini

Re: [PHP] Help With Inventory

2007-01-22 Thread Jim Lucas
Here is my rendition of your script. Give it a shot... Let me know if you have any question about what is going on. I was curious, what is the point of having the alternating column colors? Was that your intention? ?php function invlistONE(){ dbconnect('connect'); $invlist

[PHP] [HELP] Fatal error when uploading large files!

2007-01-22 Thread Jay Paulson
Hi everyone, Hopefully you all can help! I¹m at a loss as to what to do next. I¹m running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the following PHP error when trying to upload a larger file. I have AllowOverride turned on in the httpd.conf file so my .htaccess file is

Re: [PHP] [HELP] Fatal error when uploading large files!

2007-01-22 Thread Jim Lucas
Jay Paulson wrote: Hi everyone, Hopefully you all can help! I¹m at a loss as to what to do next. I¹m running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the following PHP error when trying to upload a larger file. I have AllowOverride turned on in the httpd.conf file so my

Re: [PHP] [HELP] Fatal error when uploading large files!

2007-01-22 Thread Jochem Maas
Jay Paulson wrote: Hi everyone, Hopefully you all can help! I¹m at a loss as to what to do next. I¹m running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the following PHP error when trying to upload a larger file. I have AllowOverride turned on in the httpd.conf file so

Re: [PHP] Help With Inventory

2007-01-22 Thread Brandon Bearden
Thank you for your help. I see what you are doing different. I don't understand how the quotient works there. I will sometime. I also don't understand the HEREDOC concept. I wanted colors alternating to allow for a better read. I still have not solved the problem with listing the genre in its

Re: [PHP] Help With Inventory

2007-01-22 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-22 22:55:50 -0800: Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $count = 0; while ( $row = mysql_fetch_array( $invlist ) ) { if ( $count % 1 ) { $rowColor = '#c1c1c1'; } else { $rowColor = ''; } echo HEREDOC tr

Re: [PHP] Help With Inventory

2007-01-22 Thread Brandon Bearden
What I WANT to see is something like this DVD ID | TITLE | GENRE 1 | GENRE 2 | GENRE 3 | ACT | QTY BCK |HLD | INC | OG USR | OUT DATE | OUT USR | IN DATE | IN USR CY GENRE: ACTION - 1 TITLES 20860023 | Movie name | ACTION | | | 1 | 1 | 0 |

[PHP] Help With Inventory

2007-01-20 Thread Brandon Bearden
Can anyone help me figure out how to solve my inventory listing problem? I am using php_5 and mysql_5.0 w/apache on fbsd. I need to figure out a way to make a subtitle for every category (genre) in the inventory so when I list the entire inventory on a sheet (at client's request), it is

[PHP] Help me about using php with tomcat server.

2007-01-04 Thread Le Phuoc Canh
Dear all, I have two web application running on php and jsp. But i don't know how can to use php and jsp on tomcat server. Please help me. thanks best regard.

Re: [PHP] Help me about using php with tomcat server.

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 15:05:54 +0700: I have two web application running on php and jsp. But i don't know how can to use php and jsp on tomcat server. Please help me. Find an implementation of PHP in Java (tough luck) or the official library wrapped in a JNI interface. But you'll

Re: [PHP] Help me about using php with tomcat server.

2007-01-04 Thread Iqbal Naved
Hi, The Tomcat server now includes the php javabridge, its a war file called JavaBridge.war. Also, you can find this war file in php-java-bridge.sourceforge.net . The instllation is pretty easy just copy the war file in the root directory (e.g webapps/) and then run it from the browser (eg.

Re: [PHP] Help me about detect client screen resolution!!!

2007-01-03 Thread Strong Cypher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just remember in web context is a server-side language ... so you couldn't have more information than client would want to send to you in web context, the navigator send some information to the server (like what navigator, address, proxy, ...) so

[PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread Le Phuoc Canh
Can we use php to detect client screen resolution? Please help me ? Best Regard.

Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread Stut
Le Phuoc Canh wrote: Can we use php to detect client screen resolution? Please help me ? No we can't. You need Javascript or another client-side technology for that. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread David Giragosian
On 1/2/07, Stut [EMAIL PROTECTED] wrote: Le Phuoc Canh wrote: Can we use php to detect client screen resolution? Please help me ? No we can't. You need Javascript or another client-side technology for that. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread Paul Novitski
At 1/2/2007 12:24 AM, Le Phuoc Canh wrote: Can we use php to detect client screen resolution? Please help me ? Do you really want screen resolution or do you want browser window size? Not every PC user keeps their windows maximized, and I have yet to meet a Mac user who attempts to do so.

[PHP] help with \n\r in strings

2006-12-29 Thread Angelo Zanetti
Hi all, I receive a text file with a whole bunch of strings. and each line is terminated by what I presume is \n\r however when I read the string into PHP, it seems that the last column of the row and the first column of the next row are connected but it appears as a space but I've done all

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Robert Cummings
On Fri, 2006-12-29 at 11:42 +0200, Angelo Zanetti wrote: Hi all, I receive a text file with a whole bunch of strings. and each line is terminated by what I presume is \n\r however when I read the string into PHP, it seems that the last column of the row and the first column of the next

RE: [PHP] help with \n\r in strings

2006-12-29 Thread Peter Lauri
- personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Friday, December 29, 2006 10:43 AM To: PHP List Subject: [PHP] help with \n\r in strings Hi all, I receive a text file with a whole bunch of strings. and each

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Frank Arensmeier
if that helps. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Friday, December 29, 2006 10:43 AM To: PHP List Subject: [PHP] help

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Robert Cummings
On Fri, 2006-12-29 at 11:17 +0100, Frank Arensmeier wrote: If you just want to test for \n\r - if ( substr ( -2, $my_string ) == \n\r ) { // substr with the negative value of 2 will give you the last two characters of your string // do some stuff } You have your substr() parameters

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Arpad Ray
Angelo Zanetti wrote: So is there a way to test for \r\n? or what else can I use to delimit these two values (last column of row and first column of next row)? Since it's coming from a file, you might as well just read it with file(), which will split

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Manolet Gmail
2006/12/29, Arpad Ray [EMAIL PROTECTED]: Angelo Zanetti wrote: So is there a way to test for \r\n? or what else can I use to delimit these two values (last column of row and first column of next row)? mmm what about open the file with and hex editor?.. or mmm notepad++ have a option to see

[PHP] help with curl

2006-12-24 Thread Angelo Zanetti
Dear All, I have a script that uses curl to execute an http request now I use the same code for two different servers. And it works on the first server but not the second. I have stored the URL that it generates on the server that doesnt work and if I paste it into the address bar of the

Re: [PHP] help with curlSOLVED

2006-12-24 Thread Angelo Zanetti
it appears the problem with the port and not the timeout. Angelo Zanetti wrote: Dear All, I have a script that uses curl to execute an http request now I use the same code for two different servers. And it works on the first server but not the second. I have stored the URL that it

Re: [PHP] Help with strange include problem in PHP 5.2.0

2006-12-06 Thread Markus Mayer
Hi Richard, I think I've identified the problem. It appears to be a problem with PHPMyAdmin rather than PHP itself. The directory permissions we have are the minimum we need, usually 710, file permissions are 640. The group part of the permissions is how the apache gets to the files in the

Re: [PHP] Help me about audio stream...

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 1:37 am, Le Phuoc Canh wrote: Dears, I want to make a web app about music online. But i don't know how to use streaming in PHP to load a music file for playing. Please help me for the best direction. Thanks alot and best regard. You are making this too complicated.

[PHP] Help me about audio stream...

2006-12-03 Thread Le Phuoc Canh
Dears, I want to make a web app about music online. But i don't know how to use streaming in PHP to load a music file for playing. Please help me for the best direction. Thanks alot and best regard.

Re: [PHP] Help with strange include problem in PHP 5.2.0

2006-12-01 Thread Markus Mayer
Hi Richard, Hi all, The include path is correct. That was one of the first things I played around with. At the moment, it's include_path = .. I also tried renaming the php.ini file to php.ini.off so that it wasn't found and took all the defaults, but with no success. Last night I built

Re: [PHP] Help with strange include problem in PHP 5.2.0

2006-12-01 Thread Markus Mayer
On Thursday 30 November 2006 19:04, Richard Lynch wrote: [snip...] And of course I forgot to put in the configure arguments './configure' \ '--without-pear' \ '--with-apxs2=/usr/local/apache2/bin/apxs' \ '--enable-mm=shared' \

Re: [PHP] Help with strange include problem in PHP 5.2.0

2006-12-01 Thread Richard Lynch
Try running it under some kind of debugger and see if you can figure out what directories it's even checking when it doesn't find the file... I dunno if Zend IDE (or whatever it's called now) or Komodo or XDebug or whatnot will do that, but it's definitely sounding very odd if your include_path

[PHP] Help with strange include problem in PHP 5.2.0

2006-11-30 Thread Markus Mayer
Hi all, I have a strange problem including files in PHP 5.2.0 running on Unix. If I try to include a file using include 'filename.inc';, everything is fine. As soon as I try to put a . in front of the file name, for example include './filename.inc';, I get a failed to open stream: No such

Re: [PHP] Help with strange include problem in PHP 5.2.0

2006-11-30 Thread Richard Lynch
On Thu, November 30, 2006 6:49 am, Markus Mayer wrote: I have a strange problem including files in PHP 5.2.0 running on Unix. If I try to include a file using include 'filename.inc';, everything is fine. As soon as I try to put a . in front of the file name, for example include

[PHP] Help! PRINTF Function

2006-11-06 Thread ngoc . truong-torche
Hello, The following examples don't work printf([%10s]\n,    $s); //

Re: [PHP] Help! PRINTF Function

2006-11-06 Thread Dotan Cohen
On 06/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, The following examples don't work printf([%10s]\n, $s); // justification à droite avec des espaces printf([%-10s]\n, $s); // justification à gauche avec des espaces but this one: printf([%'#10s]\n, $s); //

Re: [PHP] Help! PRINTF Function

2006-11-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-06 12:46:14 +0100: Hello, The following examples don't work printf([%10s]\n,    $s); // justification ? droite avec des espaces printf([%-10s]\n,  $s); // justification ? gauche avec

[PHP] help confirming a PDO_SQLITE bug

2006-10-30 Thread Rick Fletcher
I've just upgraded to Fedora Core 6 and my personal site broke. Along with the upgrade came PHP 5.1.6 and SQLite 3.3.6. After the upgrade any SELECT returns all its values with the last character missing. I've filed a bug at pecl.php.net (http://pecl.php.net/bugs/bug.php?id=9191), but it

Re: [PHP] help confirming a PDO_SQLITE bug

2006-10-30 Thread Rick Fletcher
Thanks to anyone who entertained my previous email, but I've solved my own problem. It looks like the bug is in PDO_SQLITE 1.0.1. I've just compiled from that extension from CVS, changing nothing else, and the bug is gone. --rick Rick Fletcher wrote: I've just upgraded to Fedora Core 6 and

[PHP] Help, please! UTF-8 encoding problem

2006-10-16 Thread dimon
Hi, I would like some help with an encoding problem, please. I would like to encode some text (a news entry entered via a form, to be exact) into UTF-8 and then save it in an XML file for persistent storage. My problem is, some of the users are Japanese and would like to enter Japanese multi-byte

Re: [PHP] Help on objects

2006-10-06 Thread Richard Lynch
On Thu, October 5, 2006 2:55 pm, Satyam wrote: - Original Message - From: Martin Alterisio To: Satyam Cc: Deckard ; php-general@lists.php.net You're wrong, partially: I am sure you could have stated that in a more courteous way. So, this Argentinian, Italian, and European

Re: [PHP] Help on objects

2006-10-05 Thread John Wells
On 10/5/06, Deckard [EMAIL PROTECTED] wrote: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I commend you on trying to build an OOP class for

Re: [PHP] Help on objects

2006-10-05 Thread Robert Cummings
On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote: I've seen you already had a good answer on the errors in the code so I won't go on that. As for OOP, the one design error you have is that you are asking for an action, not an object. You want to make SQL inserts, that is your purpose, and

Re: [PHP] Help on objects

2006-10-05 Thread benifactor
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: Deckard [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, October 05, 2006 2:16 AM Subject: Re: [PHP] Help on objects On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote: I've seen

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread benifactor
PROTECTED]; php-general@lists.php.net Sent: Thursday, October 05, 2006 2:16 AM Subject: Re: [PHP] Help on objects On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote: I've seen you already had a good answer on the errors in the code so I won't go on that. As for OOP, the one design error you have

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread Dave Goodchild
Re the last suggestion, ensure you keep those database details outside the web root (ie in a file called connect.inc for example) or if have to keep it there add a .htaccess file that prevents download of *.inc files. Also, avoid use of the error suppression operator (@). You need to see your

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread benifactor
-general@lists.php.net Sent: Thursday, October 05, 2006 4:55 AM Subject: Re: [PHP] Help on objects [with reply] Re the last suggestion, ensure you keep those database details outside the web root (ie in a file called connect.inc for example) or if have to keep it there add a .htaccess file

Re: [PHP] Help on objects [with reply]

2006-10-05 Thread Dave Goodchild
Undoubtedly. He could also use the PEAR DB abstraction layer.

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/4, Deckard [EMAIL PROTECTED]: Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I have the class:

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/5, Satyam [EMAIL PROTECTED]: I've seen you already had a good answer on the errors in the code so I won't go on that. As for OOP, the one design error you have is that you are asking for an action, not an object. You want to make SQL inserts, that is your purpose, and that is an

Re: [PHP] Help on objects

2006-10-05 Thread Satyam
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: Deckard [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, October 05, 2006 11:16 AM Subject: Re: [PHP] Help on objects On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote: I've seen

Re: [PHP] Help on objects

2006-10-05 Thread Satyam
- Original Message - From: Martin Alterisio To: Satyam Cc: Deckard ; php-general@lists.php.net Sent: Thursday, October 05, 2006 3:50 PM Subject: Re: [PHP] Help on objects 2006/10/5, Satyam [EMAIL PROTECTED]: I've seen you already had a good answer on the errors

Re: [PHP] Help on objects

2006-10-05 Thread Martin Alterisio
2006/10/5, Satyam [EMAIL PROTECTED]: - Original Message - *From:* Martin Alterisio [EMAIL PROTECTED] *To:* Satyam [EMAIL PROTECTED] *Cc:* Deckard [EMAIL PROTECTED] ; php-general@lists.php.net *Sent:* Thursday, October 05, 2006 3:50 PM *Subject:* Re: [PHP] Help on objects 2006/10/5

[PHP] Help on objects

2006-10-04 Thread Deckard
Hi, I'm trying to lay my hands on PHP OOP, but it's not easy :( I've read several examples in the web, but cannot transpose to may case. I'm trying to set a class to make SQL inserts in mysql. I have the class: - ?php class dBInsert {

<    1   2   3   4   5   6   7   8   9   10   >