Re: [PHP] problems in WHERE statment

2007-05-23 Thread Eric Butera
On 5/21/07, Mike Ryan [EMAIL PROTECTED] wrote: I am a newbie so please bear with me. I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where clause' this is the query command $query = 'SELECT *

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-11 Thread Eric Butera
On 5/10/07, Micky Hulse [EMAIL PROTECTED] wrote: Micky Hulse wrote: Ah, well Chapter 6, page 144-145 have helped clear-up a little bit of my confusion: Sorry, forgot to mention what book I was refering to: O'Reilly Programming PHP By Rasmus Lerdorf Kevin Tatroe http://snipurl.com/1k4ug --

Re: [PHP] self:: vs this

2007-05-11 Thread Eric Butera
On 5/11/07, Mariano Guadagnini [EMAIL PROTECTED] wrote: Hy people, I have an existential doubt regarding php classes. I have been a php programmer for quite a long time, but never could figure out the clear difference between using this- or self:: when calling member functions, wether they are

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-11 Thread Eric Butera
On 5/10/07, Daevid Vincent [EMAIL PROTECTED] wrote: I'm a PHP guru Then this question shouldn't have been asked. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: self:: vs this

2007-05-11 Thread Eric Butera
On 5/11/07, M.Sokolewicz [EMAIL PROTECTED] wrote: statically: Class Foo { static $a = 1; static function Bar() { self::a++; } } echo Foo:a; 1 Foo::Bar(); // will probably throw a warning, not sure of that though echo Foo:a; 1 (no change) I'm not sure I understand what

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-10 Thread Eric Butera
On 5/10/07, Micky Hulse [EMAIL PROTECTED] wrote: Hi, This might be a real obvious question/answer... but I have been up all night geeking on code, so my mind is kinda mushy -- please be kind. :) I have a class called Randimg. Within that class, I have several methods. Within a few of those

Re: [PHP] Re: Upload problem - final size is different

2007-05-10 Thread Eric Trahan
Thank you all for your tips and solutions !! I use chmod and my upload form works fine ;) Eric Le 2007-05-09 à 10:23, Daniel Brown a écrit : PHP has two functions that may help you here, Eric --- chmod() and chown(). http://php.net/chmod http://php.net/chown It should

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Eric Trahan
to change the owner or the group of a file in PHP. Eric Le 2007-05-08 à 17:52, itoctopus a écrit : Have you tried your code on another server? -- itoctopus - http://www.itoctopus.com Eric Trahan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a form to upload file on my web

[PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
, Eric. Here is the form code: form enctype=multipart/form-data action=fileupload_bd.php method=post input type=hidden name=MAX_FILE_SIZE value=10 / Une imagebr/input type=file name=uneimage / br/br/Du texte: input type=text name=untexte / br/br/input type

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
match the original file. Eric. Le 2007-05-08 à 14:04, Richard Lynch a écrit : On Tue, May 8, 2007 11:30 am, Eric Trahan wrote: The upload work. The user file is uploaded to my destination folder (page5/) but the file is unreadable and the file size is smaller than the original file size

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
, or does it work? Download the same file twice produce the same problem... Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Run a script apart from request

2007-04-30 Thread Eric Butera
On 4/30/07, Brad Fuller [EMAIL PROTECTED] wrote: Hi all, I am developing a program that does some intensive data processing, and is triggered from a page hit and/or a SOAP request. The processing takes on average 30 seconds to 1 minute, which is OK for a web page (I can use set_time_limit(0)

Re: [PHP] Parsing CSV files

2007-04-27 Thread Eric Butera
On 4/26/07, Edward Kay [EMAIL PROTECTED] wrote: Todd Cary wrote: Is there a function that can parse a comma delimited file into an array? Todd fgetcsv - http://uk.php.net/fgetcsv Did you even try looking in the manual? Edward -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Parsing CSV files

2007-04-27 Thread Eric Butera
On 4/27/07, Edward Kay [EMAIL PROTECTED] wrote: When I searched for csv against on php.net I got redirected to http://us2.php.net/manual/en/function.gzeof.php. That isn't exactly obvious is it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-24 Thread Eric Butera
just throw it in an include. I ran stripslashes_deep() against my 5.2.1 release and here are the results: Version: 2.0.0RC3 TRACE START [2007-04-24 21:37:47] 1 0 0 0.00441572400 {main} 1 /Users/eric/Sites/meh.php 0 2 1 0 0.00453874328

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-23 Thread Eric Butera
On 4/23/07, WeberSites LTD [EMAIL PROTECTED] wrote: I'm trying to understand from the examples why anyone that has get_magic_quotes_gpc() returning true would need to use stripslashes() and then mysql_real_escape_string(). wouldn't that just add slashes to the same places? berber Yes, sort

Re: [PHP] Compilation?

2007-04-23 Thread Eric Butera
On 4/23/07, Davide Bernard [EMAIL PROTECTED] wrote: I just upgraded to PHP 5 from PHP 4. I am using the crack lib function for password dictionary uniqueness. However, now my web page utilizing the crack-lib is crashing with PHP Fatal error: Call to undefined function crack_opendict(). Does

Re: [PHP] Compilation?

2007-04-23 Thread Eric Butera
On 4/23/07, Davide Bernard [EMAIL PROTECTED] wrote: Tried this at the root level and got the response below... sudo: pecl: command not found I am on a Suse linux box and I install the PEAR package with YAST. Eric Butera [EMAIL PROTECTED] 4/23/2007 10:17 AM On 4/23/07, Davide Bernard

Re: [PHP] Debug recursion

2007-04-23 Thread Eric Butera
On 4/23/07, kioto [EMAIL PROTECTED] wrote: Hi all i have found a bug in my db class when i use the recursion. I try to use the adjacency list model to develop a three menu but when i call the function in recursive way i loose data because the value returned from the fetch seem to be empty. I

Re: [PHP] serialize an object

2007-04-20 Thread Eric Butera
On 4/19/07, Stut [EMAIL PROTECTED] wrote: Tobias Wurst wrote: i use serialize() to save my object in $_SESSION. Why? There's no point in serialising something into $_SESSION. Anything you put in there gets serialised by the session handler. That isn't necessarily 100% true.

Re: [PHP] CSS vs. Tables OT

2007-04-18 Thread Eric Butera
On 4/18/07, Wolf [EMAIL PROTECTED] wrote: OK, so I like sticking my nose in sometimes... Accessibility Standards and being bobby approved. http://webxact2.watchfire.com/report.asp?t=2#priority3 on http://lonewolf.homelinux.net/ Is just about as good as http://www.csszengarden.com Just the

Re: [PHP] WYSIWYG vs. the 'power-user'

2007-04-12 Thread Eric Butera
On 4/12/07, Chetan Graham [EMAIL PROTECTED] wrote: Hello to All! I've been monitoring this emotional listing from the beginning and feel the need to bring out some of my personal experience on this exciting matter of WYSIWYG vs. the 'power-user' 1) I started back when there where no GUI's

[PHP] output gz compression

2007-04-11 Thread Eric Butera
I am just curious if anybody else has this issue. My platform is OSX 10.4.9 using a custom compiled PHP 4.4.x (4.4.6 4.4.7RC1) I've tried using the php.ini setting zlib.output_compression = On and also ob_start(ob_gzhandler); directly. Each time I call up the page it crashes. On the server

Re: [PHP] keeping credit card info in session

2007-04-10 Thread Eric Butera
On 4/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks a lot every one. These are great replies. I guess I should have explained a bit more about what I'm doing. first of all, this is not my site, it's for a client of mine. second, I did suggest using a paypal API or a paid site to take

Re: [PHP] Debugging Extensions (APD, etc.)

2007-04-05 Thread Eric Butera
On 4/5/07, Daniel Brown [EMAIL PROTECTED] wrote: Does anyone have any experience using engine-level debuggers and/or extensions in PHP? I installed the PECL module APD just a moment ago, and haven't even used it yet, because I wanted to see if anyone here has a better suggestion. I'd like

Re: [PHP] Idea/Suggestion for PHP App

2007-04-05 Thread Eric Butera
On 4/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey... I am new to the list so please forgive me if I say anything that might have already been discussed. So here we go... OK I am attempting to start a new application using PHP. I have started and stoped this application now 2 times

Re: [PHP] Idea/Suggestion for PHP App

2007-04-05 Thread Eric Butera
On 4/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Eric Butera wrote .. On 4/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey... I am new to the list so please forgive me if I say anything that might have already been discussed. So here we go... OK I am attempting to start a new

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Eric Butera
On 4/1/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, I made this site in PHP that has a page with some PDFs to download. My costumer wants that only subscribed people are allowed to download the PDFs. I've already made the subscrbe and login mechanism. Now, my question for you is about

Re: [PHP] Downloads for subsrcibers only

2007-04-03 Thread Eric Butera
On 4/3/07, Mário Gamito [EMAIL PROTECTED] wrote: Hi, One popular method is to place your files outside of the webroot. I thought about that. This makes it so people cannot access the files directly. Then create a PHP script to read the file to the user with the correct mime type using a

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Eric Butera
On 3/12/07, Larry Bradley [EMAIL PROTECTED] wrote: I need to goto different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, using

Re: [PHP] Opinion on on-line payment and banking gateway

2007-03-06 Thread Eric Butera
On 3/6/07, Seak, Teng-Fong [EMAIL PROTECTED] wrote: Jochem Maas wrote: tell him this: never ever ever ever so much as accept a creditcard number as input to any of his scripts let alone store it somewhere - leave that to the payment provider who has the expertise, secure (hopefully) system

Re: [PHP] how can I find out if I have mcrypt and mhash installed?

2007-02-21 Thread Eric Butera
On 2/21/07, Ross [EMAIL PROTECTED] wrote: Thought it would be in the phpinfo() but cannot find it. R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If it is compiled in then you should see it in phpinfo. I looked at mine and saw a

Re: [PHP] Foldable Checkbox lists

2007-02-14 Thread Eric Butera
On 2/14/07, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Newbie to PHP here. I have a list of categories, as checkboxes, that I would like a user to be able to choose from. There are literally hundreds of categories, however most of them are children categories. I obviously don't want to

Re: [PHP] how do I just escape double quotes within a string?

2007-02-13 Thread Eric Butera
On 2/13/07, blackwater dev [EMAIL PROTECTED] wrote: If I use add slashes, it strips everything, I just want to replace all the double quotes with slash double quote but this, of course, throws errors: str_replace(,\,$code); Thanks! Try this $string = 'Hello person. How are you?';

[PHP] Release phpexplorator

2007-02-08 Thread Tchouamou Eric Herve
click - support apache icons, and apache configuration - Icon internal saved in base64..etc -- Eric Herve Tchouamou http://www.tchouamou.homeunix.com Via Portofino, 8 - 10135 Torino - Italy phone: +39 011 3720145 Cel: +39 328 6928649 email: [EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] phpexplorator has released phpexplorator

2007-02-08 Thread Tchouamou Eric Herve
click - support apache icons, and apache configuration - Icon internal saved in base64..etc -- Eric Herve Tchouamou http://www.tchouamou.homeunix.com Via Portofino, 8 - 10135 Torino - Italy phone: +39 011 3720145 Cel: +39 328 6928649 email: [EMAIL PROTECTED]

[PHP] Who uses PHP

2007-02-01 Thread Eric Gorr
I've heard some concern expressed that PHP might be more insecure then other methods of developing website where security was of prime importance. Now, I personally do not believe this, but it would help me to convince others if I could point to major sites, where security (mostly with

Re: [PHP] Who uses PHP

2007-02-01 Thread Eric Gorr
On Feb 1, 2007, at 9:47 AM, Jochem Maas wrote: Eric Gorr wrote: I've heard some concern expressed that PHP might be more insecure then other methods of developing website where security was of prime importance. Now, I personally do not believe this, but it would help me to convince

Re: [PHP] Who uses PHP

2007-02-01 Thread Eric Gorr
On Feb 1, 2007, at 9:50 AM, Jay Blanchard wrote: Also, check out http://www.shiflett.org as Chris is one of if not the leading expert in security with PHP. Great site. thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Who uses PHP

2007-02-01 Thread Eric Butera
On 2/1/07, Eric Gorr [EMAIL PROTECTED] wrote: On Feb 1, 2007, at 9:50 AM, Jay Blanchard wrote: Also, check out http://www.shiflett.org as Chris is one of if not the leading expert in security with PHP. Great site. thank you. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Who uses PHP

2007-02-01 Thread Eric Gorr
On Feb 1, 2007, at 10:06 AM, Jochem Maas wrote: Eric Gorr wrote: On Feb 1, 2007, at 9:47 AM, Jochem Maas wrote: Eric Gorr wrote: I've heard some concern expressed that PHP might be more insecure then other methods of developing website where security was of prime importance. Now, I

[PHP] PHP5 Commercial Development

2007-02-01 Thread Eric Gorr
I haven't tracked this particular issue, but I know when PHP5 was first released is wasn't recommended in a commercial/production environment. However, a lot of time has passed and we're at v5.2 now...have things changed? Have GoogleYahoo, for example, moved to PHP5? Or is PHP4 still the

Re: [PHP] One last try at this!

2007-01-17 Thread Eric Butera
On 1/17/07, Beauford [EMAIL PROTECTED] wrote: I hope I can explain this so I can get this figured out, 'cause if not I may just have to find an alternative to PHP. I can't be wasting 3 and 4 days on something as simple as this. This isn't a very nice intro into asking a question on a mailing

Re: [PHP] PHPUnit2 and TDD

2007-01-16 Thread Eric Butera
On 2/14/06, Paul Scott [EMAIL PROTECTED] wrote: I am busy porting/rewriting our framework (http://avoir.uwc.ac.za/projects/nextgen http://kngforge.uwc.ac.za) from PHP4 to PHP5, and would like to know if there are any additional mailing lists that anyone knows of that are specifically focused

Re: [PHP] Debugging PHP

2007-01-12 Thread Eric Butera
On 1/12/07, Sancar Saran [EMAIL PROTECTED] wrote: Hi, Due to my English knowladge shortcomings or just my own stupity I cannot setup a working php debug module. Is any one have working solution. My target was, able to check every functions and or files for performance issues. I thing this

Re: [PHP] mssql_* overhead

2007-01-10 Thread Eric Butera
On 1/10/07, Philip Thompson [EMAIL PROTECTED] wrote: On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: Philip Thompson wrote: Hi. Does anyone know if the mssql_connect/_init/_bind/etc require a lot of overhead? I have a page that requires multiple function calls and each of those opens

Re: [PHP] magic_quotes

2006-12-01 Thread Eric Butera
On 12/1/06, Johannes Lindenbaum [EMAIL PROTECTED] wrote: Hello, without trying to embarrass myself, but Here the smart quoting function off php.net |function quote_smart($value) { // Stripslashes if (get_magic_quotes_gpc()) { $value = stripslashes($value); } // Quote if

Re: [PHP] magic_quotes

2006-12-01 Thread Eric Butera
On 12/1/06, Johannes Lindenbaum [EMAIL PROTECTED] wrote: Eric Butera schrieb: You almost have it. What you need to do is if magic quotes is on, then stripslashes and apply mysql_real_escape_string. If magic quotes is off only apply mysql_real_escape_string since php didn't escape values

Re: [PHP] magic_quotes

2006-11-30 Thread Eric Butera
On 11/30/06, Johannes Lindenbaum [EMAIL PROTECTED] wrote: And on retrieval stripslashes(). You shouldn't have to stripslashes your data coming from the DB. Addslashes and friends exist to escape your data. It is not part of your data. So when you INSERT Jingle\'s Bells when you retrieve it

Re: [PHP] passing an object using session var

2006-11-29 Thread Eric Butera
On 11/29/06, Jochem Maas [EMAIL PROTECTED] wrote: Thomas Munz wrote: Try that: --script1--- ?php include(TestClass.php); session_start(); $obj = new TestClass(); $obj-setName('MyName'); $obj-display();// outputs 'MyName' $str_object = serialize($obj); //-- You need to

Re: [PHP] getting around the undefined index

2006-11-27 Thread Eric Butera
On 11/27/06, Ross [EMAIL PROTECTED] wrote: I have not found a satisfactory way of doing this yet $text = $_REQUEST['text_size']; if ($text) { echo $text; } I send the $text_size variable to the browser with lines like... a href=? $_SERVER['PHP_SELF']; ??text_size=small class=size1

Re: [PHP] Hide Warnings

2006-11-17 Thread Eric Butera
On 11/17/06, Stein Ivar Johnsen [EMAIL PROTECTED] wrote: Sorry, I have no access to my ISP's php.ini file. I need to turn off warnings in the php script code? -- Regards sijo http://www.dyg.no clive [EMAIL PROTECTED] skrev i melding news:[EMAIL PROTECTED] Stein Ivar Johnsen wrote: Hi..

Re: [PHP] count string within a string

2006-11-17 Thread Eric Butera
On 11/17/06, Børge Holen [EMAIL PROTECTED] wrote: I've figured out I need the substr_count function. However, counting strings like this: [1] [2] [3] ... [215] ... inside a large string element. damn. The string got quite a few different numbers and keys but the main key is alway within [] and

Re: [PHP] cURL uses

2006-11-15 Thread Eric Butera
On 11/15/06, Philip Thompson [EMAIL PROTECTED] wrote: Hi. I've been doing some reading trying to figure out why I would want to use cURL. I have not found a solid reason yet. Does anyone have a useful example on why you would want to use cURL? Thanks, ~Philip -- PHP General Mailing List

Re: [PHP] Highjack?

2006-11-13 Thread Eric Butera
On 11/13/06, tedd [EMAIL PROTECTED] wrote: Hi gang: While this is not an obvious php question, it does deal with security which is a concern. Just this morning had a couple of my sites highjacked. What I found was someone had replaced my root level index.php with their own index.php. You can

[PHP] Code execution speed

2006-11-06 Thread Eric
I was looking for some ways to speed up the execution of my code. Im connecting to and displaying information from a newsgroup via sockets. The socket_recv's are slowing it down. What things other than the socket_recv's can I change to make the code faster. Just general tips. Thanks in

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-03 Thread Eric Butera
On 11/1/06, David Négrier [EMAIL PROTECTED] wrote: Hello there, I'm having a somewhat unusual question here, and I cannot find any way to solve it. I have a PHP page that displays a message, and then, performs a very long operation. Note that it displays the message first. I do not intend to

Re: [PHP] OO website/program doubt

2006-11-02 Thread Eric Butera
On 11/2/06, Richard Lynch [EMAIL PROTECTED] wrote: Resources (e.g., MySQL connections) are released at the end of a script, and will not be resurrectable, at least not in PHP 4 5 as I understand it. Since this hasn't been said yet... When working with resources, objects can use the __sleep

[PHP] IMAP functions for NNTP

2006-10-29 Thread Eric
How would I go about listing all newsgroups via the IMAP functions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] socket_recv

2006-10-29 Thread Eric
Is there a reccomended size of data to pull in with socket_recv (Such as 1024) or can I pull in 981132487 and it wont make a difference? Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Non-blocking sockets

2006-10-27 Thread Eric
When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume this is because using socket_create or fsockopen creates a blocking TCP/Stream

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Eric
Stut wrote: Eric wrote: When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume this is because using socket_create or fsockopen creates

Re: [PHP] Creating thumbnails using Image Functions, then saving to folders

2006-10-18 Thread Eric Butera
On 10/18/06, Matthews, Chris [EMAIL PROTECTED] wrote: Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image functions, and can successfully create the thumbnail and push it to the browser or, as is

Re: [PHP] Can i take the variable name in a function?

2006-10-11 Thread Eric Butera
On 10/11/06, Andy Hultgren [EMAIL PROTECTED] wrote: ?php function add_some_extra($string) { $string .= 'and something extra.'; } $str = 'This is a string, '; add_some_extra($str); echo $str;// outputs 'This is a string, and something extra.' ? I think that does what you want? In the

Re: [PHP] Can i take the variable name in a function?

2006-10-11 Thread Eric Butera
On 10/11/06, Paul Scott [EMAIL PROTECTED] wrote: On Wed, 2006-10-11 at 13:19 -0400, Eric Butera wrote: In the add_some_extra example you gave he wants the named value of the passed parameter which is $str. Isn't that what the Reflection API is there for? --Paul All Email originating

Re: [PHP] Using mysql_real_escape_string

2006-10-09 Thread Eric Butera
On 10/9/06, Alan Milnes [EMAIL PROTECTED] wrote: $query = insert into invw2wcheck ( UNIQUEID, ASSETID , CNF ) values ( '$UNIQUEID', '$ASSETID ', '$CNF' ); Wrap escaping functions around the values you are sticking in the DB. Escaping is only needed at the time you are using

Re: [PHP] image protection

2006-10-06 Thread Eric Butera
On 10/6/06, tedd [EMAIL PROTECTED] wrote: Hi gang: What would be the best way to protect images in a directory from being harvested? I know that when an image is shown to the user, while there are some javascript tricks to deter the user, there is no real way to stop the user from capturing

Re: [PHP] Re: mysql_real_escape_string() question

2006-09-29 Thread Eric Butera
On 9/29/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Thu, 28 Sep 2006 11:33:06 -0400, Eric Butera wrote: He's not actually *putting* it in a database, so isn't it useless to use a mysql_ function for this...? Maybe I misunderstand Tedd and he does use a database, as I don't see why he

Re: [PHP] Re: mysql_real_escape_string() question

2006-09-28 Thread Eric Butera
On 9/28/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: Hi Tedd, According to http://nl3.php.net/mysql_real_escape_string The function requires a MySQL connection. If there is none, it will try and create one. That fails now. Possibly you could use addslashes()? Regards, Ivo -- PHP General

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Eric Butera
On 9/25/06, Andy Hultgren [EMAIL PROTECTED] wrote: Tedd, Thanks so much your thorough response - it's good to know that I'm not the only one trying to figure this out! I'm curious, in your code you use the PHP ftp functions, but I have used the PHP functions chmod() and mkdir() without

Re: [PHP] php/css and .htaccess [SOLVED]

2006-09-21 Thread Eric Butera
On 9/21/06, tedd [EMAIL PROTECTED] wrote: At 10:37 AM -0500 9/21/06, David Giragosian wrote: On 9/21/06, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: -snip- Now, this header coupled with the above .htaccess allows php code to be embedded within a css file AND work for all popular

Re: [PHP] how to build env to develop php extension

2006-09-18 Thread Eric Butera
On 9/18/06, junhui bai [EMAIL PROTECTED] wrote: There are a lot of documentation to tell you how to create php extension on unix platform . For example, using tool phpize to create skeleton and son. But I can't find information on how to create php extension on window platform. I installed

Re: [PHP] Scripts taking too much time

2006-09-18 Thread Eric Butera
On 9/18/06, Chris [EMAIL PROTECTED] wrote: Hi, I'm hoping somebody can give me advice on how I can go about debugging a problem I've been having. The bottom of this email has some of the details of my system. There is an intermittent slowness throughout my site. At seemingly random points in

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Eric Butera
On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of products, selected a detailed view of the product and click on the Back button of the browser to see

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Eric Butera
On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sorry, but didn't get this one. could you please elaborate it a little bi to me? thanks. On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I

Re: [PHP] How to skip browser's Warning?

2006-09-13 Thread Eric Butera
On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Wouldn't this actually bring me back to empty form? On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sorry, but didn't get this one. could you please elaborate it a little bi to me? thanks. On 9/13/06, [EMAIL PROTECTED]

Re: [PHP] Question on explode and join.

2006-09-13 Thread Eric Butera
On 9/13/06, Beauford [EMAIL PROTECTED] wrote: Hi, I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I check it against another array that contains the inappropriate words.

Re: [PHP] Format of Encrypted Password

2006-09-07 Thread Eric Butera
On 9/5/06, Kevin Murphy [EMAIL PROTECTED] wrote: $query = select name from table where name = '$authuser' and password = password('$auth_pw'); If you haven't tried this you can probably create accounts yourself manually in MySQL like this: INSERT INTO table (name, password) VALUES ('user',

[PHP] MCrypt resource limits?

2006-08-23 Thread Eric Butera
Hi list, Yesterday I noticed one of the sites I had created was running really slow. Yet all the other sites on our webserver were running great. I had our network admin look at the cpu, ram usage, etc of the webserver and everything looked fine. Finally I just recommended we stick Xdebug on

Re: [PHP] GD to database directly

2006-07-12 Thread Eric Butera
On 7/11/06, Adam Zey [EMAIL PROTECTED] wrote: The time taken per request, though (and that's about all we can get with a concurrency as low as 5) doesn't tell us much. We also don't know exactly what the PHP code is doing, how it does it, how your database is organized/indexed/accessed, if you

Re: [PHP] GD to database directly

2006-07-11 Thread Eric Butera
of 400. =) Via MySQL 4.1 PHP 5.1.4: erics:~ eric$ ab -n500 -c5 http://localhost/fs_vs_db/viewimage_db.php This is ApacheBench, Version 1.3d $Revision: 1.73 $ apache-1.3 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation

Re: [PHP] global class instance

2006-07-05 Thread Eric Butera
On 7/1/06, sempsteen [EMAIL PROTECTED] wrote: hi all, i wonder if there is a way of creating an instance of a class and reach it direcly from any scope in PHP4. basically what i want is: class a { function print() { echo 'sth'; } } $a = new a(); and use this a instance from

Re: [PHP] Simple class declaration returns error

2006-06-15 Thread Eric Butera
On 6/14/06, Dave M G [EMAIL PROTECTED] wrote: I put in a very simple echo statement, just as a place marker before I put in the real code, and just to make sure that the index.php file is successfully including the class. After you fix your parse errors you might take a look at:

Re: [PHP] Re: trapping fatal errors...?

2006-06-13 Thread Eric Butera
Sometimes unexpected errors happen. We write hundreds of lines of code a day. Typos happen, I forget some includes, I type $d-appendCild() instead of $d-appendChild(). It's all a part of the development process. Our application makes extensive use of AJAX and JSON. Sometimes we make an AJAX

Re: [PHP] Session puzzle... / why no new session?

2006-06-12 Thread Eric Butera
On 6/9/06, Ryan A [EMAIL PROTECTED] wrote: ini_set('session.name', 'COSTREAM_SESSION'); Check out http://us2.php.net/manual/en/function.session-name.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Skip first 4 array values

2006-06-09 Thread Eric Butera
On 6/9/06, Brad Bonkoski [EMAIL PROTECTED] wrote: if numerically indexed: $max = count($array); for($i=0; $i$max;$i++) { if( $i = 3 ) continue; else { //do what you will } } Why not start $i at 3 and skip the if else? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] anti SQL injection method in php manual.

2006-05-26 Thread Eric Butera
What is the purpose of the sprintf? It's just a way of creating the string without escaping it with quotes to call the function over and over to keep it clean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace learning resources? Regex tuts? Tips? (and yes, I have been rtfm)

2006-05-25 Thread Eric Butera
On 5/25/06, Micky Hulse [EMAIL PROTECTED] wrote: Kevin Waterson wrote: Try this quicky http://phpro.org/tutorials/Introduction-to-PHP-Regular-Expressions.html Sweet, good links all. Thanks for sharing! :) Have a great day. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Filtering (was storing single and double quote in MySQL)

2006-05-25 Thread Eric Butera
On 5/25/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: As you said: Filtering. My next queston. I have small form to activate/deactivate member's account. form method=post action=members.php input type=hidden name=username value=?= $Usename ? input type=hidden name=status value=?= $Status ?

Re: [PHP] storing single and double quote in MySQL

2006-05-24 Thread Eric Butera
variables should be in this format: $variable; ? That would give this output: variables should be in this format: And throw this error: [error] PHP Notice: Undefined variable: variable in /Users/eric/Sites/meh.php on line 3 The reason is because PHP parsed $variable and saw that it was undefined

Re: [PHP] storing single and double quote in MySQL

2006-05-24 Thread Eric Butera
On 5/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: if magic_quotes_gpc is On, does it add slashes in front of quotes when submit through form? Mean, if I submit in input form (text) afan's crazy web, after echo $_POST['record']; I'll get afan\'s \crazy\ web. Is this because of

Re: [PHP] getting subdirectory

2006-05-23 Thread Eric Butera
On 5/23/06, Dallas Cahker [EMAIL PROTECTED] wrote: how do I get the subdirectory that a page is being pulled from. say I have three sites running the same script and I need to determine which site is which. http://www.domain.com/subdir1 http://www.domain.com/subdir2

Re: [PHP] Cookies https

2006-05-22 Thread Eric Butera
On 5/22/06, Michael Satterwhite [EMAIL PROTECTED] wrote: I have a site that is using a shared ssl certificate. When running on the site, the host is of the form host.com. When running in ssl mode, the domain is of the form host.certhost.com. ping shows that both resolve to the same ip address.

Re: [PHP] storing single and double quote in MySQL

2006-05-22 Thread Eric Butera
On 5/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi to all! After the form is submitted, some fields are filled with single and/or double quote info (like: 1'2x2'4, or sky's blue, or cool stuff). I validate what I got using mysql_real_escape_string() and then store the result in MySQL.

Re: [PHP] Running two versions of PHP locally

2006-05-19 Thread Eric Butera
On 5/19/06, Phillip S. Baker [EMAIL PROTECTED] wrote: Greetings Gents, I am interested in running two versions of of PHP. I want to see if I can get my boss to buy into migrating to PHP 5. I want to set it up locally. Locally I am running apache on a windows XP box with PHP 4. I would like I

Re: [PHP] Pictures and caches

2006-05-18 Thread Eric Butera
On 5/18/06, Gustav Wiberg [EMAIL PROTECTED] wrote: Hi! The thing I want to do is to copy a picturefile to another picturefile. The thing is that I want to copy this file, show it , and then delete it (when it has been shown) .Is this possible? I want to do this, because of avoiding problems

Re: [PHP] Sessions - session_start()

2006-05-15 Thread Eric Butera
On 5/15/06, Jonas Rosling [EMAIL PROTECTED] wrote: Hi, I've been building a site with PHP 5 on my develop machine. I've been woring alot with session handling. For example I've been using session_start() now and then depending on where the user/vistor are or are doing. But now I've moved the

Re: [PHP] SMS E-Mail and other oddities

2006-05-11 Thread Eric Butera
On 5/11/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Send us some source code and we can help you out! [/snip] Always reply to the list and please do not top post. $poot = ini_set(sendmail_from, '[EMAIL PROTECTED]'); $smsTo = $_POST['smsPhone'] . '@sms.myserver.com'; $to =

Re: [PHP] Mktime formatting problems

2006-05-11 Thread Eric Butera
On 5/11/06, Ryan A [EMAIL PROTECTED] wrote: Hey, So far this is what I have done: - 1) read the files from a directory, discard the files with a .php extention and the directories (eg: . and .. ) 2) put the files into an array ($the_files[]) 3) put it into a while

Re: [PHP] Re: Browser displays blank page, while request still being handled

2006-05-10 Thread Eric Butera
On 5/10/06, Rolf Wouters [EMAIL PROTECTED] wrote: Yet another update. Strange thing happened. I fixed the problem... It's not a clean solution, it's not the right solution, but for now, it'll (have to) do :-) I changed my little test-script to include directives like max_input_time,

<    4   5   6   7   8   9   10   11   12   13   >