Re: [PHP] Question about set_time_out and shell_exec

2006-05-29 Thread Richard Lynch
On Wed, May 24, 2006 11:26 am, Suhas wrote: I am trying to write a script which will avoid browser timeout problem and in that process I have created 2 files FILE1.php: set_time_out(1); echo shell_exec(/usr/local/bin/php -f FILE2.php ); FILE2.php: @mail($to,$sub,$msg); sleep(60);

[PHP] Question about set_time_out and shell_exec

2006-05-24 Thread Suhas
Hi, I am trying to write a script which will avoid browser timeout problem and in that process I have created 2 files FILE1.php: set_time_out(1); echo shell_exec(/usr/local/bin/php -f FILE2.php ); FILE2.php: @mail($to,$sub,$msg); sleep(60); @mail($to,$sub,$msg); I run File1.php thr' browser

Re: [PHP] Question about set_time_out and shell_exec

2006-05-24 Thread Rabin Vincent
On 5/24/06, Suhas [EMAIL PROTECTED] wrote: Hi, I am trying to write a script which will avoid browser timeout problem and in that process I have created 2 files FILE1.php: set_time_out(1); echo shell_exec(/usr/local/bin/php -f FILE2.php ); FILE2.php: @mail($to,$sub,$msg); sleep(60);

[PHP] Question about templates

2006-05-16 Thread Charlene Wroblewski
I have been using template.inc for templates. It works very well so that I can just work on coding and a designer can make the page look good. But I noticed that there are several versions (some of which don't seem to work), and its no longer in the phplib. Is there some reason not to use

Re: [PHP] Question about templates

2006-05-16 Thread Kevin Waterson
This one time, at band camp, Charlene Wroblewski [EMAIL PROTECTED] wrote: looked at Smarty and it doesn't seem to be as useful the way I'm using templates. I'm not surprised, 1000 lines of code to do hello world Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch.

Re: [PHP] Question about templates

2006-05-16 Thread Brian Anderson
Sure if all you are writing is a hello world page, but if you are writing out an application that is more complex, wouldn't the savings and managability be beneficial enough to justify? ... code reusability ... Don't ya think? Why is it easier to do something like this: echo 'table'; echo

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-11 Thread Robin Vickery
On 11/05/06, Jochem Maas [EMAIL PROTECTED] wrote: Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2

[PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Ginger Cheng
Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2 file2) final_file It works perfectly well if I just

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Joe Henry
On Wednesday 10 May 2006 4:02 pm, Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2 file2)

Re: [PHP] question about using temporary named pipe in the string for system

2006-05-10 Thread Jochem Maas
Ginger Cheng wrote: Hello, PHP gurus, I have a command that I want to run using system function. The command exploits temporary named pipes in the place of temporary files. my command is paste (cut -f1 file1) (cut -f2 file2) final_file It works perfectly

Re: [PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-09 Thread Richard Lynch
That is incorrect. There *IS* a setting for another magic_quotes_runtime, which will do addslashes to all data coming FROM the database. That's a particularly silly setting UNLESS your entire application consists of taking date out of one database and shoving it into another database -- which

[PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-08 Thread jonathan
I have a server where magic_quotes_gpc is set to On. It's my understanding that this should add slashes to something like Joe's so that it's Joe\'s but when I look in the db, it is in there as Joe's. This doesn't seem like it should be the anticipated behavior. Is there another setting in

Re: [PHP] question about magic_quotes_gpc not adding slashes into $_GET

2006-04-08 Thread Richard Lynch
On Sat, April 8, 2006 7:49 pm, jonathan wrote: I have a server where magic_quotes_gpc is set to On. It's my understanding that this should add slashes to something like Joe's so that it's Joe\'s but when I look in the db, it is in there as Joe's. This doesn't seem like it should be the

Re: [PHP] question about foreach and associate array

2006-02-21 Thread Jochem Maas
jonathan wrote: I have the following construct: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row['body'].br/; $row contains the _string_ 'Hello'. the thing is you can use array-like notation to get at the individual chars of a

Re: [PHP] question about foreach and associate array

2006-02-21 Thread Richard Lynch
On Mon, February 20, 2006 8:57 pm, jonathan wrote: I have the following construct: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row['body'].br/; echo $arg['textarea']['body'].br/; } I would expect both of them

Re: [PHP] question about foreach and associate array

2006-02-20 Thread Chris
jonathan wrote: I have the following construct: $arg['textarea']['body']=Hello; foreach($arg['textarea'] as $row) { echo $row['body'].br/; echo $arg['textarea']['body'].br/; } I would expect both of them to output Hello but only the second does.

RE: [PHP] question about foreach and associate array

2006-02-20 Thread Peter Lauri
['body']. $row[1]. $row[1]. $row[2]. $row[3]. $row[4]; It will probably echo Hello for you :) /Peter -Original Message- From: jonathan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 21, 2006 9:58 AM To: php-general@lists.php.net Subject: [PHP] question about foreach and associate array

[PHP] Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me) function my_func( $param, $line =

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread David Grant
Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Thank you very much David Andrei David Grant wrote: Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 6:20 am, Andrei wrote: For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me)

[PHP] Question about Thumbnailing, Watermarking, and Modifying images/video/flash dynamicly

2006-01-22 Thread Jon Grimes
I'm currently working on a media based site that serves up user submitted videos/images/flash games/etc. The owner wants an easy way to generate thumbnails for the content so that we don't have to depend on the user to submit one. We would also like to attach a small intro clip to the video

Re: [PHP] question about compositing objects

2006-01-13 Thread Richard Lynch
On Thu, January 12, 2006 4:13 pm, jonathan wrote: I have a class which creates another class within it such as: class Loc{ public function outputInfo() { $map=new Map(); $map-setKey(); } } In my main page can I access the $map object like this: $loc=new Loc();

Re: [PHP] question about compositing objects

2006-01-12 Thread Tim Boring
Hi, Jonathan! On Thu, 2006-01-12 at 14:13 -0800, jonathan wrote: I have a class which creates another class within it such as: class Loc{ public function outputInfo() { $map=new Map(); $map-setKey(); } } In my main page can I access the

Re: [PHP] question about compositing objects

2006-01-12 Thread comex
$map=new Map(); $this-map = new Map(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about compositing objects

2006-01-12 Thread Aaron Koning
$map is not a member variable of the Loc class in your code... Instead do this: class Loc { // Defines a member variable var $map; // Constructor function Loc() { $this-map = new Map(); // Create map object and save to Loc object $this-map-setKey(); } } $loc = new Loc();

[PHP] Question about Request.php

2005-12-01 Thread Danilo Azevedo
Hi, my name is Danilo, i am from Brazil I need your assistence with a code made by your self, if you are not too busy :P I am using PHP/XML with your request.php file, but i cant get some attributes from a Tag, everything is working fine, but it :( The Tag name is RUA and have some attributes that

Re: [PHP] Question about Request.php

2005-12-01 Thread jonathan
do a: print_r($_REQUEST) on the php page. if nothing, things aren't configured correctly or you aren't passing in variables correctly. On Dec 1, 2005, at 12:15 PM, Danilo Azevedo wrote: Hi, my name is Danilo, i am from Brazil I need your assistence with a code made by your self, if you

Re: [PHP] Question about session

2005-11-14 Thread Richard Lynch
On Fri, November 11, 2005 7:09 pm, Bagus Nugroho wrote: I have session code which written WindowsXP and It wotk properly as expected, but when I'm used in Windows 2K, it got error as; Notice: Undefined index: loginMessage in C:\CentralData\forms\mainForm.php on line 65 I'am used Apache 2.0

[PHP] Question about session

2005-11-11 Thread Bagus Nugroho
I have session code which written WindowsXP and It wotk properly as expected, but when I'm used in Windows 2K, it got error as; Notice: Undefined index: loginMessage in C:\CentralData\forms\mainForm.php on line 65 I'am used Apache 2.0 and PHP 5.0.4. Is php.ini setting on W2K different with XP

Re: [PHP] Question about session

2005-11-11 Thread Esteamedpw
There's no code. You need to put your code in the Email so we can see it...

RE: [PHP] Question about session

2005-11-11 Thread Bagus Nugroho
poblem was solved by add session_register function before $_SESSION[blablabla]; From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sat 12-Nov-2005 09:50 To: Bagus Nugroho; php-general@lists.php.net Subject: Re: [PHP] Question about session There's

[PHP] Question about including files and server load

2005-10-14 Thread Jay Paulson
I just started working with a new company and they handed me some of their php code for me to look over. I noticed that they have a TON of include files being called into their scripts. For example, instead of having one file called functions.php and then having all their functions in that one

Re: [PHP] Question about including files and server load

2005-10-14 Thread Richard Davey
Hi Jay, Friday, October 14, 2005, 2:21:57 PM, you wrote: I was wondering isn't this putting a bigger load on a server by including so many files for each function? Also, I was wondering what everyone's opinion was on this approach in terms of maintenance. Do you think it's better practice to

Re: [PHP] Question about including files and server load

2005-10-14 Thread Edward Vermillion
Richard Davey wrote: Hi Jay, Friday, October 14, 2005, 2:21:57 PM, you wrote: I was wondering isn't this putting a bigger load on a server by including so many files for each function? Also, I was wondering what everyone's opinion was on this approach in terms of maintenance. Do you think

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-30 Thread Stut
xfedex wrote: I did the Rasmus' 30 second AJAX Tutorial just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single input and for every keystroke (calling the javascript function with onkeyup) the value of the input is parsed

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-30 Thread Jochem Maas
xfedex wrote: Hi, I did the Rasmus' 30 second AJAX Tutorial just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single input and for every keystroke (calling the javascript function with onkeyup) the value of the input is

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-30 Thread xfedex
On 9/30/05, Jochem Maas [EMAIL PROTECTED] wrote: I'm guessing that trhe onclick and onsumbit handlers you set are hanging on a 'submit' type input? .. if so the form is submitting - in whcih case the AJAX request will arrive back at your page - and the page won't be there (so to speak). try

[PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-29 Thread xfedex
Hi, I did the Rasmus' 30 second AJAX Tutorial just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single input and for every keystroke (calling the javascript function with onkeyup) the value of the input is parsed by another

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-29 Thread Robert Cummings
On Thu, 2005-09-29 at 22:46, xfedex wrote: Hi, I did the Rasmus' 30 second AJAX Tutorial just for testing and everything works fine, by the way... thanks Rasmus, for this and for all !!. My little script have a single input and for every keystroke (calling the javascript function with

Re: [PHP] Question about Rasmus' 30 second AJAX Tutorial

2005-09-29 Thread xfedex
On 9/29/05, Robert Cummings [EMAIL PROTECTED] wrote: Aside from using ajax to clean the toilet once in a while I'm not really into it. But I do wrangle out some javascript from time to time :) Why are you using onsubmit? Wouldn't onclick work better? Cheers, Rob. Hi Robert, I also try

[PHP] Learning PHP - question about hidden form fields

2005-09-07 Thread Iggep
Hey all! I sat down and started learning PHP today and ran into a bit of a spot. Hoped someone here could lead me in the right direction. I created a simple test form called form.php. I thought I had this strait in my mind when I created it, but obviously it didn't work. All I want to do

Re: [PHP] Learning PHP - question about hidden form fields

2005-09-07 Thread James Kaufman
On Wed, Sep 07, 2005 at 06:47:28PM -0400, Iggep wrote: Hey all! I sat down and started learning PHP today and ran into a bit of a spot. Hoped someone here could lead me in the right direction. I created a simple test form called form.php. I thought I had this strait in my mind when I

RE: [PHP] Learning PHP - question about hidden form fields

2005-09-07 Thread bruce
@lists.php.net Subject: [PHP] Learning PHP - question about hidden form fields Hey all! I sat down and started learning PHP today and ran into a bit of a spot. Hoped someone here could lead me in the right direction. I created a simple test form called form.php. I thought I had this strait in my mind

Re: [PHP] Learning PHP - question about hidden form fields

2005-09-07 Thread Iggep
Wanted to thank the handful of you who wrote me with some hints. I really appreciate the guidance. :) The test form is working like a champ. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question about Windows Installation

2005-08-19 Thread JM
after you make changes restart iis. btw apache works fine in this scenario too. if the extensions still dont work then look for the dll's make sure they are even installed for php/webserver to use On 8/19/05, JM [EMAIL PROTECTED] wrote: You are talking about a few issues. 1. turn on /

[PHP] Question about exec() call an CLI php script from Apache CGI/filter module PHP

2005-07-28 Thread Liang ZHONG
I call red.php through apache http request, and red.php make exec('./s.php') call, then I got bunch of s.php processes, and system locked me out any task due to no more processes available. Why this would happen? marvin:~/liang.ns2user.info/php less red.php ?php ignore_user_abort(true);

RE: [PHP] Question about exec() call an CLI php script from Apache CGI/filter module PHP

2005-07-28 Thread Liang ZHONG
I forgot to mention that calling from shell directly s.php runs correctly. ~ marvin:~/liang.ns2user.info/php ./s.php This is a PHP-CLI Script!!0123456789 ~ The php configuration of this site is: http://liang.ns2user.info/php/info.php Thank you

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Liang ZHONG
Thank you Richard, I think I'd better explain a little about the project and then you or somebody else might give some good suggestion upon the restrictions of the project. The project is to implement a digital library protocol, called oai_pmh

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Rasmus Lerdorf
Read this chapter of the manual: http://www.php.net/manual/en/features.connection-handling.php Liang ZHONG wrote: I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the program: ?php

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Richard Lynch
On Tue, July 19, 2005 5:32 am, Liang ZHONG said: It sounds interesting. But since I am pretty new to PHP, I have some questions, naive maybe, about what you wrote. #!/bin/sh\n/path/to/script/Send.php 12 \n What does the Send.php look like? I do not have idea how a shell interprets an php

Re: [PHP] Question about apache-php concurrent process control

2005-07-21 Thread Liang ZHONG
I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the program: ?php do_A(); header(Location: .$result_of_do_A); do_B(); ? Since it takes do_B() quite a while to finish, so I want the

Re: [PHP] Question about apache-php concurrent process control

2005-07-21 Thread Robert Cummings
http://ca.php.net/manual/en/function.register-shutdown-function.php Cheers, Rob. On Thu, 2005-07-21 at 23:40, Liang ZHONG wrote: I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the

Re: [PHP] Question about apache-php concurrent process control

2005-07-21 Thread Richard Lynch
On Thu, July 21, 2005 8:40 pm, Liang ZHONG said: I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the program: ?php do_A(); header(Location: .$result_of_do_A); Depending on the

Re: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Liang ZHONG
Thank you Rouvas, I never used the tools you mentioned. But I will definitely give them a try. I wrote a perl script using LWP as an http user agent. and the timing function you suggested. It works well. I am new to this forum, and new to PHP. It seems Rasmus is famous, and I should have

RE: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Shaw, Chris - Accenture
snipIt seems Rasmus is famous, and I should have shown my respect./snip history src = 'php_manual_en.chm' PHP succeeds an older product, named PHP/FI. PHP/FI was created by Rasmus Lerdorf in 1995, initially as a simple set of Perl scripts for tracking accesses to his online resume. He named this

Re: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Liang ZHONG
Hi André, It sounds interesting. But since I am pretty new to PHP, I have some questions, naive maybe, about what you wrote. #!/bin/sh\n/path/to/script/Send.php 12 \n What does the Send.php look like? I do not have idea how a shell interprets an php script and what the parameter 12 means

RE: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Liang ZHONG
Can somebody here help me to delete my message? People who read this must be laughing at me. :) snipIt seems Rasmus is famous, and I should have shown my respect./snip history src = 'php_manual_en.chm' PHP succeeds an older product, named PHP/FI. PHP/FI was created by Rasmus Lerdorf in

Re: [PHP] Question about apache-php concurrent process control

2005-07-17 Thread André Medeiros
I did something like that for a newsletter sending script. Basiclly, I had two scripts: a) AddEdit.php that would list the newsletter's items and allow it to send b) Send.php that was a script I ran on the background When pressed Send on AddEdit, it would do something like $tempName = tempnam(

Re: [PHP] Question about apache-php concurrent process control

2005-07-16 Thread rouvas
Hi Liang, trying to get conclusive results with browsers is futile. Use a command-line tool (like curl) to invoke the web pages and get the results. Or you can use PHP's own function to query the web server and do your own timing with microtime() function or another suitable for your purposes.

Re: [PHP] Question about apache-php concurrent process control

2005-07-16 Thread Rory Browne
On 7/16/05, rouvas [EMAIL PROTECTED] wrote: Hi Liang, trying to get conclusive results with browsers is futile. Use a command-line tool (like curl) to invoke the web pages and get the results. Or you can use Although personally I think that telnet-to-port-80 would be a better idea, in this

[PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang
I am a programmer and new to php. I wonder what process control can php interpreter do for multithreading . I notice that through http request, php interpreter can execute 2 php programs simataneously, but will only sequentially queued and execute if I try to execute one php code in the same

[PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
I am a programmer and new to php. I wonder what process control can php interpreter do for multithreading . I notice that through http request, php interpreter can execute 2 php programs simataneously, but will only sequentially queued and execute if I try to execute one php code in the same

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Rasmus Lerdorf
Liang wrote: I am a programmer and new to php. I wonder what process control can php interpreter do for multithreading . I notice that through http request, php interpreter can execute 2 php programs simataneously, but will only sequentially queued and execute if I try to execute one php

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
thing. Or 2 php interpreter processes process one php program sepreately without interfer with each other. Hope I have explained myself clearly. Thank you. From: Rasmus Lerdorf [EMAIL PROTECTED] To: Liang [EMAIL PROTECTED] CC: php-general@lists.php.net Subject: Re: [PHP] Question about

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Rasmus Lerdorf
Liang ZHONG wrote: As I know, apache-php works this way. When the web server gets an http request with file name extension .php, it will start the php interpreter to process the php file. Now I have a php program does something like this: when it is executing with one parameter p1, the

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
Could you please explain it a little bit more? I did test this way. The code is the same for a.php and b.php ?php sleep(20); print Done. br /; ? I place request from 2 browser windows. First time, I placed with http://baseURL/a.php with both 2 browsers, starting times have 5

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Rasmus Lerdorf
Liang ZHONG wrote: Could you please explain it a little bit more? I did test this way. The code is the same for a.php and b.php ?php sleep(20); print Done. br /; ? I place request from 2 browser windows. First time, I placed with http://baseURL/a.php with both 2

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
Hi Rasmus, You are right. It was the problem with the browser. I used Mozilla Firefox to try, and do not know what consideration it just serialized the identical url http requests. I then turned to use 2 IE 6.0 windows, 2 tabs within Maxthon browser, one IE windows and one Firefox, to test.

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Jasper Bryant-Greene
Kevin L'Huillier wrote: On 27/06/05, Dr. Brad Lustick [EMAIL PROTECTED] wrote: I'm a novice trying to understand the exact construction of code for doing an HTTP 301 permanent redirect for a server coded in PHP. Could someone please tell me how I would handle the following example? In your

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Jochem Maas
Jasper Bryant-Greene wrote: Kevin L'Huillier wrote: On 27/06/05, Dr. Brad Lustick [EMAIL PROTECTED] wrote: I'm a novice trying to understand the exact construction of code for doing an HTTP 301 permanent redirect for a server coded in PHP. Could someone please tell me how I would handle the

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Jasper Bryant-Greene
Jochem Maas wrote: header('HTTP/1.1 301 Moved Permanently'); also consider that using 'Status' may be better or possibly both to cover you bases, e.g.: ?php header(HTTP/1.1 301 Moved Permanently); header(Status: 301 Moved Permanently); ? Waste of time. Go read the HTTP

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Marek Kilimajer
Jasper Bryant-Greene wrote: Jochem Maas wrote: header('HTTP/1.1 301 Moved Permanently'); also consider that using 'Status' may be better or possibly both to cover you bases, e.g.: ?php header(HTTP/1.1 301 Moved Permanently); header(Status: 301 Moved Permanently); ? Waste of

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Jochem Maas
Jasper Bryant-Greene wrote: Jochem Maas wrote: header('HTTP/1.1 301 Moved Permanently'); also consider that using 'Status' may be better or possibly both to cover you bases, e.g.: ?php header(HTTP/1.1 301 Moved Permanently); header(Status: 301 Moved Permanently); ? Waste of

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Andy Pieters
Hi Actually you can get away with this: header(Location: $url,301); This will let php generate the proper headers Also, and I stress this point (again and again), the http specification clearly states that location headers need to have a *fully qualified url* not a site-specific one.

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Andy Pieters
On Wednesday 29 June 2005 00:31, Andy Pieters wrote: Hi Actually you can get away with this: header(Location: $url,301); Well it looks like we all make typos Header(Location: $url,true,301); is more like it This will let php generate the proper headers Also, and I stress this point

[PHP] Question about HTTP 301 permanent redirects

2005-06-27 Thread Dr. Brad Lustick
Hi, I'm a novice trying to understand the exact construction of code for doing an HTTP 301 permanent redirect for a server coded in PHP. Could someone please tell me how I would handle the following example? http://www.nimblepedic.com/services-bodytools.php?i=bodytools WANT TO DO A HTTP 301

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-27 Thread Kevin L'Huillier
On 27/06/05, Dr. Brad Lustick [EMAIL PROTECTED] wrote: I'm a novice trying to understand the exact construction of code for doing an HTTP 301 permanent redirect for a server coded in PHP. Could someone please tell me how I would handle the following example?

[PHP] question about system function call

2005-06-16 Thread Tom Cruickshank
Hello, I'm trying to do the following in php. system(/usr/bin/smbutil -v view //[EMAIL PROTECTED]) to be able to view some shares folders on a server. Unfortunately, if I use this command in console, I get prompted for a password. Is there a way in php to wait for a password and enter it

Re: [PHP] question about system function call

2005-06-16 Thread Richard Lynch
On Thu, June 16, 2005 2:43 pm, Tom Cruickshank said: I'm trying to do the following in php. system(/usr/bin/smbutil -v view //[EMAIL PROTECTED]) to be able to view some shares folders on a server. Unfortunately, if I use this command in console, I get prompted for a password. Is

Re: [PHP] Question about acessing databases and formatting output

2005-05-10 Thread The Doctor
On Mon, May 09, 2005 at 10:41:22PM +0530, bala chandar wrote: On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:19:47PM +0530, bala chandar wrote: Hi, On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:29:34AM +0530, bala chandar

Re: [PHP] Question about acessing databases and formatting output

2005-05-09 Thread The Doctor
On Mon, May 09, 2005 at 08:29:34AM +0530, bala chandar wrote: On 5/9/05, bala chandar [EMAIL PROTECTED] wrote: Hi On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Sun, May 08, 2005 at 01:49:08PM -0600, The Doctor wrote: On Sun, May 08, 2005 at 08:56:25PM +0530, bala chandar wrote:

Re: [PHP] Question about acessing databases and formatting output

2005-05-09 Thread bala chandar
Hi, On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:29:34AM +0530, bala chandar wrote: On 5/9/05, bala chandar [EMAIL PROTECTED] wrote: Hi On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Sun, May 08, 2005 at 01:49:08PM -0600, The Doctor wrote: On

Re: [PHP] Question about acessing databases and formatting output

2005-05-09 Thread The Doctor
On Mon, May 09, 2005 at 08:19:47PM +0530, bala chandar wrote: Hi, On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:29:34AM +0530, bala chandar wrote: On 5/9/05, bala chandar [EMAIL PROTECTED] wrote: Hi On 5/9/05, The Doctor [EMAIL PROTECTED] wrote:

Re: [PHP] Question about acessing databases and formatting output

2005-05-09 Thread bala chandar
On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:19:47PM +0530, bala chandar wrote: Hi, On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Mon, May 09, 2005 at 08:29:34AM +0530, bala chandar wrote: On 5/9/05, bala chandar [EMAIL PROTECTED] wrote: Hi

Re: [PHP] Question about acessing databases and formatting output

2005-05-08 Thread The Doctor
On Thu, May 05, 2005 at 05:49:38AM -0600, The Doctor wrote: On Thu, May 05, 2005 at 10:11:14AM +0530, bala chandar wrote: hi, On 5/5/05, The Doctor [EMAIL PROTECTED] wrote: This is probably easy, but how does one access a database, mysql or oracle or postgresql, and present the

Re: [PHP] Question about acessing databases and formatting output

2005-05-08 Thread bala chandar
On 5/8/05, The Doctor [EMAIL PROTECTED] wrote: On Thu, May 05, 2005 at 05:49:38AM -0600, The Doctor wrote: On Thu, May 05, 2005 at 10:11:14AM +0530, bala chandar wrote: hi, On 5/5/05, The Doctor [EMAIL PROTECTED] wrote: This is probably easy, but how does one access a database,

Re: [PHP] Question about acessing databases and formatting output

2005-05-08 Thread The Doctor
On Sun, May 08, 2005 at 08:56:25PM +0530, bala chandar wrote: On 5/8/05, The Doctor [EMAIL PROTECTED] wrote: On Thu, May 05, 2005 at 05:49:38AM -0600, The Doctor wrote: On Thu, May 05, 2005 at 10:11:14AM +0530, bala chandar wrote: hi, On 5/5/05, The Doctor [EMAIL PROTECTED]

Re: [PHP] Question about acessing databases and formatting output

2005-05-08 Thread The Doctor
On Sun, May 08, 2005 at 01:49:08PM -0600, The Doctor wrote: On Sun, May 08, 2005 at 08:56:25PM +0530, bala chandar wrote: On 5/8/05, The Doctor [EMAIL PROTECTED] wrote: On Thu, May 05, 2005 at 05:49:38AM -0600, The Doctor wrote: On Thu, May 05, 2005 at 10:11:14AM +0530, bala chandar

Re: [PHP] Question about acessing databases and formatting output

2005-05-08 Thread bala chandar
Hi On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Sun, May 08, 2005 at 01:49:08PM -0600, The Doctor wrote: On Sun, May 08, 2005 at 08:56:25PM +0530, bala chandar wrote: On 5/8/05, The Doctor [EMAIL PROTECTED] wrote: On Thu, May 05, 2005 at 05:49:38AM -0600, The Doctor wrote: On

Re: [PHP] Question about acessing databases and formatting output

2005-05-08 Thread bala chandar
On 5/9/05, bala chandar [EMAIL PROTECTED] wrote: Hi On 5/9/05, The Doctor [EMAIL PROTECTED] wrote: On Sun, May 08, 2005 at 01:49:08PM -0600, The Doctor wrote: On Sun, May 08, 2005 at 08:56:25PM +0530, bala chandar wrote: On 5/8/05, The Doctor [EMAIL PROTECTED] wrote: On Thu, May

Re: [PHP] Question about acessing databases and formatting output

2005-05-05 Thread The Doctor
On Thu, May 05, 2005 at 10:11:14AM +0530, bala chandar wrote: hi, On 5/5/05, The Doctor [EMAIL PROTECTED] wrote: This is probably easy, but how does one access a database, mysql or oracle or postgresql, and present the data in a tabular format? -- Member - Liberal International

[PHP] Question about acessing databases and formatting output

2005-05-04 Thread The Doctor
This is probably easy, but how does one access a database, mysql or oracle or postgresql, and present the data in a tabular format? -- Member - Liberal International This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] God Queen and country! Beware Anti-Christ rising! UK as 5 May 2005

Re: [PHP] Question about acessing databases and formatting output

2005-05-04 Thread bala chandar
hi, On 5/5/05, The Doctor [EMAIL PROTECTED] wrote: This is probably easy, but how does one access a database, mysql or oracle or postgresql, and present the data in a tabular format? -- Member - Liberal International This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] God Queen and

Re: [PHP] Question about fsockopen

2005-04-11 Thread Hans Juergen von Lengerke
Date: Sun, 10 Apr 2005 08:00:23 - (UTC) From: [EMAIL PROTECTED] I have several IP in one interface (eth0) in my server and I want make connection to another server (check email, etc) using different ip for every mail server. I was read the document, and there is no way how to make this

Re: [PHP] Question about fsockopen

2005-04-11 Thread Richard Lynch
On Sun, April 10, 2005 1:00 am, [EMAIL PROTECTED] said: I have several IP in one interface (eth0) in my server and I want make connection to another server (check email, etc) using different ip for every mail server. I was read the document, and there is no way how to make this happen. Any

[PHP] Question about fsockopen

2005-04-10 Thread php
Dear list, I have several IP in one interface (eth0) in my server and I want make connection to another server (check email, etc) using different ip for every mail server. I was read the document, and there is no way how to make this happen. Any idea? Thank you -- PHP General Mailing List

Re: [PHP] Question about fsockopen

2005-04-10 Thread Josip Dzolonga
[EMAIL PROTECTED] wrote: Dear list, I have several IP in one interface (eth0) in my server and I want make connection to another server (check email, etc) using different ip for every mail server. I was read the document, and there is no way how to make this happen. Any idea? Thank you Take a

Re: [PHP] Question about fsockopen

2005-04-10 Thread php
Dear lists, I have tested it but it's not what I want to do. I am looking for any method to make multi connection with many ip from my box to download email from different mailserver. Thank you David T [EMAIL PROTECTED] wrote: Dear list, I have several IP in one interface (eth0) in my

Re: [PHP] Question about fsockopen

2005-04-10 Thread Greg Donald
On Apr 10, 2005 9:12 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have tested it but it's not what I want to do. I am looking for any method to make multi connection with many ip from my box to download email from different mailserver. The method I'd use to fetch mail is fetchmail.

<    1   2   3   4   5   6   7   8   9   >