hi,
i think there is a function that does just that
look for gethostbyaddr($ip) in the documentation
beware of the implication on the ressources , this function performs a reverse dns
lookup which can be time consuming
regards
21/01/2002 08:20:48, Police Trainee [EMAIL PROTECTED] wrote:
Hello,
How to upload files in a particular directory using php script in the
browser itself
Regards,
Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
Depending on how secure the login information needs to be, you could just
store it in a text file, maybe using password() to encrypt passwords. You
could then access it using fopen() and save the contents of the file in an
array.
I'm not too hot on login and authentication though myself! I did
On Monday 21 January 2002 10:34, Uma Shankari T. wrote:
Hello,
How to upload files in a particular directory using php script in the
browser itself
The gory details can be found in the chapter Handling File Uploads.
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
/*
Love is
Henrik Hudson wrote:
SNIP
_
session_start();
if (!isset($HTTP_SESSION_VARS[count])) {
$HTTP_SESSION_VARS[count] = 0;
}
else {
$HTTP_SESSION_VARS[count]++;
}
//Print the counter
echo Counter is now: $HTTP_SESSION_VARS[count];\nbr\n;
echo Let's
Bruce Brackbill wrote:
Hi,
If Call-time pass-by-reference has deprecated
so long ago, why are the instructions on how
to do it still in the manual?
http://www.php.net/manual/en/html/functions.arguments.html#functions.arguments.by-reference
At least it should point out that it has
Foreach($anotherarray as $key=$value)
Tim
www.chessish.com http://www.chessish.com
--
From: Daniel Alsén [SMTP:[EMAIL PROTECTED]]
Sent: 20 January 2002 20:30
To: PHP List
Subject: While on array?
Hi,
i am fiddling with a
Or get the JS to rewrite a query string in a link, but personally I wouldn't
rely on JS that far.
Tim
www.chessish.com http://www.chessish.com
--
From: Richard Crawford [SMTP:[EMAIL PROTECTED]]
Sent: 20 January 2002 23:32
To: Mårten Andersson
Foreach($array as $key=$value) ech0($key=$valuebr);
Tim
www.chessish.com http://www.chessish.com
--
From: Daniel Alsén [SMTP:[EMAIL PROTECTED]]
Sent: 20 January 2002 19:33
To: PHP List
Subject: Printing structure and data of array
Gidday Justin,
For us guys that don't get dates very often, the subject is one of intense
fascination! I answered a bunch of
these questions a couple of weeks back, and reproduce that discussion below. Also some
comments/responses to you
interspersed:-
I'm looking to normalise the way in
hi,
I hv an XML tree with some elements which keep repeating.. As of now, I am
able to print only the last element..
I need to make the loop recursive in order to print all the elements..
wud appreciate any help..
TIA,
sands
like this:
app_info
app_id001/app_id
Hi!
Using the method to build a html-page from png s you can in a way make it
inconviniant for the user
to reuse the html-code.
The problem is that the textquality is not very good and my host doesn´t
have support for gif with fontfiles.
I wonder if there is any other way to put text on your
php-general Digest 21 Jan 2002 11:40:12 - Issue 1124
Topics (messages 81296 through 81346):
Re: Edit program
81296 by: B. van Ouwerkerk
81298 by: Richard Baskett
81299 by: bvr
81322 by: David Robley
best way to approach dates
81297 by: Justin French
Not sure this is exactly what you need but try this:
@Draw_Table() or default_func();
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: S. Murali Krishna [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Monday, January 21,
Sorry if this is a newbie question, but I haven't followed the development
of 4.1.
All my previous code.. I've been able to do this:
/index.php
/general
/content
/content/index.php
where under content I could include images from a higher level directory
like this in content/index.php:
Try this:
?php copy($PHP_UPLOADED_FILE_NAME,$DOCUMENT_ROOT.$REQUEST_URI); ?
- Original Message -
From: Uma Shankari T. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 21, 2002 3:34 AM
Subject: [PHP] File Uploading
Hello,
How to upload files in a particular
Hello,
How we find out how many printout pages taken by each user using
php script?
Regards,
Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
Hello,
When i upload the file it is updating only in the document root
directory.It is not updated in some other directory except the root
directory.why is it so?
Any one tell me the solution for this?
Regards,
Uma
--
PHP General Mailing List (http://www.php.net/)
To
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 14:24
* Uma Shankari T. said
Hello,
When i upload the file it is updating only in the document root
directory.It is not updated in some other directory except the root
directory.why is it so?
Any one tell me
I guess you must all be getting very bored with this type of question..but
away.. I have recently put together a simple news section which allows admin
people to add, edit and delete stories from the site...I would like to add
the function of adding an image to a story...I have managed to use the
Hi,
I'm new in PHP, coming from JavaScript.
In JavaScript you had the function parseInt which was really useful.
For example parseInt(2.05) will return 2...
How can I do that in PHP ?
Thanks.
Jerry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
On Monday 21 January 2002 21:17, Uma Shankari T. wrote:
Hello,
When i upload the file it is updating only in the document root
directory.It is not updated in some other directory except the root
directory.why is it so?
Any one tell me the solution for this?
The general procedure for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 14:32
* Will Hives said
I guess you must all be getting very bored with this type of question..but
away.. I have recently put together a simple news section which allows admin
people to add, edit and delete stories from the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 14:34
* Jerry said
Hi,
I'm new in PHP, coming from JavaScript.
In JavaScript you had the function parseInt which was really useful.
For example parseInt(2.05) will return 2...
How can I do that in PHP ?
Look up
intval (2.05);
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: Jerry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 21, 2002 3:35 PM
Subject: [PHP] Integer in PHP
Hi,
I'm new in PHP, coming from JavaScript.
in article [EMAIL PROTECTED], Nick Wilson at
[EMAIL PROTECTED] wrote on 1/21/2002 1:36 PM:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 14:32
* Will Hives said
I guess you must all be getting very bored with this type of question..but
away.. I have recently put
* On 21-01-02 at 14:46
* Will Hives said
I guess you must all be getting very bored with this type of question..but
away.. I have recently put together a simple news section which allows admin
people to add, edit and delete stories from the site...I would like to add
the function
Hello i had the same problem with horde (apache and php 4.1.1)
(tried with apache 1.3.19, 1.3.20 and 1.3.22)
i tried with session.use_cookies=0 in the php.ini
and now it's correct, perhaps a cookie's management bug ?
jean-david Arzur
Henrik Hudson wrote:
Just FYI. I posted the forwarded
Henrik,
Which session handler are you using? Files, mm, User?
Jaime Bozza
-Original Message-
From: Henrik Hudson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 20, 2002 11:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Having a problem with sessions, Part Deux.
Just FYI. I
I'm not quite sure what you're having difficulty with, but this is, in
principle, like mapping a file system structure ...
which I do like this:
function sitemap($path)
{ if ($dhandle = opendir($path))
{ echo(ul);
while ($file_name = readdir($dhandle))
Check hotscripts, google, etc. Check phpauction - there is a remarkable
similarity: here is an item (training schedule) and inputs which apply to
it (results) (results) (results)
Miles Thompson
At 09:36 AM 1/21/2002 -0500, Brian V Bonini wrote:
I need to build an on-line training log where a
Hello,
I have a PHP content management application that I've developed. I'm
looking to add data caching to it so the database doesn't get pounded
all day long, the content on the site changes slowly, once or twice a
day.
Does anyone know of where I can look to find an
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 16:25
* Jeff Bearer said
Hello,
I have a PHP content management application that I've developed. I'm
looking to add data caching to it so the database doesn't get pounded
all day long, the content on the site
Try this:
$query = SELECT username,password FROM users WHERE
username=\.$username.\
AND
password=\.password($password).\;
MySQL needs all string data wrapped in quotes. Maybe the backslashes are a
bit confusing at first, but its worth taking the time to
Dear Martin, it worked!! Thank you SO much! - Shawna
-Original Message-
From: Martin Towell
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Sent: 1/20/02 10:25 PM
Subject: RE: [PHP] agh - what am I doing wrong - regular expressions
try this...
I changed
1. the double quotes in $pattern =
Hi folks
Just putting together a brochure for a product authored in PHP, and making
the case for LAMP (Linux/Apache/MySQL/PHP) as a platform, in a market where
most competitors are Java based.
I recently spoke to a very experienced sysadmin at an ISP who said they
always recommend LAMP over
The
thing is when i run this script which seems allright to me atleast, it always
fails, Can anyone even guess what the problem might be? The webserver is
running a php 4.1, SunOS 5.7, Apache, and sendmail which is required for the
mail() function if I'm right?
Thanks
David
Hi, am looking for good samples scripts for authentication, but I am using
the CGI version of Apache. However could be a good way for make
authentication using some file or database as the source for the login name
and so on.
Please let me know if you know where exists a good samples scripts
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 16:41
* David Orn Johannsson said
The thing is when i run this script which seems allright to me atleast,
it always fails, Can anyone even guess what the problem might be? The
webserver is running a php 4.1, SunOS 5.7,
On Mon, 2002-01-21 at 10:30, Nick Wilson wrote:
I have a PHP content management application that I've developed. I'm
looking to add data caching to it so the database doesn't get pounded
all day long, the content on the site changes slowly, once or twice a
day.
On that basis
It simply prints out Didn't work or fails the if statement, no
errormsg or nothing, the page executes fine but the mail function is the
enly thing that fails to execute.
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: 21. janúar 2002 15:45
To: [EMAIL PROTECTED]
Unfortunately, that won't work if the value of the JS variable needs to
change dynamically based on user interaction; document.write() only
works as the page is loaded (well... MSIE might be different, but
writing MSIE-only code is a bad practice).
The best bet is to use an input field; input
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 16:47
* Jeff Bearer said
On Mon, 2002-01-21 at 10:30, Nick Wilson wrote:
I have a PHP content management application that I've developed. I'm
looking to add data caching to it so the database doesn't get pounded
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 16:54
* David Orn Johannsson said
$address = [EMAIL PROTECTED];
$subject = Test;
$body = test;
if(mail($address, $subject, $body)) {
echo(Success);
} else {
Well, if you're caching but having your content updated twice a day
wouldn't you be better off letting the db take the strain? I don't see
how else you are going to make sure people are seeing the latest content
as opposed to cached pages that are out of date. Let your db do the
work, that's
But at 300,000 page views a day, even if the caches only have a ttl of 1
hour I'm still saving over %90 of the traffic from having to query the
database.
During our busy times I have a bottle neck with the database maxing out
the CPU's, so If I can cut the queries the server won't be
How can i include error notification, like if an MySQL error occurs, to notify me of
the offending
page and what the error was, while having the page die quietly or nicely, like an
message saying
that the webmaster will be notified please continue?
=
dan mccullough
Thanks alot I'll check into the php.ini
Regards, David
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: 21. janúar 2002 16:06
To: 'PHP-General'
Subject: Re: [PHP] Having a poblem with the mail() function
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 17:24
* val petruchek said
The greatest way of doing this is
1. develope php-script for generating updated html from moved php-script
and updating index.html (e.g. ;)
2. develope another script or program which
How can I, using:
INPUT TYPE=\FILE\ NAME=\UPLOAD_FOTO\ SIZE=\40\
specify the file extension.
I want the user only to upload *.jpg.
Thanks,
Danielle
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
http://www.zend.com/zend/art/php-over-java.php
the Why PHP on zend.com is a great place to go for this sort of stuff...
On Mon, 21 Jan 2002, Geoff Caplan wrote:
Hi folks
Just putting together a brochure for a product authored in PHP, and making
the case for LAMP (Linux/Apache/MySQL/PHP) as
Hi Dan,
How can i include error notification, like if an MySQL error occurs,
to notify me of the offending page and what the error was, while
having the page die quietly or nicely, like an message saying that
the webmaster will be notified please continue?
you can make a generic function to
The greatest way of doing this is
1. develope php-script for generating updated html from moved
php-script
and updating index.html (e.g. ;)
2. develope another script or program which will call the first one
periodically (once an hour, e.g.)
I like that.
It sounds similar to
I am running Apache 1.3 on WindowsXP just for some developement stuff that I
do at home. I just installed PHP to the server but I can't get it to
recognize .php as an extension and to have it load those as if they were
.html files. IE index.php it just shows a directory listing instead of
How can I, using:
INPUT TYPE=\FILE\ NAME=\UPLOAD_FOTO\ SIZE=\40\
specify the file extension.
I want the user only to upload *.jpg.
You can only check $userfile_type to detect the type of uploaded file. You
can specify nor extension to browse dialog neither default path for
browsing...
I am running Apache 1.3 on WindowsXP just for some developement stuff that
I
do at home. I just installed PHP to the server but I can't get it to
recognize .php as an extension and to have it load those as if they were
.html files. IE index.php it just shows a directory listing instead
use
$rgTemp = split('[|]',$szTag);
instead of
$rgTemp = split(|,$szTag);
on line 2
PHP List wrote:
Hi,
Can someone please tell me why the this is happening:
1) $szTag = test|3;
2) $rgTemp = split(|,$szTag);
3) $szTag = $rgTemp[0];
4) $nItemID = $rgTemp[1];
^line numbers for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 17:45
* Dion said
I am running Apache 1.3 on WindowsXP just for some developement stuff that I
do at home. I just installed PHP to the server but I can't get it to
recognize .php as an extension and to have it load those
you could write a bit of JavaScript to run on the form's onSubmit event or
even the fields onBlur event. Then in your JavaScript, parse out the file
name and extension to validate. It's not 100% accurate since users could
rename any file to have a JPG extension, but it works for the
I am using files on both systems. The session files are also showing up on
both systems. (/tmp)
On Monday 21 January 2002 08:15, Jaime Bozza wrote:
Henrik,
Which session handler are you using? Files, mm, User?
Jaime Bozza
-Original Message-
From: Henrik Hudson
The greatest way of doing this is
1. develope php-script for generating updated html from moved php-script
and updating index.html (e.g. ;)
2. develope another script or program which will call the first one
periodically (once an hour, e.g.)
I like that.
It sounds similar to
hence my qualification, but you can alter the contents of elements using
javascript on the fly, using the innerHTML property, for example.
Tim
www.chessish.com
-Original Message-
From: Richard Crawford [SMTP:[EMAIL PROTECTED]]
Sent: 21 January 2002 15:59
To: Tim
Is anyone aware if such a debugging/documentation tool exists?
What is/do I mean by a cross referencer?
A tool which will list all of the variables (and function names ?and include files)
used within a
program/script, together with the line number(s) where they are mentioned - hopefully
Yes, but only in MSIE. As far as I know, no other browser supports the
innerHTML property; at least, I have never managed to get it to work in
Netscape, Mozilla, Konquerer, or Opera. And I stand firmly behind my
earlier statement that developing code that bombs on non-MSIE browsers
is a bad
Since reading your first post I've been racking my brains/teasing my
memory. I'm sure there's an article on one
of the popular PHP sites that talks about exactly this: creating a web
page dynamically, but serving it as
static HTML (ie with no back-end db access per serving).
This idea came to
The official way to do this would be using the accept attribute:
accept = content-type-list [CI]
This attribute specifies a comma-separated list of content types that a
server processing this form will handle correctly. User agents may use this
information to filter out non-conforming files when
Are you sure that cacheing database data is the right way to approach
the problem? How about using a cron job to write static HTML pages from
live data? You could set up such a system to run every few hours or so.
I haven't done that in PHP, but it's something I'm looking at doing
for a
Check out phorum's source, I find it very well-documented and
educational.
I can't imagine how a collaborative effort can work with obfuscated
source...
On Saturday, January 19, 2002, at 05:03 AM, Geoff Caplan wrote:
Some authors compound the problem by using cryptic variable names,
Hi,
This is a long one so pl bear with me...
I have an XML structure as follows:
app_info
app_id001/app_id
app_nameWORD/app_name
app_info //SUB APPLICATION
app_id002/app_id
Even with straight HTML, a server's load capacity is not infinite. If
my own server, an old Pentium with 4 GB of hard drive space, and which
serves nothing but static HTML pages, got hit with more than a couple
hundred hits in a short period of time, it would bomb.
I must be misunderstanding
Create a function like error_handling()
in it have it do echo We're sorry, we are currently experiencing technical
difficulties blah blah blah and have it email you whatever mysql_error()
says.
then do:
mysql_query(SELECT whatever FROM whatever) or die(error_handling());
-Original
Even with straight HTML, a server's load capacity is not infinite. If
my own server, an old Pentium with 4 GB of hard drive space, and which
serves nothing but static HTML pages, got hit with more than a couple
hundred hits in a short period of time, it would bomb.
I must be
disclamer
Before I get flamed for not reading the manual or trying on my own, I
would just like to say that I have been working on this for a few days
and have read the manual and looked at quite a few examples, all of
which seem to elude me.
/disclamer
I want to upload an image, and I want
I am fairly new to PHP and have setup a site that connects to a MySQL db to
store different information from our users, however what I would like to
setup is something that I could place on a few pages to track users for
demographic purposes. What I need to do is as a page is visited I need to
one problem, the ftp functions that you are trying to use are on the server.
therefor you are trying to connect one server to another server. you
are not connecting from your workstation to the remote server. for what you
are attempting to do, ftp will not work.
Jim Lucas
- Original
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 19:58
* jas said
I am fairly new to PHP and have setup a site that connects to a MySQL db to
store different information from our users, however what I would like to
setup is something that I could place on a few pages to
I'm trying to get the remote IP address of a user in a (PHP) version and
server-software independant way, but am having a few problems.
Obviously, I've seen $HTTP_SERVER_VARS['REMOTE_ADDR'], but Ive also seen
references to $HTTP_SERVER_VARS['HTTP_X_FORWARDED_FOR'].
Is there any generic solution
Erik
I can't imagine how a collaborative effort can work with obfuscated
source...
Nor can I, but it is surprising how often I download code that is pretty
much unreadable.
I think a lot of people who try to get projects going just don't think this
through, and then wonder why they don't get
I understand the issues about binary precision for floating point numbers on
standard base 2 systems but I'm unsure of the propper way to fix this
problem. Here is the base test case:
?
$contract_amount = 9961.00;
$bill1 = .95;
$bill2 = .05;
$billable_this_month += ($contract_amount *
ie - i have:
while($myrow=mysql_fetch_array($result)) { etc...
But i want the loop to run with an array i created earlier ($anotherarray =
[key1] = value1, [key2] = value2).
use foreach($anotherarray as $key = $value) { .
A Nawroth
--
PHP General Mailing List
Even with straight HTML, a server's load capacity is not infinite. If
my own server, an old Pentium with 4 GB of hard drive space, and which
serves nothing but static HTML pages, got hit with more than a couple
hundred hits in a short period of time, it would bomb.
I must be
Answered my own question... rounding using the round function to two
decimal places did the trick:
?
$contract_amount = 9961.00;
$bill1 = .95;
$bill2 = .05;
$billable_this_month += ($contract_amount * $bill1);
$paid_to_date += ($contract_amount * $bill2);
$paid_to_date =
Would you suggest that I use the copy function instead?
I have tried the copy function in a prelim test and I had trouble with
the function finding the file on the local machine. From what I have
seen in the FAQs on PHPBUILDER and this is not an uncommon problem.
One possible solution was that
DL Neil wrote:
Even with straight HTML, a server's load capacity is not infinite. If
my own server, an old Pentium with 4 GB of hard drive space, and which
serves nothing but static HTML pages, got hit with more than a couple
hundred hits in a short period of time, it would bomb.
I must be
I've asked this several times but it doesn't seem like anyone understands my
problem, the passwords are encrypted in the database, but I don't know how
to match an unencrypted password from the login form with the database?
is it possible to encrypt the password I sent from the form in php or
I finally got PHP running on Apache in WinXP. I can execute PHP and all
that, but I can't get it to open in index.php file like it would open an
index.html file.. ie, first file it looks for in a new directory is
index.xxx but it won't open the PHP file... Anyone tell me what i need to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 20:44
* Dion said
I finally got PHP running on Apache in WinXP. I can execute PHP and all
that, but I can't get it to open in index.php file like it would open an
index.html file.. ie, first file it looks for in a new
what kind of encryption are you talking about?
If you mean mysql's password() function, then no you can't do that in
php. obviously whatever you use has to match the original encryption.
- Mark
On Mon, 21 Jan 2002 20:36:59 +0100, Hawk wrote:
I've asked this several times but it doesn't seem
On Mon, 21 Jan 2002, Hawk wrote:
I've asked this several times but it doesn't seem like anyone understands my
problem, the passwords are encrypted in the database, but I don't know how
to match an unencrypted password from the login form with the database?
is it possible to encrypt the
Hi,
if a MySQL server is compiled with SSL support (that's for the 4 series),
is it possible to use this secure connection from a PHP script (with
mysql_connect)?.
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Atte. Ignacio Estrada F.
Centro Nacional de Control de Energia
Area de Control Occidental
025+6463, 025+6464, 025+6469
ignacio.estrada@
cfe.gob.mx Para: [EMAIL PROTECTED]
cc:
Even with straight HTML, a server's load capacity is not infinite. If
my own server, an old Pentium with 4 GB of hard drive space, and which
serves nothing but static HTML pages, got hit with more than a couple
hundred hits in a short period of time, it would bomb.
I must be
I can't seem to find any references to HTTP_X_FORWARDED_FOR in the PDF PHP
documentation from January 2001, so you should probably best stick with
either $HTTP_SERVER_VARS['REMOTE_ADDR'] or simply $REMOTE_ADDR (if you use
$REMOTE_ADDR in functions make sure you do a global on it first) - I
I can't seem to find any references to HTTP_X_FORWARDED_FOR in the PDF PHP
documentation from January 2001, so you should probably best stick with
either $HTTP_SERVER_VARS['REMOTE_ADDR'] or simply $REMOTE_ADDR (if you use
$REMOTE_ADDR in functions make sure you do a global on it first) - I
DN,
Yes the db server and the webserver are on the same box, local
connections are much faster than network ones according to mysql. When
the site is busy the percent of the system being used by mysql and that
being used by PHP/Apache, I estemate would be around 90%-10% so if I get
the
the copy() function is subject to the same problem that the ftp functions
are. you are trying to call a function that is on the remote server and you
want it to do things to the local machine. unfortunatly you cannot do this.
through a web browser you have no direct access to the local client
Hello people,
I got this script:
?
$maildb = file(mailaddr.txt);
foreach ($maildb as $address)
{ mail($address, THis is the subject\n, This is the message\n, From:
[EMAIL PROTECTED]\n); }
?
The mailaddr.txt looks like:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
However the
Jeff,
Seeing Richard thinks I have blue (?blood) in (my) veins, I'd better respond nobly and
quickly...
Yes the db server and the webserver are on the same box, local
connections are much faster than network ones according to mysql. When
the site is busy the percent of the system being
Josepablo,
?
$maildb = file(mailaddr.txt);
foreach ($maildb as $address)
{ mail($address, THis is the subject\n, This is the message\n, From:
[EMAIL PROTECTED]\n); }
?
The mailaddr.txt looks like:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
However the script does send
whichever way the original password was encrypted, encrypt the incoming
password the same way, ie. if the original was encrypted in php, encrypt the
incoming password in php before passing it to the sql statement, similarly
if the original password was encrypted using mysql.
Martin
1 - 100 of 155 matches
Mail list logo