Re: [PHP] php generated javascript

2006-08-31 Thread Curt Zirzow
On 8/30/06, Shu Hung (Koala) [EMAIL PROTECTED] wrote: On 8/31/06, Peter Lauri [EMAIL PROTECTED] wrote: Koala, There is no difference with the php generated javascript and javascript on a static html page. Take a look at the source code of the page that has been generated in the browser,

Re: [PHP] Free Shopping Carts

2006-08-31 Thread Curt Zirzow
On 8/30/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Are there free shopping carts that would work with PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ? [/snip] Yes. Just in case: Try google: 'php mysql shopping' cart or 'php pgsql shopping cart' -- PHP General Mailing List

Re: [PHP] Strange situation when saving a file

2006-08-31 Thread Curt Zirzow
Please remove your 'this message is for the sole use of the person...' thing or simply use a different account to ask questions.. On 8/29/06, Miguel Guirao [EMAIL PROTECTED] wrote: Hi all, I'm using ob_start() in order to save the content of a web page into a variable string and then save it

Re: [PHP] send a file or stream

2006-08-31 Thread Curt Zirzow
On 8/29/06, Rafael Mora [EMAIL PROTECTED] wrote: Hi! i want to send a file or output stream in a .php, but first compress it, I tryed the example to compress files but how do i do to send as answer to the http request?? Unlike my recent posts, this could be a candidate for using ob_* There

Re: [PHP] Not using cached version

2006-08-31 Thread Curt Zirzow
On 8/30/06, Stut [EMAIL PROTECTED] wrote: Peter Lauri wrote: I have some images stored in a database (only file name and other relevant information, rest stored in file system). I use the following html to access them: img src='image.php?imageid=123' / At some pages I have the same

Re: [PHP] image manipulation with php

2006-08-31 Thread Curt Zirzow
On 8/29/06, Ross [EMAIL PROTECTED] wrote: I have an saved images I output with this... img src=includes/viewphoto.php?id=?=$photo? I want to use getimagesize() to get the height and width of the image and if it is above a certain size then scale/ reduce it. The problems are (i) using

Re: [PHP] file type and recode

2006-08-31 Thread Curt Zirzow
On 8/29/06, Martin Marques martin@bugs.unl.edu.ar wrote: Simple question: Is there a built-in function in PHP to get the charset of a file, so that I can pass the right parameters to recode_file()? It depends. If it is a .txt file (nope) a .doc file (mabey, pending the .doc format) a .xml

Re: [PHP] help - outputting a jpeg

2006-08-31 Thread Curt Zirzow
On 8/29/06, Ross [EMAIL PROTECTED] wrote: I just get all the binary data output ? include(includes/config.php); $link = mysql_connect($host, $user, $password) or die ('somethng went wrong:' .mysql_error() ); mysql_select_db($dbname, $link) or die ('somethng went wrong, DB error:'

Re: [PHP] Problems with UTF

2006-08-31 Thread Curt Zirzow
:: top posted to be consistant:: I would go as far as configuring your default php.ini to send utf-8 as the default charset. Curt. On 8/28/06, Peter Lauri [EMAIL PROTECTED] wrote: Hi, Have you set header('Content-Type: text/html; charset=utf-8'); in your php script that you call via AJAX?

Re: [PHP] Re: image manipulation with php

2006-08-31 Thread Curt Zirzow
On 8/29/06, zerof [EMAIL PROTECTED] wrote: http://www.educar.pro.br/abc/gdlib/index.php?pageNum_rsNVER=22totalRows_rsNVER=67 zerof speako englisho, solo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email with pregmatch

2006-08-31 Thread Curt Zirzow
On 8/27/06, Dave Goodchild [EMAIL PROTECTED] wrote: Try this: preg_match(/^([a-zA-Z0-9.])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/, $_POST['email']); So: [EMAIL PROTECTED] is valid? Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email with pregmatch

2006-08-31 Thread Curt Zirzow
On 8/27/06, Peter Lauri [EMAIL PROTECTED] wrote: I found this on google, does this LONG function do anything more then your preg_match? i think a combo of what the function does and a few regex's will work. The issue is more on how idoes it pass all the rfc's on each part of the address, for a

Re: [PHP] Re: remove SimpleXML nodes

2006-08-31 Thread Curt Zirzow
On 8/31/06, Adam Zey [EMAIL PROTECTED] wrote: Javier Ruiz wrote: Hi all, So I want to do... $xmlDatabase = new SimpleXMLElement($myXML); foreach ($xmlDatabase as $oneTable) { if ($oneTable['name'] == 'two') { /// HERE I WANT TO DELETE THE $oneTable NODE

Re: [PHP] spec chars in file name

2006-09-08 Thread Curt Zirzow
On 9/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I made a simple file uploader and it works fine (at lest I thought it works fine). But, people uploaded files with so crazy names, like MOORE's 20% Off.pdf ?!?!?!?!? This is why it is so important that you understand how to filter data

Re: [PHP] Segfault problem [long]

2006-09-08 Thread Curt Zirzow
On 9/7/06, Daniel A. Ramaley [EMAIL PROTECTED] wrote: Hello. I have been struggling for a few months to solve a problem with an Apache web server. First i'll try to describe the symptoms, then give details about the configuration and what i have tried so far. I would greatly appreciate any

Re: [PHP] PHP 4 OOP, re-using a object?

2006-09-11 Thread Curt Zirzow
On 9/10/06, Micky Hulse [EMAIL PROTECTED] wrote: Christopher Weldon wrote: What's the error, and how do you have the class and functions defined? Hi Christopher, thanks for asking. :) Actually, it was one of those silly, right in front of my face, logic errors... class RandomSplash { var

Re: [PHP] php4 / php5 unable to locate module

2006-09-11 Thread Curt Zirzow
On 9/11/06, Zbigniew Szalbot [EMAIL PROTECTED] wrote: Hello, I would appreciate your help. I am trying to get php and apache work together and have a strange error while starting apache: Can't locate API module structure `php4_module' in file /usr/local/libexec/apache2/libphp5.so: Undefined

Re: [PHP] if statement with or comparison (newbie)

2006-09-11 Thread Curt Zirzow
On 9/8/06, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2006-09-08 at 15:30 -0600, Jeremy Privett wrote: Well, it could be this, too: switch( $_REQUEST['id'] ) { case white: echo Right color.; break; case black: echo Right color.;

Re: [PHP] php4 / php5 unable to locate module

2006-09-11 Thread Curt Zirzow
On 9/11/06, Zbigniew Szalbot [EMAIL PROTECTED] wrote: On Mon, 11 Sep 2006, Curt Zirzow wrote: Hello, I would appreciate your help. I am trying to get php and apache work together and have a strange error while starting apache: Can't locate API module structure `php4_module' in file

Re: [PHP] PHP 4 OOP, re-using a object?

2006-09-11 Thread Curt Zirzow
On 9/11/06, Micky Hulse [EMAIL PROTECTED] wrote: Hi Curt, thanks for the feedback/input and your time. :) Curt Zirzow wrote: It would have been more relevant to supply the problem along with the solution. Definitely. Sorry about that. Sometimes I post questions to forums/lists without

Re: [PHP] session_start() and fopen

2006-09-13 Thread Curt Zirzow
On 9/13/06, Fabri [EMAIL PROTECTED] wrote: Hello, would you please help me on this issue that is making me crazy? I'll try I start a session with session_start() and I need to write a file, the file is written twice! If I remove session_start the code works obviously fine. This has never

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Curt Zirzow
On 9/13/06, Rahul S. Johari [EMAIL PROTECTED] wrote: Ok you may be on to something here. Everytime I was trying to chmod the permissions etcetera, the share was mounted, and that probably was the problem. What is a mount point? How do I set ownership/permission of a mount point? With OSX i

Re: [PHP] web browser shows blank page when accessing *.php file

2006-09-21 Thread Curt Zirzow
On 9/21/06, Anna Barnes [EMAIL PROTECTED] wrote: We are publishing an ical calendar from a mac on a webserver running apache on solaris 8. However, its suddenly stopped working via webrowser. I have tried to stop and start the httpd to get it going again but to no avail. when I access through

Re: [PHP] web browser shows blank page when accessing *.php file

2006-09-21 Thread Curt Zirzow
On 9/21/06, anna barnes [EMAIL PROTECTED] wrote: Hi Curt and Martin, Thanks for getting back to me. I'll take a look at the exact line 474 tomorrow. The reason I didn't mention it specifically is that it's only suddenly stopped working and nothing in that code has changed. It doesn't work in

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Curt Zirzow
On 9/21/06, Kevin Waterson [EMAIL PROTECTED] wrote: This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: heh.. nice little twist. Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Curt Zirzow
On 9/21/06, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. long k=4e3,p,a[337],q,t=1e3; main(j){for(;a[j=q=0]+=2,--k;) for(p=1+2*k;j337;q=a[j]*k+q%p*t,a[j++]=q/p)

Re: [PHP] People who bought this also bought (amazon style) functionality...logic problem

2006-09-26 Thread Curt Zirzow
On 9/26/06, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, September 26, 2006 7:18 am, Ryan A wrote: I want to write a module for xcart (a commercial 'shopping cart') which would be like what Amazon.com offers when you go to shop on their site... when you click on a product to see its

Re: [PHP] Download files outside DocumentRoot Dir

2006-09-26 Thread Curt Zirzow
On 9/24/06, Ramiro [EMAIL PROTECTED] wrote: Hi, i'm trying to find a good solution to this problem. I want download files from a directory outside DocumentRoot. This is a standard procedure. This files cannot be downloaded through direct url like http://site/test.zip. It must be downloaded

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Curt Zirzow
On 9/26/06, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, September 26, 2006 12:16 pm, Børge Holen wrote: On Tuesday 26 September 2006 02:07, Robert Cummings wrote: On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: I'm sitting here with 4 Gigs of RAM trying to figure out how to use

Re: [PHP] Mail Problem

2006-09-26 Thread Curt Zirzow
On 9/26/06, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, September 26, 2006 11:09 am, [EMAIL PROTECTED] wrote: I have an issue with sending email via PHP which may be a configuration problem with either PHP, Apache, or possibly a Sendmail, but I don't know which yet. I figured I'd start

Re: [PHP] Mail Problem

2006-09-26 Thread Curt Zirzow
On a side note.. have i ever mentioned the email system really sucks. Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Curt Zirzow
On 9/28/06, Martin Marques martin@bugs.unl.edu.ar wrote: I'm trying helplessly to get session.use_trans_sid to true in one directory that needs it. So I put this in an .htaccess file: php_value session.use_trans_sid 1 The thing is, it didn't work. I also tried changing 1 to On with no luck at

Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Curt Zirzow
On 9/28/06, Martin Marques martin@bugs.unl.edu.ar wrote: yOn Thu, 28 Sep 2006, Curt Zirzow wrote: On 9/28/06, Martin Marques martin@bugs.unl.edu.ar wrote: I'm trying helplessly to get session.use_trans_sid to true in one directory that needs it. So I put this in an .htaccess file

Re: [PHP] Changing values in .htaccess

2006-09-28 Thread Curt Zirzow
On 9/28/06, Google Kreme [EMAIL PROTECTED] wrote: On 28 Sep 2006, at 14:30 , Curt Zirzow wrote: If you can, set this on a per directory setting in your virtualhost setting within a Directory or Location, instead of turning on .htaccess. Er... why? So you have to get root privs to edit your

Re: [PHP] Re: file to blob

2006-10-04 Thread Curt Zirzow
On 10/4/06, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, Sorry, I sent the message too soon. The HTTP client class is here: http://www.phpclasses.org/httpclient I'm wondering how soap has to do with this. Curt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Denial of service

2006-10-16 Thread Curt Zirzow
On 10/14/06, Ryan Barclay [EMAIL PROTECTED] wrote: It hasn't actually been attempted. However, if a couple of a users were to hold the refresh, the page generation times would go up ridiculously and clients would be waiting over 20sec for pages. As mentioned, it's a very heavy php-mysql script

Re: [PHP] PHP Denial of service

2006-10-16 Thread Curt Zirzow
On 10/16/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, October 13, 2006 4:16 pm, Ryan Barclay wrote: A simple question I imagine, but I am wondering how I would combat DoS attacks by users holding the REFRESH key on their browsers? I have reproduced this error on a PHP-MYSQL website and

Re: [PHP] Regular expressions

2006-10-16 Thread Curt Zirzow
On 10/16/06, Chrome [EMAIL PROTECTED] wrote: *edit* sorry I didn't think and just hit reply on this instead of reply all... sorry Richard */edit* [snip] .*? is kinda silly -- .* mean 0 or more characters, and ? means maybe but putting them together has no added value, so lose the ? [/snip] I

Re: [PHP] Regular expressions

2006-10-16 Thread Curt Zirzow
On 10/16/06, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, October 16, 2006 2:54 pm, Chrome wrote: *edit* sorry I didn't think and just hit reply on this instead of reply all... sorry Richard */edit* [snip] .*? is kinda silly -- .* mean 0 or more characters, and ? means maybe but

Re: [PHP] Regular expressions

2006-10-16 Thread Curt Zirzow
On 10/16/06, Chrome [EMAIL PROTECTED] wrote: [snip] ? means maybe in some other place in PCRE. Or maybe that's POSIX. Never have figured that one out. [/snip] ? directly after an expression is equivalent to {0,1} (maybe) but after a quantifier (*, +, {}) means ungreedy I kind of talked about

Re: [PHP] Telemarketing Script/Tracking Application

2006-10-19 Thread Curt Zirzow
On 10/19/06, Jay Blanchard [EMAIL PROTECTED] wrote: Is anyone aware of a PHP/MySQL app that would be used by telemarketing staff to track calls, do follow-ups, allow scripting, etc.? We could write something in house but we are pressed for time. I have been poking around the web this morning,

Re: [PHP] 301 redirect returning 302 instead

2006-11-01 Thread Curt Zirzow
On 11/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Just a shot in the dark, but it's possible that providing a Location header resets the status response. Try swapping your two header calls. Just to add more info: We're running php as fastcgi under lighttpd. Doing a little searching I

Re: [PHP] Microsoft Partners With Zend

2006-11-01 Thread Curt Zirzow
On 11/1/06, steve [EMAIL PROTECTED] wrote: On 11/1/06, Daevid Vincent [EMAIL PROTECTED] wrote: Personally I'm unsure. I would like to think that Zend is smart enough to realize M$ tactics of embrace/extend and will not allow that to happen. MS added a FastCGI module to IIS. Thats the big

Re: [PHP] Microsoft Partners With Zend

2006-11-03 Thread Curt Zirzow
thinking it probably is like a thttpd type of server. Curt. On 11/2/06, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, November 1, 2006 5:53 pm, Curt Zirzow wrote: On 11/1/06, steve [EMAIL PROTECTED] wrote: On 11/1/06, Daevid Vincent [EMAIL PROTECTED] wrote: Personally I'm unsure. I would like

Re: [PHP] Sorting MySQL queries

2006-11-06 Thread Curt Zirzow
On 11/5/06, Roman Neuhauser [EMAIL PROTECTED] wrote: If you used PostgreSQL I'd suggest a functional index and ordering on the function... Does MySQL have anything like this? CREATE FUNCTION fn(TEXT) RETURNS TEXT IMMUTABLE STRICT LANGUAGE SQL AS $$ SELECT

Re: [PHP] Code execution speed

2006-11-06 Thread Curt Zirzow
On 11/6/06, Eric [EMAIL PROTECTED] wrote: 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

Re: [PHP] pdo and mysql 5

2006-11-10 Thread Curt Zirzow
On 11/10/06, jonathan [EMAIL PROTECTED] wrote: I know that PDO has drivers only for MySQL 3/4. Is anybody getting it work with MySQL 5. I'd like to try out the Zend Framework but our db uses MySQL 5. We could create a second db in 4.1 and run it with that but I'd rather not to. It's kinda

Re: [PHP] spot the mistake

2006-11-12 Thread Curt Zirzow
On 11/12/06, Ross [EMAIL PROTECTED] wrote: echo ('a href=# onclick=window.open(\'news/old_news_list.php?month=$jamp;year='.$i.'\',\'\',\'width=700,height=500\'); return false \ $thisMonth/a'); Just remove any question on what is wrong: $thisUrl = news/old_news_list.php?month=$jamp;year=$i;

Re: [PHP] pdo and mysql 5

2006-11-14 Thread Curt Zirzow
On 11/10/06, jonathan [EMAIL PROTECTED] wrote: I know that PDO has drivers only for MySQL 3/4. Is anybody getting it work with MySQL 5. I'd like to try out the Zend Framework but our db uses MySQL 5. We could create a second db in 4.1 and run it with that but I'd rather not to. It's kinda

Re: [PHP] several sites sharing the same script

2006-11-29 Thread Curt Zirzow
On 11/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello all, I am writing new php application which will be used by several sites. All sites will use same script (all files), but every will have its own config.php file. I would like to place all necessary files to separate directory and

Re: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Curt Zirzow
On 12/6/06, Peter Lauri [EMAIL PROTECTED] wrote: Hi, Are there any general protection methods to minimize the risk of robots using your mailing forms as spam senders? Yes, validate and escape data properly, the most important thing you want to protect is anything that goes into the

Re: [PHP] How to not be abused by mail form injectors?

2006-12-06 Thread Curt Zirzow
On 12/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I will be out of the office until Monday 11th December. If you have any urgent enquiries, please direct them to Craig Mead on 1300 651 593 or [EMAIL PROTECTED] how stupid people are, i hope mr fielding never needs help from me cause he

Re: [PHP] http request problem

2007-01-02 Thread Curt Zirzow
On 1/2/07, Kencana [EMAIL PROTECTED] wrote: hi all, I got problem in getting file content. the file is located at another server (tomcat) and it is a jsp file. i don't know why i keep getting the same error message file accessing that file but while i am trying to access to another file, from

Re: [PHP] Re: http request problem

2007-01-02 Thread Curt Zirzow
On 1/2/07, Fahad Pervaiz [EMAIL PROTECTED] wrote: this is the error message i get: PHP Warning: file_get_contents( http://123.123.1.2:8008/V3JRoute?slot=1startX=103.880764startY=1.335458endX=103.886297endY=1.334953routeType=1format=2 ) [function.file-get-contents]: failed to open stream: HTTP

Re: [PHP] Re: http request problem

2007-01-03 Thread Curt Zirzow
On 1/3/07, Roman Neuhauser [EMAIL PROTECTED] wrote: # [EMAIL PROTECTED] / 2007-01-03 11:19:21 +0500: ===ORINGIAL=== [...] ===END ORIGINAL=== Gah, early morning! Ok, I wasted my time thanks to your quoting style. Would you please use something more conventional, like prefixing each line of the

Re: [PHP] Pushing a file to the browser

2007-01-03 Thread Curt Zirzow
roman neuhauser describes it rather well on the other thread. Basically. the push in this context below, is the response php provides php.net/header has a lot of info about how to send a non html file back to the browser. Curt. On 1/2/07, Casey Chu [EMAIL PROTECTED] wrote: What do you mean by

Re: [PHP] read cwk files

2007-01-03 Thread Curt Zirzow
On 1/3/07, John Salib [EMAIL PROTECTED] wrote: Hi, I need to read cwk files (mac clarisworks files). so is it possible to do so using php if so how to do that? Sure you can read the files, the question is what is the output you want it in? Once that is answered, is there such a tool i can

Re: [PHP] read cwk files

2007-01-03 Thread Curt Zirzow
On 1/3/07, John Salib [EMAIL PROTECTED] wrote: well I mean I want to fetch the data from it. I need to get the data in plain text format. formating is not important. I found a script to do that for xls files but didn't find one for cwk files. This might be hard to find, do you have the

Re: [PHP] read cwk files

2007-01-03 Thread Curt Zirzow
On 1/3/07, Curt Zirzow [EMAIL PROTECTED] wrote: On 1/3/07, John Salib [EMAIL PROTECTED] wrote: well I mean I want to fetch the data from it. I need to get the data in plain text format. formating is not important. I found a script to do that for xls files but didn't find one for cwk files

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Curt Zirzow
On 1/3/07, Emil Edeholt [EMAIL PROTECTED] wrote: Roman Neuhauser wrote: But I'll look for a log file. Maybe there are something hidden below the gui. Maybe I haven't included some header non-spam usually have or something? How are we supposed to know? Should we read Thunderbird's source

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Curt Zirzow
On 1/3/07, Roman Neuhauser [EMAIL PROTECTED] wrote: . Then again, AFAIK all recipients used either mutt or outlook. Now that is a very disperse audience, i never see mutt mentioned often. Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Request of php5

2007-01-03 Thread Curt Zirzow
On 1/3/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Mon, January 1, 2007 12:40 am, [EMAIL PROTECTED] wrote: How much mem ( Ram ) does the php5 need ? ... Depends on what extension you add, what you do with those extensions, and what sort of performance you expect

Re: [PHP] whois Domain??

2007-01-09 Thread Curt Zirzow
On 1/9/07, Wickham, Larry [EMAIL PROTECTED] wrote: If you are running under linux you can use one of the many exec functions in php to execute the whois command. ?php $command = whois domain.com; i'd rather like to see a path used from from `which whois` Assuming paths is evil :) Curt. --

Re: [PHP] whois Domain??

2007-01-09 Thread Curt Zirzow
On 1/9/07, Ashley M. Kirchner [EMAIL PROTECTED] wrote: Curt Zirzow wrote: Assuming paths is evil :) To add to what Curt says here, so is assuming the command actually exists. :) ha! nice any shell command should really be used like: $cmd = '/bin/command ' . escapeshellcmd($userinput

Re: [PHP] Javascript detection , working version

2007-01-09 Thread Curt Zirzow
On 1/1/07, Jürgen Wind [EMAIL PROTECTED] wrote: well, no cute css, but (hopefully) working - here is my quick dirty version : http://149.222.235.16/public/ I dont understand the point. Curt, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Stripslashes

2007-01-15 Thread Curt Zirzow
On 1/14/07, Beauford [EMAIL PROTECTED] wrote: I guess I'm just doing something wrong, 'cause that doesn't work either - nor do the hundreds of other snippets I've used. Here's the scenario. I have a form - after they submit the form it shows what they have entered, this is where I get the \.

Re: [PHP] Stripslashes

2007-01-15 Thread Curt Zirzow
On 1/15/07, Beauford [EMAIL PROTECTED] wrote: I'm familiar with the .htaccess file and I am told by the hosting company that apache is set up to use it, I've just never used it much - especially for PHP. If this works I'd even like to set an includes file for PHP. Here is the file. #

Re: [PHP] FW: Eregi question

2007-01-15 Thread Curt Zirzow
On 1/15/07, Beauford [EMAIL PROTECTED] wrote: Hi, Hopefully this is my last question so I can put this site to bed. Is there a good article that explains how to do the patterns for eregi. Honestly i hope it isn't the last question. As far as eregi articles that really has been dead since

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-15 Thread Curt Zirzow
On 1/15/07, Gert Cuykens [EMAIL PROTECTED] wrote: On 1/15/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: Added db5c29 it includes a new server memory login module some small layout and code modifications. hmm, syntax error: dg.delete()\n dg.js (line 241) do you know

Re: [PHP] More efficient thumbnail script

2007-01-16 Thread Curt Zirzow
On 1/16/07, Jochem Maas [EMAIL PROTECTED] wrote: ... if ($cacheState) { $headers = getallheaders(); if (isset($headers['If-Modified-Since']) ($headers['If-Modified-Since'] == $lastModified)) { I was waiting for this to be mentioned... I would use a more

Re: [PHP] More efficient thumbnail script

2007-01-17 Thread Curt Zirzow
On 1/16/07, Jochem Maas [EMAIL PROTECTED] wrote: Curt Zirzow wrote: On 1/16/07, Jochem Maas [EMAIL PROTECTED] wrote: ... if ($cacheState) { $headers = getallheaders(); if (isset($headers['If-Modified-Since']) ($headers['If-Modified-Since'] == $lastModified

Re: [PHP] is there another way ??

2007-01-17 Thread Curt Zirzow
Oops, i forgot to reply to php-general@ on this use this reply instead of the one i sent to your specific email. On 1/16/07, Ali Nasser [EMAIL PROTECTED] wrote: can you please check these out and tell me if there another way without installing externsions??

Re: [PHP] May I be added to the list?

2007-01-17 Thread Curt Zirzow
On 1/15/07, Bernie Graham [EMAIL PROTECTED] wrote: Hello, I am hoping to be able to be added to the pear general mailing list. Go to http://pear.php.net/support/ Curt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] format timestamp

2007-01-17 Thread Curt Zirzow
On 1/17/07, weetat [EMAIL PROTECTED] wrote: Hi all , I am using php 4.2 , mysql and Linux OS. I need to format timestamp to string using strftime , for e.g: strftime('%e',117000) - the day should be 28 , but is 29 when i execute strftime() function. Anyone have ideas what is

Re: [PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-02-26 Thread Curt Zirzow
On Sat, Feb 25, 2006 at 01:41:06PM -0900, Chris Lott wrote: I'm making the switch from Windows to Linux for mydesktop and development environment and would greatly appreciate suggestions for development tools on this platform. Ubuntu seems to be getting all the press, but suggestions about

Re: [PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-02-27 Thread Curt Zirzow
On Tue, Feb 28, 2006 at 02:13:15AM +1100, David Tulloh wrote: Curt Zirzow wrote: Before I get into what distib to use there are a few things i'd like to point out: 1) Avoid using the packaging system the OS provides for the developement server. If you do, you will be under

Re: [PHP] Secure input

2006-02-27 Thread Curt Zirzow
On Mon, Feb 27, 2006 at 12:20:51PM +0100, [EMAIL PROTECTED] wrote: Hi, What shall one do to avoid people that trys to manipulate my server? I mysql_real_escape_string() all input from GET and POST. The mysql_escape_string() will protect you from sql injections, the thing you have to

Re: [PHP] Strange slowdowns in PHP

2006-02-27 Thread Curt Zirzow
On Mon, Feb 27, 2006 at 05:16:01PM -0500, William Lovaton wrote: Mmmm... can you elaborate on that please? I kind of have the idea of what you mean but I don't know how to do it. What is exactly garbage collection in the context of a PHP session? I guess it is when PHP scans every session

Re: [PHP] Sessions in PHP... where to start???

2006-02-27 Thread Curt Zirzow
Well for the latter part of your question.. 'Where to start??' the first thing to start with is to NOT reply to a topic and change your subject to ask something else, instead click the icon in your email application that indicates a new message and compose your question addressed to

Re: [PHP] move_uploaded_file and CPU wait state (IO)

2006-02-27 Thread Curt Zirzow
On Mon, Feb 27, 2006 at 06:39:13PM +0100, [EMAIL PROTECTED] wrote: Hi, My first mailing, if I'm in wrong group or such, let me know ;) Here comes my question. I have implemented file uploads to my server. At the end of upload, file is beeing moved from /tmp to permanent directory.

Re: [PHP] recompiling php

2006-02-27 Thread Curt Zirzow
On Sun, Feb 26, 2006 at 04:23:22PM -0500, blackwater dev wrote: I am trying to recompile php 5 with freetds so am using this : ./configure '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/root/mysql-standard-4.1.9-pc-linux-gnu-i686' '--with-mssql=/usr/local/freetds' Things seem

Re: [PHP] move_uploaded_file and CPU wait state (IO) - unsubscribe

2006-02-27 Thread Curt Zirzow
On Tue, Feb 28, 2006 at 09:43:30AM +0800, stone.wang wrote: unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe unsubscribe dont send to me Since you hijacked my thread, to

Re: [PHP] move_uploaded_file and CPU wait state (IO) - unsubscribe

2006-02-27 Thread Curt Zirzow
On Tue, Feb 28, 2006 at 11:08:30AM +0800, stone.wang wrote: No usa to it http://php.net/unsub.php Yes fondu no be http://php.net/unsub.php i do more If english isn't your first language try to explain that you are not clear how to remove yourself from the list, otherwise try emailing:

Re: [PHP] Where to put my class files

2006-02-28 Thread Curt Zirzow
On Tue, Feb 28, 2006 at 12:55:18PM +0700, Peter Lauri wrote: Best group member, I want to run the backend of the system under HTTPS for security reasons. The pages in HTTP and HTTPS are both using the same classfiles. Right now I have the class files in httpdocs/classes/ In the

Re: [PHP] Basic PDO Questions

2006-02-28 Thread Curt Zirzow
On Tue, Feb 28, 2006 at 05:48:36PM -0500, Chris Drozdowski wrote: I have a three quick PDO questions. 1) If a PDOStatement is created within a function or method, is it's server result set connection is automatically freed up when the function returns (I assume so, but want to make

Re: [PHP] Mysql Rows

2006-03-05 Thread Curt Zirzow
On Sun, Mar 05, 2006 at 08:01:07AM -0500, tedd wrote: R O B said: That Rod guy, he's such a card! I'd add something, but Jay has already covered my list in a more recent email than this one to which I'm responding :) jblanchard (who I think is Rod) said: A SQL question on a PHP mailing

Re: [PHP] [JOB] LAMP Developers, Los Angeles | 70-120k

2006-03-05 Thread Curt Zirzow
Job postings dont really belong on this list, expecially ones that appear on a regular basis for a paticular company. Consider what would happen if sites like dice.org, monster.com, etc... started posting positions that matched the keyword 'php' on a regular basis. Curt. On Sun, Mar 05, 2006

Re: [PHP] output Today's date

2006-03-05 Thread Curt Zirzow
On Sat, Mar 04, 2006 at 07:01:55PM -0700, Paul Goepfert wrote: Hi all, ls there anyway I can set the date to the timezone of the clients timezone? For example, if a person opens the web page at 3/6 12:01 EST and another person opens the same page at 3/5 10:01 MST I would like the date to

Re: [PHP] Prepared statements

2006-03-05 Thread Curt Zirzow
On Sun, Mar 05, 2006 at 04:03:17AM +0100, Julius Hacker wrote: On 3/4/06, Julius Hacker [EMAIL PROTECTED] wrote: Before that foreach, I use mysqli_stmt_init, mysql_stmt_prepare and mysql_stmt_bind_param. In the foreach-loop I give the variables, which I bound with bind_param,

Re: [PHP] Prepared statements

2006-03-07 Thread Curt Zirzow
On Mon, Mar 06, 2006 at 10:03:10PM +0100, Julius Hacker wrote: Curt Zirzow wrote: I assume your loop is something like: while(condition) { $auction_parts['id'] = 'some value'; $auction_parts['name'] = 'some value'; ... $insert-execute(); } Yes, thats

Re: [PHP] Calling Curt Z, Curt Z to the white courtesy phone please

2006-03-08 Thread Curt Zirzow
I'm including the list in this reply in case any wants to give some feedback. On Wed, Mar 08, 2006 at 09:52:29AM -0600, [EMAIL PROTECTED] wrote: Sorry for the post listites, I have lost Curt Z's info and need him to contact me. More to the point, can you post the Newbie Guide that you revamped

Re: [PHP] Re: Converting HTML to BBCode

2006-03-08 Thread Curt Zirzow
I dont know where this thread came from but... On Mon, Mar 06, 2006 at 12:33:32PM -0700, J_K9 wrote: ... ---CODE--- ?php $text = $_REQUEST['text']; echo 'br /br /'; $translate_array = array( ... 'a href=' = '[url=', '/a' = '[/url]', ... ); $find_array=

Re: [PHP] Phone number validation

2006-03-12 Thread Curt Zirzow
On Sun, Mar 12, 2006 at 12:09:42PM -0700, Paul Goepfert wrote: Hi all, I am trying to validate phone numbers in a web form that I have created. I am using a regular expression to validate the phone number. It seems when I enter the phone number in the following ways I get errors (123)

Re: [PHP] Why Session can't be timed out!

2006-03-12 Thread Curt Zirzow
On Sat, Mar 11, 2006 at 09:44:01PM +0800, wrote: Excuse me,when i develop programe php in linux FC3 , i want the life time of the session to be 20 minutes ,i do the follow things in the php.ini file What version of PHP are we talking about with FC3? 1.change session.gc_maxlifetime = 1200

Re: [PHP] PDOStatement::execute() Return Values

2006-03-12 Thread Curt Zirzow
On Fri, Mar 10, 2006 at 12:09:44PM -0500, Chris wrote: Under what circumstances does PDOStatement::execute() return false? It seems to always return true. I'm assuming you have some code like: $sth = $dbh-prepare($sql); if(! $sth-execute() ) { // false } else { //true } When it returns

Re: [PHP] DB calls vs Session solution

2006-03-12 Thread Curt Zirzow
On Fri, Mar 10, 2006 at 02:10:54PM +0200, Thomas wrote: Hi there, Quick question on performance: I have got some expensive sql queries (doing lots of LEFT JOINS) that result in anything between 10 to 1 results. I need to do paging on those. So far I have used a LIMIT solution which

Re: [PHP] X-Mailer and headers when sending mail

2006-03-12 Thread Curt Zirzow
On Thu, Mar 09, 2006 at 05:27:11PM -0800, Angelo Zanetti wrote: Hi guys. When adding additional headers to an email that gets sent from the mail function. What purpose does the X-Mailer have? Any X-* header is generally a header that is not a standard but a way to trace things. Or still in

Re: [PHP] Phone number validation

2006-03-12 Thread Curt Zirzow
On Sun, Mar 12, 2006 at 01:48:28PM -0700, Paul Goepfert wrote: On 3/12/06, Curt Zirzow [EMAIL PROTECTED] wrote: With US phone numbers I always use this approach to avoid what format people use to enter the phone: - Remove any non digit $check_phone = preg_replace('/[^0-9

Re: [PHP] DB calls vs Session solution

2006-03-13 Thread Curt Zirzow
here for :) Curt Zirzow wrote: On Fri, Mar 10, 2006 at 02:10:54PM +0200, Thomas wrote: Hi there, Quick question on performance: I have got some expensive sql queries (doing lots of LEFT JOINS) that result ... [clip top posted info] Curt -- cat .signature: No such file

Re: [PHP] what would a c extension buy me

2006-03-13 Thread Curt Zirzow
On Mon, Mar 13, 2006 at 10:32:55PM +0900, joseph wrote: mr. maas, psychic me you are a man. i created an index, no change. but i already knew that because one of the cases where an index is never used is when The key used to fetch the rows is not the same as the one used in

  1   2   3   4   5   6   7   8   9   10   >