Re: [PHP] Compile issue

2007-09-26 Thread Eric Butera
ore. On 9/26/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > are you using the same configure command when compiling all 3 versions? > > -nathan > > > On 9/26/07, Eric Butera < [EMAIL PROTECTED]> wrote: > > > > The last version of PHP I've been able to c

Re: [PHP] Why $_REQUEST do the same thing as mysql_escape_string()

2007-10-17 Thread Eric Butera
On 10/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I put some thing in an form input filed like this: > ' " \ > then submit to a php script. > When use $_GET / $_POST / $_REQUEST to get the value, > I always get: > \' \" \\ > In php expression it should be: > $_REQUEST['field'] = "\\' \\\"

Re: [PHP] window.open() and search engines

2007-10-23 Thread Eric Butera
On 10/23/07, Richard Heyes <[EMAIL PROTECTED]> wrote: > Can anyone say for sure whether window.open() links get spidered by > search engines? > > Thanks. > > -- > Richard Heyes > +44 (0)800 0213 172 > http://www.websupportsolutions.co.uk > > Knowledge Base and HelpDesk software > that can cut the c

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Eric Butera
On 10/25/07, Sascha Braun <[EMAIL PROTECTED]> wrote: > What is the cause for that error: > > Fatal error: Maximum function nesting level of '100' reached, aborting! > in /home/Projekte/spectral/modules/xml_mm/classes/xml_mm.class.php on > line 118 > > Thank you! > > Sascha > > -- > PHP General Mail

Re: [PHP] CURL + Frames, fopen + remote sessions

2007-10-26 Thread Eric Butera
On 10/24/07, jenix <[EMAIL PROTECTED]> wrote: > > Hi, > > When using CURL to access a page with frames I get the "Your browser does > not appear to support frames" error. How can get around this? Is there > special header info that can be added? Also, if I were using fopen can > anyone offer sample

Re: [PHP] Function variables in classes

2007-11-01 Thread Eric Butera
On Nov 1, 2007, at 7:10 AM, Paul van Haren wrote: Hi there, I'm trying to execute function variables. This works fine outside class code, but gives a fatal error when run within a class. The demo code is here: foo2(); ?> The error message reads: Fatal error: Call to undef

[PHP] tidy memory corruption problem

2007-12-11 Thread Eric Wood
-tidy-5.1.6-4.fc6 libtidy-0.99.0-12.20070228.fc6.1 Does the below code work on someone else's FC6 by chance? thanks, -eric wood The code is: PHP Tidy Test Text EOX; ?> Becomes... TRUE, 'input-xml' => TRUE, 'output-xml'

[PHP] when does php stop php executing when user clicks stop

2007-12-28 Thread Eric Wood
onder how modphp keeps the code executing even if the browser drops the connection via stop. Any insight is greatly appreciated. thanks, -eric wood -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] when does php stop php executing when user clicks stop

2007-12-28 Thread Eric Wood
Eric Wood wrote: > If database operations are underway when a user accesses a web page, > then user clicks stop on the browser, does the php stop immediately too? > > I'd rather the php continue behind the scenes to fullfill all the > actions I need it do to whether the user wa

Re: [PHP] Byte Size of an array

2008-01-08 Thread Eric Butera
t either, but it is at least a little closer. var_dump(memory_get_usage()); $array = array( 1 => 'one', 2 => 'two', 3 => 'three' ); var_dump(memory_get_usage()); Output: int(53464) int(53928) Also Xdebug trace: Version: 2.0.0 TRACE START [2008-01-08 1

Re: [PHP] global address collection

2008-01-08 Thread Eric Butera
On Jan 8, 2008 10:08 AM, tedd <[EMAIL PROTECTED]> wrote: > I just finished a credit card portion for a site where the programmer > before me required the customers to enter their credit card number > without spaces -- why? It's a simple matter to remove spaces for > processing -- why throw that re

Re: [PHP] php form help...

2008-01-08 Thread Eric Butera
On Jan 8, 2008 12:00 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 8, 2008 11:56 AM, 2 Logic Studios <[EMAIL PROTECTED]> wrote: > > Daniel, > > > > Thanks...worked like a charm > > My pleasure. Just remember to sanitize the code as I said if > you're going to do anything other than

Re: [PHP] PHTML files showing as blank pages

2008-01-08 Thread Eric Butera
On Jan 5, 2008 9:39 AM, A.smith <[EMAIL PROTECTED]> wrote: > Hi, > > I'm having a problem getting .phtml files to display in a web browser. I > can successfully display a test.php page as per PHP install instructions but > the phtml files show up blank > (in firefox or IE). > > I have added these

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 1:33 PM, <[EMAIL PROTECTED]> wrote: > I have been using define to create a constant for the link resource returned > by mysql > pconnect like so: > > $PL = @mysql_pconnect("localhost", $DBUser, $DBPass); > define("SITE_DB",$PL); > > > Later I use the constant to select my database

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 2:02 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Jan 10, 2008, at 12:48 PM, Eric Butera wrote: > > > On Jan 10, 2008 1:33 PM, <[EMAIL PROTECTED]> wrote: > >> I have been using define to create a constant for the link resource > >&g

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 2:28 PM, David Giragosian <[EMAIL PROTECTED]> wrote: > > On 1/10/08, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > On Jan 10, 2008 2:02 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > > > On Jan 10, 2008, at 12:48 PM, Eric Butera

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 3:34 PM, David Giragosian <[EMAIL PROTECTED]> wrote: > > > On 1/10/08, David Giragosian <[EMAIL PROTECTED]> wrote: > > > > > > On 1/10/08, Eric Butera <[EMAIL PROTECTED] > wrote: > > > On Jan 10, 2008 2:28 PM, David Giragosian

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 4:00 PM, Stut <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: > > Haha. Thank you for all that insightful research. Seriously though, > > using globals you might already be in hell! =\ > > IMHO global variables are evil in the same way that regis

Re: [PHP] uh oh, I defined a resoruce

2008-01-10 Thread Eric Butera
On Jan 10, 2008 4:41 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > On Jan 10, 2008 4:00 PM, Stut <[EMAIL PROTECTED]> wrote: > >> Eric Butera wrote: > >>> Haha. Thank you for all that insightful research. Seriously though, > &

Re: [PHP] /etc/php.init changes not honored

2008-01-10 Thread Eric Butera
On Jan 10, 2008 5:59 PM, Ryan H. Madison <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to increase upload_max_filesize beyond the 2M > limit. I've set this in my /etc/php.ini file, but every time I look at > the output of phpinfo(); the changes I make in /etc/php.init don't seem >

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Eric Butera
On Jan 11, 2008 1:22 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > On Jan 11, 2008 11:33 AM, Stut <[EMAIL PROTECTED]> wrote: > >> No brainer, SMTP will almost certainly be faster. My mailing list system > >> (written in PHP obviously)

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Eric Butera
On Jan 11, 2008 1:33 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > I used to use htmlMimeMail, but now I use Zend_Mail as it has a better > > API and is also faster in regards to the quoted printable encoding. > > IIRC htmlMimeMail use the PHP built in function to do quoted printable > encoding.

Re: [PHP] Determine which are user defined keys?

2008-01-11 Thread Eric Butera
On Jan 11, 2008 1:17 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > explain what your trying to achieve and why. because it seems like your > 'requirement' is a result of tackling the problem from the wrong end. I'd wait and listen to what Jochem has to say first, but you might be able to keep a cop

Re: [PHP] SMTP vs mail()

2008-01-11 Thread Eric Butera
On Jan 11, 2008 11:33 AM, Stut <[EMAIL PROTECTED]> wrote: > No brainer, SMTP will almost certainly be faster. My mailing list system > (written in PHP obviously) can dump 600k customised emails to the local > SMTP server in a couple of hours. Doing the same with the mail command > took over 24 hour

Re: [PHP] XML Data merging

2008-01-12 Thread Eric Butera
On 1/12/08, Naz Gassiep <[EMAIL PROTECTED]> wrote: > I'm using simplexml to fetch data from a set of data files. If I have > two files, and one is an update to the other, is there an easy way to > merge the two files together, rather than having write logic that checks > one and then the other? > >

Re: [PHP] Posting Summary for Week Ending 11 January, 2008: php-general@lists.php.net

2008-01-14 Thread Eric Butera
On Jan 14, 2008 1:12 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, January 11, 2008 3:00 pm, PostTrack [Dan Brown] wrote: > > > Messages| Bytes | Sender > > +-+-- > > 226 (100%) 255776 (100%) E

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Eric Butera
On Jan 15, 2008 9:27 AM, Adam Williams <[EMAIL PROTECTED]> wrote: > I'm having users enter dates in MM-DD- format. is there a way to > check if what they have entered is invalid (like if they enter 1-15-2008 > instead of 01-15-2008) ? > > -- > PHP General Mailing List (http://www.php.net/) >

[PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
... otherwise this will happen: erics:~/Sites eric$ /opt/php5/bin/php networksolutions.php Starting at 01/16/2008 12:36pm.Result: ...snip... Your Domain Name Search Results Congratulations! The following domains are available eric-butera-for-php-general Then a few minutes later: erics:~ eric

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 12:57 PM, julian <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am implementing this > > class dbaccess{ >static $db=null; >static $othervar=33; > >private function dbaccess(){ > dbaccess::$db= new mysqli("localhost",USER,PASSWD,DB); > if(mysqli_connect_errno()){

Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 2:32 PM, Andrés Robinet <[EMAIL PROTECTED]> wrote: > A couple of days ago I've come across this: > http://www.seomoz.org/blog/network-solutions-exploits-icanns-fiveday-refund- > rule-to-hoard-domains > > So... I don't even think that network solutions is the only one doing it. I > k

Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:27 PM, Andrés Robinet <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > From: Daniel Brown [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, January 16, 2008 5:06 PM > > To: Eric Butera > > Cc: Andrés Robinet; php php > > S

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:13 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 3:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > given that dbaccess doesn't extend mysqli instantiation of dbaccess is > > completely > > pointless no? > > > i dont know; i think using an instance of dbaccess t

Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:35 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 4:30 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > His program was for CLI. > > Correct. Sorry, forgot to mention it lunch was calling my > name, and I had to answer. &

Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 4:48 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > You did forget to escape the user input value in case I was trying to > > hacks myself. :) > > > > No I didn't. &

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 4:55 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > > On Jan 16, 2008 4:13 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > >> On Jan 16, 2008 3:59 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> > >>>

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 5:06 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 4:55 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > Eric Butera schreef: > > > > > > > > > > > I still don't understand the obsession of a singleton in

Re: [PHP] green bean question on singleton php5

2008-01-16 Thread Eric Butera
On Jan 16, 2008 5:10 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 5:09 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > Here is an implementation: > > http://framework.zend.com/manual/en/zend.registry.html > > > > Here is another: >

Re: [PHP] Don't search for domains on Network Solutions...

2008-01-16 Thread Eric Butera
On Jan 16, 2008 5:21 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 4:54 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > On Jan 16, 2008 4:51 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > > On Jan 16, 2008 4:48 PM, Eric Butera <[EM

Re: [PHP] Foreach

2008-01-17 Thread Eric Butera
On Jan 17, 2008 5:57 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > there are a few different issues here; first of all; are you sure > $_POST['name'] > and $_POST['order'] are even arrays? To check try this right above your saving code block: echo ''; print_r($_POST); After you figure out if you

Re: [PHP] Function-return-array idea

2008-01-17 Thread Eric Butera
On Jan 16, 2008 6:32 PM, Stijn Leenknegt <[EMAIL PROTECTED]> wrote: > Hello > > I've an idea for PHP6. Let's kickoff with an example. > > $info = getUserInformation($id); //return an array with all the information > of an user. > echo $info['naam']; > ?> > > This is nice, but when I want one eleme

Re: [PHP] A stupid question?

2008-01-18 Thread Eric Butera
On Jan 18, 2008 9:31 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > On Jan 17, 2008 9:54 PM, Shelley Shyan <[EMAIL PROTECTED]> wrote: > >> Hi all, > >> > >> Maybe this is a somehow stupid question. > >> > >>

Re: [PHP] A stupid question?

2008-01-18 Thread Eric Butera
On Jan 18, 2008 10:49 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > Eric Butera schreef: > > On Jan 18, 2008 9:31 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> Eric Butera schreef: > >>> On Jan 17, 2008 9:54 PM, Shelley Shyan <[EMAIL PROTECTED]>

Re: [PHP] Re: Question About Blocking Email Addresses in Forms

2008-01-18 Thread Eric Butera
On Jan 18, 2008 10:55 AM, Javier Huerta <[EMAIL PROTECTED]> wrote: > Thanks for all of your suggestions which all point to using Catpcha. I have > actually already implemented Capchta and they are still getting around it. > Even if they are entering it manually rather than via a bot, is there a wa

Re: [PHP] Question About Blocking Email Addresses in Forms

2008-01-18 Thread Eric Butera
On Jan 18, 2008 9:50 AM, Javier Huerta <[EMAIL PROTECTED]> wrote: > I am wondering if there is a way to block out email addresses in specific > format from a form? We ahve a form that people have to enter an email > address, and the form has been getting used by bots to send spam to a > listserv.

Re: [PHP] Foreach

2008-01-18 Thread Eric Butera
On Jan 18, 2008 5:06 PM, mike <[EMAIL PROTECTED]> wrote: > On 1/18/08, Eric Butera <[EMAIL PROTECTED]> wrote: > > > Nonetheless as I keep re-iterating, people will copy and paste this > > stuff as is because they don't know better. It is the responsibility &

Re: [PHP] Problem with ocasional blank value

2008-01-18 Thread Eric Butera
On Jan 18, 2008 10:12 AM, Joey <[EMAIL PROTECTED]> wrote: > Hi All, > > > > I have a problem that the below code which is supposed to display a random > image and on occasion it shows NO image. > > I'm not sure what is happening. This is running on linux just in case that > makes any difference. >

Re: [PHP] Foreach

2008-01-18 Thread Eric Butera
On Jan 18, 2008 11:38 AM, Wolf <[EMAIL PROTECTED]> wrote: > Steve, > > This should work as some basic sudo code. You are running into a number of > issues with your usage of the foreach as it sounds like what you really want > to do is walk through one array and grab the corresponding value from

Re: [PHP] A stupid question?

2008-01-18 Thread Eric Butera
On Jan 17, 2008 9:54 PM, Shelley Shyan <[EMAIL PROTECTED]> wrote: > Hi all, > > Maybe this is a somehow stupid question. > > I want to know how php could know whether session_start() has been called, > that is, whether session has been started. > > I Googled, but got little help. > > Thank you for

Re: [PHP] Foreach

2008-01-18 Thread Eric Butera
On Jan 18, 2008 12:20 PM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > 2008. 01. 18, péntek keltezéssel 12.10-kor Wolf ezt írta: > > > Eric Butera <[EMAIL PROTECTED]> wrote: > > > On Jan 18, 2008 11:38 AM, Wolf <[EMAIL PROTECTED]> wrote: > > > &

Re: [PHP] Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-18 Thread Eric Butera
On Jan 18, 2008 4:52 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > PostTrack [Dan Brown] wrote: > > 514 (100%) 975244 (100%) EVERYONE > > 69(13.4%) 92431(9.5%) "Richard Lynch" <[EMAIL > > PROTECTED]> > > 9(1.8%) 22245(2.3%) Wolf <[EMA

Re: [PHP] Foreach

2008-01-18 Thread Eric Butera
ay ( > [0] => 3 [1] => 3 [2] => 3 ) [add-page] => Create Page ) > > -- > Steve M. > > > > on 1/18/08 1:43 PM Eric Butera ([EMAIL PROTECTED]) wrote: > > > On Jan 18, 2008 2:12 PM, Pastor Steve <[EMAIL PROTECTED]> wrote: > > > > I use

Re: [PHP] password hashing and crypt()

2008-01-19 Thread Eric Butera
On Jan 19, 2008 8:02 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Nathan Nobbe schreef: > > hi all, > > > > recently ive been debating a bit about the use of the crypt() function and > > the best practice thereof, im hoping you can help to clarify this for me. > > > > so, the crypt function > > htt

Re: [PHP] POST/GET into variables

2008-01-21 Thread Eric Butera
On Jan 20, 2008 10:15 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > im trying to keep this php4 OOP. im just trying to clean the post/gets > and then make them all into variables with their names being the keys > to the get/post, and their values as the variables values. > > ie: $_POST['someFor

Re: [PHP] POST/GET into variables

2008-01-21 Thread Eric Butera
On Jan 20, 2008 10:06 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 20, 2008 9:47 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > > > how does this look? should this by me calling ... myforms = new > > forms(); work by turning all key/value pairs for both get and post > > into variable nam

Re: [PHP] performance/load testing ...

2008-01-21 Thread Eric Butera
On Jan 21, 2008 5:50 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Ron Rademaker schreef: > > Jochem Maas wrote: > >> Ron Rademaker schreef: > >>> Hi Jochem, > >>> > >>> Apache comes with an nice ab tool which stands for apache > >>> benchmarking. You can use this to benchmark stuff like concurrent

Re: [PHP] a better way to do a data import?

2008-01-21 Thread Eric Butera
On Jan 21, 2008 12:35 PM, blackwater dev <[EMAIL PROTECTED]> wrote: > I have a text file that contains 200k rows. These rows are to be imported > into our database. The majority of them will already exists while a few are > new. Here are a few options I've tried: > > I've had php cycle through

Re: [PHP] a better way to do a data import?

2008-01-21 Thread Eric Butera
On Jan 21, 2008 1:08 PM, blackwater dev <[EMAIL PROTECTED]> wrote: > I think that's possible, so I'll give it a shot. > > For some reason, even with straight inserts my php script is dying around > 180,000 rows. Basically, I took out all the compare/update code so now I > grab the row from the db

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Eric Butera
On Jan 21, 2008 2:57 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Today, I found a bug in my software which I was originally happy to > find since that means there's one less that I have to worry about... 3 > hours later while trying to figure out how to fix it I wish I never > found it! > > Here's

Re: [PHP] More frustration with MySQL and PHP

2008-01-21 Thread Eric Butera
On Jan 21, 2008 3:47 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > Now I just need to find a way to increase the content of my posts. Just reply to everyone with random Wikipedia articles. You can even say it is on topic because it is generated with PHP. -- PHP General Mailing List (http://w

Re: [PHP] avoid server folder reading

2008-01-21 Thread Eric Butera
On Jan 20, 2008 6:13 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > If your server's default file is index.php, you could use the following > in an index.php file: > > header('Location: /'); > ?> > You really shouldn't use relative paths in a header location. http://www.w3.org/Protocols/rf

Re: [PHP] mssql and latin characters

2008-01-21 Thread Eric Butera
On Jan 20, 2008 9:53 PM, Leticia Larrosa <[EMAIL PROTECTED]> wrote: > Hello > > > > I have a MSSql 2000 database that have stored data with the follow special > characters: ó, í, Ñ, á, é, ú. > > When I see the data through any MsSql Client I see exactly those characters. > > > The Collation of data

Re: [PHP] form cleaning class

2008-01-22 Thread Eric Butera
On Jan 21, 2008 11:39 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > now my debug shows that with the following code, all of the > $_POST['whatever'] values are blank. > > > class forms { > > var $UserInput; > > // Forms to variables > function forms() { >

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Eric Butera
On Jan 22, 2008 8:44 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Jan 21, 2008, at 4:14 PM, Dave Goodchild wrote: > > > Don't be scared of functions, no magic or mystery there, all you are > > doing > > is putting your code in a function like so: > > > > function add($a, $b) { > > return $a +

Re: [PHP] mssql and latin characters

2008-01-22 Thread Eric Butera
On Jan 22, 2008 6:00 PM, Leticia Larrosa <[EMAIL PROTECTED]> wrote: > > Thanks a lot Eric, I read those links and are really interesting. > > The solution of the problem was changing the "OEM character conversion" > option of MSSql (see attached image) as Fran

Re: [PHP] sessions/cookies

2008-01-22 Thread Eric Butera
On Jan 22, 2008 9:15 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > I wrote an authentication class in php4. The sessions dont seem to be > working with internet explorer, just with FF. here is the code below, > a cookies notice pops up when you try and login: Hi, I took a quick look at your c

Re: [PHP] Foreach

2008-01-23 Thread Eric Butera
On Jan 23, 2008 12:58 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 18, 2008 5:24 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > If you are trying to keep the names and orders in "parallel" you need > > to do something not unlike: > > > > while (list($key, $name) = each($names)){ > > $o

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Eric Butera
On Jan 22, 2008 8:01 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > I have a file of my own functions that I include in many places. One > of them uses mysql_real_escape_string, however, it may be called in a > context that will or will not connect to a mysql server, and worse, > may already be conne

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-23 Thread Eric Butera
On Jan 23, 2008 2:37 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > On 23/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote: > > Back to the original question... > > > > I suppose you could use mysql_escape_string (note the lack of "real") > > in the short term... > > I'd rather not. There is no short

Re: [PHP] are email address could be spammed

2008-01-24 Thread Eric Butera
On Jan 24, 2008 10:36 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 24, 2008 10:26 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > like a charm for the marketing, ad-shovelling sales whores at google you. > > > i dont know man; its a pretty nice user interface. i might try to setup an > op

Re: [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Eric Butera
On Jan 24, 2008 10:44 AM, Luc Maltier <[EMAIL PROTECTED]> wrote: > Hello! > > My first message: > > I've just updated PHP from 5.1.4 to 5.2.5 (to solve an Apache problem when > double-clicking on links). This was successful, as the problem is now > solved, but I now, sometimes, get a message statin

Re: [PHP] are email address could be spammed

2008-01-24 Thread Eric Butera
On Jan 24, 2008 10:56 AM, Stut <[EMAIL PROTECTED]> wrote: > > On 24 Jan 2008, at 15:42, Eric Butera wrote: > > I used to be hardcore pop only but now that I use gmail I don't care > > about any other mail client. It beats Thunderbird and Mail.app hands > > do

[PHP] Re: RE : [PHP] 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!

2008-01-24 Thread Eric Butera
On Jan 24, 2008 11:14 AM, Luc Maltier <[EMAIL PROTECTED]> wrote: > > Thanks for this clue (ini_set). But I normally don't need this amount of > memory anywhere, as 8M were OK in PHP5.1.4... I just want to understand what > happens. > > Memory limit wasn't force enabled before 5.2.1. Maybe that wa

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-24 Thread Eric Butera
On Jan 24, 2008 1:03 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > On 24/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote: > > It is NOT safe from, say, XSS attack if $evilString contains an XSS > > snippet and you re-display it on your site. > > > > In other words, you should still filter the INPUT

Re: [PHP] Question about functions

2008-01-24 Thread Eric Butera
On Jan 24, 2008 3:00 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi everyone! > > So, I'm trying to learn about functions, and I think I understand what > to use them for... And one of the ideas I had was to write a function > to logout of an application. The question I have though, is how do I >

Re: [PHP] Question about functions

2008-01-24 Thread Eric Butera
On Jan 24, 2008 3:08 PM, Dave Goodchild <[EMAIL PROTECTED]> wrote: > header("Location: index.php"); Redirect uri's should be absolute. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for easier way to build email message

2008-01-24 Thread Eric Butera
On Jan 24, 2008 6:20 PM, Rene Brehmer <[EMAIL PROTECTED]> wrote: > Drew a blank off the archive, so here goes... > > I'm working on some forms for our company website, all of which simply have > to be mailed to us by email. > > After verifying that the content of all the fields is valid and the pro

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Eric Butera
On Jan 25, 2008 1:39 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, January 25, 2008 7:27 am, Eric Butera wrote: > > I think the memory size can (sort of) be determined by width * height > > * bits * channels / 8. I've never found anything better than that. >

Re: [PHP] are email address could be spammed

2008-01-25 Thread Eric Butera
On Jan 25, 2008 8:43 AM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > On 25/01/2008, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > > not to mention the 'all-your-email-belong-to-us' aspect of world > > > > > googlisation. > > > > &g

Re: [PHP] are email address could be spammed

2008-01-25 Thread Eric Butera
On Jan 25, 2008 5:28 AM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > On 25/01/2008, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > 2008. 01. 25, péntek keltezéssel 11.10-kor Jochem Maas ezt írta: > > > bruce schreef: > > > > also... > > > > > > > > for gmail, as far as i can tell.. you can't do a resend

Re: [PHP] pack it in

2008-01-25 Thread Eric Butera
On Jan 24, 2008 7:13 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Richard Lynch schreef: > > On Thu, January 24, 2008 5:20 pm, Jochem Maas wrote: > >> someone asked about checksum values in another thread, I believe > >> he got his answer no thanks to me. but whilst I was trying to help > >> I got

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Eric Butera
On Jan 25, 2008 3:43 AM, Emil Edeholt <[EMAIL PROTECTED]> wrote: > Hi! > > I have a website where people can upload photos and it creates previews. > My problem is with pictures with big dimensions like 12000px height for > example where the script times out. I've seen other sites that seems do > b

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Eric Butera
On Jan 25, 2008 5:37 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > I'm getting exceptions thrown without a stackframe. I understand what this > means but not how it can happen given the following: > > 1. *every* frontend script on the site is wrapped in a try/catch block > 2. I have set an exception

Re: [PHP] Exception thrown without a stack frame

2008-01-25 Thread Eric Butera
On Jan 25, 2008 8:43 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > > On Jan 25, 2008 5:37 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> I'm getting exceptions thrown without a stackframe. I understand what this > >> mean

Re: [PHP] Foreach

2008-01-27 Thread Eric Butera
On Jan 27, 2008 1:33 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 23, 2008 8:02 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > Maybe someday SPL will become part of the PHP manual too. ;) > > > > ill admit, the doxygen documentation is a little daun

Re: [PHP] Handle time-outs and errors with file()

2008-01-29 Thread Eric Butera
On Jan 29, 2008 10:58 AM, John Papas <[EMAIL PROTECTED]> wrote: > I'm using file() to get the contents of a remote page in my script but > I cannot find any information regarding how I could *gracefully* > handle a broken network connection or even a time-out (slow > connection). > > Is there a way

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Eric Butera
On Jan 29, 2008 1:53 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: > Constructors return the object, correct? If so, how can I do this: > > class Bob { > private $blah; > _construct( $blah ) { > $this->blah = $blah; > } > public getBlah() { > return $this->blah; > } > } > > echo

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 29, 2008 3:29 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 3:19 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > > > Ok, trying to write my first php5 class. This is my first project > > using all OOP PHP5.2.5. > > > > I want to create a config class, which is extended by a

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 9:57 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 8:40 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > > > > On Jan 29, 2008 3:29 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > Still pimping singleton, huh? :) &

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 11:43 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 11:38 AM, Greg Donald <[EMAIL PROTECTED]> wrote: > > > If list traffic is any sign, PHP is indeed slowing down from the "new > > peeps wanting to learn it" perspective: > > > > http://marc.info/?l=php-general&w=2 >

Re: [PHP] php spanish character problem

2008-01-30 Thread Eric Butera
On Jan 30, 2008 12:07 PM, greenCountry <[EMAIL PROTECTED]> wrote: > > hello everyone, > > This is important,I am trying to post some spanish characters from a form on > a page and i am comparing those spanish characters to the same letters on > the same page but on strcmp the return is not zero.I d

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 11:13 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i dont think Registry::getInstance() is really that much overhead; In my initial tests I found that static methods accessing $GLOBALS directly was much faster than using an instance and working on it tucked away in a static variab

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 2:01 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 12:15 PM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > > It's opinionated software and is certainly not for everyone. > > > > ok it's not for everyone, certainly not for me. but what is it from your > > point of view

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Eric Butera
On Jan 31, 2008 7:33 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Richard Heyes schreef: > > Anyone have any trouble with this combination? It consistently crashes > > for me. > > firefox not an option? or anything else that resembles a proper browser ;-) > > > > > http://pear.php.net > > > > Thank

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Eric Butera
On Jan 31, 2008 9:27 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > > On Jan 31, 2008 7:33 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> Richard Heyes schreef: > >>> Anyone have any trouble with this combination? It consisten

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Eric Butera
On Jan 31, 2008 11:14 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > On Jan 31, 2008 9:27 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> Eric Butera schreef: > >> > >>> On Jan 31, 2008 7:33 AM, Jochem Maas <

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Eric Butera
On Jan 31, 2008 12:02 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Robert Cummings schreef: > > On Thu, 2008-01-31 at 17:14 +0100, Jochem Maas wrote: > >> let's not forget that nobody outside of IT actually uses Opera > > > > Please back up that st-ass-tistic please. Methinks you reached around > >

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Eric Butera
On Jan 31, 2008 12:16 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > you didn't state anything of the sort until just then. > and you do realise that Acid2 is not actually a standard AND that there > are plenty of differences of opinion regarding the minutae of 'proper > implementation' of some of th

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Eric Butera
or a while i tried the multiple browser thing. but managing bookmarks in > more than one browser is a pain. also, have you ever looked at memory > consumption on ur pc w/ 2 browsers running?? get another gig for that :) > > so, despite some of the klunkieness of ff, that is what i u

Re: [PHP] [Slightly OT] Apple MacBook MAMP and Logic

2008-01-31 Thread Eric Butera
On Jan 31, 2008 12:29 PM, Tom Chubb <[EMAIL PROTECTED]> wrote: > So I guess what I'm asking is, does having Apache, MySQL & PHP installed on > a Mac use much system resources? Nope. I used to run it on an old G4 as a desktop just fine. ;) -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-31 Thread Eric Butera
On Jan 31, 2008 1:29 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Thu, January 31, 2008 1:19 am, Per Jessen wrote: > > Richard Lynch wrote: > > > >> On Tue, January 29, 2008 12:48 pm, Per Jessen wrote: > >>> Robert Cummings wrote: > >>> > Actually, now you made me think on it... the prima

<    1   2   3   4   5   6   7   8   9   10   >