Re: [PHP] How to add zlib support

2004-08-23 Thread Curt Zirzow
I dont see how this has anything to do with: - Cookie behaviour - opening a save dialog box. - unlink and rmdir problems Please start a new email when starting a new topic, this is the 3rd unrelated topic that has been started on this thread. Curt -- First, let me assure you that

Re: [PHP] how to count objects instances

2004-08-23 Thread Curt Zirzow
* Thus wrote Robert Cummings: On Mon, 2004-08-23 at 20:54, John Holmes wrote: [EMAIL PROTECTED] wrote: You could write a wrapper class for Test that kept count of the instances and returned a new object upon request... In PHP5: ?php class Foo { static $instances = 0;

Re: [PHP] Using php_value in .htaccess files

2004-08-23 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: I believe Apache's Allowoverride directive must have Options or +Options set for php_value changes to be permitted on a per-directory basis in .htaccess files. Allowoverride All is one way to make sure they're permitted. :D So... if I throw an override

Re: [PHP] How to add Zlib support

2004-08-23 Thread Curt Zirzow
* Thus wrote Mauricio Pellegrini: It's a requisite that the compression library has to be zlib. I don't know how to do that. I guess I should reconfigure with './configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--with-zlib'

Re: [PHP] Crazy Serialize/Header/$_POST PHP Error - Is this a bug?

2004-08-23 Thread Curt Zirzow
* Thus wrote Peters, Eric: I think I've boiled my problemfor some reason I can't header() a serialized $_POST variable Running PHP 5.0 Final (and also tested with 4.3.3): -- begin file -- ?php function jpcache_debug2($s) { header(X-CacheDebug-five:

Re: [PHP] OO in PHP5.0 - Referencing Object or not?!

2004-08-22 Thread Curt Zirzow
* Thus wrote Raffael Wannenmacher: hello together look at the following code ... why is this .. -- code start if ( is_object($this-getManagerObject()-getDataFieldManager()) ) { for ( $j = 0; $j $this-getManagerObject()-getDataFieldManager()-getCount(); $j++

Re: [PHP] Class Con- and Destructor Inheritance

2004-08-22 Thread Curt Zirzow
* Thus wrote Justin Patrin: On Sun, 22 Aug 2004 13:04:11 +0200, Daniel Schierbeck [EMAIL PROTECTED] wrote: ... Note: Parent constructors are not called implicitly. In order to run a parent constructor, a call to parent::__construct() is required. Is

Re: [PHP] PHP5 Gd Library error compiling

2004-08-22 Thread Curt Zirzow
* Thus wrote Martin Visser: PHP5, with GD on Linux (Slackware 10.0) ./configure goes just fine, but when I try 'make', there's an error. this is how I configured it: ./configure --prefix=/usr/local/php5 --with-zlib --with-pear=/usr/share/pear --with-mysql=/usr/local/mysql

Re: [PHP] Get reference count on a variable.

2004-08-21 Thread Curt Zirzow
* Thus wrote Robert Cummings: On Sat, 2004-08-21 at 00:10, Curt Zirzow wrote: * Thus wrote Robert Cummings: Hi All, I think I'm looking for something that doesn't exist, but just in case thought I'd check the list. Does anyone know if a PHP function exists to get the number

Re: [PHP] Get reference count on a variable.

2004-08-21 Thread Curt Zirzow
* Thus wrote Robert Cummings: As exemplified in the sample script I sent in my last response and by the link sent by Hannes Magnusson, in PHP5 the following have identical behaviour: $o1 = new Foo(); $o2 = $o1; // Is same as... $o1 = new Foo(); $o2 = $o1; But =

Re: [PHP] avi to wmv convert

2004-08-20 Thread Curt Zirzow
* Thus wrote John Nichel: Jay Blanchard wrote: [snip] In what manual? [/snip] TFM! I'm sorry, I didn't quite catch that. Could you hold my hand, and point it out to me? If you were a real pal, you would write the code for me too. ;) $manual = fopen('http://php.net/manual', 'r');

Re: [PHP] Get reference count on a variable.

2004-08-20 Thread Curt Zirzow
* Thus wrote Robert Cummings: Hi All, I think I'm looking for something that doesn't exist, but just in case thought I'd check the list. Does anyone know if a PHP function exists to get the number of references on a given variable's data? I was hoping to create a way for a factory to

Re: [PHP] Linkpoint API question

2004-08-20 Thread Curt Zirzow
* Thus wrote Brian Dunning: I telephoned *just* as the Linkpoint API support folks left for the weekend Currently we are doing just a SALE transaction. I want instead to first submit an authorization with AVS and CVV2 information, make a decision (2 out of 3) and then process the

Re: [PHP] arrays() current() next() who to use

2004-08-19 Thread Curt Zirzow
* Thus wrote Vern: I'm setting up an array based on recordset that does a loop as follows: do { //SET ARRAYS $z['username'][$k] = $row_rsUSERIDID['uname']; $z['distance'][$k++] = $totaldist; } while ($row_rsUSERIDID = mysql_fetch_assoc($rsUSERIDID)); ... How can I now

Re: [PHP] PHP, over javascript code simple \n

2004-08-19 Thread Curt Zirzow
* Thus wrote Louie Miranda: Im having problems. Because my javascript is inside a PHP code. Now below are 1 line code of a print function that display this on the html header. i must put \n after the Firstname. But PHP actually reads \n so when i view it on a browser the js code moves down.

Re: [PHP] Re: How to understand this Warning?

2004-08-18 Thread Curt Zirzow
* Thus wrote Labunski with modifications: ?php if ($handle = opendir('news')) { while (false !== ($topic = readdir($handle))) { if ($topic != . $topic != ..) { while (false !== ($topic = readdir($handle))) { // this will never happen! if($topic != .

Re: [PHP] preg_match question

2004-08-18 Thread Curt Zirzow
* Thus wrote Nicklas Bondesson: Actually I think I got it working now (without escaping the .). cause . is any character wwwatestbcom will get matched as well. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our

Re: [PHP] PHP HTML text editor issues...

2004-08-18 Thread Curt Zirzow
* Thus wrote Tim Traver: Hi all, ok, I've made my own version of a file manager complete with a text editor, and I'm having troubles figuring out some issues. ... I've tried to use addslashes and stripslashes to prevent some of the clobbering of the text, but it doesn't seem to be

Re: [PHP] PHP HTML text editor issues...

2004-08-18 Thread Curt Zirzow
* Thus wrote Justin Patrin: On Wed, 18 Aug 2004 17:17:26 +, Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Tim Traver: I just want to get the EXACT text that is in the textarea to be saved to disk... Here is an example of a line that gets clobbered : $value =~ tr

Re: [PHP] Modifying this PHP-based sourceforge.net web proxy

2004-08-18 Thread Curt Zirzow
* Thus wrote news.php.net: Attached is an awesome web proxy, which totally meets my needs, but I need it to be transparent. I need anyone accessing the computer that this is on to be automatically proxy-ed to a URL, but then let them navigate through the links just fine. I also do not want

Re: [PHP] Securing Forms???

2004-08-18 Thread Curt Zirzow
* Thus wrote Peter Brodersen: On Wed, 18 Aug 2004 17:59:34 -0700, in php.general [EMAIL PROTECTED] (John Holmes) wrote: $token = md5(uniqid(rand(), true)); .. is a pretty bad idea, since the output could include quotes, newlines, low-ascii-characters, thereby messing up the form. How

Re: [PHP] OO Theory Question

2004-08-17 Thread Curt Zirzow
* Thus wrote Jed R. Brubaker: Hi all! I could use some perspective on a project that I am currently working on. I am trying to utilize OO to make my PHP easier, but I keep running into problems that revolve around the stateless nature of the web. Consider the following: I have a login

Re: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: Hello Chris, I can't share the exact code ;) , but here is something very similar: img src=http://slashdot.org/my/logout; height=1 width=1 If I load a web page with the above code, it should log me out of slashdot. It works in Mozilla (and netscape), but

Re: [PHP] Re: Upload problems

2004-08-15 Thread Curt Zirzow
* Thus wrote Kim Steinhaug: Just a quick question, Did you alter the upload_max_filesize to 500MB and the post_max_size to say 510MB and you succesfully upload 500MB files from one machine to the server? I never testes with filesizes that large, but It would be nice to hear if it

Re: [PHP] phpMyAdmin equivalent

2004-08-14 Thread Curt Zirzow
* Thus wrote Watty: You can't google for something you don't know about ;) Haven't you heard? Google has ESP and can read your mind.. You just have to keep thinking this phrase: Google: phpMyAdmin PostgreSQL equivalent Curt -- First, let me assure you that this is not one of those shady

Re: [PHP] Re: What happend to _SERVER?

2004-08-14 Thread Curt Zirzow
* Thus wrote Allen Wayne Best: thomas: my php.ini has variables_order = EGPCS. Silly me, I forget to put $_SERVER in the print_r statement. so here is the revised file with output: --- start of stuff php -- ?php print_r( $_SEVER ); typo!

Re: [PHP] Email Address Testing

2004-08-13 Thread Curt Zirzow
* Thus wrote Ed Lazor: Right. It's been a while, but I vaguely remember playing an SMTP class a while back that would actually establish a connection with the remote server and verify whether the address was a valid recipient. Of course, I also seem to recall that it took forever and bogged

Re: [PHP] PHP 5.0.1 cli with mysqli on FreeBSD core dump

2004-08-13 Thread Curt Zirzow
* Thus wrote Unreal HSHH: try FreeBSD 4.x and 5.x cli with mysqli usage,core dump catch(question) { echo 'non existent.'; } Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP

Re: [PHP] Newb PHP Question

2004-08-13 Thread Curt Zirzow
* Thus wrote Andy Moore: I'm getting an error... And I have no idea how to fix it. I've never been able to get PHP to work. --- Warning: Unknown(/var/www/test.php): failed to open stream: Permission denied in Unknown on line 0 Warning: (null)(): Failed opening '/var/www/test.php' for

Re: [PHP] Ignoring carriage returns from data field

2004-08-13 Thread Curt Zirzow
* Thus wrote Vern: I am creating a datadump to a csv file and have noticed that text fields that contain carriage returns are causing trouble when opening the csv file in an Excel spreadsheet. I'm sure there's a away to ignore those extra characters but for the life of me I can't recall what

Re: [PHP] Securing Forms???

2004-08-13 Thread Curt Zirzow
* Thus wrote Gerard Samuel: I've read (at least on 2 occasions) that one can secure their forms, to ensure that the form came from the site, and not via a script kiddie. Not the method where one puts a graphic of random text to copy to the form, but via a hidden field. It has to do with

Re: [PHP] unexpected T_VARIABLE

2004-08-13 Thread Curt Zirzow
* Thus wrote Dustin Krysak: Hi there, I am working with a script that I found online to export a SQL statement (results) to an excel file., now everytime i run the script, i get the error: Parse error: parse error, unexpected T_VARIABLE in /var/www/html/siteadmin/mysql_export/export.php

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
* Thus wrote Frdric Hardy: class foo { private $var = 'var'; ... function __sleep() { return array('var'); } } and php code like this : $myFoo = new foo(); var_dump(serialize($myFoo)); the 'var' property was not serialized because it is protected

Re: [PHP] question about file_put_contents

2004-08-12 Thread Curt Zirzow
* Thus wrote Corey Hitchcock: Hi, I'm relatively new with php but I have a question about this 'new' function. If I use file_put_contents(file.txt, whatever) then it, of course, writes whatever in the file.txt. If I later do the same thing but put a different word (say other) from whatever

Re: [PHP] A function in PHP that changes html in a string from p align=center to p align=center ?

2004-08-12 Thread Curt Zirzow
* Thus wrote SED: Is there any function in PHP that changes html in a string from p align=center to p align=center ? (e.g. adding the double quotes) You can use tidy to clean up html. http://php.net/tidy Curt -- First, let me assure you that this is not one of those shady pyramid schemes

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
* Thus wrote Frdric Hardy: I'am using php 5.0.0 release. Try this : var_dump($test); var_dump(unserialize(serialize($test))); You should obtain something like that for fist var_dump : object test string test - 'var' and for the second var_dump : object test string

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
btw, see bug 26737 for more details... http://bugs.php.net/bug.php?id=26737 Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Page Referer question

2004-08-12 Thread Curt Zirzow
* Thus wrote Justin Patrin: On Thu, 12 Aug 2004 13:43:04 -0700, Robby Russell [EMAIL PROTECTED] wrote: On Thu, 2004-08-12 at 13:34, Jed R. Brubaker wrote: Hello all. I am looking to create script will detect the page from which the user just came so that after they do something on the

Re: [PHP] Looking for article

2004-08-12 Thread Curt Zirzow
* Thus wrote Ashley M. Kirchner: Anyone have an article written, or can point me to one that talks about converting URLS from: http://www.domain.com/script.php?var=1var=2 ...to: http://www.domain.com/script/var1/var2 I'm not aware of any articles but the trick basically

Re: [PHP] You can all take a look

2004-08-10 Thread Curt Zirzow
* Thus wrote Jay Blanchard: [snip] What I am trying to do is to determine the need of a paid support system I wish to implement. For small amounts people can get help very fast. [/snip] The primary flaw in a system like this is that you will have to have a lot of resources to draw from.

Re: [PHP] PHP performance

2004-08-10 Thread Curt Zirzow
* Thus wrote Ed Lazor: Any recommendations on how to make PHP run faster? To help figure out which queries are running slow there is the php.ini setting: mysql.trace_mode=On Using this will have the php library analyze your queries and if any of them do table scans php will issue a warning

Re: [PHP] PHP Unleashed

2004-08-10 Thread Curt Zirzow
* Thus wrote Ed Lazor: Any idea when PHP Unleashed by John Coggeshall will be released? I've tried emailing him with no luck and the guys at Powell's don't know when it'll be available. According to the Sams the publish date is Nov 2004, it could be available sooner though, from my

Re: [PHP] Re: php tools

2004-08-10 Thread Curt Zirzow
* Thus wrote Matthew Sims: Could you start a holy war any more easily...? The subject of editors/IDEs is prone to start a holy war. Regardless... I use VIM with the Project plugin, phpdoc plugin, and php syntax highlighting You're likely to get suggestions for emacs, as well, and

Re: [PHP] How PHP handles multiple inclusions of the same file?

2004-08-09 Thread Curt Zirzow
* Thus wrote Gambler ZG: what do you mean by that? Nothing. The statement was based on the erroneous assumption that anonimous functions allow to go into HTML mode with '?'. But this will not stop me, for there is eval()! The general idea is simple - to use some file's code multiple

Re: [PHP] SQL Join query

2004-08-09 Thread Curt Zirzow
* Thus wrote Jonathan Haddad: The only problem there is when you group the LEFT JOIN pictures that have a count of 0 return a count of 1. Unfortunately there's no single query that I figured out when I did this same project that would give accurate results. SELECT pics.*,

Re: [PHP] How PHP handles multiple inclusions of the same file?

2004-08-09 Thread Curt Zirzow
* Thus wrote John W. Holmes: From: Justin Patrin [EMAIL PROTECTED] eval($script); use_cached_code(); Ick! eval() is evil! You have benchmarks to back that up or experience? I did a benchmark between using include(), eval(), smarty, pattemplate, and a few others and include() and

Re: [PHP] PHP5 - OOP Question

2004-08-09 Thread Curt Zirzow
* Thus wrote Hardik Doshi: Hello Group, I would like to know which one is the most appropriate way to implement the following scenario. For example, I want to display a products catalogue of 100 products. I do have a base class of product which contains all the basic property of the

Re: [PHP] SQL Join query

2004-08-08 Thread Curt Zirzow
* Thus wrote Lenar Lhmus: Mattias Thorslund wrote: Though, (regardless of SQL database platform) in a case like this, it MAY be both more straightforward and efficient to use two separate queries for the pictures and comments, given the one-to-many cardinality between them. The above

Re: [PHP] Re: IMPORTANT: Please Verify Your Message

2004-08-06 Thread Curt Zirzow
* Thus wrote Josh Acecool M: I've requested that you do not contact me again. http://www.acecoolco.com/legal.php Please read the E-mail section properly. Um.. If you cannot figure out where this email you are complaining about is really comming from, I'd strongly suggest never to send

Re: [PHP] re: Problem installing PHP 4.3.8

2004-08-06 Thread Curt Zirzow
* Thus wrote Don: My config.log file contains the following which may provide a clue (not to me): configure:1638: checking host system type configure:1726: checking for gcc configure:1839: checking whether the C compiler (gcc ) works configure:1855: gcc -o conftestconftest.c 15

Re: [PHP] sorting an array..dont know numeric or alpha-numeric

2004-08-06 Thread Curt Zirzow
* Thus wrote PHP Gen: ... Looking in the manual I have tried sort() without any luck, then looking further I found natcasesort() which would be perfect for my needs right now, but cant get it to work :-( Below is the function (its not big) *** Start function

Re: [PHP] need help with $HTTP_RAW_POST_DATA

2004-08-05 Thread Curt Zirzow
* Thus wrote PHPDiscuss - PHP Newsgroups and mailing lists: I noticed php://input but that's going to be changed to php://filter, but i have never tried using that before either. So i have no idea how it works. The only time php://input will have the data sent from the client is if php

Re: [PHP] Re: References and array indexes

2004-08-05 Thread Curt Zirzow
* Thus wrote Ace: Gabriel Birke birke at kontor4.de writes: Hello! The following PHP code: ? $a = array(1=First Element, 2=Second Element); $v = $a['3']; print_r($a); ? has this result: Array( 1 = First Element, 2 = Second Element, 3 = ) Can

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Curt Zirzow
* Thus wrote Josh Acecool M: but, I am doing this. $text = file_get_contents('templateFile.php'); $text = preg_replace('/something/', file_get_contents(something.php), $text); eval(? . $text . ?) This is rather an odd thing to do, kinda like taking an html document converting it to xml,

Re: [PHP] using headers to download a file takes too long

2004-08-05 Thread Curt Zirzow
* Thus wrote Mark Cooke: Hi, I'm writing a few scripts that allows users to download files, some around 45MB+. ... I've tried using readfile and fread, to access the files, yet both seem to take the same amount of time, it would seem like they are getting buffered, or maybe read into

Re: [PHP] Re: [PHP-DB] Eval a file, and it gives parse error because it uses a preg_match statement with \$

2004-08-05 Thread Curt Zirzow
quoted didn't use include(). Dont use include, use file_get_contents(). Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Josh Acecool M: but, I am doing this. $text = file_get_contents('templateFile.php'); $text = preg_replace('/something

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Curt Zirzow
* Thus wrote Brian Dunning: Developing on a Windows server to be deployed on Linux. I get SMTP server response: 501 Bad address syntax. Here's my code: $mail_from = 'My Name [EMAIL PROTECTED]'; $mail_server = 'mail.servername.com'; // This is hosted externally ini_set(SMTP,

Re: [PHP] $HTTP_REFERER

2004-08-05 Thread Curt Zirzow
* Thus wrote Shaun: Hi, I seem to have problems redirecting pages when I view my site using my laptop, the only difference is that my laptop has Norton Firewall installed, can this interfere with the $HTTP_REFERER variable and if so is there a more reliable alternative? The reliable way to

Re: [PHP] FW: IMPORTANT: Please Verify Your Message

2004-08-05 Thread Curt Zirzow
* Thus wrote Ed Lazor: Gawd this stuff sucks. Nothing like a spammer posing as the list itself and farming email addresses from members. Its odd, i've yet to get one of those. Either the spammers dns doesn't resolve proper (cause my server rejects those) or if its due to the fact I only

Re: [PHP] php source management

2004-08-05 Thread Curt Zirzow
* Thus wrote CHAN YICK WAI: if a project is worked by a small team of developers, is there a tool for source and version management for php source code? e.g. check which part of source is modified! Either cvs or subversion are good tools to use. Curt -- First, let me assure you that this

Re: [PHP] apache/php: chunk is already free, page is already free

2004-08-05 Thread Curt Zirzow
* Thus wrote Ergin Aytac: We made a test for only 20 min. and got our website online. The result was 200.000.000 (!!) lines in apache error log with the following: httpd in free(): warning: chunk is already free. httpd in free(): warning: page is already free. httpd in free(): warning:

Re: [PHP] str_replace() problem in PHP5 - anyone else?

2004-08-04 Thread Curt Zirzow
* Thus wrote Jon Bertsch: ... $html_output_1 .= $html_string[0]; $output = str_replace(@@FISCAL_YEAR@@, $this_year, $html_output_1 ); (I call it three times to do the replacements in the string). ... On our development box this little application runs fine. In production where

Re: [PHP] Combining two variables...

2004-08-04 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: I'm trying to create a links page, and I wanna filter by category. Anyhoo, What I need to do, is have one block of code that I repeat ad neaseum, based on each category, so if I adda new category, I don't need to add new code... All good so far. So I have

Re: [PHP] Field name function in PHP 5

2004-08-04 Thread Curt Zirzow
* Thus wrote Mark: I use MySQL: C:\mysql\binmysqladmin version status proc C:\MYSQL\BIN\MYSQLA~1.EXE Ver 8.40 Distrib 4.0.20a, for Win95/Win98 on i32 Copyright (C) 2000 MySQL AB MySQL Finland AB TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and

Re: [PHP] single dimensional array questions

2004-08-04 Thread Curt Zirzow
* Thus wrote Adam Williams: ... And now my question. What I need to do is create a single dimensional array that contains each number that count(array_unique($value)) is counting. how would I do this? I can't use the SQL query because I have to remove duplicate cardnums for each

Re: [PHP] opposite of array_unique()?

2004-08-04 Thread Curt Zirzow
* Thus wrote Adam Williams: for example if I have an array: array( [0] = 'dog', [1] = 'cat', [2] = 'rabbit', [3] = 'cat') how do I make it just have array ( [0] = 'cat' )? i want to drop the non-duplicates and trim the array to only have one of the duplicates? If you're pulling this

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Curt Zirzow
* Thus wrote Dan Phiffer: John W. Holmes wrote: There's nothing in PHP that would not let POST values get through. Well, I think there are means of disabling the registration of $_POST, but that's not relevent to this problem. why not? Things that will prevent _POST from being filled

Re: [PHP] Variable Variables adn Superglobals

2004-08-04 Thread Curt Zirzow
* Thus wrote ARico: Using Variable Variables works fine inside functions for global defined variables if you declare them as global inside the function. Suprinsingly, it does not seem to work with superglobals. Take the following example: // code

Re: [PHP] Re: POST superglobal is empty

2004-08-04 Thread Curt Zirzow
* Thus wrote AJL: On Wed, Aug 04, 2004 at 02:55:16PM -0700, Justin Patrin wrote: Sounds like Apache just isn't passing in POST data. Are you *sure* there's Apache directive for this? Yeah, that's what I'm thinking more and more, apache not passing it in or in a way that php is not

Re: [PHP] Handles for multiple output buffers?

2004-08-03 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: Again, the internals list sent me to this forum for help. In trying to create a series of parsers in PHP, using only PHP core and no non-standard add-ons, I find myself emulating multiple character streams in a class that wraps the output buffer. Every time

Re: [PHP] PHP + FDF and Opera

2004-08-03 Thread Curt Zirzow
* Thus wrote Nicklas Bondesson: The code should go like this. fdf_header(); $outfdf = fdf_create(); fdf_set_value($outfdf, our_ref, $our_ref, 0); fdf_set_value($outfdf, your_ref, $your_ref, 0); fdf_set_file($outfdf, http://xxx/test.pdf;); fdf_save($outfdf); fdf_close($outfdf); Are you

Re: [PHP] javascript type cast OT

2004-08-03 Thread Curt Zirzow
* Thus wrote Alex Hogan: Hmmm, you should see the C++ newsgroup(s). Point taken... Common and well established list courtesies established years ago are expected to be suspended herewhy? Nope and that's wasn't my point. My point was temperance. Having said that I suppose

Re: [PHP] RSS / eregi_replace()

2004-08-03 Thread Curt Zirzow
* Thus wrote Anthony Ritter: Greetings, I'm using an RSS feed from the New York Times and right now the a href link takes the user to the same window. I'd like the link to open in it's own window by using the target .html attribute. I was hoping that I could use the eregi_replace()

Re: [PHP] Query Results Question

2004-08-03 Thread Curt Zirzow
* Thus wrote Harlequin: I have the following query which should return just two rows: SELECT 'ID', 'Vacancy Role', 'Vacancy Salary', 'Vacancy Location', 'Vacancy Type' FROM vacancy_details WHERE Publish = 'Yes' As only two rows have Publish set to Yes. yet even if I execute the

Re: [PHP] Query Results Question

2004-08-03 Thread Curt Zirzow
* Thus wrote Harlequin: Richard Thanks firstly for your help. I renamed the fields so the spaces are underscores and amended your query but still receive an error: not a valid MySQL result resource Still tinkering though... All this tinkering and database schema's are simply the long

Re: [PHP] pconnect...

2004-08-02 Thread Curt Zirzow
* Thus wrote bruce: hi... since pconnect is not supported in php5, i'm wondering if the issue is that mysql no longer supports the underlying functions to implement pconnect, or if the decision to leave it out was based upon other factors. php5 has pconnect. You're getting mysql/mysqli

Re: [PHP] COUNT(*) Output Question

2004-08-02 Thread Curt Zirzow
* Thus wrote Tom Ray [Lists]: Hey- I'm query my mySQL database to see how many of each Sku has been ordered. I am doing my query as: $count=mysql_query(SELECT sku, COUNT(*) FROM orders GROUP BY sku); alias the count(*) column: SELECT sku, COUNT(*) as qty FROM orders GROUP BY sku

Re: [PHP] multiple checkboxes

2004-08-02 Thread Curt Zirzow
* Thus wrote Josh Close: Very simple question. When making multiple checkboxes, you put the name the same for a few to group them together form action=process.php method=post input type=checkbox name=checkBoxGroup value=first / input type=checkbox name=checkBoxGruop value=second /

Re: [PHP] I need ob_write($string, $start, $length)

2004-08-02 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: The guys in the internals list sent me to this forum. I am trying to write some serious parsing software in PHP. I need to use plain, vanilla PHP and no add-on modules, because I need to be able to distribute to people who don't have sufficient privileges.

Re: [PHP] Upgrade PHP?

2004-08-01 Thread Curt Zirzow
* Thus wrote Will Collins: I'm having problems upgrading PHP from 4.2.2 to 4.3.8 on RedHat 9. I've tried simply making the 4.3.8 from source, but RedHat didn't use the default PHP folder structure is seems, since there has been no change in my PHP version. I also tried the ./configure string

Re: [PHP] Means of collecting HTTP response headers

2004-07-31 Thread Curt Zirzow
* Thus wrote Burhan Khalid: Curt Zirzow wrote: * Thus wrote Gerard Samuel: On Friday 30 July 2004 01:32 pm, Gerard Samuel wrote: A means that is not specifically tied to Apache functions. Just looking for a way so that it works no matter the webserver. Seems like the function

Re: [PHP] db transactions across multiple pages...

2004-07-31 Thread Curt Zirzow
* Thus wrote bruce: yeah... i saw that write up. i've also inquired with bugs.mysql as to if/whether this might be reinserted.. we'll see. You don't need persistant connections with the method you describe. The pool app simply manages multiple connections. Curt -- First, let me assure

Re: [PHP] php4.3.7 + phpBB 2.0.10 + Apache - zero sized replies with no hits/errors logged by apache

2004-07-31 Thread Curt Zirzow
* Thus wrote ADFH: So everything else works fine except phpBB? Would seem so - but even if it is phpBB, it shouldn't be able to cause a fault that would cause apache to completely ignore the hit, no? Be sure to check common error logs, ie: apache/error_log, /var/log/messages .. Ie. some

Re: [PHP] db transactions across multiple pages...

2004-07-31 Thread Curt Zirzow
* Thus wrote bruce: the method i described gives the user/app a potential way of establsihing/maintaining/using the same connection thoughout the life of the web app/session... with this approach, one could possible have the 'persistent' conection handle to the db that i've been talking

Re: [PHP] PHP5 exception handling

2004-07-30 Thread Curt Zirzow
* Thus wrote Matthew Weier O'Phinney: The problem I'm running into: what do I pass as arguments to catch()? The articles on ZE2 use something like: catch (Exception $e) {}, or something like catch(MyException $e) (where MyException is a class they defined in their examples). Is the

Re: [PHP] Variable functions within an object

2004-07-30 Thread Curt Zirzow
* Thus wrote Julio Sergio Santana: Curt Zirzow wrote: $this-{$this-fname}(); or (what it actually is doing.. ) $func = $this-fname; $this-$func(); Curt The point here is that the named function is outside the object. That is, $this-foo() doesn't exist, so

Re: [PHP] str_replace: use multiple or array?

2004-07-30 Thread Curt Zirzow
* Thus wrote PHP Gen: Hi, I need to use a couple of str_replace's in one of my programs and would like to know which is more resource friendly: 1) having multiple str_replace one after another eg: $text = str_replace(orange, apple, $text); $text = str_replace(black, white, $text); ...

Re: [PHP] Means of collecting HTTP response headers

2004-07-30 Thread Curt Zirzow
* Thus wrote Gerard Samuel: On Friday 30 July 2004 01:32 pm, Gerard Samuel wrote: A means that is not specifically tied to Apache functions. Just looking for a way so that it works no matter the webserver. Seems like the function stream_get_meta_data() will fill the job.. hmm.. are

Re: [PHP] Re: Replace a button by an image

2004-07-30 Thread Curt Zirzow
* Thus wrote Justin Patrin: On Fri, 30 Jul 2004 23:14:53 +0100, Harlequin [EMAIL PROTECTED] wrote: Henri. I prefer to use CSS for things like this but I'm sure PHP has it's own idiosyncrasies. I checked out the site posted in response to your post and personally thought the

Re: [PHP] Variable functions within an object

2004-07-29 Thread Curt Zirzow
* Thus wrote Julio Sergio Santana: class a { var $fname; function a() { $this-fname = 'foo'; // the name of the function } function execute() { // method to execute the named function $this-fname(); // I also tried here // {$this-fname}(); //

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Curt Zirzow
* Thus wrote John Nichel: Harlequin wrote: RTFM...? AKA : Read The F**king Manual I thought the proper response was suppose to be: STFW :) Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the

Re: [PHP] php.net bug tracking tool?

2004-07-28 Thread Curt Zirzow
* Thus wrote Andreas Goetz: Which bug tracking tool is php.net using? I know it sounds stupid, but even as I can look at the source on php.net, I can't find any documentation- is this package available for download somewhere? you can checkout the code from cvs: cvs -d :pserver:[EMAIL

Re: [PHP] How do I return the error

2004-07-28 Thread Curt Zirzow
* Thus wrote Matthew Oatham: what about returning the error the copy function would have thrown ? * turn display_errors off: ini_set('display_errors', false); * turn track_errors on: ini_set('track_errors', true); if (! copy(...) ) { echo copy failed: $php_errormsg; } Curt -- First, let

Re: [PHP] php5 and objects

2004-07-28 Thread Curt Zirzow
* Thus wrote Krzysztof Gorzelak: // start of code abstract class Strona { abstract public function generuj_strone(); function foo() { generuj_strone(); } } class Katalog extends Strona { public function generuj_strone() { echo OK; } }

Re: [PHP] php5 and object

2004-07-28 Thread Curt Zirzow
* Thus wrote Stephen Sadowski: http://us4.php.net/manual/en/language.oop5.abstract.php The short is that you can't do anything more than define a function in an abstract class. Negative. It is perfectly fine to have code within an abstract class. The documentation needs to get expanded a

Re: [PHP] Java Script or PHP

2004-07-28 Thread Curt Zirzow
* Thus wrote Karl-Heinz Schulz: I have a database generated page and I want to show a Print Version in a new window when somebody selects the print option. http://www.test.com/docs/view_record.php?id=1 http://www.test.com/docs/print_record.php?id=1 What is the correct way to open the

Re: [PHP] Browser reload problem

2004-07-28 Thread Curt Zirzow
* Thus wrote Ashley M. Kirchner: PayPal passes a ton of data back to us when someone's done purchasing something. I use some of that information and shove it all into a database. Problem is, if someone hits reload on their browser, I get the same data re-inserted again. Reload the

Re: [PHP] Retrieve The Last Record in a Table

2004-07-27 Thread Curt Zirzow
* Thus wrote Harlequin: I would like to retrieve the last entry in a login table and present that to a user so they can verify the date we have when they last logged in. retrieving the last record is a lot of overhead, instead add a 'last logged in' field to the user table. retrieve the field

Re: [PHP] Re: destroying objects in an array in PHP5

2004-07-27 Thread Curt Zirzow
* Thus wrote Erik Franzn: $oObjectB[$i] = $oObjectA[$i]; The above statement does not matter, because in PHP5 objects are referenced by handle, and not by value. This is not true. PHP 5 passes objects by reference to functions only. Assignments are treated the same way as php4 externally.

Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Curt Zirzow
* Thus wrote Enda Nagle - Lists: Hi Guys, I¹m using PHP¹s mail() function on several sites, but have difficulty sometimes with the mails being tagged as SPAM. I want to have the Return-Path set to the site admin, but can¹t see where to do this. I know that it can be done at server root

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