i'll explain
i need a fallbak method where if the master server is down it will goto the
slave i assumed the connection could do this automatically but it doesnt
therefore requires it setup in the php connection script ,
part of my db class $this-connection = @mysql_pconnect($host,$user,$pass);
i have worked out the issue , here is my dynamic connection to the slave ,
port does not work i suggest this is a bug ?
localhost:/usr/local/etc/mysqlslave/tmp/mysql.sock this connected to the
slave on 3307 fine
-Original Message-
From: Rich Gray [mailto:[EMAIL PROTECTED]
Sent: Sunday,
I'd use ...
WHERE UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(sUpdated) 60*60*24*60
but I'm sure someone will come up with something more efficient.
Tim Ward
http://www.chessish.com
mailto:[EMAIL PROTECTED]
- Original Message -
From: Philip J. Newman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
At 07:02 02.03.2003, Sunfire said:
[snip]
basic question about www-authenticate header...(least i hop its simple)
i have the code:
?php
header(WWW-Authenticate: basic realm='a realm');
header(HTTP/1.0 402 Unauthorized);//dont understand
//what this line does
i am operating on safe mode and i need to figure out, how to upload files
with php through your browser. copy() is disabled for sure, im not
absolutsely sure about other functions. i have heard that it is actually
possible but so far i haven't been able to figure out how..
any ideas would be most
At 12:35 02.03.2003, joe said:
[snip]
i am operating on safe mode and i need to figure out, how to upload files
with php through your browser. copy() is disabled for sure, im not
absolutsely sure about other functions. i have heard that it is actually
I saw somewhere that if you don't have the kerberos stuff installed you'll
have problems compiling with imap, so as far as I can figure I have all the
rpms I need installed for imap support -
imap-2001a-9mdk
imap-devel-2001a-9mdk
krb5-devel-1.2.5-1mdk
krb5-libs-1.2.5-1mdk
Patrick
- Original
Hello!
I have made a really great (or at least that is what I think) extension,
which I think everybody should use :))
Where should I publish it?
Is there any chance that it will make its way into a future distro?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi There,
Not sure how you define an extension, but you could take a look at my
web site www.phpscriptsearch.com and see if it applies to listing it
there. But like I said, it depends what you mean by extension.
As far as getting it into the next distro, not sure, I have put in a lot
of effort
Hi,
I have an array which I am trying to total but having some problems. Any
help is appreciated.
Example: This is a hockey team and there are 20 players - I am selecting
the goals, assists, and points from each player and then want to have a
grand total of all goals, assists, and points.
Cannot you just make MaSQL count it?
$query = select sum(goals), sum(assists), sum(points) from roster;
Beauford.2002 wrote:
Hi,
I have an array which I am trying to total but having some problems. Any
help is appreciated.
Example: This is a hockey team and there are 20 players - I am
Hello,
I've got a little question. I am writing a page where I would like to
parse my own invented HTML-looking tags (but want to keep the real HTML
tags intact). I use a buffer for the output, and just before the end use
ob_get_contents() to get the whole buffer which I want to check for
those
Hi,
Is any way to write JavaScript code into PHP function or to send PHP's
variables values to the JScript variables?
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Valentin wrote:
Hi,
Is any way to write JavaScript code into PHP function or to send PHP's
variables values to the JScript variables?
Thanks,
Of course, you can create dynamicaly javascript via php, ie:
echo
script language=\JavaScript\
var yourvar = $onephpvar ;
/script ;
Is that what you
Not directly PHP related, but I'm building a site in PHP at the
moment, so
I've been doing a bit of research...
I've been on the net for years, coding and surfing and coding. And
not
always in that order. ;) But only recently have I heard about web
beacons,
or single-pixel gifs. Seems
I would like yo show the users in a list that have a date that is more
than
60 days old.
$sql = SELECT * FROM stompers WHERE sUpdated CUR_DATE() - INTERVAL 60
DAY AND sActive = 'Y' ORDER BY sUpdated DESC;
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get
Hi,
Is any way to write JavaScript code into PHP function or to send PHP's
variables values to the JScript variables?
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It gets a little more complicated than this. There are several teams (each
with 20 players) and then there is the team owner and then there is the
player position, etc. So to do this I would have to do some kind of a join
and so on - and to date haven't been able to figure this out with sums. I
php-general Digest 2 Mar 2003 16:43:34 - Issue 1914
Topics (messages 137753 through 137785):
Re: PHP scripts and the GPL/other licenses
137753 by: Jason Sheets
137754 by: Jeff Lewis
137756 by: Leif K-Brooks
Re: php.ini
137755 by: Anthony Ritter
Date
Hi. does anyone know of a php//mysql based movie ticket reservation system?
Thanks,
Chuck Barnett
I've got a little question. I am writing a page where I would like to
parse my own invented HTML-looking tags (but want to keep the real
HTML
tags intact). I use a buffer for the output, and just before the end
use
ob_get_contents() to get the whole buffer which I want to check for
those
This one returns a 'Could not get Query' warning ... so thats out.
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: 'Philip J. Newman' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 5:31 AM
Subject: RE: [PHP] PHP SQL Code
I would like yo show the
Hi,
This is OT, I'm considering buying the MySQL, Second Edition Paul DuBois
book. I'm using MySQL 3.23. Should I be buying the first edition DuBois
book instead or does BuBois cover both 3 and 4 in the second edition? Is
there a huge difference between 3 and 4?
Thanks.
--
PHP General
I would like yo show the users in a list that have a date that is
more
than
60 days old.
$sql = SELECT * FROM stompers WHERE sUpdated CUR_DATE() -
INTERVAL 60
DAY AND sActive = 'Y' ORDER BY sUpdated DESC;
This one returns a 'Could not get Query' warning ... so thats out.
Sorry,
Thank you Vincent!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I thought you would enjoy this new web site that I have found and started using
recently. zWallet.com is a free email service provider that pays its members to email.
It's really great, we do it anyway, why not get paid for it.
And the best thing of all, zWallet.com not only pays you to email
Valentin wrote:
Hi,
Is any way to write JavaScript code into PHP function or to send PHP's
variables values to the JScript variables?
Thanks,
Yes, I think there is a way to do so!
;-)
Vincent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi..
i guess this is a php related question (well sort of) the person i work
with decided that he was going to edit a few of my php scripts that make a
web page out of variables and just different conditions that happen in the
script.. he thought that he could use a gui html editor and edit the
Does anyone have a PHP CLI script running from cron?
If so I would greatly appreciate any assistance. Below is everything
from this on going problem. It seems none has an answer so far.
Please help.
XXX
I tried to run the
well i told him it was probably java or something of the sort cuz he uses
java in his pages sometimes expecially when it comes to buttons or something
of that sort.. he has done about 24 web sites and all but 2 or 3 are framed
based with a minimum of 4 frames in it.. 1 for the logo 1 for a nav bar
If I was you, I would tell him he's insane.
Sunfire wrote:
hi..
i guess this is a php related question (well sort of) the person i work
with decided that he was going to edit a few of my php scripts that make a
web page out of variables and just different conditions that happen in the
script..
Monil Chheda wrote:
Hi,
I have a problem in grabbing data from a file.
I need to fetch data from raw log files and display it
in a proper tabular manner.
The log file contains:
AWSTATS DATA FILE 5.0 (build 1.345)
# If you remove this file, all statistics for date
On Sunday 02 March 2003 23:34, Beauford.2002 wrote:
Hi,
I have an array which I am trying to total but having some problems. Any
help is appreciated.
Example: This is a hockey team and there are 20 players - I am selecting
the goals, assists, and points from each player and then want to
You can output xhtml with your custom tags and use xml parsing functions
Jos Elkink wrote:
Hello,
I've got a little question. I am writing a page where I would like to
parse my own invented HTML-looking tags (but want to keep the real HTML
tags intact). I use a buffer for the output, and just
Can someone tell me what is wrong with the following code:
html
headtitleTesting/title/head
body
?php
$str = EOD
Example of string
spanning multiple lines
using heredoc syntax.
EOD;
?
/body
/html
This is code straight out of the PHP manual. I get the error:
Parse error: parse error,
well i have learned how to actually make better choices with the php and how
to display certain parts of a page rather than redo the whole page... so i
would have a certain web page with a table for example and the first row
shows a static text from a db.. lets say its a company name with a
already did that.. he even said whats new... *fear that* if i work for
someone like that?? hrm...
- Original Message -
From: Leif K-Brooks [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 3:55 PM
Subject: Re: [PHP] php and html
How would you get the server to parse PHP if it was just a static HTML
page?
If it parses PHP, then why would you need to use a gif at all? So
many
sites use them, I just wondered what data they get and how they get
it.
The file that creates your image could be a PHP script:
img
On March 2, 2003 01:53 pm, Jason Wong wrote:
On Sunday 02 March 2003 23:34, Beauford.2002 wrote:
Hi,
I have an array which I am trying to total but having some
problems. Any help is appreciated.
Example: This is a hockey team and there are 20 players - I am
selecting the goals,
At 21:25 02.03.2003, Sunfire said:
[snip]
i guess this is a php related question (well sort of) the person i work
with decided that he was going to edit a few of my php scripts that make a
... oh my god.
he told me a few things that i dont quite
At 21:54 02.03.2003, Sunfire said:
[snip]
well i told him it was probably java or something of the sort cuz he uses
java in his pages sometimes expecially when it comes to buttons or something
right, you can do some logic with JavaScript (don't confuse that
At 23:02 02.03.2003, [EMAIL PROTECTED] said:
[snip]
Can someone tell me what is wrong with the following code:
?php $str =
This is code straight out of the PHP manual. I get the error:
Parse error: parse error, unexpected T_SL in testhere.php on line 5
Hey all.
In Cold Fusion I was able to do the following:
CFSWITCH expression = #action#
CFCASE value = getUpdate,getDelete
Do Stuff
/CFCASE
/CFSWITCH
Note the comma delimited set of values for the case. Is there a way to do
this in php?( i.e. if any of the comma
- Original Message -
From: Ernest E Vogelsinger [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 5:58 PM
Subject: Re: [PHP] php and html differences
At 21:25 02.03.2003, Sunfire said:
[snip]
i
I've been using this:
if (in_array($value, array(foo, bar, blah)))
{
// do something
}
but if you want to use a switch/case, I don't know any easier way.
HTH
Martin
-Original Message-
From: CF High [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 1:41 PM
To: [EMAIL
on 02/03/03 7:51 AM, Vincent M. ([EMAIL PROTECTED]) wrote:
Hello,
I didn't find in the doc how to:
- Know the full path of the current directory. Like /var/www/to/the/path
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.serve
r
- Know under which user work apache,
when I copy/pasted directly from your email and tried to execute it, I can
an error on line 5 too
I noticed that there's a space at the end of line 5, I deleted it and it
worked fine.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003
On Sun, 2003-03-02 at 16:55, Sunfire wrote:
- Original Message -
From: Ernest E Vogelsinger [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 5:58 PM
Subject: Re: [PHP] php and html differences
At 21:25 02.03.2003, Sunfire said:
where could i get a templet editor from that is good and fairly easy to use?
- Original Message -
From: Jason Sheets [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 02, 2003 7:07 PM
Subject: Re: [PHP] php and html differences
On Sun, 2003-03-02
I could use anchor's like shown underneath, but then the user will have to
click the link Last position each time a button is submitted. I would like
the page to scroll down automatically. Is that possible, to have the link
executed without clicking help from the user?
body onLoad=mScroll()
?php
Check the manual:
switch($foo)
{
case fee:
case fie:
...
break;
case fo:
...
case fum:
...
break;
}
fee fie are tied together, fie will also run the code presented by fum ...
Even
switch($value){
case 'foo':
case 'bar':
//It's either foo or bar
break;
}
CF High wrote:
Hey all.
In Cold Fusion I was able to do the following:
CFSWITCH expression = #action#
CFCASE value = getUpdate,getDelete
Do Stuff
/CFCASE
/CFSWITCH
Note the comma
on 01/03/03 7:27 AM, Michael Zornek ([EMAIL PROTECTED]) wrote:
I'm ether looking to find or build my own open source php based script, that
would allow you to include a small code chunk on every page of a site and
then view statistics from the info, on what pages were viewed, how many
times,
Smarty is an excellent template engine, it is available at
http://smarty.php.net
Jason
On Sun, 2003-03-02 at 17:13, Sunfire wrote:
where could i get a templet editor from that is good and fairly easy to use?
- Original Message -
From: Jason Sheets [EMAIL PROTECTED]
To: Sunfire
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Use Smarty(http://smarty.php.net/) and Maguma Studio(http://www.maguma.com/).
~Paul
On Sunday 02 March 2003 07:13 pm, Sunfire wrote:
where could i get a templet editor from that is good and fairly easy to
use?
[snip]
- --
~Paul Nicholson
Design
Hope this will help your gamma-epsilon-psycho telepathy beamer :-)
When someone hits a button in one of the form-schemas the following
happens:
1) hentKoordinat() is executed. The form-schemas hidden field named yKoord
gets the value: the amunt of pixels scrolled in y-direction.
2)the page is
Duh. make that
fo will also run the code presented by fum ...
-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]
switch($foo)
{
case fee:
case fie:
...
break;
case fo:
...
case fum:
Hello,
I turns out I accidently over wrote my MySQL user table and now everything is out of
wack. I overwrite it again with a backup install of MySQL and it's
working...somewhat.. When I try logging in through phpMyAdmin (it's a hosted site with
ssh access) I get this error:
MySQL
i have a query:
mysql_query(update members set where '$edit[company]'='$company)
anyways there are 2 sources using this query.. one that needs the
$edit[company] marker and another one that uses a $company marker.. any way
i can make that 1 query deal with both sources?
and i also
In a message dated 3/2/2003 3:55:50 PM Pacific Standard Time,
[EMAIL PROTECTED] writes:
when I copy/pasted directly from your email and tried to execute it, I can
an error on line 5 too
I noticed that there's a space at the end of line 5, I deleted it and it
worked fine.
That's it. That is the
You can use array_sum().
I have used that in the past, but only on single arrays, I can't figure out
how to do on multi-level arrays, and since I need to have different totals
from different levels of the array, I don't think this will work. If you can
shed some light on this it would be
Hello,
On 02/28/2003 11:10 AM, Mathieu Dumoulin wrote:
Allright, we managed to get to send emails thru an SMTP, but now we need to
know which email DID get to the recipient and which didn't. Our smtp class
supports basic error message but as soon as the message is outbound from
this server, which
Hello,
On 03/01/2003 08:35 AM, Mirza Muharemagic wrote:
Hi all,
are there any restrictions for mail function, when I use Bcc? how
many email adresses can i put in Bcc, are there any PHP
restriction, or just memory restriction, or something else?
Put them all in a single Bcc: header
Hi,
Monday, March 3, 2003, 8:02:14 AM, you wrote:
jvc Can someone tell me what is wrong with the following code:
jvc html
jvc headtitleTesting/title/head
jvc body
jvc ?php
jvc $str = EOD
jvc Example of string
jvc spanning multiple lines
jvc using heredoc syntax.
jvc EOD;
?
jvc /body
jvc
Hello,
On 02/28/2003 05:24 PM, Gary wrote:
Does anyone have any idea of why I may be getting this error, when my
scripts ran perfectly fine before (i don't know what). Is there some kind of
setting in my mail program that may have changed? I'm using Outlook with
Exchange Server.
Warning: Failed
Hello,
On 03/01/2003 07:28 PM, Jason D. Williard wrote:
Is there an easy way to create a calendar in PHP, such as a calendar
function? All I need is a dynamically created calendar to link to other
pages.
You may want to try this class that you customize in a sub-class to do
whatever you want as
Hi,
Monday, March 3, 2003, 6:33:46 AM, you wrote:
JMC Does anyone have a PHP CLI script running from cron?
JMC If so I would greatly appreciate any assistance. Below is everything
JMC from this on going problem. It seems none has an answer so far.
JMC Please help.
JMC
Hello
I do have the following problem
I read a file line by line into an array I use to email address ( a value
of the line) to email each client with custom information from this file
what I read into the buffer.
The script is working everything is send the way I wish, the only problem is
[snip]
The script is working everything is send the way I wish, the only
problem
is
that the 200 user would see all 199 useres email addresses before him
..
and so on each member Member 800 sees 799 emails in the email as well
799
times the from address big problem.
I want to send each
I do not use any loop comand yet
how come I have all email addresses from the data file in the TO: line
but each email is send with unique information to the client,
only TO and From: line is filled with all the values from the data file.
What do I do ?
I hope I explain my self good enough can
DR MATTHEW LOUN.
BRANCH MANAGER,
UNITED BANK FOR AFRICA PLC
LAGOS ISLAND BRANCH
LAGOS NIGERIA
TELL:234-803-300-3032
EMAIL:[EMAIL PROTECTED] or [EMAIL PROTECTED]
ATTN:PRESIDENT/C.E.O
I am pleased to get across to you for a very urgentand profitable business
proposal,Though I don't know you
I do not use any loop comand yet
Yes you do. You have a while() loop.
how come I have all email addresses from the data file in the TO: line
but each email is send with unique information to the client,
Because that info is the result of one split() call, but you're building
up headers with
well i can not do it I turned the code up side down put the header tags
above like u sugested but still dosnt work I see your point that it is in a
growing loop /but I am not so good yet in php to fix the code my self to do
it in a better way
I looked online ??? Does nobody has a data file like
Instead of using fopen(), try using file(). It will read your file into
an array, with each line of your file being an element in the array. You
then use foreach() to loop through the array, one element (line) at a
time and act accordingly.
$lines = file($email_file);
foreach($lines as $line)
{
Hello all,
I am trying to read a php file to a varible and then print that variable.
Unfortunately, my php file is not being parsed by the fread function and I
can't figure out why.
Here is the code in my file and was taken directly from the manual:
$filename = test.php;
$handle = fopen
you'll have to exec() the code
$filename = test.php;
$handle = fopen ($filename, r);
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
exec($contents);
see if that works
Martin
-Original Message-
From: Paul Cohen [mailto:[EMAIL PROTECTED]
Tom,
Did you run the script from cron? If so, what operating system are you
using? Putting PHP info in my script won't do me any good since cron
won't run it. The trouble is that cron does nothing. When I run the
email script I get no mail. If I run the script from the command line
by hand
I am trying to read a php file to a varible and then print that
variable.
Unfortunately, my php file is not being parsed by the fread function
and I
can't figure out why.
Here is the code in my file and was taken directly from the manual:
$filename = test.php;
$handle = fopen
Hello friends.
I have seen some php scripts for uploading files. They all mention thet the file goes
to a temporary folder.
How can I upload the file to a particular folder that I have created?
Thanks very much.
Denis
I have seen some php scripts for uploading files. They all mention
thet
the file goes to a temporary folder.
How can I upload the file to a particular folder that I have created?
It's always uploaded into a temporary folder. Then you use
move_uploaded_file() to move it where you want.
It's all in the manual:
http://www.php.net/manual/en/features.file-upload.php
In particular, look at the lines involving move_uploaded_file()
Justin French
on 03/03/03 4:00 PM, Denis L. Menezes ([EMAIL PROTECTED]) wrote:
Hello friends.
I have seen some php scripts for uploading files.
- Original Message -
From: erich [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:50
Subject: [PHP] gethostbyaddr woes
for some reason i cannot retrieve a hostname using gethostbyaddr().
if it helps, my host is http://phpwebhosting.com/. i have asked them
Hi,
Monday, March 3, 2003, 2:54:47 PM, you wrote:
JMC Tom,
JMC Did you run the script from cron? If so, what operating system are you
JMC using? Putting PHP info in my script won't do me any good since cron
JMC won't run it. The trouble is that cron does nothing. When I run the
JMC email
Jean-Christian Imbeault [EMAIL PROTECTED] wrote:
Sorry if my intentions were not clear but I am trying to protect myself
from SQL injection attacks by using addslashes() to user provided
information. I cannot assume anything about the incoming data (not even
the encoding) since anyone
Just correcting a typo :)
Moriyoshi Koizumi [EMAIL PROTECTED] wrote:
?php
mb_internal_encoding(Shift_JIS);
$escaped = mb_ereg_replace(([\\\'\0]), 1, $sjis_string);
?
should be
?php
mb_internal_encoding(Shift_JIS);
$escaped = mb_ereg_replace(([\'\0]), 1, $sjis_string);
?
When I tried to 'make' PHP-4.3.1, it returns warning message and died. I am
using RH8.0 + Apache 2.0.44
The warning tells me the use of function name 'tempnam' is dangerous (why?
who can tell?), and the 'make' process died.
The error is:
ext/mysql/libmysql/my_tempnam.lo: In function
When I tried to 'make' PHP-4.3.1, it returns warning message and died. I am
using RH8.0 + Apache 2.0.44
It didn't die, that is simply the end of the build. Warnings aren't
fatal.
(Please do not cc all the lists)
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I tried to complete the installation (I did 'make install') but the test on
'php -l' didn't return anything; it keeps on running... nothing returns, no
core-dump...
any further help?
Ok! I just want helpers can have a full investigation on the suspected
error.
Best best regards
./pl
Rasmus
ooops... Should be 'php -i'...
./pl
Patrick Lok [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I tried to complete the installation (I did 'make install') but the test
on
'php -l' didn't return anything; it keeps on running... nothing returns,
no
core-dump...
any further
Moriyoshi Koizumi wrote:
You can avoid this issue by configuring a PHP build
with --enable-zend-multibyte option and set mbstring.script_encoding to
SJIS.
Or better yet, make sure that all pages are in EUC-JP and use that for
internal encoding too, right :)
And also translate all user input to
90 matches
Mail list logo