I've got a database with lname (lastname), fname (firstname), and nickname.
What I want to do is search by either first name or last name. Either way, I display
the nickname instead of the firstname if it exists. I have no problems on the last
name, but when I sort by firstname, the people wi
A couple of days ago I posted the solution. See
http://groups.google.com/groups?q=ipplan&hl=en&lr=lang_en|lang_de&newwindow=1&selm=sc3eaf22.018%40eskom.co.za&rnum=4
Antonio S. Martins Jr. wrote:
> Hi Everybody,
>
>Has anyone doing it sucefuly? I can compile it. The phpinfo(); call
> return
Hi !
I just installed Apache 2.0.28 + PHP 4.11 on my Win2K server.
Apache fails to start when I include :
LoadModule php4_module "C:/Program Files/php/sapi/php4apache.dll"
in my httpd.conf ...
All worked perfectly before (Apache 1.3.xx + PHP 4.0.x) ...
I heared of a special SAPI module for Ap
On Monday 14 January 2002 06:03, m. ali wrote:
> Hi
>
> my problem :
> i have to pass the price, and part number which i get from the database to
> the shopping cart so when i select some
> of the items by checking the checkboxes and submit the form i get only the
> last item in the list
>
> i use
Hello,
Yogesh Mahadnac wrote:
>
> Hi everyone! I'd be grateful if someone could please tell me a link where I can
>find a good tutorial on how to develop a SMS tool with PHP, or if somebody has
>already developed something like it, or if there are any experts around, please give
>me some
If, for example, the protected page you are attempting to access is at:
http://www.mydomain.com/protected/index.php
you can use the following url to bypass the pop up password dialog box:
http://username:[EMAIL PROTECTED]/protected/index.php
Please note that this is a rather insecure method of se
Hi everyone! I'd be grateful if someone could please tell me a link where I can
find a good tutorial on how to develop a SMS tool with PHP, or if somebody has already
developed something like it, or if there are any experts around, please give me some
information about it.
Thanks and regar
Hi Edgard,
> I'm trying to copy a file and chmod it to make it writable, but after I copy
> it using PHP I can't even chmod in ftp !
since you upload it using PHP, most likely the owner of the file is
nobody.nobody, that's why you can't chmod thru ftp. (unless you login
to ftp as nobody ;))
> I
I'm trying to do a similar thing, although I'm running PHP as an Apache
module. There's a directory I want to protect, containing PDf files, access
to which will be constrained by .htaccess.
Our users have already logged in through a custom login script. I could
modify this script so that when
You need some tutorials on using MySQL and PHP.
There are some good ones at thickbook http://www.thickbook.com,
you can also search, using Google, for "tutorial MySQL PHP". You will find
good ones at
WebMonkey, DevShed and Zend.
Good luck and welcome - Miles Thompson
At 03:46 AM 1/15/2002 +0
Ben Sinclair wrote:
> I'm trying to use mcrypt_generic and it works fine except it pads the data
> with ^@'s when, according to the manual page, the length of the data is not
> n * blocksize.
>
> I've been trying to remove the padding from my decrypted data using
> something like "$string = str_
Martin Towell wrote:
> 1. so you're trying to stop people from link straight to your page?
> 2. or are you trying to stop them from using your code without
> permission (on the same server)?
> a. will others be able to see the source code?
> i. if so, then what's to stop them from defining
Hi,
Sorry if I am being a rude, but you need to read the
document on how to create a table:
www.mysql.com
and
www.php.net (assuming that you will use php)
thx.
--- -=LukA=- <[EMAIL PROTECTED]> wrote:
> Hello php-general,
>
> Hi everybody
> Please help me.
> If i want to create a table in
Even though this is OT as it is not a PHP question it is an easy one :)
Please see the following URL:
http://www.mysql.com/documentation/mysql/bychapter/
It is the MySQL manual broken out by chapter.
You will find the next URL particularly useful as it is the syntax for the "create
Hello php-general,
Hi everybody
Please help me.
If i want to create a table in some database what should I do.
The database is on server.
--
Best regards,
-=LukA=- mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-m
Quote from the php manual.
"Once a constant is defined, it can never be changed or undefined."
I figure, since the constant is initialised in the script, it cannot be
changed or undefined, then I can put my trust in it that it comes from
the server and no where else
Martin Towell wrote:
>
Just want to bounce this idea off you guys/gals.
Im looking to improve the security of my scripts. Now lets say, I
initialise the script with a constant in the main config file that all
the pages access. Then when Im accepting data from a form or maybe even
a link I could do
if (isset($HTT
unable to copy and chmod
I'm trying to copy a file and chmod it to make it writable, but after I copy
it using PHP I can't even chmod in ftp !
I can't change the file owner too.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
I'm trying to use mcrypt_generic and it works fine except it pads the data
with ^@'s when, according to the manual page, the length of the data is not
n * blocksize.
I've been trying to remove the padding from my decrypted data using
something like "$string = str_replace("^@","",$string);", but i
In article <005501c19d41$28521e70$fe78a8c0@laptop>,
[EMAIL PROTECTED] (Helmut Ott) wrote:
> I have a page with a html-form headed with
> ...ENCTYPE="multipart/form-data" ...
>
> and multiple inputs,e.g.:
> "..."
> If I select a file,e.g. "abc.jpg" with the path "c:\abc.jpg"
> I get a value lik
I have a page with a html-form headed with
...ENCTYPE="multipart/form-data" ...
and multiple inputs,e.g.:
"..."
If I select a file,e.g. "abc.jpg" with the path "c:\abc.jpg"
I get a value like "345php.tmp" instead of "c:\abc.jpg".
Any idea what is wrong?
Hi
A good place to put this would be either in the projects area
of weberdev
(http://www.weberdev.com/index.php3?GoTo=jobmatching/about.php3)
or the jobs area (http://www.weberjob.com).
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
Hi
my problem :
i have to pass the price, and part number which i get from the database to
the shopping cart so when i select some
of the items by checking the checkboxes and submit the form i get only the
last item in the list
i use hidden variables to pass these values to shopping cart.
my co
thanks,.. guru.com is great.
And, thank all of you for your great help.
Terrific, etc.
Rick
"Laserjetter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You could try guru.com
>
> LJ
>
>
> "Richard Spangenberg" <[EMAIL PROTECTED]> wrote in message
> [EMAIL
You don't mention which OS you are on, but usually apxs is found in the
apache-devel package. You probably didn't install that.
-Rasmus
On Mon, 14 Jan 2002, Jay Paulson wrote:
> I'm trying to compile php 4.1.1 and when it gets to the --with-apxs option it errors
>out with the following:
>
> S
I'm trying to compile php 4.1.1 and when it gets to the --with-apxs option it errors
out with the following:
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your
Hi,
i webmaster of http://www.cgi-network.net site and Im interested in
setting up an XML platform for PHP. Lets discuss that.
Valery Vlasyuk
- Original Message -
From: "Geoff Caplan" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>; "Emile Bosch"
<[EMAIL PROTECTED]>
Sent: M
Emile
> Is anyone interested in setting up an XML platform for PHP, where the use
of
> XML is explained,
Why not offer to edit a section on this on one of the popular PHP community
sites, such as PHPBuilder.com?
I agree that this is an important subject, but I am not sure that we need
yet more
i perefer to use such mail code:
$pipe=popen("/usr/sbin/sendmail -f [EMAIL PROTECTED] -i
[EMAIL PROTECTED]","w");
$email_body="Customer name: $customer_name
email: $email
features: $features";
if ($pipe) {
fputs($pipe,"To: [EMAIL PROTECTED]\n");
fputs($pipe,"From: $email\n");
fputs
Hello,
Robert Mena wrote:
>
> Hi Manuel and all developers.
>
> I understand that the implementation of strtok was
> "broken" (non POSIX compliant) but since it has been
> like this for ages would be better to give a chance to
> developers worldwide (that has been using and relied
> on this bro
php-general Digest 14 Jan 2002 21:01:07 - Issue
Topics (messages 80436 through 80492):
Re: How to get a function backtrace?
80436 by: Martin Wickman
Re: Setting up an XML platform/website
80437 by: Jon Farmer
Re: How to get a stacktrace? (was how to get a function bac
When using the mail () function to send an email to a
linux server the header information shows two from
addresses. (1)e-mail address that was defined in $from
variable in the header. (2) [EMAIL PROTECTED]
Can someone explain this? I only want the $from
variable to show up in the header. Can
I can't figure this one out...
I boiled it down to a test case where I have a bunch of classes and a
demo program:
demo.php:
===
===
L.php
===
c = new C2();
echo "L init\n";
}
}
?>
=
=
Hi there,
I'm creating a PHP extension of my own, and I'd like my extension's
module_startup_function (i.e., PHP_MINIT_FUNC) to be the last one called
among all the extensions' MINIT funcs. I'd also like my extension's
request_startup_function (PHP_RINIT_FUNC) to be the first one called among
all
Hi
I need someone who can write articles about PHP for my site for free.
In exchange i'll put in each article information about author and link to his site.
Valery Vlasyuk
http://www.cgi-network.net
On Tuesday 15 January 2002 03:06, Michael Sciascia wrote:
> I would like to thank you all for all the info you gave me and the php.ini
> file!
> Your suggestions have been really useful and I made some progresses, but
> I've still got problems :-(
>
> I changed the MAILSERVER line to YES as you s
Apparently i have been unclear, allow me to rephrase:
I want to send user:pass to an apache authentication header for a apache
protected user directory. Unfortunately, I have php installed as CGI so
native php authentication will not function. I would like
to either send the user:pass via GET
Hi people !
I have a query regarding double-byte languages on PHP.
I need to sort a index localized from English to Korean.
My idea is:
* get the Korean strings from file;
* convert them to UTF8;
* insert them in a Oracle database set to work with UTF8;
* set "NLS_LANG"
>
> ahhh, if this is indeed the problem, then you (michael from the original
> message) need to enable sendmail in /etc/hostconfig by changing the line
>
> MAILSERVER=-NO-
>
> to
>
> MAILSERVER=-YES-
>
> (isn't everything different in macosx)
>
> again, you need to do this from an administr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 14-01-02 at 19:58
* Nathan Cassano said
>
> Lets say I have a page that makes queries with multiple sorts, returning
> plenty of rows and displaying part of the result set. Each time the
> client accesses the page the query must be re-exe
Lets say I have a page that makes queries with multiple sorts, returning
plenty of rows and displaying part of the result set. Each time the
client accesses the page the query must be re-executed, spinning the CPU
and thus tieing up resources. In PHP, or any other language could the
result set be
Your question is not very clear, not to me anyway.
Are you trying to write some PHP code that remembers a user name and
password over several requests? If so, I can answer that.
According to me, it's hard. The problem is that PHP (in fact Apache itself)
doesn't remember any information between
This is really a javascript thing so you'll probably get a better
response from a javascript group, but I can say that a script like
that will only ever work on IE.
On Sun, 13 Jan 2002 04:00:18 +0100, Serge wrote:
>Hi,
>
>I'm looking for an in-browser html editor.
>I've got the scripts used in p
Hi
>
> What exactly is too slow with flash? dynamical genberation with action
> script?
> You could generate your content and data with PHP and display it with
> flash.
>
>
I have just been talking to the engineers at Carrels, who have produced a
Flash based system for rich forms, but I said I
Hi,
I am using the Nusphere application server with apache user directories.
I have several protected user
directories that are of different realms. When a user logs into the
'secure area' i would like to send them
to pages contained in a secure directory but pass the encoded user:pass
in the UR
> -Original Message-
> From: Imar de Vries [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 14, 2002 5:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Passing variables with include()
>
>
> at this moment I am working on a script that calculates
> standings of our online racing compet
It seems to be bug in IE/Netscape/Other www browser on Mac, that's all.
Header wasn't correct interpreted. I had similar problem with NETSCAPE 6
on Windows. I hope they will correct it shortly.
Krzysztof
Petr Rezek wrote:
> Here is my question.
> I wrote a script, which gets parameters from d
Hi,
I'm looking for an in-browser html editor.
I've got the scripts used in postnuke and ariadne...
But i need more "image" possibilities.
such as image listing of images on a certain directory on the server.
I know that activedit from cfdev does it but imho a bit to expensive.
http://www.cfdev.
Here is my question.
I wrote a script, which gets parameters from db about document (location on
disc, hashed filename and original filename). Then script open this file a
send it to user.
I use this headers
Header("Content-Type: application/download\n");
Header("Content-Disposition: attachment;
Not sure if this is off topic for this list or not, but thought I would try...
I have a Linux server running Redhat 7.0, PHP 4.1.1, and freetds 0.53. My Linux
server connects to a Win2k server running MSSQL 2000.
Everything works wonderfully, except, I have an image field in one of my tables
and
Geoff Caplan wrote:
> Henning
>
>
>>I did not work a lot with applications in PHP-GTK until now to say
>>something about speed and reliability ( the list may answer those
>>questions, i am only working on the translation of the manual for now),
>>but I think it's worth a look at, and i know the
I own and have read "Mastering Regular Expressions" (excellent book). I've
programmed perl for 3 years and have recently started migrating one of my
projects into php. I can't stand ereg, I prefer preg. While functions such
as substitute and match differ in syntax from perl to php, this book will
Hi Erik,
> Thanks for the advice (and especially the explanation!) -- I note that
> you chose the Perl regexp engine rather than the "e" regexp engine
> (POSIX?). Quite a few people recommended O'Reilly's "Mastering Regular
> Expressions" over the weekend. Does anyone know if it covers the Perl
liljim,
Thanks for the advice (and especially the explanation!) -- I note that
you chose the Perl regexp engine rather than the "e" regexp engine
(POSIX?). Quite a few people recommended O'Reilly's "Mastering Regular
Expressions" over the weekend. Does anyone know if it covers the Perl
synt
Hello Erik,
> Hello everyone,
>
> I am trying to learn how to use ereg_replace(), but I don't seem to be
> doing it correctly.
>
> "$phone" is a 10-digit string.
>
> I want to perform the following:
>
> $phone = ereg_replace(".{10}", "[part where I am confused]", $phone);
>
> I would like the out
Hi Erik,
> "$phone" is a 10-digit string.
> I would like the output to be
> $phone = "(555) 555-";
you don't need regex to do that.
just insert add "(" to the beginning of $phone,
add ") " to the 4th position,
and "-" to the 4th position from behind,
using substr_replace() function.
anyway
That looks cool -- is there anything like it that uses Tk or GTK?
On Monday, January 14, 2002, at 09:52 AM, Geoff Caplan wrote:
> Hi
>
>
>> TopStyle - http://www.bradsoft.com
>>
>
> I endorse that - it is an excellent product. And for casual use, they
> have a
> free version with nags.
>
> Geo
Henning
> I did not work a lot with applications in PHP-GTK until now to say
> something about speed and reliability ( the list may answer those
> questions, i am only working on the translation of the manual for now),
> but I think it's worth a look at, and i know there are already some
> people
Hello everyone,
I am trying to learn how to use ereg_replace(), but I don't seem to be
doing it correctly.
"$phone" is a 10-digit string.
I want to perform the following:
$phone = ereg_replace(".{10}", "[part where I am confused]", $phone);
I would like the output to be
$phone = "(555) 555-
Oops - forgot to send this to the list...
Henning
> aehm, above you are talking client-side, now here Java/Tomcat /PHP,
> it's all server side... what is your _real_ problem?
> Creating Lists and all that sort of things which are easily to program
> and maintain for developers - either client or
Hi Manuel and all developers.
I understand that the implementation of strtok was
"broken" (non POSIX compliant) but since it has been
like this for ages would be better to give a chance to
developers worldwide (that has been using and relied
on this broken implementation) to control the
behaviour
Hi,
I'm setting up a website and one of the needs is a good in-browser WYSIWYG
editor.
I want to be able that people with no HTML knowledge can manage to edit &
format content.
I've looked at several utilities, such as the one used in postnuke.
I need something with more image manipulation possi
Does "http://www.someremote.server/calculate_drivers.php"; contain a
function? If so, you may have to declare "$serie_id" as global within it.
-Original Message-
From: Imar de Vries [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 5:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Pas
Hi
> TopStyle - http://www.bradsoft.com
>
I endorse that - it is an excellent product. And for casual use, they have a
free version with nags.
Geoff Caplan
Advantae.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
I think you need to add the apache module extensions to your apache
configuration.
try adding --enable-apxs or --with-apxs (I can remember the exact syntax)
to the apache configure.
- Original Message -
From: "Gino Paoletti" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, Janu
> Scott Houseman wrote:
>
> > Hi Al.
> >
> > While we are on topic, what are the key differences between include() &
> > require() ?
>
>
> "Unlike include(), require() will always read in the target file,
> even if the line it's on never executes. If you want to conditionally
> include a file, us
Hi, I met some problems starting apache with php module on solaris 8.
Apache is so configured:
--prefix=/usr/local/apache-np --enable-shared=max
The httpd -l response is:
Compiled-in modules:
http_core.c
mod_so.c
Php indeed:
./configure --prefix=/usr/local/apache-np --with-apxs=/usr/loca
Hi Geoff,
Have a look at phpLens at http://phplens.com/ It's a commercial php software
that my company wrote that allows you to perform sort/filter/edit and
validation
too on your data. Many of our customers are using on Intranets/Extranets.
Works well with NN 4/6 and IE browsers.
Regards, John
Scott Houseman wrote:
> Hi Al.
>
> While we are on topic, what are the key differences between include() &
> require() ?
"Unlike include(), require() will always read in the target file,
even if the line it's on never executes. If you want to conditionally
include a file, use include(). The
Since some time there has only one difference left (don't know at which
version it changed):
include causes a warning and require an error on fail. (very useful for
debugging - require your error-handler and include everything else)
best regards
Stefan Rusterholz
- Original Message -
Fro
Hi Al.
While we are on topic, what are the key differences between include() &
require() ?
Cheers
Scott
- Original Message -
From: "Martin Wickman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 14, 2002 3:40 PM
Subject: [PHP] Re: Passing variables with include()
>
Imar De Vries wrote:
> Imar De Vries wrote:
>
>
>>- Including remote files *is* possible. The php manual does not mention this
>>does not work, and when I add the variable to the call (include
>>/calculate_drivers?serie_id=3.php) the code is processed perfectly. The
>>thing is, I can not pa
no, its not possible. Try javascript
- Original Message -
From: Simos Varelakis <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 14. sije&thgr;anj 2002 14:08
Subject: [PHP] open a New Window
> Hi to everybody
>
> I wonder if is posiblle to open a new predefined size window (new html
Imar De Vries wrote:
> - Including remote files *is* possible. The php manual does not mention this
> does not work, and when I add the variable to the call (include
> /calculate_drivers?serie_id=3.php) the code is processed perfectly. The
> thing is, I can not pass the variable with the call
Geoff Caplan wrote:
> Hi folks
>
> I have been looking for a practical way to create rich dynamic forms in the
> client using PHP, and would appreciate any pointers to workable approaches.
> With the launch of .Net I suspect that customer expectations are going to
> change, and good old plain HT
Simos Varelakis wrote:
> Hi to everybody
>
> I wonder if is posiblle to open a new predefined size window (new html
> page) with php code.
This won't work with PHP, only with JavaScript Code which may be
dynamically outputted by php, which means, you could open windows with a
piece of javaS
A lot of different answers, which I will respond to:
- The variable is definately set before the include call is made, there is
no doubt about that at all :)
- Including remote files *is* possible. The php manual does not mention this
does not work, and when I add the variable to the call (incl
Hi folks
I have been looking for a practical way to create rich dynamic forms in the
client using PHP, and would appreciate any pointers to workable approaches.
With the launch of .Net I suspect that customer expectations are going to
change, and good old plain HTML will begin to look dated.
I a
Hi to everybody
I wonder if is posiblle to open a new predefined size window (new html
page) with php code.
Thanks in advance for your time.
Best Regards
Simos
Sure you can. Right out from the manual:
If "URL fopen wrappers" are enabled in PHP (which they are in the default
configuration), you can specify the file to be include()ed using an URL
instead of a local pathname. See Remote files and fopen() for more
information.
best regards
Stefan Rusterhol
- Original Message -
From: "Imar de Vries" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 14, 2002 12:53 PM
Subject: [PHP] Passing variables with include()
> Hi all,
>
> at this moment I am working on a script that calculates standings of our
> online racing competiti
> include("http://www.someremote.server/calculate_drivers.php";);
Very simple really: You cannot include remote files...
--|--
Tino Didriksen
http://ProjectJJ.dk/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 14-01-02 at 13:01
* Imar de Vries said
> Hi all,
>
Hello!
> at this moment I am working on a script that calculates standings of our
> online racing competition. In order to do that, I have to connect to a
> database on a remote server.
Hi all,
at this moment I am working on a script that calculates standings of our
online racing competition. In order to do that, I have to connect to a
database on a remote server.
I have read in the php manual that
[quote]
When a file is include()ed, the code it contains inherits the variable
There is no native PHP function for getting a stack trace. This has been
discussed many times on the PHP-DEV mailing list. It has always been
discarded due to an unacceptable overhead that would be introduced into the
parsing process.
I'm not sure if any decision has been made with respect to the
hmmm, i spent now a lot of time searching for such a function (discovering
many many to me unknown but interesting functions :) - but it seems that
there is no such function.
And yes: I wanted to use it for debugging stuff. I have a lot of recursive
functions and callback functions and it's somet
> Is anyone interested in setting up an XML platform for PHP, where the use
of
> XML is explained, with sample PHP/XML applications and in-depth real live
> tutorials? Since lot's of people underestimate the power of XML. Maybe,
it's
> nice to be ready when Microsoft's dotNet crashes in and launch
Stefan Rusterholz wrote:
> Im not sure if "function-backtrace" is the correct word for what I need, so I'll
>explain:
> If I have for example
What you are looking for is a "stacktrace", ie the stack of called
functions. Dunno if php has any support for it, but it is normally
used when debugg
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 14-01-02 at 09:48
* Ben Clumeck said
> I am new to MySQL and PHP. I am wondering how Authentication through PHP
> and MySQL. How does a username and password now where to take that user?
> An example is online banking. You enter your ac
89 matches
Mail list logo