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?
>
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.
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
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
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
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
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
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
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
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
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
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
Google is your friend.
_http://forums.mysql.com/read.php?20,17671,27914_
(http://forums.mysql.com/read.php?20,17671,27914)
Sams, PHP and MySQL Web Development (2005 edition)
PHP Anthology
both good books...
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
I'd be interested in playing with some ideas...
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
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
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
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
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
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
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.
> >
>
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
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
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
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/
> 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
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 ||
[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
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
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
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
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
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
$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
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
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
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
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
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
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
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 ;)
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)
[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
> 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
[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,
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]
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
[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
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
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
[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
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
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:/
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
/*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
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
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
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
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
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
-
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
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
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 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
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
67 matches
Mail list logo