Re: [PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Nicholas Cooper
On 23 January 2012 14:34, Matijn Woudt wrote: > On Mon, Jan 23, 2012 at 3:26 PM, Nicholas Cooper > wrote: >> On 23 January 2012 13:26, Matijn Woudt wrote: >>> On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper >>> wrote: >>>> Hi everyone, >>>&

Re: [PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Nicholas Cooper
On 23 January 2012 13:26, Matijn Woudt wrote: > On Mon, Jan 23, 2012 at 1:51 PM, Nicholas Cooper > wrote: >> Hi everyone, >> >> I've created an image in RGB from ImageMagick, it's 4 by 4 so I'm >> expecting 48 numbers (4*4*3). [width*height*(R,

[PHP] Reading only RGB portion of an image, file_get_conents minus file headers etc

2012-01-23 Thread Nicholas Cooper
nyway to access only the useful image bits, those 48 numbers? Thank you, Nicholas Cooper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] If Statements Array and Notice Undefined Index

2011-03-31 Thread Nicholas Cooper
On 31 March 2011 15:53, Stuart Dallas wrote: > On Thursday, 31 March 2011 at 15:45, Nicholas Cooper wrote: > Good day, > > > > I have three arrays A, B and C. Anyone of them might not have the 'id' > key > > set which will give the Notice "Undefined inde

[PHP] If Statements Array and Notice Undefined Index

2011-03-31 Thread Nicholas Cooper
cing a number of "if isset" statements. if ($arrayA['id'] == $arrayB['id'] || $arrayC['id'] == $arrayB['id']) { } I have notices switched off, but I want to know the right way to do this. There's probably a number of different right ways to solve this, how would you do it? Best Regards, Nicholas

[PHP] MySQL Unbuffered Query Behavior Change

2011-03-16 Thread Nicholas Williams
I was previously on PHP 5.1.6 and was using the following code: $dbr = mysql_unbuffered_query($query, $this->con); while($row = mysql_fetch_array($dbr, $assoc ? MYSQL_ASSOC : MYSQL_NUM)) $this->result[] = $row; $this->rows = mysql_num_rows($dbr); It worked properly. The documentation at htt

Re: [PHP] > 2gb file issues

2011-02-17 Thread Nicholas Kell
On Feb 17, 2011, at 3:29 PM, Steve Staples wrote: > Is there a workaround for 32bit systems wanting to use > fopen() > is_file() > filesize() > > and i am sure there are others.. on files that are > 2gb? > > My development box is win visat 64bit, and i dont have any issues, when > i ported it

Re: [PHP] iVery payment integration help

2011-02-16 Thread Nicholas Kell
On Feb 16, 2011, at 3:34 PM, Mujtaba Arshad wrote: > Here you go: > http://lmgtfy.com/?q=how+to+integrate+the+iVeri+payment+gateway+in+a+wordpress+site > > On Wed, Feb 16, 2011 at 4:27 PM, Michael Simiyu > wrote: > >> hello, >> >> i need some quick help integrating the iVery payment gateway i

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Nicholas Kell
On Feb 15, 2011, at 1:20 PM, Mujtaba Arshad wrote: > I would say all languages have their 'lousy developers', however, since very > few schools focus on teaching the 'proper coding style' for PHP it leads to > people learning from a variety of resources available online, and this leads > to them

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Nicholas Kell
On Feb 15, 2011, at 11:52 AM, tedd wrote: > At 11:37 AM -0600 2/15/11, Nicholas Kell wrote: >> On Feb 15, 2011, at 10:51 AM, tedd wrote: >> > At 8:26 PM -0500 2/14/11, Brian Waters wrote: >> >> (if that's OK). I know that PHP sometimes has a reputation for h

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Nicholas Kell
On Feb 15, 2011, at 10:51 AM, tedd wrote: > At 8:26 PM -0500 2/14/11, Brian Waters wrote: >> Hi everyone! I'm just starting out with PHP so I'm looking for a good >> place to ask some questions, have my code critiqued (read: visciously >> ripped apart), and generally BS about PHP and programming

Re: [PHP] odd list bounces

2011-01-31 Thread Nicholas Kell
On Jan 31, 2011, at 4:47 AM, Ashley Sheridan wrote: > Hiya, > > Is anyone else getting odd bounce messages? I just received one from the > list about a message that was returned as a bounce from my email > address. The fact that I was able to read an email about an email that > bounced from me s

Re: [PHP] Parse question

2011-01-21 Thread Nicholas Kell
On Jan 21, 2011, at 6:52 PM, Ron Piggott wrote: > > Would someone write me a syntax so all the web site addresses in $data turn > into links > > $data = “Visit our web site http://www.site.com, http://www.secondsite.org > and http://www.thirdsite.info.”; > > My desired results for what I am

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Nicholas Kell
On Jan 14, 2011, at 12:41 PM, Kai Renz wrote: > Hi guys and thanks for your answers... > > @Nicholas: > Yes, you are right. The first socket is only used if a new clients > connects, thats why the script generates a new port so the client can > connect to the new socket.

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Nicholas Kell
On Jan 14, 2011, at 12:41 PM, Kai Renz wrote: > Hi guys and thanks for your answers... > > @Nicholas: > Yes, you are right. The first socket is only used if a new clients > connects, thats why the script generates a new port so the client can > connect to the new socket.

Re: [PHP] Exec Script in the background, don't wait till it finishes

2011-01-14 Thread Nicholas Kell
On Jan 14, 2011, at 10:56 AM, Kai Renz wrote: > Hi there, > > i'm currently working on a socket project. It consists of two scripts. > The first script (socket1.php) creates a socket on a specified port > and waits for a client to connect. If a client connects, they exchange > some informations,

Re: [PHP] Command line PHP

2011-01-07 Thread Nicholas Kell
On Jan 7, 2011, at 1:34 PM, TR Shaw wrote: > > On Jan 7, 2011, at 12:08 PM, Nicholas Kell wrote: > >> >> On Jan 7, 2011, at 11:01 AM, Joshua Kehn wrote: >> >>> On Jan 7, 2011, at 11:55 AM, la...@garfieldtech.com wrote: >>> >>>> Hi fol

Re: [PHP] Command line PHP

2011-01-07 Thread Nicholas Kell
On Jan 7, 2011, at 11:01 AM, Joshua Kehn wrote: > On Jan 7, 2011, at 11:55 AM, la...@garfieldtech.com wrote: > >> Hi folks. I have a project coming up that will involve writing a >> non-trivial command line PHP application. Most of it will be nice and >> abstracted and standalone and all of

Re: [PHP] Global or include?

2011-01-05 Thread Nicholas Kell
On Jan 5, 2011, at 4:40 PM, Paul Halliday wrote: > Say you have 10 or so scripts and a single config file. If you have > main.php, functions1.php, functions2.php, functions3.php.. > > Does is hurt to do an include of the config file in each separate > script, even if you only need a few things

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread Nicholas Kell
On Dec 29, 2010, at 6:37 PM, Omega -1911 wrote: > I know something funnier... Let's wait for Dani's response. > > On Wed, Dec 29, 2010 at 7:28 PM, Bastien wrote: >> >> >> On 2010-12-29, at 5:32 PM, "Daniel P. Brown" >> wrote: >> >>> On Wed, Dec 29, 2010 at 15:16, Omega -1911 <1911...@gmail

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-29 Thread Nicholas Kell
On Dec 29, 2010, at 10:40 AM, Paul M Foster wrote: > On Wed, Dec 29, 2010 at 11:06:15AM +0200, Dotan Cohen wrote: > >> On Wed, Dec 29, 2010 at 06:51, Paul M Foster wrote: > > > >> >>> Under the circumstances I described, I have yet to hear in what way >>> copying and pasting passwords compr

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Nicholas Kell
On Dec 28, 2010, at 2:11 PM, Joshua Kehn wrote: > Specifically: > >>> Dotan Cohen wrote: I seem to have an issue with users who copy-paste their usernames and passwords coping and pasting leading and trailing space characters. > > Users should not be copy-pasting passwords or username

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Nicholas Kell
On Dec 28, 2010, at 8:52 AM, Dotan Cohen wrote: > On Tue, Dec 28, 2010 at 15:27, Al wrote: >> Can't you simply specify the allowed characters that can be used for PWs and >> usernames? >> > > No, I hate when websites do that. It leads to less secure passwords, > not more secure, and it is pass

Re: [PHP] Server response very poor again

2010-12-22 Thread Nicholas Kell
On Dec 22, 2010, at 10:09 AM, Steve Staples wrote: > On Wed, 2010-12-22 at 10:19 -0500, Al wrote: >> It was fixed about 3 or 4 weeks ago; but, has reverted to poor again. Many >> times outs etc. >> >> Took me 4 tries to post this. >> >> Al... >> > > Not trying to sound rude or prick

Re: [PHP] Problems w/ goto

2010-12-17 Thread Nicholas Kell
On Dec 17, 2010, at 11:08 AM, Steve Staples wrote: [snip /] >> >> >> GOTO should never be used like this. >> >> GOTO should never be used. >> > > Wow... that brought me back to 1990... using basic and batch files... > I honestly didn't even know that the GOTO was still in existence, > espec

Re: [PHP]Confusion About WordPress Cache

2010-12-17 Thread Nicholas Kell
On Dec 17, 2010, at 8:21 AM, 肖晗 wrote: > I am using WordPress Cache to cache data retrieved from database, using > WP_Cache . > > After I used wp_cache_set to set some data in the cache, I try to get it by > wp_cache_get in ANOTHER post re

Re: [PHP] PHPInfo disabled due to security

2010-12-17 Thread Nicholas Kell
On Dec 16, 2010, at 10:39 PM, Paul S wrote: > On Thu, 16 Dec 2010 00:13:31 +0700, "Daniel P. Brown" > wrote: > > >> >>Well, phpinfo() does, by default, divulge some things that could >> be considered security concerns --- particularly in poorly-managed >> environments. Primarily, this is

Re: [PHP] How does one reply to messages on this list?

2010-12-16 Thread Nicholas Kell
On Dec 16, 2010, at 9:28 AM, Paul M Foster wrote: > On Thu, Dec 16, 2010 at 08:19:52AM -0600, Nicholas Kell wrote: > >> >> Couldn't we just have a reply-to address for the list in the header of >> the email? So all a fella had to do was hit reply, and it would

Re: [PHP] How does one reply to messages on this list?

2010-12-16 Thread Nicholas Kell
On Dec 16, 2010, at 8:26 AM, Daniel Brown wrote: > On Thu, Dec 16, 2010 at 09:19, Nicholas Kell wrote: >> >> Couldn't we just have a reply-to address for the list in the header of the >> email? So all a fella had to do was hit reply, and it would work? > >

Re: [PHP] How does one reply to messages on this list?

2010-12-16 Thread Nicholas Kell
Couldn't we just have a reply-to address for the list in the header of the email? So all a fella had to do was hit reply, and it would work? This is how the Apache and the MySQL list works. The PHP list is the only list that I have to manually edit my reply every time. For example, I hit reply

Re: [PHP] PDO: good, popular?

2010-12-15 Thread Nicholas Kell
On Dec 14, 2010, at 5:45 PM, Govinda wrote: >> In previous experience with questions such as these, you will get >> several types of individual responses to usages of the software. Some >> good, some bad, depending on the experience level of the commenter >> with both the language and the code in

Re: [PHP] is this thing on??

2010-11-23 Thread Nicholas Kell
Whitetail hunting season, for most of the American Midwest anyway. :) On Nov 23, 2010, at 2:01 PM, Steve Staples wrote: > On Tue, 2010-11-23 at 20:55 +0100, Peter Lind wrote: >> On 23 November 2010 20:52, Steve Staples wrote: >>> tap tap tap... testing testing... 1, 2, 3 >>> >>> Hello?

Re: [PHP] Securing Use of PHP site

2010-11-17 Thread Nicholas Kell
On Nov 17, 2010, at 6:51 AM, Don Wieland wrote: > Hello all, > > I have recently built a site using PHP. I was a little loose with GET and > POST methods because I was using it for personal/private use. Now I am > thinking of going public and allow different companies to use the site. I > w

Re: [PHP] How to code in PHP an onchange event in a ?

2010-11-04 Thread Nicholas Kell
On Nov 4, 2010, at 3:23 PM, Tomás Corrales Lemoine wrote: > Hi, List, > > I have this two files (“index.php” and “include.php”). They both work fine, > but I want to substitute the code for de onchange event in the tag. > Can I use PHP to code this event? How? > > Thanks. > > > > ind

Re: [PHP] Problems converting strings with 0 to integer

2010-11-03 Thread Nicholas Kell
On Nov 3, 2010, at 4:22 PM, robert mena wrote: > Hi, > > I have a text file (utf-8 encoded) which contains lines with numbers and > text separated by \t. I need to convert the numbers that contains 0 (at > left) to integers. > > For some reason one line that contains 0002 is casted to 0 in

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-02 Thread Nicholas Kell
s a shared > object right are they stored on disk as individual files or all together > compiled into a binary > > Thank you > > Suyash Ramineni > On Tue, Nov 2, 2010 at 3:55 PM, Nicholas Kell wrote: > > On Nov 2, 2010, at 2:50 PM, Suyash R wrote: >

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-02 Thread Nicholas Kell
amineni > On Mon, Nov 1, 2010 at 2:35 PM, Nicholas Kell wrote: > >> >> On Nov 1, 2010, at 1:12 PM, Suyash R wrote: >> >>> No, sockets.so in not included in any of the machines php.ini file. >> However, I found that Linux machine's php.ini doesn'

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Nicholas Kell
Is it required to be included only in Solaris? > > On Mon, Nov 1, 2010 at 1:41 PM, Nicholas Kell wrote: > > On Nov 1, 2010, at 12:08 PM, crrr errr wrote: > > > Yes, the http ( Apache user) has rl ( read permission) on the php file with > > sockets code i

Re: [PHP] PHP sockets enabled but socket_create() gives an error callto undefined function

2010-11-01 Thread Nicholas Kell
t. I think write access is unnecessary for Apache user. >> >> On Mon, Nov 1, 2010 at 12:50 PM, Nicholas Kellwrote: >> >>> >>> On Nov 1, 2010, at 11:44 AM, crrr errr wrote: >>> >>>> Yes, the phpinfo() shows that sockets are enab

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Nicholas Kell
On Nov 1, 2010, at 12:08 PM, crrr errr wrote: > Yes, the http ( Apache user) has rl ( read permission) on the php file with > sockets code in it. I think write access is unnecessary for Apache user. > > On Mon, Nov 1, 2010 at 12:50 PM, Nicholas Kell wrote: > >>

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Nicholas Kell
On Nov 1, 2010, at 12:08 PM, crrr errr wrote: > Yes, the http ( Apache user) has rl ( read permission) on the php file with > sockets code in it. I think write access is unnecessary for Apache user. > > On Mon, Nov 1, 2010 at 12:50 PM, Nicholas Kell wrote: > > On

Re: [PHP] PHP sockets enabled but socket_create() gives an error call to undefined function

2010-11-01 Thread Nicholas Kell
On Nov 1, 2010, at 11:44 AM, crrr errr wrote: > Yes, the phpinfo() shows that sockets are enabled in both machines. > On Mon, Nov 1, 2010 at 12:43 PM, Bastien Koert wrote: > >> On Mon, Nov 1, 2010 at 12:40 PM, crrr errr >> wrote: >>> Hello, >>> >>> I was trying to create a soc

Re: [PHP] Documentation

2010-10-27 Thread Nicholas Kell
On Oct 27, 2010, at 4:09 AM, Tommy Pham wrote: >> -Original Message- >> From: Jordan Jovanov [mailto:jovanovj...@gmail.com] >> Sent: Wednesday, October 27, 2010 1:53 AM >> To: php-general@lists.php.net >> Subject: [PHP] Documentation >> >> Hello All, >> >> I finished with coding and now

Re: [PHP] Character encoding hell

2010-10-26 Thread Nicholas Kell
On Oct 26, 2010, at 12:00 PM, Marc Guay wrote: > Again, if it helps, a link formatted in the same way to the same file > links correctly on a windows machine. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > A windows server, or w

Re: [PHP] Character encoding hell

2010-10-26 Thread Nicholas Kell
On Oct 26, 2010, at 11:38 AM, Marc Guay wrote: >> Are you using UTF-8? > > Could you be more specific? Do you mean in the browser/php header or > in the filesystem? I created the file on a Windows machine, > transferred them to a Linux machine, and the encoding of the page is > UTF-8. > > I j

Re: [PHP] Character encoding hell

2010-10-26 Thread Nicholas Kell
On Oct 26, 2010, at 10:56 AM, Marc Guay wrote: > Hi folks, > > I've got a problem with character encoding that's threatening to kill > my little brain. Here we go: > > I have a directory with a bunch of PDFs in it that my webpage displays > links to. All of the files have the french character

[PHP] Imagick::newPseudoImage function

2010-08-17 Thread NICHOLAS KLINE
Anyone out there using the Imagick::newPseudoImage function to create radial gradient images? The documentation at http://us.php.net/manual/en/function.imagick-newpseudoimage.php is lacking. When I try using Imagick::newPseudoImage to create a radial gradient, this error appears in the Apache HTTP

Re: [PHP] PHP DOM saveHTML outputs entities

2007-03-21 Thread Nicholas Yim
bscribe, visit: http://www.php.net/unsub.php > > = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-03-21 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Log Lib Recommendation

2007-03-18 Thread Nicholas Yim
> >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-03-19 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stream_get_contents() quite slow

2007-03-12 Thread Nicholas Yim
s. > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-03-13 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Monitoring download, detecting completion?

2007-03-08 Thread Nicholas Yim
PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-03-08 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Eregi error

2007-03-01 Thread Nicholas Yim
use.net/MeetMyMate/Bin/Debug/function.eregi>]: >REG_ERANGE in *[File Location]* on line *287 > >*Any ideas what might cause this? Googling REG_ERANGE only showed more >questions. > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.p

Re: [PHP] Predefined Classes in PHP5

2007-02-09 Thread Nicholas Yim
> >Any tips? > >Jim Lucas > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-02-09 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] base64-encoding in cookies?

2007-02-07 Thread Nicholas Yim
27;s >$ENV{'HTTP_COOKIE'}. i.e., the perl cookie contains the original '+'. >Does anyone know how to make php (v5.1.5) do the right thing with base64 >encoded cookies? > >Thanks >Fletcher > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscri

Re: [PHP] Pwersistent Queue

2007-02-01 Thread Nicholas Yim
>Location: Pune , India >Contact: +91-9890792762 >otherID: [EMAIL PROTECTED] > [EMAIL PROTECTED] > = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-02-01 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to insert clog into oracle

2007-01-29 Thread Nicholas Yim
Hello php-general, either pdo nor oci example is ok. thx Best regards, Nicholas Yim [EMAIL PROTECTED] 2007-01-29 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First Character In A String

2007-01-21 Thread Nicholas Yim
ich I can use to make $forename "A", so I can display >it as A SMITH? $forename[0].' '.$surname > >Thank You In Advance > just like an array = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-01-21 -- P

Re: [PHP] Storing values in arrays

2007-01-17 Thread Nicholas Yim
, but plagiarism is faster! >- Smile, everyone loves a moron. :-) > >- >It's here! Your new message! >Get new email alerts with the free Yahoo! Toolbar. = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-01-18 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Arrays?

2007-01-07 Thread Nicholas Yim
possible to >sort stuff the way I need here while reading it from DB. > >Thanks >-Will > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-01-08 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Nicholas Yim
Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > = = = = = = = = = = = = = = = = = = = = Nicholas Yim [EMAIL PROTECTED] 2007-01-06 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Ftp a file-->errors in rendered page, Ftp the file again-->works fine. Huh?

2006-11-23 Thread Nicholas Crosby
Hello: I would appreciate any help on this that someone might have. A student of mine found this issue. He ftp's a file to a server and looks at it through a browser, there are errors. He uploads the file again, it works fine. I am stumped. Any ideas? Here is the text of the file that he is upload

[PHP] serialize() function

2006-04-13 Thread Nicholas Couloute
Are there any tutorials and uses for serialize() ? I went to php.net and it isn't well documented as I would hope! ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is best way to do handle audio files?

2006-04-09 Thread Nicholas Couloute
s are constantly changing, scandir is probably as fast as it gets... If you rarely alter the files, do scandir once and store the results in, say, MySQL and you can search/sort MUCH faster. On Sat, April 8, 2006 11:01 am, Nicholas Couloute wrote: On my website http://www.sidekick2music.com ! I use sc

[PHP] What is best way to do handle audio files?

2006-04-08 Thread Nicholas Couloute
On my website http://www.sidekick2music.com ! I use scandir() to fetch all the files which are all in subfolders of this one folder. like this: public_html/amrs/$cat/$author/*.amr $cat = different catergoried of music $author = Authors of the particular catergory This way isn't fast when you ha

[PHP] What is best way to do handle audio files?

2006-04-08 Thread Nicholas Couloute
On my website http://www.sidekick2music.com ! I use scandir() [php 5.0] to fetch all the files which are all in subfolders of this one folder. like this: public_html/amrs/$cat/$author/*.amr $cat = different catergoried of music $author = Authors of the particular catergory This way isn't fast

Re: [PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Nicholas Couloute
LOL. I see the point your trying to make! I have made a news script before but how would I add coments to each individual new article! How would I keep it all together! and also to show only the lastest news articles! On Thu, 23 Feb 2006 3:04 pm, Jay Blanchard wrote: [snip] How would I make

[PHP] [How-to]flatfile New system with comments

2006-02-23 Thread Nicholas Couloute
How would I make a flatfile new systen with the ability for users to comment on the news selection (no login required)? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upload via email?

2006-02-15 Thread Nicholas Couloute
How would u make a script that uploads files to ur server via email? 1. user emails the server 2. if there is a audio file (amr) attached then add it a folder! Are there any scripts that can do that? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www

[PHP] Flatfile forum?

2006-02-12 Thread Nicholas Couloute
I am interested in creating a flatfile database forum! How would I go about doing this. I know it has been done before! I want to make one from the ground up! ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Nicholas Couloute
here is what I tried but it doesn't work! any advice suggestions or something? $count = 0; $dir = "/amrs"; $files1 = scandir($dir); if ($files1 !== '.' && $files1 !== '..') { foreach ($files1 as $files2){ $dir2 = "/amrs/$files2"; $files3 = scandir($dir2); if ($files3 !== '.' && $files3 !== '..')

Re: [PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Nicholas Couloute
I have used these functions but how would I count them! here is my attempt that doesn't work!: $count = 0; $dir = "/amrs"; $files1 = scandir($dir); if ($files1 !== '.' && $files1 !== '..') { foreach ($files1 as $files2){ $dir2 = "/amrs/$files2"; $files3 = scandir($dir2); if ($files3 !== '.' && $f

[PHP] Counting files in directory and subdirectory!

2006-01-25 Thread Nicholas Couloute
I want a script where it will count all the amrs in a folder and it's sub folders like this setup: amrs > 50 cent > amrs nitty > amrs bob > amrs How would I do this? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP][SOLVED] How would u strip the path?

2006-01-24 Thread Nicholas Couloute
Thanks that is just what I needed! On Tue, 24 Jan 2006 4:08 am, Paul Scott wrote: On Tue, 2006-01-24 at 04:01 -0500, Nicholas Couloute wrote: how would u strip the path off of a variable? say that: http://za2.php.net/manual/en/function.basename.php basename it! --Paul ~Nick Couloute co

[PHP] How would u strip the path?

2006-01-24 Thread Nicholas Couloute
how would u strip the path off of a variable? say that: $bob = "/home/s2music/b/bob.mp3"; I want bob just to be "bob.mp3"! how would I do that? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP][SOLVED] Re: Search files in a directory!

2006-01-23 Thread Nicholas Couloute
thank you barry! function substr_count() does what I need! On Mon, 23 Jan 2006 9:13 am, Barry Krein wrote: Nicholas Couloute wrote: What would I do to the variable each tome to compare it to the query? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com use substring count or any other

[PHP] Search files in a directory!

2006-01-23 Thread Nicholas Couloute
I want to setup a search box that will search all the filenames in a given directory for the keyword provided by the user and display all the files that have that keyword? how would I do this? at least the searching part? ~Nick Couloute co-owner/Web Designer Sidekick2Music.Com -- PHP General

Re: [PHP] need help arranging files!

2006-01-17 Thread Nicholas Couloute
Weberdev.com is a nice site! On Tue, 17 Jan 2006 11:34 am, Richard Correia wrote: You can locate a good directory reading script at http://www.weberdev.com/get_example-1456.html Thanks, Richard On 1/17/06, Nicholas Couloute <[EMAIL PROTECTED]> wrote: I need to know how to arrange

Re: [PHP] need help arranging files!

2006-01-16 Thread Nicholas Couloute
I figured it out! it runs on my pc but not on the web! $fileroot = "amrs/$cat/"; foreach ($author = scandir($fileroot); as $author){ echo "$author"; } ??? ~Nick Couloute co-owner/web Designer SiDEkiCk2MuSiC.CoM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] need help arranging files!

2006-01-16 Thread Nicholas Couloute
can any one help me out? plz ~Nick Couloute co-owner/web Designer SiDEkiCk2MuSiC.CoM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need help arranging files!

2006-01-16 Thread Nicholas Couloute
I need to know how to arrange files alphabetically in my directory when I display it on the browser! I have it display the filename foreach that exist is there a way to arrange by alphabet? ~Nick Couloute co-owner/web Designer SiDEkiCk2MuSiC.CoM -- PHP General Mailing List (http://www.php.net/)

[PHP] any good tutorials on how to create an online shop?

2006-01-07 Thread Nicholas Couloute
I need to make an online shop that lets the user select multiply files up to 6mbs then they would all send to the users email address! I need help with the online shop part! it won't involve money so no need for sequirity! ay tutorials? ~Nick -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] bulk emailer

2005-03-11 Thread Nicholas W . Miller
the browser and the seem to come in batches of a couple hundred at a time, but it will eventually display all of the addresses with some patience. Nicholas Miller Intercast Media, Inc. 229 19th Ave. Suite 4 San Francisco, CA 94121 415-379-9500 415-520-9501 (fax) [EMAIL PROTECTED] -- PHP Genera

[PHP] pulling content from a URL

2005-03-04 Thread Nicholas W . Miller
can then parse. The URL will be hard coded into the script, so I don't need a lot of error checking to insure correct URL format, etc. Thanks, Nicholas Miller Intercast Media, Inc. 229 19th Ave. Suite 4 San Francisco, CA 94121 415-379-9500 415-520-9501 (fax) [EMAIL PROTECTED] -- PHP Genera

Re: [PHP] [php] search.php

2004-01-29 Thread Nicholas Fitzgerald
Try Axel Search at http://www.geocities.com/nfzgrld [EMAIL PROTECTED] wrote: hi, ASP seek is not ASP i doubt if the author of ASPSeek has ever written a single line of code in ASP. he is a damn good c programmer though. (btw aspseek is based on mnogo anyway) mnogo has a PHP api. and there is n

[PHP] Missing Var

2004-01-29 Thread Nicholas Fitzgerald
Running Red Hat Fedora 1, latest updates. MySQL 3.23.58 PHP 4.3.4 Apache 2.0.48. Uploaded file info not showing up where it's supposed to. Here's the scenario: Here is my "form header": Here is the input field where it gets the filename: Here is the PHP code that execute

Re: [PHP] Age from birthdate?

2003-10-23 Thread Nicholas Robinson
Oh, you're such a pedant. On Thursday 23 Oct 2003 9:08 pm, Ryan A wrote: > Now HERES a good PHP related thread thats been going on for around 2 > days...:-D > > >Yes, but think about all the presents, hangovers, etc. they miss. > > On Thursday 23 Oct 2003 2:12 am, Mike Migurski wrote: > > >> >I do

Re: [PHP] Age from birthdate?

2003-10-23 Thread Nicholas Robinson
Yes, but think about all the presents, hangovers, etc. they miss. On Thursday 23 Oct 2003 2:12 am, Mike Migurski wrote: > >> >I do wonder what the rule for those born on Feb 29'th. Do they > >> >celebrate they're birthday before or after it on non leap years? > >> > >>Neither. They celebrat

Re: [PHP] Using cookies

2003-10-21 Thread Nicholas Robinson
If we're into analogies, how about a cookie containing username/password being much the same as leaving the keys to the house under your doormat? If someone knows that this is a common practice, they can find them and gain access to your house. As I understand it (and I am not a lawyer) the la

Re: [PHP] Is anybody else getting these??

2003-10-20 Thread Nicholas Robinson
I'm feeling left out, I'm not getting any of these. Haven't done since I blocked Hanmir. On Monday 20 Oct 2003 4:11 pm, John Nichel wrote: > Does [EMAIL PROTECTED] need to be removed from the list, or is it > just me? > > Original Message > Subject: Returned mail: see transcript

Re: [PHP] SQL Query OT question for the experts :)

2003-10-17 Thread Nicholas Robinson
The following works in MySQL, but obviously (and unlike your client!) you'll want to do this on a copy of the table first... update londonhotelsallphotos set Number = ( if (@hi != HotelID, @line := 1, @line := @line + 1)), HotelID = (@hi := HotelID) Note that if you run this query more than onc

Re: [PHP] mysql query

2003-10-03 Thread Nicholas Robinson
DESC is a reserved word (used to indicate a DESCending ORDER bY). N On Friday 03 Oct 2003 11:17 am, Cameron Metzke wrote: > ok im stumped lol i have used this code in the past to insert data into > mysql (im relitively new though) > --code > mysql_query("INSERT INTO Images (Image, des

Re: [PHP] TIME

2003-09-02 Thread Nicholas Robinson
Not directly as far as I know. Try using chronyd or similar (google will point you in the right direction). This works well with one of my machines that has a wayward clock and chronyd is happy to work with networks not permanently connected to the internet. On Tuesday 02 Sep 2003 1:11 am, Dale

Re: [PHP] MySQL Left Join Question

2003-09-02 Thread Nicholas Robinson
I'm not clear whether you are saying you get the records where there is a match and no non-matching records, or simply no records at all! What happens if you take out the WHERE clause, do you get all the records from p being displayed with NULLs for c.projectid where no match exists? Nick On

Re: [PHP] Gripe^2 [was Gripe]

2003-08-30 Thread Nicholas Robinson
You could equally ask why we get plagued with silly strap lines like "I used to think I was indecisive, but now I'm not so sure." HTH On Saturday 30 Aug 2003 3:54 am, Curt Zirzow wrote: > Why do people insist on using their work address so we are plagued > with privacy notices and autorespond's

Re: [PHP] Clean Up the sand box time

2003-08-23 Thread Nicholas Robinson
On Friday 22 Aug 2003 10:26 pm, John Taylor-Johnston wrote: > This is my favourite question. Can I clean up my 'if then' statements a > tad? Must be a cleaner way? > Still learning, still having fun :) > Thanks, > John > > $news = mysql_query($sql) or die(print > "document.write(\"".mysql_error().

Re: [PHP] File upload + permissions + .htaccess in php

2003-08-22 Thread Nicholas Robinson
I've had this problem twice recently. Once it was because I'd foolishly moved a script that used relative pathnames. The result was that I was trying to access a file outside the DocumentRoot and it didn't matter what the permissions on the file were, it wasn't trying to open that one at all!

Re: [PHP] Validate The Last Day of Month with server's clock????

2003-08-17 Thread Nicholas Robinson
And the reason I quoted 'usual' is that my suggestion is more portable. On Thursday 14 Aug 2003 11:54 am, Ford, Mike [LSS] wrote: > On 13 August 2003 20:05, Nicholas Robinson wrote: > > On Wednesday 13 Aug 2003 8:00 pm, Scott Fletcher wrote: > > > Hi! > > >

Re: [PHP] Background process

2003-08-14 Thread Nicholas Robinson
Are you sending a after the re-direct to ensure your browser loads the page as soon as possible rather than delaying? If not, this could appear that it isn't re-directing until the script starts. On Wednesday 13 Aug 2003 8:21 pm, Jackson Miller wrote: > I have a script that starts a background

Re: [PHP] Validate The Last Day of Month with server's clock????

2003-08-14 Thread Nicholas Robinson
The 'usual' trick is to set the date to the first day of the month after the one you want and then subtract one day. HTH Nick On Wednesday 13 Aug 2003 8:00 pm, Scott Fletcher wrote: > Hi! > > Here's a trick script. We know that some months have the last day > which is 30 while other is 31.

Re: [PHP] logging of mail() function?

2003-08-14 Thread Nicholas Robinson
I use a bcc to a specific email account. Not pretty but it works. Here's a snippet: /* To send HTML mail, you can set the Content-type header. */ $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-15\r\n"; /* additional hea

  1   2   >