[PHP] need help with php and mysql

2003-12-31 Thread webmaster
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.

[PHP] need help with php and mysql

2003-12-31 Thread webmaster
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

[PHP] PHP and MSSQL (and Access????)

2003-12-31 Thread DragonEye WebDesign
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

[PHP] Help with PNG creation script

2003-12-31 Thread Ashley M. Kirchner
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

AW: [PHP] Help with PNG creation script

2003-12-31 Thread Marcus Wendt
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

Re: [PHP] What is the Basic function to encode the password upon the authentication..

2003-12-31 Thread Scott Fletcher
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 tried

php-general Digest 31 Dec 2003 13:58:43 -0000 Issue 2504

2003-12-31 Thread php-general-digest-help
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

[PHP] How to compile unixiODBC with PHP and Apache???

2003-12-31 Thread Scott Fletcher
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,

[PHP] Generating PDF

2003-12-31 Thread Yann Larrivee
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 ?php $pdf = pdf_new(); pdf_open_file($pdf, philosophy.pdf); pdf_begin_page($pdf, 595, 842); $arial =

Re: [PHP] Generating PDF

2003-12-31 Thread Jyry Kuukkanen
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 code

[PHP] Another Session Question

2003-12-31 Thread Al
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

[PHP] Rename generates level 2 warning but works

2003-12-31 Thread Roger Spears
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

Re: [PHP] PHP and MSSQL (and Access????)

2003-12-31 Thread Raditha Dissanayake
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

Re: [PHP] Rename generates level 2 warning but works

2003-12-31 Thread Lowell Allen
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 such

Re: AW: [PHP] Help with PNG creation script

2003-12-31 Thread Ashley M. Kirchner
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

Re: [PHP] Another Session Question

2003-12-31 Thread Matt Matijevich
[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'] .

[PHP] 4.2.2 doesn't have mysql_real_esacpe_string()

2003-12-31 Thread Danny Anderson
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

[PHP] missing java.so

2003-12-31 Thread Brian V Bonini
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

[PHP] Cannot send session cache limiter

2003-12-31 Thread john
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

[PHP] PHP and MSSQL (and Access????)

2003-12-31 Thread Hunter, Jess
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

[PHP] urlencoding.

2003-12-31 Thread Chris W
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

[PHP] returning early from a function.

2003-12-31 Thread Chris W
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

Re: [PHP] urlencoding.

2003-12-31 Thread Matt Matijevich
[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

RE: [PHP] returning early from a function.

2003-12-31 Thread Vail, Warren
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

Re: [PHP] returning early from a function.

2003-12-31 Thread Matt Matijevich
[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

[PHP] Cannot send session cache limiter

2003-12-31 Thread john
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

RE: [PHP] Cannot send session cache limiter

2003-12-31 Thread Vail, Warren
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 1br; session_start(); echo point 2br; I am assuming that your send entry is in via the form action=url Is there any thing different about that URL like appended get

Re: [PHP] Rename generates level 2 warning but works

2003-12-31 Thread Roger Spears
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, it

[PHP] Performance Issue (Bug ?)

2003-12-31 Thread Jochen Boedeker
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

Re: [PHP] Another Session Question

2003-12-31 Thread Al
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

RE: [PHP] Cannot send session cache limiter

2003-12-31 Thread john
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

Re: [PHP] Cannot send session cache limiter

2003-12-31 Thread Brad Pauly
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 now,

RE: [PHP] Cannot send session cache limiter

2003-12-31 Thread Brad Pauly
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

[PHP] Email verification

2003-12-31 Thread Cesar Aracena
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

Re: [PHP] Rename generates level 2 warning but works

2003-12-31 Thread Lowell Allen
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.

[PHP] Export MySQL

2003-12-31 Thread Sheawh
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

Re: [PHP] Email verification

2003-12-31 Thread Brad Pauly
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 both

Re: [PHP] Email verification

2003-12-31 Thread Cesar Aracena
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. I want

RE: [PHP] Export MySQL

2003-12-31 Thread Jay Blanchard
[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

Re: [PHP] Export MySQL

2003-12-31 Thread Brad Pauly
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

Re: [PHP] Generating PDF

2003-12-31 Thread Evan Nemerson
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 ?php $pdf = pdf_new();

[PHP] Singleton pattern question

2003-12-31 Thread Hardik Doshi
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

RE: [PHP] Cannot send session cache limiter

2003-12-31 Thread Vail, Warren
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 ?php tag.

Re: [PHP] urlencoding.

2003-12-31 Thread Chris W
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, I

[PHP] pure PHP implementation of GNU diff/patch functionality

2003-12-31 Thread Jeremy Johnstone
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

[PHP] Re: Export MySQL

2003-12-31 Thread Alex
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

[PHP] SOLVED: [PHP] Rename generates level 2 warning but works

2003-12-31 Thread Roger Spears
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

Re: [PHP] Re: Export MySQL

2003-12-31 Thread Chris Shiflett
--- 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 what it's

Re: [PHP] missing java.so

2003-12-31 Thread Raditha Dissanayake
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:

[PHP] PHP New Year

2003-12-31 Thread Larry Brown
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

Re: [PHP] PHP New Year

2003-12-31 Thread Philip J. Newman
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 List

Re: [PHP] Singleton pattern question

2003-12-31 Thread Raditha Dissanayake
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

[PHP] will not build shared library

2003-12-31 Thread Brian V Bonini
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]

Re: [PHP] missing java.so

2003-12-31 Thread Brian V Bonini
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 missing?

Re: [PHP] urlencoding.

2003-12-31 Thread Tom Rogers
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 a

[PHP] No COOKIE Set?

2003-12-31 Thread Cesar Aracena
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

[PHP] Re: No COOKIE Set?

2003-12-31 Thread Aidan Lister
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 registers in

[PHP] Re: No COOKIE Set?

2003-12-31 Thread Cesar Aracena
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