Re: [PHP] preg help please :)

2003-10-16 Thread Eugene Lee
On Thu, Oct 16, 2003 at 02:23:45PM +1000, Justin French wrote: : : I have the following: : : ? : $quote = #822[0|1]{1};; : $text = preg_replace( : /$quote(.*)$quote:$quote(.*)$quote/, : a href='\\2'\\1/a, : $text : ); : ? : : It basically matches link text:url with the

[PHP] generating nested xml from mysql

2003-10-16 Thread daniel
Hi there i am having a problem generating nested xml from mysql My class is ok with one loop. But there is a problem when i want to do a query and within that loop result do another query. More specifically i want my xml to look like this. menu top_menu title/title sub_menu

[PHP] Help with file upload

2003-10-16 Thread Bunmi Akinmboni
This is the new code: ?php if (is_uploaded_file($_FILES['ufile1']['tmp_name'])) { copy($_FILES['ufile1']['tmp_name'], .); echo $ufile1_name ; echo DONE; echo ; print_r($_FILES); } else { echo Possible file upload attack. Filename: .

Re: [PHP] Help with file upload

2003-10-16 Thread Marek Kilimajer
Your webserver needs write permission to the directory where you want to copy. Bunmi Akinmboni wrote: This is the new code: ?php if (is_uploaded_file($_FILES['ufile1']['tmp_name'])) { copy($_FILES['ufile1']['tmp_name'], .); echo $ufile1_name ; echo DONE; echo ;

Re: [PHP] Help with file upload

2003-10-16 Thread Nitin
- Original Message - From: Bunmi Akinmboni [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 1:33 PM Subject: [PHP] Help with file upload This is the new code: ?php if (is_uploaded_file($_FILES['ufile1']['tmp_name'])) {

[PHP] php

2003-10-16 Thread Amanda Lau
Hi. I have a question. I receive this message three times every time I boot my computer: Unknown(): Could not load dynamic library 'extensions\php_dbg.dll- 4.3.2' - The specified module could not be found. Is there a way I can fix this problem? Amanda -- PHP General Mailing List

[PHP] Information

2003-10-16 Thread hatem gouda
Dear Miss/Mrs./Mr. I intend to move to Australia and work there as an auditor or an accountant.So I'd like to be familiar with Australian accounting environment before I move to there. So I'd like you to give me some information about MYOB Accountants Office and MYOB Taxlike: * Where

RE: [PHP] php

2003-10-16 Thread Mike Brum
Either confirm that you have php_dbg.dll in your extensions directory or comment out that line in your php.ini file. -M -Original Message- From: Amanda Lau [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 4:20 AM To: [EMAIL PROTECTED] Subject: [PHP] php Hi. I have a

[PHP] const in PHP

2003-10-16 Thread BENARD Jean-philippe
Hi, With the ArcaAttributes class definition (see below) I've an arror when trying to use one of the constants of this class as this : echo ArcaAttributes::ATT_EMPLOYEENUMBER; Parse error: parse error, expecting `'('' in /dtpdev01/dtp/racine-web/arca_test/test.php on

php-general Digest 16 Oct 2003 11:16:24 -0000 Issue 2358

2003-10-16 Thread php-general-digest-help
php-general Digest 16 Oct 2003 11:16:24 - Issue 2358 Topics (messages 166260 through 166282): Re: Session lose value with httpS 166260 by: Chris W. Parker 166261 by: [-^-!-%- 166267 by: Curt Zirzow Re: Return to browser and keep running! 166262 by: Manuel

Re: [PHP] Return to browser and keep running!

2003-10-16 Thread Marek Kilimajer
Now I noticed you are on windows. There is a user note in the manual that says that this function does not work as expected on windows: [snip] (by priebe at mi-corporation dot com) Note that register_shutdown_function() does not work under Apache on Windows platforms. Your shutdown function

Re: [PHP] ms word problems again !!

2003-10-16 Thread Chris Hayes
At 18:16 15-10-03, you wrote: I'm trying to send the following header to force ms-word to open a html document header(Content-type: application/msword); header('Content-Disposition: attachment; filename=invoice.doc'); it works in Mozilla but NOT in IE.. any ideas as its driving me crazy.. I

Re: [PHP] const in PHP

2003-10-16 Thread Marek Kilimajer
Are you using php5? const is not available in php4 or less. BENARD Jean-philippe wrote: Hi, With the ArcaAttributes class definition (see below) I've an arror when trying to use one of the constants of this class as this : echo ArcaAttributes::ATT_EMPLOYEENUMBER; Parse error:

Re: [PHP] ms word problems again !!

2003-10-16 Thread pete M
thankyou,thankyou, thankyou, thankyou, thankyou, !! I spent at least a day on trying to get it to work - now does pete ;- Chris Hayes wrote: At 18:16 15-10-03, you wrote: I'm trying to send the following header to force ms-word to open a html document header(Content-type:

[PHP] Regular Expressions

2003-10-16 Thread Shmuel
I have a misspelled sentence like this: I am not aIone. I want to change the capital I to small l, but only in the beginning of a word. How is this done in regular expression ? Any help appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Regular expressions

2003-10-16 Thread Shmuel
I have a misspelled sentence like this: I am not aIone. I want to change the capital I to small l, but only in the beginning of a word. How is this done in regular expression ? Any help appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Regular Expressions

2003-10-16 Thread Jacob Vennervald
preg_replace(/aIone/, alone, I am not aIone); But you don't need regular expressions for this. Jacob On Thu, 2003-10-16 at 14:35, Shmuel wrote: I have a misspelled sentence like this: I am not aIone. I want to change the capital I to small l, but only in the beginning of a word. How is

Re: [PHP] Regular Expressions

2003-10-16 Thread Justin French
On Thursday, October 16, 2003, at 10:35 PM, Shmuel wrote: I have a misspelled sentence like this: I am not aIone. I want to change the capital I to small l, but only in the beginning of a word. How is this done in regular expression ? You want to change an uppercase i/I into a lowercase l/L??

Re: [PHP] Regular Expressions

2003-10-16 Thread Eugene Lee
On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: : : I have a misspelled sentence like this: I am not aIone. : I want to change the capital I to small l, but only in : the beginning of a word. This doesn't make sense. It sounds like you want to replace every occurance of 'I' inside a

[PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread Tristan . Pretty
Not sure if this is a MySQL Q. or a PHP one, but here goes... I'm just learning sessions... And I'm trying to add a session variable to a MySQL database. I've done this page that takes the results from a previous form... But I get this error: Parse error: parse error, expecting `T_STRING' or

Re: [PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread Chris Boget
Which is the line that relates to the line: \$_SESSION['salutation'];\, I've tried removing the ';' but it change nothing...? Can anyone see my error? Either take out the quotes surrounding the word 'salutation' or take the variable out of the string: \ .

[PHP] PHP Class ArrayQueue

2003-10-16 Thread Antonio Bologna
Hello everyone, I'm just curious, I implemented a Array Queue in php, but not sure why is not working, this ArrayQueue is missing some functions like doubleQueue and dequeue, but anyway I'm trying to implmeneted in php, does anyone knows what's wrong? Thanks -- PHP General Mailing List

Re: [PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread James E Hicks III
Try this. mysql_query(INSERT INTO $table ( salutation, name, city } VALUES { \.$_SESSION['salutation'].\, \.$_SESSION['name'].\, \.$_SESSION['city'].\ } James

Re: [PHP] HTTP_POST_RAW_DATA problem

2003-10-16 Thread Manuel Vázquez Acosta
Oh! Thanks, I'm using cURL to send the post, I will check if I send a content-type header. Manu. Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, RAW_POST_DATA does not get populated for known content types. That's why i got a little help from perl when

[PHP] PHP Class ArrayQueue (2)

2003-10-16 Thread Antonio Bologna
Sorry, here it is the code: ?php /* Trying to use queues in PHP, let * see if that works. */ class ArrayQueue { var $theArray = array(); var $currentSize; var $front; var $back; var $DEFAULT_CAPACITY = 10; function increment($x) { if(++$x == $theArray.length) $x = 0; return $x; }

Re: [PHP] Return to browser and keep running!

2003-10-16 Thread Manuel Vázquez Acosta
Outch! I have read the long discussion of this bug. But I tested the register_shutdown_function on a RH system with Apache 1.3.24 and it didn't work either (the connection keeps alive). The apache_register_shutdown_function doesn't exists in either system. Manu. -- PHP General Mailing List

[PHP] Re: Regular Expressions

2003-10-16 Thread Manuel Vázquez Acosta
Um! This is like an OCR error. Maybe you'll need a dictionary and craft a soundex/diffin' scheme. I don't think regexp will solve this problem nicely. Manu. Shmuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a misspelled sentence like this: I am not aIone. I want to change

Re: [PHP] HTTP_POST_RAW_DATA problem

2003-10-16 Thread Raditha Dissanayake
Hi, You will most probably need to send a content type other than mulitpart/form-data for it to work. When you do you will find that the variables may not be populated. Manuel Vázquez Acosta wrote: Oh! Thanks, I'm using cURL to send the post, I will check if I send a content-type header.

RE: [PHP] where is my session data on my new server?

2003-10-16 Thread Ford, Mike [LSS]
On 14 October 2003 14:45, David T-G wrote: Mike, et al -- ...and then Ford, Mike [LSS] said... % % On 14 October 2003 11:26, David T-G wrote: % % I ran a phpinfo() comparison and didn't see anything markedly % different (except for how the output is formatted, which made

Re: [PHP] PHP Class ArrayQueue (2)

2003-10-16 Thread Marek Kilimajer
You need to read manual section about object oriented programing in php: http://www.php.net/oop Antonio Bologna wrote: Sorry, here it is the code: ?php /* Trying to use queues in PHP, let * see if that works. */ class ArrayQueue { var $theArray = array(); var $currentSize; var $front; var

[PHP] Is this possible?

2003-10-16 Thread Joseph Bannon
Is it possible to set two variables at once like this... $test = $variable = 5; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this possible?

2003-10-16 Thread Robert Cummings
Write a small script and see. Rob. On Thu, 2003-10-16 at 11:36, Joseph Bannon wrote: Is it possible to set two variables at once like this... $test = $variable = 5; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --

Re: [PHP] Is this possible?

2003-10-16 Thread Raquel Rice
On Thu, 16 Oct 2003 10:36:38 -0500 Joseph Bannon [EMAIL PROTECTED] wrote: Is it possible to set two variables at once like this... $test = $variable = 5; Yes. -- Raquel To sin by silence when they should protest makes cowards

RE: [PHP] Is this possible?

2003-10-16 Thread Joseph Bannon
Write a small script and see. Yep, it worked. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do you keep browser from timing out during lengthy process

2003-10-16 Thread James E Hicks III
I have a program that when an operator clicks on a button initiates an ftp transfer of a large file. The program also checks for succesful completion of the transfer and advises the operator of the transfer status. How do I keep the operators browser from timing out so that the status can be

[PHP] Merging document changes

2003-10-16 Thread Jason Godesky
I'm working on a collection of functions for handling text documents; when a Document is added, its text is broken into paragraphs, and each paragraph is saved to the database as a separate record. The problem is editing the document, because I only want to update those paragraphs that have

[PHP] mozilla

2003-10-16 Thread Joseph Bannon
Does IE use mozilla? I'm writing a PHP script to keep track of user agents. J. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mozilla

2003-10-16 Thread Chris W. Parker
Joseph Bannon mailto:[EMAIL PROTECTED] on Thursday, October 16, 2003 9:24 AM said: Does IE use mozilla? I'm writing a PHP script to keep track of user agents. 1. Your question isnt' clear. 2. Please don't submit lazy lazy lazy questions like this to the list. (I think) You also asked the

RE: [PHP] mozilla

2003-10-16 Thread Joseph Bannon
Does IE use mozilla? I'm writing a PHP script to keep track of user agents. Your question isnt' clear. What is not clear about it? I'm trying to keep keep track of user agents with php. J. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mozilla

2003-10-16 Thread Ray Hunter
Heavens no... -- Ray On Thu, 2003-10-16 at 10:24, Joseph Bannon wrote: Does IE use mozilla? I'm writing a PHP script to keep track of user agents. J. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mozilla

2003-10-16 Thread Chris W. Parker
Joseph Bannon mailto:[EMAIL PROTECTED] on Thursday, October 16, 2003 9:33 AM said: Your question isnt' clear. What is not clear about it? I'm trying to keep keep track of user agents with php. I think you mean to say Does the word 'mozilla' appear in the IE user agent string? And my

Re: [PHP] mozilla

2003-10-16 Thread John Nichel
Joseph Bannon wrote: Does IE use mozilla? I'm writing a PHP script to keep track of user agents. Your question isnt' clear. What is not clear about it? I'm trying to keep keep track of user agents with php. J. Then write some test scripts, or google. IE identifies as Mozilla because, and I

[PHP] php site

2003-10-16 Thread Lai, Kenny
hey, does anyone have any good links they use for their php references? i'd also like to know how most people approach coding php from an OOP standpoint -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mozilla

2003-10-16 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED] on Thursday, October 16, 2003 9:39 AM said: Then write some test scripts, or google. I used user agent strings and gosh darn it, look what I found!! (page is slow to load) http://www.pgts.com.au/pgtsj/pgtsj0208c.html Chris. p.s. Please properly strip

RE: [PHP] mozilla

2003-10-16 Thread Joseph Bannon
I think you mean to say Does the word 'mozilla' appear in the IE user agent string? That is not what I'm asking. I already know it appears there. But I already got my answer. Now my question is if IE doesn't use mozilla, why does it put it in the user agent? J. -- PHP General Mailing List

Re: [PHP] php site

2003-10-16 Thread Robert Cummings
On Thu, 2003-10-16 at 12:42, Lai, Kenny wrote: hey, does anyone have any good links they use for their php references? i'd also like to know how most people approach coding php from an OOP standpoint Not that I'm plugging for you to use InterJinn (though you can feel free) you can see how I

RE: [PHP] mozilla

2003-10-16 Thread Chris W. Parker
Joseph Bannon mailto:[EMAIL PROTECTED] on Thursday, October 16, 2003 9:47 AM said: I think you mean to say Does the word 'mozilla' appear in the IE user agent string? That is not what I'm asking. I already know it appears there. But I already got my answer. ok well then that proves my

RE: [PHP] mozilla

2003-10-16 Thread Joseph Bannon
Thanks John, you answered my question. J. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] nested require_once

2003-10-16 Thread Craig Lonsbury
Hi All, I just wanted to confirm that require_once works as I think it should, but the manual isn't too clear about nesting scripts (or i'm just thick =). What I think is/should be happening is that dbLib.ink is only included in index.php once, but when I run helperLib.php on its own, it has

Re: [PHP] mozilla

2003-10-16 Thread Chris Shiflett
--- Joseph Bannon [EMAIL PROTECTED] wrote: Does IE use mozilla? No. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] nested require_once

2003-10-16 Thread Chris W. Parker
Craig Lonsbury mailto:[EMAIL PROTECTED] on Thursday, October 16, 2003 9:45 AM said: I know this seems to be exactly what the whole 'once' part is about, but better safe than sorry. That is correct. It only includes the file once regardless of how many times the file is requested within the

Re: [PHP] How do you keep browser from timing out during lengthy process

2003-10-16 Thread Rory McKinley
James Courtesy of a site called Freshwater Software: To change the timeout value that Internet Explorer uses: 1. Start the Registry Editor 2. Go to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ InternetSettings 3. Select New DWORD from the Edit menu 4. Call it

Re: [PHP] Slow searches in large database

2003-10-16 Thread Cesar Cordovez
Manu, et al, The database in alenet.com is rather tiny (about 28 docs, as you mentioned). I developed the procedure for a intranet with some 5000 records. It is working fine. It has some 20+ clients that are constantly hitting the database. The server is a desktop (nothing out of the

Re: [PHP] Slow searches in large database

2003-10-16 Thread Cesar Cordovez
Curt, et al: You just described my procedure! I do exacly that, plus, I also save a soundex or metaphone code for each word so I can check spelling and closest matches. Cesar. Curt Zirzow wrote: Instead of just adding a word to table of words, you add a field that holds the qty of times it

Re: [PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread Jake McHenry
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 8:36 AM Subject: [PHP] Sessions.. (I'm learning), can't call a variable? Not sure if this is a MySQL Q. or a PHP one, but here goes... I'm just learning sessions... And I'm trying to

[PHP] Looking for a programmer designer to hire

2003-10-16 Thread Joseph Bannon
Are there any sites I can post a bid request for programmers and graphic designers? J. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Looking for a programmer designer to hire

2003-10-16 Thread Chris W. Parker
Joseph Bannon mailto:[EMAIL PROTECTED] on Thursday, October 16, 2003 11:22 AM said: Are there any sites I can post a bid request for programmers and graphic designers? I've seen requests posted to this list in the past and not heard anyone complain (that I can remember). So it should be

Re: [PHP] Looking for a programmer designer to hire

2003-10-16 Thread Dan Joseph
www.itmoonlighter.com -Dan Joseph Are there any sites I can post a bid request for programmers and graphic designers? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for a programmer designer to hire

2003-10-16 Thread John Nichel
Joseph Bannon wrote: Are there any sites I can post a bid request for programmers and graphic designers? J. There's Rent-A-Coder (http://www.rentacoder.com/RentACoder/default.asp) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Looking for a programmer designer to hire

2003-10-16 Thread Didier McGillis
I've asked for help and replied to help, but try and do the answer back off list. From: Chris W. Parker [EMAIL PROTECTED] To: Joseph Bannon [EMAIL PROTECTED],[EMAIL PROTECTED] Subject: RE: [PHP] Looking for a programmer designer to hire Date: Thu, 16 Oct 2003 11:26:55 -0700 Joseph Bannon

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread Scott Fletcher
IE just don't work depending on some of the IE's version because of the IE's countless bugs. So, a different method of controlling the data output to the browser is needed. That's when I use the fopen() stuffs and it solve the problem. It is evident by reduced customer's calling tech support

Re: [PHP] Looking for a programmer designer to hire

2003-10-16 Thread Brent Baisley
craigslist.org is a popular spot to post requests for projects, jobs or assistance. If you want official bidding and management assistance, eWork.com is a site I've used before as a bidder. On Thursday, October 16, 2003, at 02:21 PM, Joseph Bannon wrote: Are there any sites I can post a bid

[PHP] Alternative to die()????

2003-10-16 Thread Scott Fletcher
I am wondering if there is an better alternative to the die() because it prevent the HTML codes from being send to the browser, including some php echo codes with HTML in it. Thanks.. Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regular Expressions

2003-10-16 Thread Shmuel
Eugene Lee wrote: On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: : : I have a misspelled sentence like this: I am not aIone. : I want to change the capital I to small l, but only in : the beginning of a word. This doesn't make sense. It sounds like you want to replace every occurance

[PHP] Re: mozilla

2003-10-16 Thread Scott Fletcher
Later version of IE will display the Mozilla in the user agent coding So, PHP or JavaScript user agent stuffs is pretty useless Mozilla can also pretent to be a different browser, like Opera or IE, etc.. Scott F. Joseph Bannon [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Alternative to die()????

2003-10-16 Thread Chris Shiflett
--- Scott Fletcher [EMAIL PROTECTED] wrote: I am wondering if there is an better alternative to the die() because it prevent the HTML codes from being send to the browser, including some php echo codes with HTML in it. Please explain what you're wanting to do. This question makes as much sense

Re: [PHP] Alternative to die()????

2003-10-16 Thread Leif K-Brooks
Scott Fletcher wrote: I am wondering if there is an better alternative to the die() because it prevent the HTML codes from being send to the browser, including some php echo codes with HTML in it. If you don't want the page to end, don't use die at all. Simple as that. -- The above message is

Re: [PHP] Alternative to die()????

2003-10-16 Thread Robert Cummings
On Thu, 2003-10-16 at 14:44, Scott Fletcher wrote: I am wondering if there is an better alternative to the die() because it prevent the HTML codes from being send to the browser, including some php echo codes with HTML in it. You can use exit() Cheers, Rob. --

[PHP] Re: mozilla

2003-10-16 Thread Jay Smith
Joseph Bannon wrote: Does IE use mozilla? I'm writing a PHP script to keep track of user agents. J. Have you tried using the get_browser() function? Take a look at it, it'll make keeping track of user agents must easier. (It was recently given a facelift in PHP 4.3.3, so try to use that.

Re: [PHP] Regular Expressions

2003-10-16 Thread Eugene Lee
On Thu, Oct 16, 2003 at 09:41:39PM +0300, Shmuel wrote: : Eugene Lee wrote: : On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: : : : : I have a misspelled sentence like this: I am not aIone. : : I want to change the capital I to small l, but only in : : the beginning of a word. : : This

[PHP] PHP Date()ing logic.....

2003-10-16 Thread Ryan A
Hi, I'm just screwing around with the date() function and timestamps but have run into a little logic problem... So far (as you can see with the below posted code) I can manipulate days,hours and minutes...any idea on how to do months and years? Lastly the goal of this is to make take all the

[PHP] HTML output buffering

2003-10-16 Thread Robin Kopetzky
Good afternoon! Is there a simple way to have PHP buffer all HTML output via echo/print until the program flushes the output buffer?? Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] HTML output buffering

2003-10-16 Thread Chris Shiflett
--- Robin Kopetzky [EMAIL PROTECTED] wrote: Is there a simple way to have PHP buffer all HTML output via echo/print until the program flushes the output buffer?? Yes, output buffering: http://www.php.net/ob_start Hope that helps. Chris = My Blog http://shiflett.org/ HTTP

Re: [PHP] HTML output buffering

2003-10-16 Thread Mohamed Lrhazi
On Thu, 2003-10-16 at 15:50, Robin Kopetzky wrote: Good afternoon! Is there a simple way to have PHP buffer all HTML output via echo/print until the program flushes the output buffer?? http://us2.php.net/manual/en/ref.outcontrol.php -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] HTML output buffering

2003-10-16 Thread CPT John W. Holmes
From: Robin Kopetzky [EMAIL PROTECTED] Is there a simple way to have PHP buffer all HTML output via echo/print until the program flushes the output buffer?? You can buffer the output yourself using the output buffering functions. Is that what you're looking for? More info:

Re: [PHP] Looking for a programmer designer to hire

2003-10-16 Thread Bob Rea
At 02:35 PM 10/16/2003 -0400, Brent Baisley wrote: craigslist.org is a popular spot to post requests for projects, jobs or assistance. If you want official bidding and management assistance, eWork.com is a site I've used before as a bidder. www.webhostingtalk.com has specific forums for

Re: [PHP] HTML output buffering

2003-10-16 Thread Marek Kilimajer
Yes! And surprisingly it is called output buffering. Search the manual before you post. Robin Kopetzky wrote: Good afternoon! Is there a simple way to have PHP buffer all HTML output via echo/print until the program flushes the output buffer?? Robin 'Sparky' Kopetzky Black Mesa

RE: [PHP] HTML output buffering

2003-10-16 Thread Robin Kopetzky
Thank you for responding - Doh! I didn't look before leaping Oh, boy... Sparky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] converting GET to POST

2003-10-16 Thread Kris Yates
Currently, I am posting via GET to third party server as seen below: $item=urlencode($item); header(Location: https://www.fake.com/fake.php?item=$item;); I want to reconfigure my header calls to POST instead of using GET for sending $item to third party server. Is this doable? Thank you,

Re: [PHP] converting GET to POST

2003-10-16 Thread Chris Shiflett
--- Kris Yates [EMAIL PROTECTED] wrote: Currently, I am posting via GET to third party server as seen below: $item=urlencode($item); header(Location: https://www.fake.com/fake.php?item=$item;); I want to reconfigure my header calls to POST instead of using GET for sending $item to

[PHP] intercepting URLs in a control-system

2003-10-16 Thread Alan Lord
Please forgive any obvious ignorances on my part, I am just learning PHP... Having read quite a bit on-line, I am interested in trying to trap URLs sent to my site so I can process the request and respond without neccessarily having a real page to serve. If this makes any sense, how do I do it?

Re: [PHP] converting GET to POST

2003-10-16 Thread Marek Kilimajer
You can do it this way: form action=https://www.fake.com/fake.php; input type=hidden name=item value=?= $item ? input type=submit /form Kris Yates wrote: Currently, I am posting via GET to third party server as seen below: $item=urlencode($item); header(Location:

Re: [PHP] Regular Expressions

2003-10-16 Thread Curt Zirzow
* Thus wrote Shmuel ([EMAIL PROTECTED]): Eugene Lee wrote: On Thu, Oct 16, 2003 at 03:35:57PM +0300, Shmuel wrote: : : I have a misspelled sentence like this: I am not aIone. : I want to change the capital I to small l, but only in : the beginning of a word. This doesn't make sense. It

Re: [PHP] intercepting URLs in a control-system

2003-10-16 Thread Ray Hunter
Having read quite a bit on-line, I am interested in trying to trap URLs sent to my site so I can process the request and respond without neccessarily having a real page to serve. If this makes any sense, how do I do it? Because I expect that apache (in my case) would not like a URL that

Re: [PHP] Alternative to die()????

2003-10-16 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Scott Fletcher [EMAIL PROTECTED] wrote: I am wondering if there is an better alternative to the die() because it prevent the HTML codes from being send to the browser, including some php echo codes with HTML in it. Please explain what

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread John Herren
OK, here's a different problem. If I call a pdf file directly, the Acrobat plugin begins to display the file almost immediately. Here is the reponse header for calling the file directly: HTTP/1.1 200 OK Date: Thu, 16 Oct 2003 20:41:28 GMT Server: Apache/1.3.27 (Unix) (Red-Hat/Linux)

RE: [PHP] intercepting URLs in a control-system

2003-10-16 Thread Chris W. Parker
Alan Lord mailto:[EMAIL PROTECTED] on Thursday, October 16, 2003 1:40 PM said: Having read quite a bit on-line, I am interested in trying to trap URLs sent to my site so I can process the request and respond without neccessarily having a real page to serve. If this makes any sense, how do

Re: [PHP] php site

2003-10-16 Thread Becoming Digital
The object-oriented design is part of why I like InterJinn so much. Edward Dudlik Those who say it cannot be done should not interrupt the person doing it. wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Lai, Kenny

Re: [PHP] intercepting URLs in a control-system

2003-10-16 Thread Marek Kilimajer
Another option besides mod_rewrite is ErrorDocument directive in .htaccess: ErrorDocument 404 404.php In 404.php you trap the request, url will be in $_SERVER['REQUEST_URI'] Alan Lord wrote: Please forgive any obvious ignorances on my part, I am just learning PHP... Having read quite a bit

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread Curt Zirzow
* Thus wrote John Herren ([EMAIL PROTECTED]): header(Content-Type: application/pdf); header(Accept-Ranges: bytes); header(Content-Length: .filesize($thefile)); readfile($thefile); Can anybody tell me why the browser is waiting for the entire file before it's displayed(using php)? I

Re: [PHP] converting GET to POST

2003-10-16 Thread Lee Doolan
Marek == Marek Kilimajer [EMAIL PROTECTED] writes: Kris == Kris Yates writes: Marek You can do it this way: Marek form action=https://www.fake.com/fake.php; Marek input type=hidden name=item value=?= $item ? Marek input type=submit Marek /form Actually, I think that if you

Re: [PHP] converting GET to POST

2003-10-16 Thread John Nichel
Lee Doolan wrote: Marek == Marek Kilimajer [EMAIL PROTECTED] writes: Kris == Kris Yates writes: Marek You can do it this way: Marek form action=https://www.fake.com/fake.php; Marek input type=hidden name=item value=?= $item ? Marek input type=submit Marek /form Actually, I

Re: [PHP] Finally, PDF Header for PDF stuffs that work....

2003-10-16 Thread John Herren
Curt Zirzow wrote: * Thus wrote John Herren ([EMAIL PROTECTED]): header(Content-Type: application/pdf); header(Accept-Ranges: bytes); header(Content-Length: .filesize($thefile)); readfile($thefile); Can anybody tell me why the browser is waiting for the entire file before it's displayed(using

Re: [PHP] converting GET to POST

2003-10-16 Thread Marek Kilimajer
Lee Doolan wrote: Actually, I think that if you do it this way, someone will have to click on the submit button. If you want to redirect with a post, then look in to using the CURL library. Kris wants to redirect the user so CURL library would not work for this. -- PHP General Mailing List

Re: [PHP] where is my session data on my new server?

2003-10-16 Thread David T-G
Mike -- ...and then Ford, Mike [LSS] said... % % On 14 October 2003 14:45, David T-G wrote: % % ...and then Ford, Mike [LSS] said... % % % % On 14 October 2003 11:26, David T-G wrote: % % % % I ran a phpinfo() comparison and didn't see anything markedly ... %

Re: [PHP] PHP Date()ing logic.....

2003-10-16 Thread Becoming Digital
If you want to manipulate months in this manner, you'll first need a month input box. Once you've got that covered, it's just a matter of using mktime() to create the appropriate date. Edward Dudlik Those who say it cannot be done should not interrupt the person doing it. wishy washy |

[PHP] error reporting

2003-10-16 Thread Richard Baskett
If I use: ini_set(error_reporting, 0); ini_set(display_errors, 0); It still shows the errors.. if I use the error_reporting function.. it still shows the errors, no matter what I do.. it still shows the errors! What am I missing? I have it set in the php,ini to show errors, but I want to be

Re: [PHP] error reporting

2003-10-16 Thread John W. Holmes
Richard Baskett wrote: If I use: ini_set(error_reporting, 0); ini_set(display_errors, 0); It still shows the errors.. if I use the error_reporting function.. it still shows the errors, no matter what I do.. it still shows the errors! What am I missing? I have it set in the php,ini to show

Re: [PHP] error reporting

2003-10-16 Thread Richard Baskett
on 10/16/03 16:51, John W. Holmes at [EMAIL PROTECTED] wrote: Richard Baskett wrote: If I use: ini_set(error_reporting, 0); ini_set(display_errors, 0); It still shows the errors.. if I use the error_reporting function.. it still shows the errors, no matter what I do.. it still shows the

[PHP] imageloadfont() broken?

2003-10-16 Thread Paul
Ok ive spent numerous hours trying to just find one working example of imageloadfont() and i have yet to come across one. Right now im at about the point to hack apart the gd source code to change one of their built in fonts. but id rather not do that. So exactly how does imageloadfont() work,

  1   2   >