No, I do not want to keep the old distribution.
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?
Thanks again.
Francis
Jason Barnett [EMAIL PROTECTED]
Wudi wrote:
How can I get all links from a webpage?
You need to parse the HTML of the web page first there may be several
classes already available taht does it for you. The best I have seen
though is not in PHP but in perl.
--
Raditha Dissanayake.
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 all
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
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 -- those
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
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
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 c:\test.txt
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.
From time to time I need an If statement that includes an Or condition...
?php
if ((condition1 == TRUE) OR (condition2 == TRUE)) {
do something;
} esle {
do something else;
}
?
What's the correct syntax for the If line?
Thanx
--
Robb Kerr
Digital IGUANA
Helping Digital Artists
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
?php
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 General
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...
?php
if ((condition1 == TRUE) OR (condition2 == TRUE)) {
do something;
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
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
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 =
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
--
Robb
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 {
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']) {
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']) {
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 == AnswerPage) {
if
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']) {
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) {
if
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
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 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;
} else {
Try this:
echo pre;
print_r( variable_you_wanna_track );
echo /pre;
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
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, July
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']) {
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 what u
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
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
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 =
* 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.
If you
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
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 I
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
[EMAIL
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
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 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 you
just copy the
* 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
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 code
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 about. No,
* 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
* 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 hearing
* 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 only
but there isn't any archive..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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:
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
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
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) may arise.
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
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 ?php before the closing }. What would happen if you took
out the ? before the first tr tag and the /php before the }. Would
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 Jason and Christian
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
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 (which I know
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 ?php before the closing }. What would happen if you took
out the ?
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 different
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
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 the CLI
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 --output
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
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 them.
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 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 output
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 Email
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
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,
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 have
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
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 keyboard.
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 run
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 Your
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 in a
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
This script can replace links:
$text = ereg_replace([[:alpha:]]+://[^[:space:]]+[[:alnum:]/], a
href=\\\0\\\0/a, $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
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
But
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,
78 matches
Mail list logo