Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-27 Thread Jasper Bryant-Greene
Kevin L'Huillier wrote: > On 27/06/05, Dr. Brad Lustick <[EMAIL PROTECTED]> wrote: >>I'm a novice trying to understand the exact construction of code for doing an >>HTTP 301 permanent redirect for a server >>coded in PHP. Could someone please tell me how I would handle the following >>example? >

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-27 Thread Kevin L'Huillier
On 27/06/05, Dr. Brad Lustick <[EMAIL PROTECTED]> wrote: > I'm a novice trying to understand the exact construction of code for doing an > HTTP 301 permanent redirect for a server > coded in PHP. Could someone please tell me how I would handle the following > example? > > http://www.nimblepedic.

Re: [PHP] ad management

2005-06-27 Thread Kevin L'Huillier
On 27/06/05, Sebastian <[EMAIL PROTECTED]> wrote: > i am looking for a simple ad management app to keep track of ad > views/impressions. i was looking at phpadsnews, but it seems way too > much bloat of what i need i to do. I am not aware of any such package, however you may way to keep in mind th

[PHP] Question about HTTP 301 permanent redirects

2005-06-27 Thread Dr. Brad Lustick
Hi, I'm a novice trying to understand the exact construction of code for doing an HTTP 301 permanent redirect for a server coded in PHP. Could someone please tell me how I would handle the following example? http://www.nimblepedic.com/services-bodytools.php?i=bodytools WANT TO DO A HTTP 301 RE

Re: [PHP] Breaking up data efficiently

2005-06-27 Thread Kevin L'Huillier
I agree, your implementation is efficient. It does depend on the data being entirely proper, however. If you can not be entirely sure (and you should rarely be), i might add a suggestion that increases code length, but decreases the chance of problems: You might consider creating a function to v

Re: [PHP] Re: Email screwing my swedish characters

2005-06-27 Thread Manuel Lemos
Hello, on 06/28/2005 12:23 AM Ryan A said the following: when someone joins the site they get a welcome letter, but unfortunatly in the welcome letter the Swedish characters ÖÅÄ and öåä are getting replaced with a "?" (without quotes) You cannot send messages with 8 bit characters. To

[PHP] ad management

2005-06-27 Thread Sebastian
i am looking for a simple ad management app to keep track of ad views/impressions. i was looking at phpadsnews, but it seems way too much bloat of what i need i to do. anyone know of a simple ad script to keep track of views/impressions? thanks. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Email screwing my swedish characters

2005-06-27 Thread Ryan A
Hi, Thanks for replying. > > when someone joins the site they get a welcome letter, but > unfortunatly in > > the welcome letter > > the Swedish characters ÖÅÄ and öåä are getting replaced with a "?" > (without quotes) > You cannot send messages with 8 bit characters. To send your message you

[PHP] Re: Email screwing my swedish characters

2005-06-27 Thread Manuel Lemos
Hello, on 06/27/2005 11:44 PM Ryan A said the following: > Having a bit of a problem, I've just completed a project for a Swedish > company, > when someone joins the site they get a welcome letter, but unfortunatly in > the welcome letter > the Swedish characters ÖÅÄ and öåä are getting replace

[PHP] Dynamic pspell module, and adding new words to the list

2005-06-27 Thread Dan Rossi
Hi there, an internal client of ours requires spell checking in their textarea forms on names of people for searching thousands of records properly. What it needs to be able to do is add new names to the dictionary. The server its on is a few years old, it already has the pspell and aspell libr

[PHP] Email screwing my swedish characters

2005-06-27 Thread Ryan A
Hi guys, Having a bit of a problem, I've just completed a project for a Swedish company, when someone joins the site they get a welcome letter, but unfortunatly in the welcome letter the Swedish characters ÖÅÄ and öåä are getting replaced with a "?" (without quotes) Any idea whats wrong and how I

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-27 Thread Bob Winter
Brian, Can you post more of the script? --Bob Brian V Bonini wrote: On Mon, 27 Jun 2005, [ISO-8859-1] Andr? Medeiros wrote: $cmd = 'scp ' . $user . '@stagingcws.' . $tld . ':' . $directory/{' . $files . '} ' . $tmp_dir . '/'; That should work On 6/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTE

Re: [PHP] Display picture from MySQL

2005-06-27 Thread Esteamedpw
Google is your friend. _http://forums.mysql.com/read.php?20,17671,27914_ (http://forums.mysql.com/read.php?20,17671,27914)

Re: [PHP] Object Oriented PHP (5)

2005-06-27 Thread Esteamedpw
Sams, PHP and MySQL Web Development (2005 edition) PHP Anthology both good books...

Re: [PHP] Breaking up data efficiently -- closed

2005-06-27 Thread Wee Keat
Hi all, Thanks for all the input. Really an eye opener on all the various ways that could do the same thing! :) Really appreciate it. Off to work with new ideas! Tom Rogers wrote: > function build($data){ > global $path; > $i = count($path); > $path[$i]['location'] = $data[1]; > $path[$i

Re: [PHP] looking for a pure startup opportunity..

2005-06-27 Thread Esteamedpw
I'd be interested in playing with some ideas...

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-27 Thread Jasper Bryant-Greene
Brian V Bonini wrote: >>> I can echo out the command and get a well formed command, i.e. >>> one that will execute from a command prompt, but when I try to >>> exec() $cmd from within the script the globbing is taken >>> literally. Try shell_exec(). I don't think exec() goes via the shell. -- PH

RE: [PHP] looking for a pure startup opportunity..

2005-06-27 Thread bruce
richard... you're too cynical... but why do you not believe that you and 3-4 of your peers couldn't build something that would work... mean.. if you think about it.. you probably already possess the skills that you need to get something started... but let me ask you... do you think that you and

Re[2]: [PHP] Breaking up data efficiently

2005-06-27 Thread Tom Rogers
Hi, Tuesday, June 28, 2005, 10:26:12 AM, you wrote: TR> This ay work: TR> $str = 'Melbourne, AU, 21-07-2005 14:00:00|Perth, AU, TR> 21-07-2005 18:00:00|Perth, AU, 25-07-2005 14:00:00|Melbourne, AU, TR> 25-07-2005 18:00:00'; TR> preg_match_all('/(\w+),\s*(\w+),\s*([0-9-]+)\s([0-9:]+)(?=\|)/s',$s

Re: [PHP] looking for a pure startup opportunity..

2005-06-27 Thread Richard Davey
b> i'm of the firm opinion that the right group, willing to sweat/work b> together, can build a pretty good business. this approach requires b> the parties to work on it part-time, until it generates revenues, b> and sustains itself. [snip] This is the 1990s calling, we want our wishful thinking

Re: [PHP] Breaking up data efficiently

2005-06-27 Thread Tom Rogers
Hi, Tuesday, June 28, 2005, 9:34:28 AM, you wrote: WK> Hi All, WK> I'm working on an aircraft booking system and it has multiple WK> origin/destination data, concatenated into a single line: WK> /* BEGIN DATA */ WK> Melbourne, AU, 21-07-2005 14:00:00|Perth, AU, 21-07-2005 18:00:00|Pert

[PHP] looking for a pure startup opportunity..

2005-06-27 Thread bruce
hi... i'm out here in california, the bay area, and was wondering if anyone on the list is interested in either being partners, forming a sweat equity startup? or if anyone has an idea/concept, and you're looking for people to be part of your team... i've read way too many articles about the 3 ki

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-27 Thread Brian V Bonini
On Mon, 27 Jun 2005, [ISO-8859-1] Andr? Medeiros wrote: > $cmd = 'scp ' . $user . '@stagingcws.' . $tld . ':' . $directory/{' . > $files . '} ' . $tmp_dir . '/'; > > That should work > > On 6/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Can not make this work inside a php script. > > >

Re: [PHP] Breaking up data efficiently

2005-06-27 Thread Philip Hallstrom
On Tue, 28 Jun 2005, Wee Keat wrote: Hi All, I'm working on an aircraft booking system and it has multiple origin/destination data, concatenated into a single line: /* BEGIN DATA */ Melbourne, AU, 21-07-2005 14:00:00|Perth, AU, 21-07-2005 18:00:00|Perth, AU, 25-07-2005 14:00:00|Melbo

[PHP] Re: Breaking up data efficiently

2005-06-27 Thread Jasper Bryant-Greene
Wee Keat wrote: > /* BEGIN DATA */ > > Melbourne, AU, 21-07-2005 14:00:00|Perth, AU, 21-07-2005 18:00:00|Perth, > AU, 25-07-2005 14:00:00|Melbourne, AU, 25-07-2005 18:00:00 > > /* END DATA */ > [snip] > /* BEGIN CODE */ > $itenary = explode('|', $booking->booking_flight_de

[PHP] Breaking up data efficiently

2005-06-27 Thread Wee Keat
Hi All, I'm working on an aircraft booking system and it has multiple origin/destination data, concatenated into a single line: /* BEGIN DATA */ Melbourne, AU, 21-07-2005 14:00:00|Perth, AU, 21-07-2005 18:00:00|Perth, AU, 25-07-2005 14:00:00|Melbourne, AU, 25-07-2005 18:00:00 /* EN

[PHP] APD Problem

2005-06-27 Thread Amir Mohammad Saied
Help! I have installed the APD, but when i want to execute a page to have it's pprof.id in the apd.dumpdir for checking it by pprofp the execution terminate with this fatal error (for example): Fatal error: apd_set_pprof_trace() failed to open /tmp/traces/pprof.07084 for tracing in /var/www/

[PHP] Re: Sybase and PHP

2005-06-27 Thread Jamie Alessio
> Does anyone know how to build PHP with sybase support without having a > sybase server running on the local machine > Joe, You can access Sybase with PHP by using the FreeTDS libraries. You don't need to install anything from Sybase on the webserver you mention. Get FreeTDS from http://www.fr

Re: [PHP] Removing nonlatin characters

2005-06-27 Thread Dotan Cohen
On 6/27/05, John Nichel <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > > What CAN'T php do?!? > > > I can't get it to alter space-time...yet. > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > [EMAIL PROTECTED] > function spacetime($distance,$time) { if ( $time<$now ||

RE: [PHP] Removing nonlatin characters

2005-06-27 Thread Jay Blanchard
[snip] Dotan Cohen wrote: > What CAN'T php do?!? I can't get it to alter space-time...yet. [/snip] E-mail me for the formula. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Removing nonlatin characters

2005-06-27 Thread John Nichel
Dotan Cohen wrote: What CAN'T php do?!? I can't get it to alter space-time...yet. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Removing nonlatin characters

2005-06-27 Thread Dotan Cohen
On 6/27/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote: > Have you seen: > > http://us2.php.net/manual/en/function.recode-string.php > > kgt > No, I didn't see that. Thank you! What CAN'T php do?!? Dotan Cohen http://lyricslist.com/lyrics/artist_albums/23/aguilera_christina.php Aguilera, Chr

Re: [PHP] Re: the EXEC command

2005-06-27 Thread John Nichel
Jason Barnett wrote: mikael wrote: I wanted to use the exec function but when i did a simple test script i got no result. This is the testscript: exec('whoami', $stdout, $stderr); print "Standard Out:\n"; print_r($stdout); print "Standard Error:\n"; print_r($stderr); And there's ht

[PHP] Re: the EXEC command

2005-06-27 Thread Jason Barnett
mikael wrote: I wanted to use the exec function but when i did a simple test script i got no result. This is the testscript: exec('whoami', $stdout, $stderr); print "Standard Out:\n"; print_r($stdout); print "Standard Error:\n"; print_r($stderr); -- NEW? | http://www.catb.org/~esr/faqs/smar

[PHP] the EXEC command

2005-06-27 Thread mikael
I wanted to use the exec function but when i did a simple test script i got no result. This is the testscript: tested also with echo exec('whoami'); but no result... the server in NOT in safe_mode and other php-files works fine. and if i would get this to work how should i do to execute a

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-27 Thread André Medeiros
$cmd = 'scp ' . $user . '@stagingcws.' . $tld . ':' . $directory/{' . $files . '} ' . $tmp_dir . '/'; That should work On 6/27/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Can not make this work inside a php script. > > Have tried several variations: > $cmd = "scp [EMAIL PROTECTED]:$direct

[PHP] shell expansion (globbing) from inside php cli script

2005-06-27 Thread b-bonini
Can not make this work inside a php script. Have tried several variations: $cmd = "scp [EMAIL PROTECTED]:$directory/\{$files} $tmp_dir/."; $cmd = "scp [EMAIL PROTECTED]:$directory/" . '{' . $files . '} ' . "$tmp_dir/."; etc... I can echo out the command and get a well formed command, i.e. one t

RE: [PHP] PHP vs. ColdFusion

2005-06-27 Thread Matt Babineau
Yeah -> I'll second all of this. I'm a Certified Macromedia CF Developer, why do you ask am I on this list? The answer is simple, php is better. However with the recent developments in CF6, CF has become very comparable. Why would I still choose PHP over CF given this? Ease of management. I don't h

Re: [PHP] PHP vs. ColdFusion

2005-06-27 Thread Brad Pauly
On 6/26/05, Rick Emery <[EMAIL PROTECTED]> wrote: > My employer has (finally) decided to take full advantage of our > intranet, and wants to move from client-server applications to > web-based applications. To that end, we're trying to determine the best > platform for our applications. We're a Mic

Re[2]: [PHP] removing chars from string

2005-06-27 Thread Richard Davey
Hello Stut, Monday, June 27, 2005, 4:59:17 PM, you wrote: >> 0-8 is nine characters, which is two less than eleven, IIRC S> So the length should be 9 not 8 no? Or should I go back to school? It should be 9 if you want 9 characters. Lots of PHP functions are zero-based, but the 3rd parameter to

Re: [PHP] removing chars from string

2005-06-27 Thread Stut
Jay Blanchard wrote: 0-8 is nine characters, which is two less than eleven, IIRC So the length should be 9 not 8 no? Or should I go back to school? -Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] removing chars from string

2005-06-27 Thread John Nichel
Stut wrote: Jay Blanchard wrote: 0-8 is nine characters, which is two less than eleven, IIRC So the length should be 9 not 8 no? Or should I go back to school? Forgive us, it's Monday. $newstring = substr ( $oldstring, 0, 9 ); Will knock the last two characters off of an eleven characte

Re: [PHP] removing chars from string

2005-06-27 Thread John Nichel
Jay Blanchard wrote: [snip] Jay Blanchard wrote: I know that it is length, and I gave the correct length for an 11 character string minus two characters. But as always, there is more than one way to skin a mule. Did you take Math in Mississippi? ;) [/snip] As a matter of fact ;)

Re[2]: [PHP] removing chars from string

2005-06-27 Thread Richard Davey
Hello Jay, Monday, June 27, 2005, 4:46:36 PM, you wrote: JB> I know that it is length, and I gave the correct length for an 11 JB> character string minus two characters. But as always, there is JB> more than one way to skin a mule. Would that be a three-legged mule? :-) (you're one short : 0,8)

RE: [PHP] removing chars from string

2005-06-27 Thread Jay Blanchard
[snip] $string = '12345678901'; $jayString = substr($string, 0, 9); $kevinString = substr($string, 0, 8); echo $jayString; // echos 123456789 echo ''; // echos 12345678 echo $kevinString; It turns out to "skin" a mule is to outsmart him. Because mules aren't actually stubborn, they're just smart

Re: [PHP] removing chars from string

2005-06-27 Thread Josh Olson
> I know that it is length, and I gave the correct length for an 11 character > string minus two characters. But as always, there is more than > one way to skin a mule. $string = '12345678901'; $jayString = substr($string, 0, 9); $kevinString = substr($string, 0, 8); echo $jayString; // echos

RE: [PHP] removing chars from string

2005-06-27 Thread Jay Blanchard
[snip] Jay Blanchard wrote: > I know that it is length, and I gave the correct length for an 11 > character string minus two characters. But as always, there is more than > one way to skin a mule. Did you take Math in Mississippi? ;) [/snip] As a matter of fact ;) 0-8 is nine characters,

Re: [PHP] removing chars from string

2005-06-27 Thread John Nichel
Jay Blanchard wrote: I know that it is length, and I gave the correct length for an 11 character string minus two characters. But as always, there is more than one way to skin a mule. Did you take Math in Mississippi? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED]

Re: [PHP] removing chars from string

2005-06-27 Thread Richard Davey
Hello Paul, Monday, June 27, 2005, 4:33:35 PM, you wrote: PN> If a have a string thats 11 characters long how can I strip off PN> the last two characters? $newstring = substr($string, 0, -2); Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fea

RE: [PHP] removing chars from string

2005-06-27 Thread Jay Blanchard
[snip] Paul Nowosielski <[EMAIL PROTECTED]> wrote: > If a have a string thats 11 characters long how can I strip off the last > two characters? Jay Blanchard <[EMAIL PROTECTED]> wrote: > $newString = substr($oldString, 0, 8); > echo $newString; substr's third argument is length, not position. It

Re: [PHP] Re: PHP vs. ColdFusion

2005-06-27 Thread Angelo Zanetti
as well as a great templating engine: smarty (there are others as well) Please let us know what the outcome is!! thanks Angelo Anton Kovalenko wrote: >PHP is open source. It's highly supported by lots of developers. >It's free. There are many different libraries such as PEAR, for instance. >The

Re: [PHP] removing chars from string

2005-06-27 Thread Kevin L'Huillier
Paul Nowosielski <[EMAIL PROTECTED]> wrote: > If a have a string thats 11 characters long how can I strip off the last > two characters? Jay Blanchard <[EMAIL PROTECTED]> wrote: > $newString = substr($oldString, 0, 8); > echo $newString; substr's third argument is length, not position. It also a

RE: [PHP] removing chars from string

2005-06-27 Thread Jay Blanchard
[snip] If a have a string thats 11 characters long how can I strip off the last two characters? [/snip] $newString = substr($oldString, 0, 8); echo $newString; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] removing chars from string

2005-06-27 Thread Paul Nowosielski
Hi, If a have a string thats 11 characters long how can I strip off the last two characters? TIA! Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP search

2005-06-27 Thread Jason Barnett
Bruce Gilbert wrote: Hello, I am fairly new to PHP, and I am looking to create a search functionality on a website using php. Can anyone point me to a good tutorial that can walk me through this? Between Google / Codewalkers / PHPFreaks you should be able to find something. -- NEW? | http:/

Re: [PHP] Display picture from MySQL

2005-06-27 Thread Angelo Zanetti
or you could just store the path to where the directory is in the database and go find the file according to the path and filename. HTH Georgi Ivanov wrote: >/*Fetch the image :*/ >$res=mysql_query("select picture from pics_table where id=1") or die("err"); >$line=mysql_fecth_array($res); >/*Sen

Re: [PHP] Display picture from MySQL

2005-06-27 Thread Georgi Ivanov
/*Fetch the image :*/ $res=mysql_query("select picture from pics_table where id=1") or die("err"); $line=mysql_fecth_array($res); /*Send headers*/ header("content-type: image/png"); echo $line[picture]; On Monday 27 June 2005 15:38, Bagus Nugroho wrote: > Hi All, > > I'm looking for tutorial/temp

[PHP] PHP 5.0.4 compilation under Mac

2005-06-27 Thread Nicolas Diez
Hello, I've search the archive but doesn't find anything about what I will expose to you. There is my problem : I've followed the following tutorial : http://www.phpmac.com/articles.php?view=221 , in order to compile apache 2.0.54 and php 5.0.4 under MacOSX Tiger 10.4.1. XCode is installed on the

Re: [PHP] Re: $mydata->StampDate

2005-06-27 Thread Kevin L'Huillier
On 27/06/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > John Taylor-Johnston wrote: > > I could just change the field type. But how do you calculate it? I don't > > see much to inspire a start. I'm not a full-time coder either. More of a > > tinkerer. I don't want someone to do it for me, bu

Re: [PHP] Removing nonlatin characters

2005-06-27 Thread Kristen G. Thorson
Have you seen: http://us2.php.net/manual/en/function.recode-string.php kgt Dotan Cohen wrote: I thought that this was another old STFA but marc and google are quiet. I as parsing a bunch of submitted works and some of them have non-latin characters. I know that I once saw in the user-subm

[PHP] daemons listen on apache port when run by php

2005-06-27 Thread Dusan Smolnikar
I am trying to run a daemon via php4 & apache2 (on debian sarge). I am using the command "exec('sh script.sh');". All works fine, my daemon (which I run with script.sh) is running. But when I stop apache, I can see that the daemon I ran previously is listening on port 80 (apache port). This d

Re: [PHP] Display picture from MySQL

2005-06-27 Thread Greg Donald
On 6/27/05, Bagus Nugroho <[EMAIL PROTECTED]> wrote: > I'm looking for tutorial/template/code, how to display a picture on web > pages which the picture is stored on MySQl database. You can download a copy of my image rating script and have a look at the image.php. http://destiney.com/Scripts -

[PHP] Display picture from MySQL

2005-06-27 Thread Bagus Nugroho
Hi All, I'm looking for tutorial/template/code, how to display a picture on web pages which the picture is stored on MySQl database. Thanks in advance, regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] array_diff php version

2005-06-27 Thread Shaw, Chris - Accenture
As far as I can see in the Help File, Array_Diff was introduced in 4.0.1 and should be in the version you are using. Does it not work? -Original Message- From: André Le Tissier [mailto:[EMAIL PROTECTED] Sent: 26 June 2005 10:20 To: php-general@lists.php.net Subject: [PHP] array_diff php

[PHP] status

2005-06-27 Thread Bounced mail
The original message was received at Mon, 27 Jun 2005 13:10:24 +0200 from [127.20.163.238] - The following addresses had permanent fatal errors - php-general@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP vs. ColdFusion

2005-06-27 Thread Anton Kovalenko
PHP is open source. It's highly supported by lots of developers. It's free. There are many different libraries such as PEAR, for instance. There many free frameworks for creating convinient modular and easyly managebale applications both web and command line. I can name mojavi.org as a brilliant MV

Re: [PHP] including the result of one query in another query

2005-06-27 Thread Burhan Khalid
Pedro Quaresma de Almeida wrote: Hi I have two databases, on for aeromodelistas (aeromodelling) and another for Códigos Postais (Postal Codes). I whant to do the following query SELECT CódigoPostal FROM Aeromodelistas WHERE CódigoPostal IN (SELECT distinct(CP4) FROM codigopostal.LOCART,codi