On Wed, 2008-11-05 at 18:16 -0800, Richard Kurth wrote:
> is the a php function to find a word in a string and report back that it
> was found
>
include "manual.php";
lesson = new manual();
lesson->string->read();
Ash
www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
On Wed, 2008-11-05 at 18:50 -0600, Micah Gersten wrote:
> > Yep, with a regex, it's real easy (untested code):
> >
> > >
> > $fileData = file_get_contents("text,txt");
> > $newFileData = preg_replace('/^\d+?\.\s?(.*$)/m','/$1/', $fileData);
> > file_put_contents("newfile.txt", $newFileData);
> >
>
Hi All,
I am using PHP's senderxml library to generate the xml. My problem is that
xml generated by this library encode some characters like >, & etc. Since i
have to give the output xml to the device so i don't want to encode these
characters.
I know there is html_entity_decode method which can d
Richard Kurth wrote:
is the a php function to find a word in a string and report back that it
was found
Did you even look at the string section of the php manual?
http://us3.php.net/manual/en/ref.strings.php
Start here, it will get you all the information you are wanting.
you have strstr()
http://php.net/strstr
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Richard Kurth wrote:
> is the a php function to find a word in a string and report back that
> it was found
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Zhao chunliang[chunliang.zhao] wrote:
>
> I'll use the string to decrypt, so that I want to they are the same.
>
> When I use 'urlencode', some other string will be changed. Like '/'
see also http://php.net/rawurlencode
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP
I'll use the string to decrypt, so that I want to they are the same.
When I use 'urlencode', some other string will be changed. Like '/'
Thanks very much!!
>> -Original Message-
As Todd said, PHP is decoding the URL encoded cookie. The cookie has a
'+' in it, because the HTTP
On Wed, Nov 5, 2008 at 10:13 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: Shelley [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, November 05, 2008 4:19 AM
> > To: Aschwin Wesselius
> > Cc: php List
> > Subject: Re: [PHP] PHP screenshot capture code needed
>
is the a php function to find a word in a string and report back that it
was found
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
As Todd said, PHP is decoding the URL encoded cookie. The cookie has a
'+' in it, because the HTTP headers cannot submit a space. That's why
when you use Javascript, it shows you what's in the cookie, but when you
use PHP, it shows the space. Which behavior do you prefer? If you want
to see the +,
First thanks for Todd 's help
I do have some questions.
1.Open the url : http://127.0.0.1/showCookie.php
ShowCookie.php code:
alert('" . $_COOKIE['TCSPUBLICJAUTHM'] ."');";
?>
it's pop-up show :
[TCSPUBLICJAUTHM] => USER_ID=/zhW/2
> Yep, with a regex, it's real easy (untested code):
>
>
> $fileData = file_get_contents("text,txt");
> $newFileData = preg_replace('/^\d+?\.\s?(.*$)/m','/$1/', $fileData);
> file_put_contents("newfile.txt", $newFileData);
>
> ?>
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Develo
Ashley Sheridan wrote:
> On Wed, 2008-11-05 at 11:52 -0500, Wolf wrote:
>
>> 1. Some Text here
>> 2. Another Line of Text
>> 3. Yet another line of text
>> 340. All the way to number 340
>>
>> And I want to remove the Number, period, and blank space at the
>>
libmysql.dll does come with the mysql server as well as with the php
download. I tried replacing the libmysql.dll from php with the one
shipped with mysql6 as mentioned in the original post without success.
To confirm, are you saying that php_mysql.dll would need to be updated
in order for
On Wed, 2008-11-05 at 12:41 -0600, WEISD wrote:
> On a php web page I want to generate a random number between say 1 and 10
> and then use that number to reference a particular file in an include tag.
>
>
>
> Is there an easy way to do this?
>
> Thanks
>
include "manual.php";
lesson = new
On Wed, 2008-11-05 at 19:13 +0200, Thodoris wrote:
> > Command unkown. Make sure you typed it right.
> >
> >
>
> Do you think that this cryptic number 648-67-61 has to do with the
> answer of all things? Like 42 for e.g.?
>
> My russian (or whatever this is) suck more then my English. That's
On Wed, 2008-11-05 at 11:52 -0500, Wolf wrote:
> > >>> 1. Some Text here
> > >>> 2. Another Line of Text
> > >>> 3. Yet another line of text
> > >>> 340. All the way to number 340
> > >>>
> > >>> And I want to remove the Number, period, and blank space at the
> > >> begining
> > >>> of each line.
On Wed, 2008-11-05 at 18:48 +0200, Thodoris wrote:
> > Richard Heyes a écrit :
> >>> users who browse without Javascript enabled,
> >>
> >> Heretics!
> >>
> >
> > No, paranoid :D
> >
>
> Do these people really exist? I though that their extinction happened
> the same with the dinosaurs.
>
> --
On Wed, 2008-11-05 at 09:11 -0500, Joe Schaeffer wrote:
> >> I would say to do that with CSS, not building it into the output.
>
> That's actually how I've got things set up now -- I just rarely trust
> the house-of-cards that is nested lists in CSS (and I've gone and
> complicated things with fir
Chris wrote:
Daniel Kolbo wrote:
Daniel Kolbo wrote:
Hello PHP community,
This question may be more for the MySQL community. If so, my
apologies, please let me know.
I am using php v 5.2.6.
I have two versions of MySQL running on my server (windows xp home
sp3).
MySQL v6 is running
Daniel Kolbo wrote:
Daniel Kolbo wrote:
Hello PHP community,
This question may be more for the MySQL community. If so, my
apologies, please let me know.
I am using php v 5.2.6.
I have two versions of MySQL running on my server (windows xp home sp3).
MySQL v6 is running on localhost:330
Daniel Kolbo wrote:
Hello PHP community,
This question may be more for the MySQL community. If so, my
apologies, please let me know.
I am using php v 5.2.6.
I have two versions of MySQL running on my server (windows xp home sp3).
MySQL v6 is running on localhost:3306
MySQL v5.0.41 is ru
Umm I must notify you, just in case you don't know this, that you have to be
aware of the fact that the humanity haven't found a way to get a random
number (yet. they are working on it while I'm writing this..) (;
On Wed, Nov 5, 2008 at 9:43 PM, Gary M. Josack <[EMAIL PROTECTED]> wrote:
> WEI
Hello PHP community,
This question may be more for the MySQL community. If so, my
apologies, please let me know.
I am using php v 5.2.6.
I have two versions of MySQL running on my server (windows xp home sp3).
MySQL v6 is running on localhost:3306
MySQL v5.0.41 is running on localhost:3307
Seems to me that this would work, assuming at least one space after the '.' in
every line:
$string = ltrim($string, "0123456789.");
if ($string[0] == ' ') $string = substr($string, 1);
But perhaps I'm missing something...
I dunno if the OP can guarantee at least one space or not.
I m
Thodoris wrote:
>
>> Boyd, Todd M. wrote:
>>
-Original Message-
From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 1:40 PM
To: Adam Williams
Cc: PHP General list
Subject: Re: [PHP] removing text from a string
On Tue, 2
WEISD wrote:
Just starting out, thanks.
So,
I should have prefaced the question with, New to PHP...
""TG"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Here's how you generate a random number:
http://us.php.net/manual/en/function.rand.php
There are a number of things
Stephen wrote:
On a php web page I want to generate a random number
between say 1 and 10
and then use that number to reference a particular file in
an include tag.
Is there an easy way to do this?
Get the time and use the last digit converting 0 to 10.
Stephen
rand(1, 10);
--
P
Just starting out, thanks.
So,
I should have prefaced the question with, New to PHP...
""TG"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Here's how you generate a random number:
http://us.php.net/manual/en/function.rand.php
There are a number of things you can do wit
Here's how you generate a random number:
http://us.php.net/manual/en/function.rand.php
There are a number of things you can do with that to select a random file and
include it. Have an associative array where the random number matches an
array key and the value is the filename you want, is one
> On a php web page I want to generate a random number
> between say 1 and 10
> and then use that number to reference a particular file in
> an include tag.
>
>
>
> Is there an easy way to do this?
Get the time and use the last digit converting 0 to 10.
Stephen
--
PHP General Mailing List
On a php web page I want to generate a random number between say 1 and 10
and then use that number to reference a particular file in an include tag.
Is there an easy way to do this?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
I used dba-open (http://us2.php.net/manual/en/function.dba-open.php)
to create a simple database file. The linux file command tells me
that the file is just "data":
# file test.db
test.db: data
I assume this is refered to a "Constant Database" or a DB2 file.
I'm able to insert, fetch, and
no comment
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, Nov 5, 2008 at 1:47 AM, Rene Veerman <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I'm trying to build a new admin interface for my cms, in a single screen.
>
> I was thinking to have a tree-view on the left side of that screen,
> something like
> +Site-Name
> + UserGroups and Users (node-type sect
...
Bearing in mind that I can't be bothered to read your entire email
(sorry!) the HTML_TreeMenu code in PEAR will make building trees for
display much easier, and combined with my array based tree class, it
will suddenly become as easy as an experienced hooker. (I'm told)
[1] http:
Command unkown. Make sure you typed it right.
Do you think that this cryptic number 648-67-61 has to do with the
answer of all things? Like 42 for e.g.?
My russian (or whatever this is) suck more then my English. That's a
new experience, never felt it before.
--
Thodoris
--
PHP Ge
On Wed, Nov 5, 2008 at 11:53 AM, Thodoris <[EMAIL PROTECTED]> wrote:
>
> How do you manage all these strange things you guys ?
We sit down, shut up, and do what Big Brother tells us to do.
Oceania err, Pennslvania is a beautiful state in which to
live.
--
http://www.parasane.net/
[E
On Wed, 2008-11-05 at 20:25 +1030, David Robley wrote:
> tedd wrote:
>
> > At 11:10 AM -0500 11/3/08, Robert Cummings wrote:
> >>Give a man some fish, he'll be back later for more!
> >>
> >
> > Yeah, but teach him to fish and you'll have to listen to all his fish
> > stories.
>
> Hand him a full
At 2:34 PM -0600 11/4/08, Boyd, Todd M. wrote:
> -Original Message-
> From: Wolf [mailto:[EMAIL PROTECTED]
> Also remember, all US based sites have to be in compliance with
ADA as
well, otherwise you'll spend a lot of time re-writing your stuff if it
doesn't work for someone to u
> >>> 1. Some Text here
> >>> 2. Another Line of Text
> >>> 3. Yet another line of text
> >>> 340. All the way to number 340
> >>>
> >>> And I want to remove the Number, period, and blank space at the
> >> begining
> >>> of each line. How can I accomplish this?
> >>>
> >>> Opening the file to modi
Richard Heyes a écrit :
users who browse without Javascript enabled,
Heretics!
No, paranoid :D
Do these people really exist? I though that their extinction happened
the same with the dinosaurs.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
Boyd, Todd M. wrote:
-Original Message-
From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 1:40 PM
To: Adam Williams
Cc: PHP General list
Subject: Re: [PHP] removing text from a string
On Tue, 2008-11-04 at 08:04 -0600, Adam Williams wrote:
I ha
On Wed, 2008-11-05 at 11:25 -0500, Dan Joseph wrote:
> On Wed, Nov 5, 2008 at 11:18 AM, Robert Cummings <[EMAIL PROTECTED]>wrote:
>
> >
> > Isn't that redundant with the light him on fire option? With the light
> > him on fire part he'll be warm for the rest of his life and then he
> > won't bothe
On Wed, Nov 5, 2008 at 11:18 AM, Robert Cummings <[EMAIL PROTECTED]>wrote:
>
> Isn't that redundant with the light him on fire option? With the light
> him on fire part he'll be warm for the rest of his life and then he
> won't bother anyone again :)
>
>
I've been trying to point that out in my si
Boyd, Todd M. wrote:
>> -Original Message-
>> From: Ashley Sheridan [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, November 04, 2008 1:40 PM
>> To: Adam Williams
>> Cc: PHP General list
>> Subject: Re: [PHP] removing text from a string
>>
>> On Tue, 2008-11-04 at 08:04 -0600, Adam Williams wro
At 2:34 PM -0600 11/4/08, Boyd, Todd M. wrote:
> -Original Message-
> From: Wolf [mailto:[EMAIL PROTECTED]
> Also remember, all US based sites have to be in compliance with ADA as
well, otherwise you'll spend a lot of time re-writing your stuff if it
doesn't work for someone to use
> -Original Message-
> From: Zoran Bogdanov [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2008 5:42 AM
> To: php-general@lists.php.net
> Subject: [PHP] Secure redirection?
>
> Hi,
>
> I'm building a login system with AJAX/PHP/MySQL.
>
> I have worked everything out... AJAX is
> -Original Message-
> From: Shelley [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2008 4:19 AM
> To: Aschwin Wesselius
> Cc: php List
> Subject: Re: [PHP] PHP screenshot capture code needed
>
> yes, saw that.
> but that's not what I wanted. :)
>
> On Wed, Nov 5, 2008 at 6:04
> -Original Message-
> From: Zhao chunliang[chunliang.zhao]
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 05, 2008 3:52 AM
> To: php-general@lists.php.net
> Subject: 答复: [PHP]COOKIE or coding
>
>1.Open the url : http://127.0.0.1/showCookie.php
>
>
>> I would say to do that with CSS, not building it into the output.
That's actually how I've got things set up now -- I just rarely trust
the house-of-cards that is nested lists in CSS (and I've gone and
complicated things with first-child selectors all over the place)!
Thanks, all, for the grea
On Wed, Nov 5, 2008 at 8:47 AM, Oscar Gosdinski <[EMAIL PROTECTED]> wrote:
> Name the select tag as sub_projects[], then in PHP you can read the
> $sub_project variable as an array.
Oops, my error... you have to use the $_POST['sub_projects'] variable
as an array.
--
Saludos
Oscar
--
PHP Gener
On Sat, Nov 1, 2008 at 6:20 PM, Michelle Konzack
<[EMAIL PROTECTED]> wrote:
> multiple="multiple" size="10">
> ATX 120
> ATX 60
> ATX 90
> Device 2
> Device 4
> Lowvoltage
> P4 Module
> SATA 2
> SATA 4
> SATA 8
>
>
> Hell, why is $
I wonder why you redirect the page via php when the browser supports JavaScript
Why not let JS do the redirect after the XMLHttpRequest?
figurative code ..
if (BROWSER DOES NOT SUPPORT JS) header("Location: http://$host$url";);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
Michelle Konzack a écrit :
and as you can see, there are three items taged... So, this part is
working fine, but if I select an additional item and hit SUBMIT I get
only:
How do you select it ? By a click or a ctrl-click ?
--
Mickaël Wolff aka Lupus Michaelis
http://lupusmic.org
--
P
Hi,
I'm building a login system with AJAX/PHP/MySQL.
I have worked everything out... AJAX is sending request to a php login
script (login.php) who if authentication passes initializes the session and
sends the header using header("Location : registered_user_area.php");
The whole system works g
Hello,
I am generating a HTML form from a database and it looks (CSS striped)
like:
8<--
Fuzzy
ATX 120
ATX 60
ATX 90
Device 2
Device 4
Lowvoltage
Am 2008-10-29 09:01:09, schrieb Frank Arensmeier:
> Hi Tul.
>
> I think would be an idea worth investigating a little bit more. But
> what about performance? I am really not that familiar with version
> control systems like CVS etc. Let's say there are 30 different text
> snippets with 10 re
Am 2008-10-29 08:50:39, schrieb Frank Arensmeier:
> Not only that. What would happen if they update TextDiff and all
> stored serialized arrays got obsolete? The system is aimed to store
Then you should use something like
exec(diff -Nurp ${ORIGFILE} ${NEWFILE} >${DIFFFILE});
GNU diff has
Hello Frank,
Do you use Linux or Windows?
If Windows you have already lost since the cluster size of e.g.
Windows 2003 is 32 kByte or 64 kByte...
If Linux, you can setup the partitoin to use a blocksize of 1, 2, 4 or
8 kByte.
I asume you are using Linux and "two or three sentences pe
> ...
Bearing in mind that I can't be bothered to read your entire email
(sorry!) the HTML_TreeMenu code in PEAR will make building trees for
display much easier, and combined with my array based tree class, it
will suddenly become as easy as an experienced hooker. (I'm told)
[1] http://pear.
yes, saw that.
but that's not what I wanted. :)
On Wed, Nov 5, 2008 at 6:04 PM, Aschwin Wesselius <[EMAIL PROTECTED]>wrote:
> Shelley wrote:
>
> Hi all,
>
> Do you know how to generate the screenshot of some URL with PHP?
>
> Fyi,
> should work under linux environment.
>
> Thanks in advance.
>
>
Shelley wrote:
Hi all,
Do you know how to generate the screenshot of some URL with PHP?
Fyi,
should work under linux environment.
Thanks in advance.
Hi,
I suggest you first look in the archives of this list for possible
answers before asking a question of any kind.
Hint: this topic ha
tedd wrote:
> At 11:10 AM -0500 11/3/08, Robert Cummings wrote:
>>Give a man some fish, he'll be back later for more!
>>
>
> Yeah, but teach him to fish and you'll have to listen to all his fish
> stories.
Hand him a fully charged electric eel and chances are he won't bother you
again.
Cheers
Dear: all
That is very abnormality.
1.Open the url : http://127.0.0.1/showCookie.php
ShowCookie.php code:
That's print:
Dear: all
That is very abnormality.
1.Open the url : http://127.0.0.1/showCookie.php
ShowCookie.php code:
That's print:
Hi all,
Do you know how to generate the screenshot of some URL with PHP?
Fyi,
should work under linux environment.
Thanks in advance.
--
With best regards,
Shelley Shyan
http://phparch.cn
There is error logging on the web server, but this tells me nothing.
There is no error when I try to access the drives, it just doesnt
happen.
Jacob
Citat af Micah Gersten <[EMAIL PROTECTED]>:
Have you turned on error logging? What code are you using?
Thank you,
Micah Gersten
onShore
On Tue, 2008-11-04 at 23:20 -0800, Yeti wrote:
> Do disability browsers support JavaScript?
>
Not all of it even if they do at all. Face it, how can someone who
cannot see, or somebody without the use of their arms, use a mouse to
navigate and trigger hover, drag and other mouse-orientated actions
69 matches
Mail list logo