i made a bobo and now mysql server is returning a to many connections error i dont
have access to reboot so is there a comand i can use to close all connections.
hi all i had an to many connections error with mysql
i dont have anyway to reboot the server so is there someway i can give php a command
and shut down all open connections on mysql thank you
hi,
I have been learning PHP and MySQL from a book that I have bought. I am
really pleased with the way these 2 systems work, but I was wondering if
MSSQL wouldn't be easier to use, more specifically I was wondering wether I
could make an Access Database and connect it to my php website using MSSQ
The attached text file contains a script that I've gotten from a web
site and that I've been using for a while now to generate on the fly PNG
headers. There can be several headers on one page, spanning several
days worth of articles. The script works, except it's a huge overhead
because it
I'd definitivly suggest you NOT to use this database-pointer approach!
Instead of simply sending that .png-header once
you could store the image in a physical file by using an unique ID based
on the functions arguments.
Later on just check if a file with this ID exists and return its URL
instead
Thanks, that does help!!!
FletchSOD
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Scott Fletcher wrote:
>
> > What is the function exactly for encoding the user's typed password
in
> > PHP after the HTTP Authentication pop-up window by Apache was submitted?
I
php-general Digest 31 Dec 2003 13:58:43 - Issue 2504
Topics (messages 173511 through 173540):
Re: Mysql management programme for windows?
173511 by: John W. Holmes
Re: What is the Basic function to encode the password upon the authentication..
173512 by: John W. Holmes
Hi!
I saw the example on how to configure and compile PHP with unixiODBC and
Apache but it only refer to PHP version 3. So, can someone give me a better
example with the latest PHP version somewhere?
Thanks,
FletchSOD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Hi i am trying to generate a PDF with PHP5 (latest cvs) and PDFLib 5.0.2
I have this very basic example that i took from php.net and saw the same
code on http://www.sitepoint.com/article/1225/1
But the function pdf_begin_page always return this error messsage.
Fatal error: PDFlib error [2100]
The code looks pritty much fine to me.
Have you tested your piece of code with PHP 4.x?
--jq
On Wed, 31 Dec 2003, Yann Larrivee wrote:
> Hi i am trying to generate a PDF with PHP5 (latest cvs) and PDFLib 5.0.2
>
> I have this very basic example that i took from php.net and saw the same
> co
There is a little code that worked before my virtual host before they
updated to 4.3.1.
First time the function is called session should be set, subsequent
calls should be skipped.
session_start();
if($_SESSION['counter_file'] !==$counterFile)//See if
Hello,
I have this magical script which uses rename. A visitor to the site
uploads a file and I want to rename it to a timestamp. Oddly enough,
the rename() function actually works, it renames the file AND then
generates a level 2 warning:
Error code: 2
Error message: rename() failed (No suc
This is a php group.
However why do you want to spend so much money when mysql is free and so
much better?
DragonEye WebDesign wrote:
hi,
I have been learning PHP and MySQL from a book that I have bought. I am
really pleased with the way these 2 systems work, but I was wondering if
MSSQL would
> I have this magical script which uses rename. A visitor to the site
> uploads a file and I want to rename it to a timestamp. Oddly enough,
> the rename() function actually works, it renames the file AND then
> generates a level 2 warning:
>
> Error code: 2
> Error message: rename() failed (No
Marcus Wendt wrote:
I'd definitivly suggest you NOT to use this database-pointer approach!
Any particular reason you'd not use a database to hold pointers,
which might become helpful later on when it comes to searching for
"expired" headers to be deleted (as opposed to searching the physical
[snip]
session_start();
if($_SESSION['counter_file'] !==$counterFile)//See if
visitor has already been counted for this page
{$num += 1;
$_SESSION['counter_file'] = $counterFile;
}
echo $_SESSION['counterFile'] . '
Hola, PHP folk!
I am learning about PHP from a book (MySQL/PHP Database Applications).
I have been following the examples in the book, modifying them to suit
my purpose and experiment, etc.
I am using an old work machine my webserver. I did a Redhat 9 install,
adding MySQL version 4. The 'sto
Compiling PHP (CLI) with java on mdk9.1 and java.so is simply not there.
What am I missing?
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/lib/php/extensions/java.so' - /usr/lib/php/extensions/java.so:
cannot open shared object file: No such file or directory in Unknown on
line 0
[
Hi
I'm new to the list, but I've been PHP programming for almost 2 years now,
hard to believe.
Anyway, I have a program that's giving me a "Cannot send session cache
limiter", yet the very first thing the program does is session_start();
The only thing I can think that's different about this pro
Well, with using the MyODBC drivers you could create and maintain a MySQL
database through MsAccess.
That way you could have the best of all worlds (please don't flame me for
saying that). Using MySQL as the database backend, PHP for a web front end
and MsAccess as an administrative GUI for your u
Let me give a quick background. I am a very experienced programmer but
I haven't done much php and only a little web development in perl. I am
now creating a web site with Apache, php and MySQL.
I am having the user fill out a form and then save the data in MySQL.
Before I save the data I do
I have a function that does several tests and if any are true it needs
to return false but I get an error about unexpected return for all
returns except for the last one.
function test($s)
{
if($s = 'this') return false;
if($s = 'that') return false;
return true;
}
any ideas on how to make
[snip]
My problem is that any field that contains a double quote, all data
after the first double quote is missing from the form field. When I
look at the long URL I do see a %22 where the " are supposed to be, and
all other data is there too.
[/snip]
Take a look at the html source. What is p
Try;
if($s == 'this') return false;
A
*- single = is an assignment.
Warren Vail
-Original Message-
From: Chris W [mailto:[EMAIL PROTECTED]
Sent: Monday, December 29, 2003 9:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] returning early from a function.
I
[snip]
function test($s)
{
if($s = 'this') return false;
if($s = 'that') return false;
return true;
}
[/snip]
try this:
function test($s)
{
if($s == 'this') return false;
if($s == 'that') return false;
return true;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Hi
(apologies if you've seen this, but I sent it and it both came back from
the list server, and it bounced back as a failed email, so I'm going to
try again)
I'm new to the list, but I've been PHP programming for almost 2 years
now, hard to believe.
Anyway, I have a program that's giving me a "
have you placed echo's on both sides of the session_start to make sure that
is where your error message is coming from;
echo "point 1";
session_start();
echo "point 2";
I am assuming that your send entry is in via the
Is there any thing different about that URL like appended get parameters as
i
Lowell Allen wrote:
Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch
of time yesterday with an upload script that did not recognize files when
using "$_FILES", but worked fine with "$HTTP_POST_FILES" -- PHP 4.3.4 on
Linux.
Thank you for the suggestion. Unfortunately, i
Hi,
I'm using a set of (self-written) scripts to do some db-interactions (eg.
reading recordsets from a DB2 (AS/400), converting
them and inserting them in a MySQL-DB). These scripts where written on my
office-workstation where they run very well.
When i put them on our intranet-server the script
Your'e right, that's a typo.
If I put a
echo $_SESSION['counter_file'] .
' testx ' . $counterFile;
Before and after the conditional, $_SESSION['counter_file'] is set after the conditional, as it should be. But, it is gone from the before echo when the function is recalled.
The Sessi
> perhaps you could show some code snippets.
Thanks Warren, at least I know my message is getting through :-)
Well, I just got this:
Warning: Cannot send session cookie - headers already sent by (output
started at /home/sites/site191/web/test2/changeAlertDetails3.php4:1) in
/home/sites/site191/w
On Wed, 2003-12-31 at 10:59, [EMAIL PROTECTED] wrote:
> Hi
>
> (apologies if you've seen this, but I sent it and it both came back from
> the list server, and it bounced back as a failed email, so I'm going to
> try again)
>
> I'm new to the list, but I've been PHP programming for almost 2 years
On Wed, 2003-12-31 at 11:24, [EMAIL PROTECTED] wrote:
> > perhaps you could show some code snippets.
>
> Thanks Warren, at least I know my message is getting through :-)
>
> Well, I just got this:
>
> Warning: Cannot send session cookie - headers already sent by (output
> started at /home/sites/
Hi all,
I'm trying to create a script to check for errors in submitted forms. I want
the visitor to enter two times the email address and then check for it...
This is what I have so far. The scripts checks if the email was entered in
both fields, but not if they are equal to each other... ???
if
> Lowell Allen wrote:
>
>>
>> Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch
>> of time yesterday with an upload script that did not recognize files when
>> using "$_FILES", but worked fine with "$HTTP_POST_FILES" -- PHP 4.3.4 on
>> Linux.
>>
> Thank you for the sug
it may be a bit out of topic,
but can anyone teach me how to export a MySQL database?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 2003-12-31 at 11:18, Cesar Aracena wrote:
> Hi all,
>
> I'm trying to create a script to check for errors in submitted forms. I want
> the visitor to enter two times the email address and then check for it...
> This is what I have so far. The scripts checks if the email was entered in
> bo
Well Brad... it worked. Guess I forgot to use well the IF statements.
Thanks.
"Brad Pauly" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> On Wed, 2003-12-31 at 11:18, Cesar Aracena wrote:
> > Hi all,
> >
> > I'm trying to create a script to check for errors in submitted forms
[snip]
it may be a bit out of topic,
but can anyone teach me how to export a MySQL database?
[/snip]
Google? A search on the MySQL web site? http://www.mysql.net/mysqldump
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 2003-12-31 at 11:34, Sheawh wrote:
> it may be a bit out of topic,
> but can anyone teach me how to export a MySQL database?
If you mean in general, it is a bit OT, but check out mysqldump.
http://www.mysql.com/doc/en/mysqldump.html
If you mean with PHP, you could use the exec() command
On Wednesday 31 December 2003 09:29 am, Yann Larrivee wrote:
> Hi i am trying to generate a PDF with PHP5 (latest cvs) and PDFLib 5.0.2
>
> I have this very basic example that i took from php.net and saw the same
> code on http://www.sitepoint.com/article/1225/1
>
> $pdf = pdf_new();
> pdf_open_fi
Hi Group,
Currently i am using the singleton design pattern in
one of my projects. I was under impression that by
using the singleton pattern i need to initialize
system configuration only one time (At the time of
login) but once i implemented the system, i came to
know that system initializes an
OK, I have seen some of these messages before, now to figure out how you are
triggering them. Some of these suggestions may be specific to previous
releases of PHP and may no longer apply but here goes;
1. Make sure you have no stray or blank characters in your PHP file prior
to the "mailto:[EMA
I don't know why I didn't look at the html source before I posted that
question. The source looks like this
VALUE=""jhgfhjf""
which tells why the field is showing blank. So now the question is what
to do about it. I guess htmlspecialchars will take care of that?
Thanks for hint on sessions,
Has anyone ever seen a class which will allow most (if not all) the
functionality of the diff/patch unix tools purely in PHP? I am looking
for the ability to create a standard unified diff of the difference
between two files, and also the ability to take a diff and apply it to a
file. As mentioned
Sheawh wrote:
it may be a bit out of topic,
but can anyone teach me how to export a MySQL database?
phpmyadmin does a very nice job of dumping a mySQL database. in
phpmyadmin, go to the database you want to dump and click on Export
(that's what it's called in 2.5.4 anyway)
--
PHP General Mailing
Lowell Allen wrote
So, I think you need to pass rename parameters that are file locations.
HTH
--
Lowell Allen
Thank you!!!
I was not in tune to what was happening. You are correct. You must
pass file locations and not just file namesonce I passed the
locations, the warning went away
--- Alex <[EMAIL PROTECTED]> wrote:
> Sheawh wrote:
> > it may be a bit out of topic,
> > but can anyone teach me how to export a MySQL database?
>
> phpmyadmin does a very nice job of dumping a mySQL database. in
> phpmyadmin, go to the database you want to dump and click on Export
> (that's wh
There was an alternative approach posted yesterday.
Brian V Bonini wrote:
Compiling PHP (CLI) with java on mdk9.1 and java.so is simply not there.
What am I missing?
PHP Warning: Unknown(): Unable to load dynamic library
'/usr/lib/php/extensions/java.so' - /usr/lib/php/extensions/java.so:
cannot
Happy New year all!
Looking forward to bigger better things this year.
Larry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yes HNY to you too
- Original Message -
From: "Larry Brown" <>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Thursday, January 01, 2004 1:37 PM
Subject: [PHP] PHP New Year
> Happy New year all!
>
> Looking forward to bigger better things this year.
>
> Larry
>
> --
> PHP General Mailing
Hi,.
Unfortunately in PHP this may be true, however in j2ee if you use the
singleton pattern the result would be what you expect.
happy new year.
Hardik Doshi wrote:
Hi Group,
Currently i am using the singleton design pattern in
one of my projects. I was under impression that by
using the sing
Any ideas why this would not build a shared library?
[EMAIL PROTECTED] no-debug-non-zts-20020429]# pwd
/usr/lib/extensions/no-debug-non-zts-20020429
[EMAIL PROTECTED] no-debug-non-zts-20020429]# ls -l
total 96
-rwxr-xr-x1 root root93000 Dec 31 20:03 libjava.a*
[EMAIL PROTECTED] no-
On Wed, 2003-12-31 at 19:49, Raditha Dissanayake wrote:
> There was an alternative approach posted yesterday.
I saw it. Still need to have a java sdk and a shared library.
>
> Brian V Bonini wrote:
>
> >Compiling PHP (CLI) with java on mdk9.1 and java.so is simply not there.
> >What am I missin
Hi,
Tuesday, December 30, 2003, 3:02:24 AM, you wrote:
CW> Let me give a quick background. I am a very experienced programmer but
CW> I haven't done much php and only a little web development in perl. I am
CW> now creating a web site with Apache, php and MySQL.
CW> I am having the user fill out
Hi all,
My head is about to explode here... I am trying to setup a cookie for every
new user that registers in my site and right after that, to send them to the
home page... is that so difficult? apparently yes... It does redirect, but
when I try to "echo" the $MemberId cookie with:
echo $_COOKIE
Try putting the exit() before the redirect, and see if there's an error when
you attempt to set the cookie.
"Cesar Aracena" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> My head is about to explode here... I am trying to setup a cookie for
every
> new user that registe
Hi Aidan and thanx for the answer.
I placed the exit(); function below the setcookie() function and the page
just keeps blank. No error is displayed. I have NOTICES turned off but
that's no notice it should give me.
Thanks again,
Cesar
"Aidan Lister" <[EMAIL PROTECTED]> escribió en el mensaje
n
58 matches
Mail list logo