Hi,
Sunday, July 25, 2004, 5:18:44 AM, you wrote:
JWH> Scite is perfect. You rock. A single 364KB file with PHP source code
JWH> highlighting, brace matching, (regex) search and replace and more. It's
JWH> so perfect I won't even make fun of you for mentioning TemplateTamer
JWH> again! ;) Thanks,
This is taken right out of the download of PHP 5 zip file
"php-5.0.0-Win32.zip". Opening the "php.ini-recommended" it states the
following configuration
;
; Paths and Directories ;
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
Bu
This script can replace links:
$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $text);
But it cannot get the links.
On Sun, 25 Jul 2004 09:18:28 +0800
Jason Wong <[EMAIL PROTECTED]> wrote:
> On Saturday 24 July 2004 16:08, Wudi wrote:
> > Hm, Perl is OK. Could you se
This helped me get started with Perl-compatible regular expressions:
http://www.weitz.de/regex-coach/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I run "phpinfo()" the include_path points to ".;c:\php\PEAR" but that
is incorrect the correct path is "c:\inetpub\php5\PEAR".
Are you *certain* you're looking at the correct ini file? phpinfo() should show
the settings currently in use for your server (assuming you're calling the
phpinfo i
On Sunday 25 July 2004 10:30, John W. Holmes wrote:
> The thing is, though, none of these people have actually signed up for
> this service as far as I can tell.
Some previous posts imply that some people *did* use spamcease, my anti-spam
measures protects me from seeing these "Please Verify Yo
Hi.
I am a bit confused about the include_path in php.ini, I am using PHP
5.0.0 on IIS
;
; Paths and Directories ;
;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
include_path = ".;/php/includes"
When I r
Hi,
Does anybody know of a good place to learn how to work
with regex?
Google has quite a few links for "learn pattern
matching" or "learn php regex" but none that start you
on "baby steps".
Any recommendations?
Thnx,
Mag
=
--
- The faulty interface lies between the chair and the keyb
Comex wrote:
but there isn't any archive..
Let's see I shake my magic 8-ball and it says... PEAR?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Wong wrote:
> On Sunday 25 July 2004 09:42, Mark wrote:
>>[EMAIL PROTECTED], [EMAIL PROTECTED] is currently
>
> You've got the culprit here. Either lambast him publically (since he
doesn't
> want to receive your private mail). Or do what this says:
The thing is, though, none of these people
when running shell commands form php/web apps... it's a good idea to check
the ownership/privs/permissions of both the exe being run, as well as any
output/input files for the exe app.
you should also check the web/apache/iis error/log files to determine if
everything is correct...
regards,
--
On Sunday 25 July 2004 09:42, Mark wrote:
> Am I the only one who gets annoyed at these?
No you're not. Look in the past week's archives.
> [EMAIL PROTECTED], [EMAIL PROTECTED] is currently
You've got the culprit here. Either lambast him publically (since he doesn't
want to receive your private
Am I the only one who gets annoyed at these?
--- [EMAIL PROTECTED], [EMAIL PROTECTED] wrote:
> Date: Sat, 24 Jul 2004 04:22:16 -0400
> To: [EMAIL PROTECTED]
> Subject: IMPORTANT: Please Verify Your Message
> From: <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>
-
Verify
On Saturday 24 July 2004 19:15, Rosen wrote:
Please do not top post.
> But how I can parse this output ?
> > c:\>dir c:\test.txt
> > Volume in drive C is Primary
> > Volume Serial Number is 003E-6CEA
There are many ways to go about this, I'll outline one of them. First you need
to grab the
Matthew Sims wrote:
why would exec("touch /var/www/testfile.txt") work but not
exec("/usr/bin/gpg --homedir /home/testuser/.gnupg blah blah blah")
the dir used in homedir has mode 777 just for testing
this is the actual command I'm trying to run...
exec("/usr/bin/gpg --homedir /home/testdir/.gnupg
On Saturday 24 July 2004 16:08, Wudi wrote:
> Hm, Perl is OK. Could you send that program to me?
> I have searched the class in phpclasses.org, but not found.
> The classes I searched only can replace the link, can't get links.
Hmmm it needs to be able to *find* the links before it can replace the
>
> why would exec("touch /var/www/testfile.txt") work but not
>
> exec("/usr/bin/gpg --homedir /home/testuser/.gnupg blah blah blah")
>
> the dir used in homedir has mode 777 just for testing
>
>
> this is the actual command I'm trying to run...
> exec("/usr/bin/gpg --homedir /home/testdir/.gnupg
why would exec("touch /var/www/testfile.txt") work but not
exec("/usr/bin/gpg --homedir /home/testuser/.gnupg blah blah blah")
the dir used in homedir has mode 777 just for testing
this is the actual command I'm trying to run...
exec("/usr/bin/gpg --homedir /home/testdir/.gnupg --armor --outpu
Matthew (and Marek),
>>Sounds like you've done everything correctly, just PHP wasn't installed
>> as a
>>CLI. Just to be sure, do a $ find / -name php
>
> Is it ok to have PHP installed as both CLI and as a module?
>
It is perfectly okay to have both. I'm using both on a server I have.
I installed
Robb Kerr wrote:
On Sat, 24 Jul 2004 23:23:49 +0200, Tularis wrote:
Robb Kerr wrote:
I have a complicated table that needs to be altered depending upon the
contents of a field in one of my recordsets. I've tried several approaches
and need to know what you recommend.
I've created three totally di
On Sat, 24 Jul 2004 23:23:49 +0200, Tularis wrote:
> Robb Kerr wrote:
>
>> I have a complicated table that needs to be altered depending upon the
>> contents of a field in one of my recordsets. I've tried several approaches
>> and need to know what you recommend.
>>
>> I've created three totally
On Sat, 24 Jul 2004 17:47:48 -0400, Kevin wrote:
> Hi Robb,
>
> I am a newbie so I wanted to ask a stupid question. In your code below if
> the first if statement is true it ends the php processing and then you
> reopen with a new out the ?> before the first tag and the work?
>
> Sorry if thi
mysql_query ('CREATE DATABASE name_of_database');
> [Original Message]
> From: Harlequin <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: 07/24/2004 3:08:47 PM
> Subject: [PHP] Creation of MySQL Database Using PHP
>
> Hello.
>
> I have a friend who knows less than me about PHP and MySQL (wh
Harlequin wrote:
Hello.
I have a friend who knows less than me about PHP and MySQL (which I know is
hard to believe) but she needs a login facility for her site.
I've passed over some script I use but she doesn't know how to create the
database. I can write some commands that create the tables OK -
Hello.
I have a friend who knows less than me about PHP and MySQL (which I know is
hard to believe) but she needs a login facility for her site.
I've passed over some script I use but she doesn't know how to create the
database. I can write some commands that create the tables OK - but can I do
t
On Sat, 24 Jul 2004 17:35:59 +0200, Victor Boivie <[EMAIL PROTECTED]> wrote:
> Christian Stocker wrote:
>
> >>var_dump($xpath->query("count(/catalog/cd")->item(0));
> >
> >
> > this doesn't work yet in DOM. The returned value has to be a nodeset.
> > Will be fixed some day ;)
> >
>
> Thanks, both
Hi Robb,
I am a newbie so I wanted to ask a stupid question. In your code below if
the first if statement is true it ends the php processing and then you
reopen with a new before the first tag and the mailto:[EMAIL PROTECTED]
Sent: Saturday, July 24, 2004 4:47 PM
To: [EMAIL PROTECTED]
Subject:
Robb Kerr wrote:
I have a complicated table that needs to be altered depending upon the
contents of a field in one of my recordsets. I've tried several approaches
and need to know what you recommend.
I've created three totally different tables and put the HTML code for each
into a database. Then I
> > And quoting integers is not a problem, I even prefer it. IMHO we should
> > tell people to quote all values so if someone "forgets" to do any sort of
> > input validation (i.e. make sure it's actually an integer) there won't be
> > a major problem otherwise problems (including SQL injection) m
I have a complicated table that needs to be altered depending upon the
contents of a field in one of my recordsets. I've tried several approaches
and need to know what you recommend.
I've created three totally different tables and put the HTML code for each
into a database. Then I used PHP to inse
Philip Olson wrote:
And quoting integers is not a problem, I even prefer it. IMHO we should
tell people to quote all values so if someone "forgets" to do any sort of
input validation (i.e. make sure it's actually an integer) there won't be
a major problem otherwise problems (including SQL injectio
Ron King wrote:
At 06:28 AM 7/23/2004, you wrote:
You need php-cli rpm, it's not an extension, it's command line binary.
And it won't hurt anything to have both cli and extension installed?
-- Ron
No
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
but there isn't any archive..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
* Thus wrote Philip Olson:
> > Sorry, let me clearify.. unless UserId is an integer, quote it !!
>
> And quoting integers is not a problem, I even prefer it. IMHO we should
> tell people to quote all values so if someone "forgets" to do any sort of
One thing to note though, mysql/sqlite is the o
* Thus wrote [EMAIL PROTECTED]:
> I don't bite, weah!
>
> ..btw, "10370" is a password for archive
>
And these come in groups also... I wonder if there is a relation
between the two :)
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearin
* Thus wrote Miroslav Hudak (php/ml):
> Vi or ViM :)
I swear that topics always come in bunches together.
vim++
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--
PHP General Mailing List (
ah right.. :)
Jason
On Sat, 24 Jul 2004 19:50:17 +, Curt Zirzow
<[EMAIL PROTECTED]> wrote:
> * Thus wrote Jason Davidson:
> > OR is also bitwise is it not?
>
> No, | is bitwise
>
> Curt
> --
> First, let me assure you that this is not one of those shady pyramid schemes
> you've been hearing
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scite is perfect. You rock. A single 364KB file with PHP source code
> highlighting, brace matching, (regex) search and replace and more. It's
> so perfect I won't even make fun of you for mentioning ...
there is also c
* Thus wrote Jason Davidson:
> OR is also bitwise is it not?
No, | is bitwise
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
* Thus wrote John W. Holmes:
> rush wrote:
> >"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
> >
> >>Does anyone know of a good windows PHP editor that I can run from a USB
> >>flash drive without installing it?
> >
> >scite, from the scintilla fame. TemplateTamer would also work fine if yo
rush wrote:
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
Does anyone know of a good windows PHP editor that I can run from a USB
flash drive without installing it?
scite, from the scintilla fame. TemplateTamer would also work fine if you
just copy the whole directory
Scite is perfect. You
* Thus wrote Jeff Oien:
> I have items from a form that will be in $_POST that I want to send on.
> I'll be using this:
> $arr = array();
>
> foreach($_POST as $key => $value) {
> $arr[] = $key.'='.urlencode($value);
> }
>
> $URL = "https://example.com/script.asp?".implode('&',$arr);
> head
> Sorry, let me clearify.. unless UserId is an integer, quote it !!
And quoting integers is not a problem, I even prefer it. IMHO we should
tell people to quote all values so if someone "forgets" to do any sort of
input validation (i.e. make sure it's actually an integer) there won't be
a major p
Sorry, let me clearify.. unless UserId is an integer, quote it !!
jason
On Sat, 24 Jul 2004 12:03:54 -0700, Jason Davidson
<[EMAIL PROTECTED]> wrote:
> whats in UserId var.. any spaces or nonword chars.. if so, quote it.
>
> Jason
>
>
>
> On Sat, 24 Jul 2004 19:49:04 +0100, Harlequin
> <[EMAI
whats in UserId var.. any spaces or nonword chars.. if so, quote it.
Jason
On Sat, 24 Jul 2004 19:49:04 +0100, Harlequin
<[EMAIL PROTECTED]> wrote:
> I've been working on a query to retrieve a user's data based on their UserID
> that is stored in a variable "$_SESSION['logname']" which underneath
Harlequin wrote:
I've been working on a query to retrieve a user's data based on their UserID
that is stored in a variable "$_SESSION['logname']" which underneath I
convert using: $UserID = $_SESSION['logname'];
But when I execute a SELECT query:
$CaptureDetails = "SELECT * FROM RegisteredMembers
* Thus wrote Francis Chang:
>
> What is the proper way to "uninstall" the existing installation? Do I just
> do a 'make distclean'? Would that clean up all the libraries and the
> program files of the existing installation?
No, distclean only cleans up the temporary files in the source
tree.
I
I've been working on a query to retrieve a user's data based on their UserID
that is stored in a variable "$_SESSION['logname']" which underneath I
convert using: $UserID = $_SESSION['logname'];
But when I execute a SELECT query:
$CaptureDetails = "SELECT * FROM RegisteredMembers
WHERE UserID
I use HTML-Kit which highlights syntax for a number of languages, PHP
included.
I am unsure of its ability to connect using SSL but it's very customisable
when creating a new remote folder and I use it to work on remote files all
the time. It simply creates a connection if needed and saves the fil
I don't bite, weah!
..btw, "10370" is a password for archive
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OR is also bitwise is it not?
Jason
On Sat, 24 Jul 2004 21:23:13 +0400, Stan F <[EMAIL PROTECTED]> wrote:
> Operations OR and || have different execution priorities. I'd prefer "||" as
> it's "more important" so not so many parentheses needed to ensure the order
> of interpretation is exactly wha
On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote:
> On Sat, 2004-07-24 at 12:05, Robb Kerr wrote:
>> What's wrong with this syntax. I just can't see my mistake.
>>
>> if ($vBkgrndImage == "AnswerPage") {
>> if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {
>>
Operations OR and || have different execution priorities. I'd prefer "||" as
it's "more important" so not so many parentheses needed to ensure the order
of interpretation is exactly what u need.
- Original Message -
From: "Tularis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday
Try this:
echo "";
print_r( variable_you_wanna_track );
echo "";
The output will be easy-readable. Or try var_dump().
This helps maintaining scripts in more pleasant way.
- Original Message -
From: "Robb Kerr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 24, 2004 8:49
On Sat, 24 Jul 2004 09:47:52 -0700 (PDT), Matthew Sims wrote:
>> What's wrong with this syntax. I just can't see my mistake.
>>
>> if ($vBkgrndImage == "AnswerPage") {
>> if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {
>> $vBkgrndImage = "Bkgrnd-Body-Incorrect.jpg";
> print out all the values of the vars your comparing often youll
> find one of them is not what your expecting
>
> Jason
>
> On Sat, 24 Jul 2004 11:05:06 -0500, Robb Kerr
> <[EMAIL PROTECTED]> wrote:
>> What's wrong with this syntax. I just can't see my mistake.
>>
>> if ($vBkgrndImage == "Ans
> What's wrong with this syntax. I just can't see my mistake.
>
> if ($vBkgrndImage == "AnswerPage") {
> if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {
> $vBkgrndImage = "Bkgrnd-Body-Incorrect.jpg";
> } else {
> $vBkgrndImage = "Bkgrnd-Body-Correct.jpg";
> }
print out all the values of the vars your comparing often youll
find one of them is not what your expecting
Jason
On Sat, 24 Jul 2004 11:05:06 -0500, Robb Kerr
<[EMAIL PROTECTED]> wrote:
> What's wrong with this syntax. I just can't see my mistake.
>
> if ($vBkgrndImage == "AnswerPage") {
>
On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote:
> On Sat, 2004-07-24 at 12:05, Robb Kerr wrote:
>> What's wrong with this syntax. I just can't see my mistake.
>>
>> if ($vBkgrndImage == "AnswerPage") {
>> if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {
>>
On Sat, 24 Jul 2004 18:18:23 +0200, Marek Kilimajer wrote:
> Robb Kerr wrote:
>> On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote:
>>
>>
>>>On Sat, 2004-07-24 at 12:05, Robb Kerr wrote:
>>>
What's wrong with this syntax. I just can't see my mistake.
if ($vBkgrndImage == "Ans
Robb Kerr wrote:
On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote:
On Sat, 2004-07-24 at 12:05, Robb Kerr wrote:
What's wrong with this syntax. I just can't see my mistake.
if ($vBkgrndImage == "AnswerPage") {
if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {
$vB
On Sat, 24 Jul 2004 12:09:41 -0400, Scot L. Harris wrote:
> On Sat, 2004-07-24 at 12:05, Robb Kerr wrote:
>> What's wrong with this syntax. I just can't see my mistake.
>>
>> if ($vBkgrndImage == "AnswerPage") {
>> if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {
>>
On Sat, 2004-07-24 at 12:05, Robb Kerr wrote:
> What's wrong with this syntax. I just can't see my mistake.
>
> if ($vBkgrndImage == "AnswerPage") {
> if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {
> $vBkgrndImage = "Bkgrnd-Body-Incorrect.jpg";
> } else {
> $v
What's wrong with this syntax. I just can't see my mistake.
if ($vBkgrndImage == "AnswerPage") {
if ($vAnswerID_RS_PageContent != $row_RS_PageContent['CorrectAnswer']) {
$vBkgrndImage = "Bkgrnd-Body-Incorrect.jpg";
} else {
$vBkgrndImage = "Bkgrnd-Body-Correct.jpg";
}
}
Thanx
--
Ro
Christian Stocker wrote:
var_dump($xpath->query("count(/catalog/cd")->item(0));
this doesn't work yet in DOM. The returned value has to be a nodeset.
Will be fixed some day ;)
Thanks, both Jason and Christian
I found something else that I think is strange.
$dom = new DOMDocument();
$root = $do
Vi or ViM :)
m.
Peter Risdon wrote:
I have been using emacs/tramp for editing files on remote machines, but
I find it can be flaky - no doubt I am doing something wrong. Can anyone
suggest a good programmers' text editor that at least has syntax
highlighting and can use ssh for accessing files d
I have been using emacs/tramp for editing files on remote machines, but
I find it can be flaky - no doubt I am doing something wrong. Can anyone
suggest a good programmers' text editor that at least has syntax
highlighting and can use ssh for accessing files directly on remote
machines? I need
if(a OR b) {
do something
} else {
do something else
}
or
if(a || b) {
do something
} else {
do something else
}
is enough :)
Robb Kerr wrote:
From time to time I need an If statement that includes an Or condition...
What's the correct syntax for the If line?
Thanx
--
PHP General Mailing List
>if ((condition1 == TRUE) OR (condition2 == TRUE)) {
> do something;
> } esle {
> do something else;
> }
> ?>
>
> What's the correct syntax for the If line?
if(true == condition1 || true == condition2) {
echo "Hello World";
} else {
echo "Best Regards";
}
--
PHP G
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Does anyone know of a good windows PHP editor that I can run from a USB
> flash drive without installing it? A good stand-alone editor. I know how
> to use Vi, so I'll even take a copy of that (so long as it's got syntax
>From time to time I need an If statement that includes an Or condition...
What's the correct syntax for the If line?
Thanx
--
Robb Kerr
Digital IGUANA
Helping Digital Artists Achieve their Dreams
http://www.digitaliguana.com
http://www.canc
Wudi wrote:
Hm, Perl is OK. Could you send that program to me?
I have searched the class in phpclasses.org, but not found.
The classes I searched only can replace the link, can't get links.
I am refering to the perl html parser module available for download at CPAN.
--
Raditha Dissanayake.
-
Thanks,
But how I can parse this output ?
"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Rosen wrote:
>
> > Yes, on Linux there is a command to get this info, but on windows I
think
> > there'n no thath command.
> > Is there a module for PHP to do this ?
>
> c:\>dir
Matt M. wrote:
How do I determine with which user's permissions PHP scripts are executing?
I am experimenting with suEXEC and running PHPs as CGIs; I need to know
with which user's permissions PHP scripts are executing.
I've tried using getmyuid() and get_current_user(), but these only report the
o
Argh, i don't like the plaintext :)
archive password: 74455
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Robb Kerr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Let me preface this by saying that I don't know JavaScript. I've got a
page
> that is built by a long complicated JavaScript that I was able to hack
just
> enough to function the way I wanted. There are some lines of code --
Skippy wrote:
On Mon, 12 Jul 2004 14:54:15 -0400 [EMAIL PROTECTED] (Edward Peloke) wrote:
Is this the only way around it? Can I get to mssql without using the mssql
extension?
I don't think so. Plus, the entire setup is a bit complicated and you need
FreeTDS as well as UnixODBC installed, plus so
Hm, Perl is OK. Could you send that program to me?
I have searched the class in phpclasses.org, but not found.
The classes I searched only can replace the link, can't get links.
On Sat, 24 Jul 2004 12:36:25 +0600
raditha dissanayake <[EMAIL PROTECTED]> wrote:
>
> Wudi wrote:
>
> >How can I get
78 matches
Mail list logo