php-general Digest 15 Sep 2005 17:58:48 -0000 Issue 3684

2005-09-15 Thread php-general-digest-help
php-general Digest 15 Sep 2005 17:58:48 - Issue 3684 Topics (messages 222459 through 222480): Re: Size limits of mysql 222459 by: Georgi Ivanov passing values from dynamic form to another php page? 222460 by: hope 222461 by: hope 222470 by: Jay Blanchard

Re: [PHP] Size limits of mysql

2005-09-15 Thread Georgi Ivanov
There is [max allowed packet] variable in mysql. The default is 1MB in my config. May be this is what stops you. Try increasing this value. On Wednesday 14 September 2005 01:07, [EMAIL PROTECTED] wrote: Hi All, I have a simple database with one table with about 6 fields, just holding

[PHP] passing values from dynamic form to another php page?

2005-09-15 Thread hope
hi i m generating a dynamic form (no. of fileds depend upon user selection from previous page). On this page user enters values into form fields and i want to acess them on next page. ///file1.php ?php

Re: [PHP] mysql query

2005-09-15 Thread Mark Rees
On Wednesday 14 September 2005 07:36 pm, Jesús Alain Rodríguez Santos wrote: I have a table colum in mysql with two fields: day and month. I would like to know if it's possible to make a query where I can determine if exist days before to a selected day, for example: if I have in my table:

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Jochem Maas
Stephen Leaf wrote: On Tuesday 13 September 2005 05:52 pm, Ryan A wrote: [x] I never work with PHP 4 anymore, all my work is with PHP 5 so far I've not found any hosts that do PHP5, however I do all my own hosting anyway. I've switched to use PHP5 because I was interested in doing XSL, and

Re: [PHP] PDO for PHP 4 (was Re: Quick Poll: PHP 4 / 5)

2005-09-15 Thread Kevin Waterson
This one time, at band camp, Manuel Lemos [EMAIL PROTECTED] wrote: The matter is that PDO does not offer real database independence, so application developers that want to not have to deal with the important aspects that are different among databases will still have to deal them in their

Re: [PHP] php/mysql object id question..

2005-09-15 Thread Oliver Grätz
Jasper Bryant-Greene schrieb: Oliver Grätz wrote: 3. Yes. One can abuse exceptions to return something in a constructor. Just another argument against exceptions ;-) OK, it's unorthodox, if you absolutely need to do that, do it and tell nobody *g*. This is not abusing exceptions. If

[PHP] cookies problem

2005-09-15 Thread Ross
I am very close to getting this sorted.Thanks for all the help on 'variable variables' and var_dump. Two useful techniques. My function works but throws up a cookie problem if (isset($add)){ ${$add} = intval($_COOKIE['cookie'][$add]); $new= $$add+1; setcookie(cookie[$add], $new $add);

Re: [PHP] PDO for PHP 4 (was Re: Quick Poll: PHP 4 / 5)

2005-09-15 Thread Lester Caine
Kevin Waterson wrote: The matter is that PDO does not offer real database independence, so application developers that want to not have to deal with the important aspects that are different among databases will still have to deal them in their applications making their applications

[PHP] php and .htaccess...can't figure it out!

2005-09-15 Thread blackwater dev
Ok, As per an earlier post, I am having problems with .htaccess files. I am trying to set certain php directives using .htaccess files. First it was complaining about several things such as mcrypt and zde: snip Wed Sep 14 20:04:46 2005] [notice] caught SIGTERM, shutting down PHP Warning: PHP

[PHP] Re: PDO for PHP 4 (was Re: Quick Poll: PHP 4 / 5)

2005-09-15 Thread Oliver Grätz
Manuel Lemos schrieb: NEWSFLASH: PDO already exists for PHP 4: http://www.phpclasses.org/pdo One can't implement overloading of the Zend Engine 2 in PHP4 so this is not the full package. And then, the most important feature of PDO is that it's NOT WRITTEN IN PHP like any other database

RE: [PHP] passing values from dynamic form to another php page?

2005-09-15 Thread Jay Blanchard
[snip] form name=sqlform action=table1_process2.php method=post enctype=multipart/form-data // now i want to access the values from input fields on next page? can somebody give me idea how to pass all form field values

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Oliver Grätz
Manuel Lemos schrieb: A reference where _I_ have to search is something like a non-answer... If you try searching the bug database for PHP 4 versus PHP 5 opened bug reports you will get your answer. Same sentence still applies. But OK: PHP4 has 518 open bugs, PHP5 only 203. What does this

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Robert Cummings
On Thu, 2005-09-15 at 08:32, Oliver Grätz wrote: Manuel Lemos schrieb: A reference where _I_ have to search is something like a non-answer... If you try searching the bug database for PHP 4 versus PHP 5 opened bug reports you will get your answer. Same sentence still applies. But

[PHP] PHP combined with JAVA

2005-09-15 Thread Stasa Jerinic
Hallo, I write one Java class that gives my name back. I implemented the call of this Java class in php Unit, but there are some problems, because I will to make only one time the instance of Java class and put it into Session and everytime when the page is reloaded to load the Java object from

[PHP] PHP combined with JAVA

2005-09-15 Thread Stasa Jerinic
Hallo, I write one Java class that gives my name back. I implemented the call of this Java class in php Unit, but there are some problems, because I will to make only one time the instance of Java class and put it into Session and everytime when the page is reloaded to load the Java object from

[PHP] Re: trying to figure out the best/efficient way to tell whois loggedintoa site..

2005-09-15 Thread Dan Baker
Ben [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dan Baker wrote: The *main* reason I use $_REQUEST is so I can code up GET and POST pages that all are handled by the same php functions. I may have an item called Key that contains what the end-user is expected to be doing

Re: [PHP] size limit in mysql tables?

2005-09-15 Thread John Nichel
[EMAIL PROTECTED] wrote: I have a simple database with one table with about 6 fields, just holding filenames, filepaths and sizes. Very basic audit for management here. Problem is I import a load of records into this table and it seems to only allow me to put in about 550,000 records.

Re: [PHP] php and .htaccess...can't figure it out!

2005-09-15 Thread John Nichel
blackwater dev wrote: snip Which means absolutely nothing to me...can someone shed some light on all this? Why can't I use .htaccess files as this is all driving me a little batty! /snip Did you try as someone suggested before, and put bogus content in the .htaccess file to see if Apache was

[PHP] Domain Info Possible?

2005-09-15 Thread Chirantan Ghosh
Hello, I was wondering if there was way to generate domain statistics by any PHP script? I just need some basic info like: Monthly Traffic( Sites, Kbytes, Visits, Pages, Files, Hits ) Example: http://server18.internetserver.com/stats/1800homecare/ If it is possible can I also create a Log In

Re: [PHP] Domain Info Possible?

2005-09-15 Thread Jordan Miller
do you have log files? the page you linked to was generated by webalizer. is there a reason you can't use that (or Awstats, or something similar)? you probably don't need to reinvent the wheel here... though you may need to tweak your webserver to put more information in the log files so

[PHP] How to output a PNG with GD with same headers as pre-existing PNG file

2005-09-15 Thread Graham Anderson
I am trying to get a PNG created with GD to output exactly as a pre-existing PNG file on the server I have an app that is being very finicky about how it is loading images :( Within Quicktime, If I point to the PNG file directly on the server, it works. this works: $image =

[PHP] basic validation wuestion for username/emails...

2005-09-15 Thread bruce
hi.. rather than recreate the wheel.. i'm looking for samples of good/solid/comprehensive validation functions for user/form inputs. specifically, i'm looking for ways to validate/verify that the user has entered valid username/email. as i go forth, i'll be looking for address/zip/phone/etc... as

Re: [PHP] Output of html without using functions?

2005-09-15 Thread Gustav Wiberg
Hi there! With that codeline I get... (I have B-one as webhost) Warning: file_get_contents(): URL file-access is disabled in the server configuration in /customers/varupiraten.se/varupiraten.se/httpd.www/test.php on line 2 Warning: file_get_contents(http://php.net): failed to open stream:

[PHP] html forms in php

2005-09-15 Thread Philippe Reynolds
Good day all, I have a problem for you all.. I have a form that has has the ability to delete a lot of information from my MySQL database. I would like to create a bit of security, in case the user hits the button by accident. I would like to create an additionnal window that would appear

Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site..

2005-09-15 Thread Gustav Wiberg
- Original Message - From: Ben [EMAIL PROTECTED] Newsgroups: php.general To: Gustav Wiberg [EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 7:35 PM Subject: Re: [PHP] trying to figure out the best/efficient way to tell who is logged into a site.. Gustav Wiberg wrote: All you

Re: [PHP] Webservices and PHP?

2005-09-15 Thread Gustav Wiberg
Hi there! Thanx! /G - Original Message - From: Clive Zagno [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 1:59 PM Subject: Re: [PHP] Webservices and PHP? I presume by web service you mean SOAP and WSDL etc Have a look at something called

RE: [PHP] html forms in php

2005-09-15 Thread Jay Blanchard
[snip] Are you sure? and then a yes and no buttons to confirm the deletion or to cancel the command. Any thougts?? [/snip] You can use JavaScript for this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] html forms in php

2005-09-15 Thread bruce
philippe, you can accomplish this by using a piece of javascript that fires off an alert, asking the user 'yes/no'. if the user selected yes, the app would do a submit to the page that would then take care of the mysql/db interaction... search on google for 'php onsubmit alert' etc... -bruce

Re: [PHP] Problems with strings being handled like numbers

2005-09-15 Thread J B
On 9/14/05, Richard Lynch [EMAIL PROTECTED] wrote: mssql_* and PHP know that the data is supposed to be integer But the largest integer that PHP can store is 0x. So when PHP tries to accept the integer from mssql_fetch_row, it's got no room to store it as integer, and HAS to

RE: [PHP] html forms in php

2005-09-15 Thread Murray @ PlanetThoughtful
Good day all, I have a problem for you all.. I have a form that has has the ability to delete a lot of information from my MySQL database. I would like to create a bit of security, in case the user hits the button by accident. I would like to create an additionnal window that would

RE: [PHP] html forms in php

2005-09-15 Thread Alan Fullmer
This might help you. input type=submit name=DELETE onclick=return confirmDelete() script function confirmDelete() { var agree=confirm(WARNING! This will blah blah delete etc yada yada \n\rPress Cancel to go back, or OK to Continue.); if (agree) return true ; else

[PHP] Re: basic validation wuestion for username/emails...

2005-09-15 Thread Manuel Lemos
Hello, on 09/15/2005 03:11 PM bruce said the following: rather than recreate the wheel.. i'm looking for samples of good/solid/comprehensive validation functions for user/form inputs. specifically, i'm looking for ways to validate/verify that the user has entered valid username/email. as i go

Re: [PHP] html forms in php

2005-09-15 Thread D A GERM
Here's some javascript I use for such instances: [CODE] if (myForm.hidWhich.value == delete) { var verify = prompt(You are about to delete this entry \n + \n \n + To delete this entry you must type this phrase in the prompt and click OK: \n

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Pooly
2005/9/13, Ryan A [EMAIL PROTECTED]: Hi, I work for a company that makes websites and does custom programming for private indviduals and companies, I also freelance (like many on this list) I'm a bit curious, so far I have had no need to upgrade my skills or use the slightly different

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Robert Cummings
On Thu, 2005-09-15 at 16:25, Pooly wrote: 2005/9/13, Ryan A [EMAIL PROTECTED]: Hi, I work for a company that makes websites and does custom programming for private indviduals and companies, I also freelance (like many on this list) I'm a bit curious, so far I have had no need to

[PHP] adding string...

2005-09-15 Thread Gustav Wiberg
Hi guys! Is there any difference in performance in these two ways? $sql = $sql . OR $sql .= /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick Poll: PHP 4 / 5

2005-09-15 Thread Oliver Grätz
Pooly schrieb: [x] I use a layer above PHP which is independant of whether it's PHP4 or PHP 5, which is running Migration from 4.x to 5.0.3 was as simple as changing a DNS record :-) http://templeet.org/ A layer above PHP would mean this thing generates code specific to the underlying PHP

[PHP] Re: adding string...

2005-09-15 Thread Oliver Grätz
Gustav Wiberg schrieb: Hi guys! Is there any difference in performance in these two ways? $sql = $sql . OR $sql .= No difference. Even if there was any difference it would be totally negligible. AllOLLi Byers: What proof do you have? Bond: I got this! Byers: You're

Re: [PHP] Re: adding string...

2005-09-15 Thread Gustav Wiberg
- Original Message - From: Oliver Grätz [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, September 16, 2005 1:34 AM Subject: [PHP] Re: adding string... Gustav Wiberg schrieb: Hi guys! Is there any difference in performance in these two ways? $sql = $sql . OR $sql .=

[PHP] curl support for php 5.0.5

2005-09-15 Thread Ey-Chih Chow
I want to use curl support for php5.0.5 and iis. I installed the downloaded php binary and tried to configure the it to use curl by modifying php.ini. But it always came with a message not able to find curl_init(). Is there anybody out there knowing if we can configure the downloaded php 5.0.5

[PHP] curl support for php 5.0.5

2005-09-15 Thread ey-chih chow
I want to use curl support for php5.0.5 and iis. I installed the downloaded php binary and tried to configure the it to use curl by modifying php.ini. But it always came with a message not able to find curl_init(). Is there anybody out there knowing if we can configure the downloaded php 5.0.5

[PHP] curl support for php 5.0.5

2005-09-15 Thread ey-chih chow
I want to use curl support for php5.0.5 and iis. I installed the downloaded php binary and tried to configure the it to use curl by modifying php.ini. But it always came with a message not able to find curl_init(). Is there anybody out there knowing if we can configure the downloaded php 5.0.5

[PHP] Re: PHP combined with JAVA

2005-09-15 Thread Oliver Grätz
If I read this correctly then your question is in no way JAVA-specific. You want to instantiate an object (which you suppose to be of large size and slow in instantiation) and save this object in the session during page requests. First of all, any data put in the session array will be serialized