Re: [PHP] 5.0.0 NT and Mail()

2004-08-10 Thread raditha dissanayake
Michael Purdy wrote: Folks Has anyone running php 5.0.0 on NT ran into the MAIL() error Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing I have tried numerous syntax changes to sendmail_from in the PHP.INI as well as setting headers without success. Mike

Re: [PHP] 5.0.0 NT and Mail()

2004-08-10 Thread Jason Wong
On Tuesday 10 August 2004 14:37, Michael Purdy wrote: > Has anyone running php 5.0.0 on NT ran into the MAIL() error > > Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" > header missing > > I have tried numerous syntax changes to sendmail_from in the PHP.INI as > well as

[PHP] RE: PHP 5.0.0 NT Mail()

2004-08-10 Thread Michael Purdy
Jason Thank you for your response. In the php.ini I have tried: ; For Win32 only. sendmail_from = [EMAIL PROTECTED] sendmail_from = '[EMAIL PROTECTED]' sendmail_from = "[EMAIL PROTECTED]" This issue has been raised on other php forums, but has not received any responses. Mike

[PHP] why use http headers??

2004-08-10 Thread Tobias Grønlund
Hey people, i need some help. Im missing some arguments for using http headers, especially "content-length", for speeding up a site or just improving the quality of a site :) any comments appreciated... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] RE: PHP 5.0.0 NT Mail()

2004-08-10 Thread Jason Wong
On Tuesday 10 August 2004 16:32, Michael Purdy wrote: > ; For Win32 only. > sendmail_from = [EMAIL PROTECTED] > > sendmail_from = '[EMAIL PROTECTED]' > > sendmail_from = "[EMAIL PROTECTED]" OK, for each of these settings do you get the same aforementioned warning? If so did you read the rest of

Re: [PHP] SQL Join query

2004-08-10 Thread Peter Brodersen
Hi, On Mon, 9 Aug 2004 18:12:42 +, in php.general you wrote: >* 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 pro

[PHP] Re: why use http headers??

2004-08-10 Thread Aidan Lister
Hi Tobias, I don't really understand what you are asking, but if you want to send HTTP headers please see: www.php.net/header If you need "Arguments for http headers", see the protocol specification http://www.faqs.org/rfcs/rfc2616 "Tobias grønlund" <[EMAIL PROTECTED]> wrote in message news:[E

[PHP] Re: GENERAL DIGEST MAILLIST ALLOWS POST

2004-08-10 Thread Aidan Lister
Alfonso, Please stop sending crap to this list, or you will be unsubscribed. We're more than happy you've been able to sign up, but we don't need 4 emails detailing your progress. Kind Regards, Aidan "Alfonso Baqueiro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If you are vi

[PHP] Re: PHP 4 equivalent for convert_uuencode

2004-08-10 Thread Aidan Lister
Hi Vidyut, This function will be replicated in userland code when I get some more time, I'll add a note when it is done. For more info, see http://pear.php.net/php_compat "Vidyut Luther" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > I'm looking at the PHP manual whic

Re: [PHP] SQL Join query

2004-08-10 Thread Jason Wong
On Tuesday 10 August 2004 17:28, Peter Brodersen wrote: > .. but this is rather an SQL-related question. That's what I pointed out last week when this thread started! Glad someone's paying attention :) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integr

[PHP] Image and variable

2004-08-10 Thread Henri Marc
Hello, I would like to use a variable instead of an image file name in a html page with this instruction: '; ?> I tried but the image doesn't show up. Is it impossible or do I do something wrong? My goal is to have a random image print in the page, that's why I want to use a variable. Thank you

[PHP] sessions not working when page redirects

2004-08-10 Thread Angelo Zanetti
Hi all, Im having a slightly weird problem with my session variables. when on a certain page call it "A", I register a session variable and assign it a value. I then test if it is registered successfully and has the correct value on the same page, that works no problem. After that page "A" redire

[PHP] Re: Image and variable

2004-08-10 Thread Alfonso Baqueiro
Try this: http://pear.php.net/gifs/pearsmall.gif";; echo ''; ?> Probably you are not initializing the $myimage var. To see if the html generated is ok, you can use your browser "view source" capability. Henri marc wrote: Hello, I would like to use a variable instead of an image file name in a

[PHP] Re: Image and variable

2004-08-10 Thread Torsten Roehr
"Henri marc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I would like to use a variable instead of an image > file name in a html page with this instruction: > > echo ''; > ?> > > I tried but the image doesn't show up. Is it > impossible or do I do something wrong? > M

Re: [PHP] sessions not working when page redirects

2004-08-10 Thread Jason Wong
On Tuesday 10 August 2004 19:50, Angelo Zanetti wrote: > Im having a slightly weird problem with my session variables. when on a > certain page call it "A", I register a session variable and assign it a > value. I then test if it is registered successfully and has the correct > value on the same p

Re: [PHP] Image and variable

2004-08-10 Thread Kevin Waterson
This one time, at band camp, Henri Marc <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to use a variable instead of an image > file name in a html page with this instruction: > > echo ''; > ?> hmm, something like this may help for random images -- __

[PHP] Re: sessions not working when page redirects

2004-08-10 Thread pete M
u need to start the session at the top of each page sesion_start(); Angelo Zanetti wrote: Hi all, Im having a slightly weird problem with my session variables. when on a certain page call it "A", I register a session variable and assign it a value. I then test if it is registered successfully and

[PHP] Re: Image and variable

2004-08-10 Thread pete M
$myimage = 'hi.gif'; echo ""; Henri marc wrote: Hello, I would like to use a variable instead of an image file name in a html page with this instruction: '; ?> I tried but the image doesn't show up. Is it impossible or do I do something wrong? My goal is to have a random image print in the page, th

AW: [PHP] sessions not working when page redirects

2004-08-10 Thread Ron Stiemer
Hi there, Try to add the session_id(); into the redirection: header("Location: ../admin/include/B.php?PHPSESSID=" . session_id() ); Works for me though... Greetings, -Ron -Ursprüngliche Nachricht- Von: Angelo Zanetti [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 10. August 2004 13:51

[PHP] PHP Calendar/Planner Project

2004-08-10 Thread PHP Junkie
Ave, I'm working to create a sophisticated PHP Calendar/Planner application for my company's web server. I was wondering if there is a nice powerful calendar/planner application out there which could help me in guidance towards building my project. What I'm looking for is something sophisticated w

Re: [PHP] sessions not working when page redirects

2004-08-10 Thread John W. Holmes
From: "Angelo Zanetti" <[EMAIL PROTECTED]> > Im having a slightly weird problem with my session variables. when on a > certain page call it "A", I register a session variable and assign it a > value. I then test if it is registered successfully and has the correct > value on the same page, that wor

[PHP] Re: sessions not working when page redirects

2004-08-10 Thread Angelo Zanetti
I do do that on all pages... >>> pete M <[EMAIL PROTECTED]> 8/10/2004 2:15:21 PM >>> u need to start the session at the top of each page sesion_start(); Angelo Zanetti wrote: > Hi all, > > Im having a slightly weird problem with my session variables. when on a > certain page call it "A", I r

[PHP] Fwd: LDAP Group query examples?

2004-08-10 Thread Sam Evans
Hello.. Sorry if this is a repost, I didn't see it come through the lists the first time.. I am wondering if someone could point me in the general direction of some examples which show how to query an LDAP group for user membership? I am trying to identify if a user is a member of an LDAP group.

[PHP] define constants within functions?

2004-08-10 Thread Justin French
If I define a constant within a function, it appears that the constant is only defined within the namespace of the function. Fair enough. Can I globalise these definitions? --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] define constants within functions?

2004-08-10 Thread Jay Blanchard
[snip] If I define a constant within a function, it appears that the constant is only defined within the namespace of the function. Fair enough. Can I globalise these definitions? [/snip] They should be global already... http://us3.php.net/manual/en/language.constants.php "Like superglobals,

Re: [PHP] PHP/MySQL based webmail?

2004-08-10 Thread Chris Shenton
Hardik Doshi <[EMAIL PROTECTED]> writes: > I strongly recommend Horde web mail. We are currently > using it in our institute and it scales better. Better than what? Squirrelmail? Can you give us some numbers, like how many simultaneous Horde/Squirrelmail users you can run on some number of speci

Re: [PHP] PHP/MySQL based webmail?

2004-08-10 Thread raditha dissanayake
Chris Shenton wrote: Hardik Doshi <[EMAIL PROTECTED]> writes: I strongly recommend Horde web mail. We are currently using it in our institute and it scales better. Better than what? Squirrelmail? Can you give us some numbers, like how many simultaneous Horde/Squirrelmail users you can run o

RE: [PHP] sessions not working when page redirects

2004-08-10 Thread Ford, Mike [LSS]
On 10 August 2004 13:19, Ron Stiemer wrote: > Hi there, > > Try to add the session_id(); into the redirection: > > header("Location: ../admin/include/B.php?PHPSESSID=" . session_id() ); No, no, no! Use the SID constant -- that's what it's for. It only has a value if you need one, so: hea

Re: [PHP] define constants within functions?

2004-08-10 Thread Justin French
On 11/08/2004, at 12:16 AM, Jay Blanchard wrote: They should be global already... http://us3.php.net/manual/en/language.constants.php "Like superglobals, the scope of a constant is global. You can access constants anywhere in your script without regard to scope. For more information on scope, read

[PHP] SQL Functions

2004-08-10 Thread Dan Joseph
Hi Everyone, I'm trying to build a class to handle various SQL functions. One of them is to take a query, and return all rows. Here's what I have so far: function selectRows( $sql ) { $count = 0; $results = mysql_query( $sql, DB::connect() );

[PHP] Problems with array_reverse!

2004-08-10 Thread Labunski
Hello, First of all, I should apologize for my bad English, and I hope somebody will understand what I was trying to say.. So, the problem is, that I can't SORT or REVERSE the array. By the way, sorry for this awful and very long php script. And I know that many of you guys can make it look shor

[PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Brian Anderson
I am trying to get a hosting provider(Godaddy.com) to enable the ftp_connect extensions to php. They tell me that they cannot do so for security reasons. Is this really such a security issue? At php.net I read the advice: "for ftp to work you must do ./configure --enable-ftp in php4" ...and from

RE: [PHP] SQL Functions

2004-08-10 Thread Jay Blanchard
[snip] I'm trying to build a class to handle various SQL functions. One of them is to take a query, and return all rows. Here's what I have so far: function selectRows( $sql ) { $count = 0; $results = mysql_query( $sql, DB::connect() ); $data = mysql_fetch

RE: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Jay Blanchard
[snip] If it is an issue, does anyone know of a hosting provider that allows these extensions? [/snip] http://www.phpwebhosting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread John Nichel
Brian Anderson wrote: I am trying to get a hosting provider(Godaddy.com) to enable the ftp_connect extensions to php. They tell me that they cannot do so for security reasons. Is this really such a security issue? At php.net I read the advice: "for ftp to work you must do ./configure --enable-ftp i

RE: [PHP] SQL Functions

2004-08-10 Thread Dan Joseph
Hi, > In order to get all of the data back you are going to have to loop > through it and return the array so that it will be available for > manipulation. Hmm.. I suspected this might be the case. I have modified my functiona bit: function selectRows( $sql )

Re: [PHP] Re: Image and variable

2004-08-10 Thread Henri Marc
Hello, > Variables in single-quoted strings are not > evaluated. Either user double > quotes or concatination: Thank you very much all for your help, specially Kevin Waterson for his complete program. It was simple, I always make some mistakes with those quotes :-( Another problem still related t

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Brian Anderson
Thanks, both John and Jay. I will take a look at both those sites. Regards, -Brian Anderson From: "John Nichel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 10, 2004 9:50 AM Subject: Re: [PHP] hosting provider won't enable ftp_connect() > Brian Anderson wrote: > > I am try

RE: [PHP] Re: Image and variable

2004-08-10 Thread Ford, Mike [LSS]
On 10 August 2004 15:55, Henri Marc wrote: > Hello, > > > Variables in single-quoted strings are not > > evaluated. Either user double > > quotes or concatination: > Thank you very much all for your help, specially Kevin > Waterson for his complete program. > It was simple, I always make some mis

[PHP] You can all take a look

2004-08-10 Thread PHPDevX
Hello all, Many of us need help solving more or less complicated issues. And what do you do? You post a message and wait for an answer to come up. Now some people post replies to your message giving their oppinion. Maybe this will help you, maybe not. You wait for more. Keep asking these people wh

Re: [PHP] Re: Image and variable

2004-08-10 Thread Jason Wong
On Tuesday 10 August 2004 22:54, Henri Marc wrote: > > Variables in single-quoted strings are not > > evaluated. Either user double > > quotes or concatination: > > Thank you very much all for your help, specially Kevin > Waterson for his complete program. > It was simple, I always make some mista

RE: [PHP] Problems with array_reverse!

2004-08-10 Thread Ford, Mike [LSS]
On 10 August 2004 15:36, Labunski wrote: > Hello, > First of all, I should apologize for my bad English, > and I hope somebody will understand what I was trying to say.. > > > if ($handle = opendir('news')) { >while (false !== ($topic = readdir($handle))) { >if ($topic != "." && $to

Re: [PHP] SQL Functions

2004-08-10 Thread John W. Holmes
From: "Dan Joseph" <[EMAIL PROTECTED]> > > In order to get all of the data back you are going to have to loop > > through it and return the array so that it will be available for > > manipulation. > > Hmm.. I suspected this might be the case. I have modified my > functiona bit: > >

RE: [PHP] SQL Functions

2004-08-10 Thread Dan Joseph
Hi, > $array = array(); > $results = mysql_query( $sql, DB::connect() ); > while($data = mysql_fetch_array($result)) > { $array[] = $data; } > > return $array; > > No need to loop through $data. Ahh, thanks for that tip. That's much cleaner. -Dan Joseph -- PHP General Mailing List

Re: [PHP] PHP/MySQL based webmail?

2004-08-10 Thread John W. Holmes
From: "raditha dissanayake" <[EMAIL PROTECTED]> > What has squirrelmail/horde scalability got to do with PHP? Is this the mantra of the PHP list, now? Come on... those are both programs written in PHP and discussing how better one is over the other is perfectly good traffic for this list. I'd be

Re: [PHP] SQL Functions

2004-08-10 Thread John Nichel
John W. Holmes wrote: Change that to: $array = array(); $results = mysql_query( $sql, DB::connect() ); while($data = mysql_fetch_array($result)) { $array[] = $data; } return $array; Would there be any speed/performance issuse with using something like... array_push ( $array, $data ); vs. $array[]

RE: [PHP] You can all take a look

2004-08-10 Thread 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. Where do those resources come from? Do

RE: [PHP] SQL Functions

2004-08-10 Thread Dan Joseph
Hi, > Would there be any speed/performance issuse with using something like... > > array_push ( $array, $data ); > > vs. > > $array[] = $data; They seem to react the same in my test script. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] SQL Functions

2004-08-10 Thread Robby Russell
On Tue, 2004-08-10 at 08:33, John Nichel wrote: > John W. Holmes wrote: > > > > Change that to: > > > > $array = array(); > > $results = mysql_query( $sql, DB::connect() ); > > while($data = mysql_fetch_array($result)) > > { $array[] = $data; } > > > > return $array; > > Would there be any spee

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Robby Russell
http://www.planetargon.com/hosting/ ;-) On Tue, 2004-08-10 at 07:41, Brian Anderson wrote: > I am trying to get a hosting provider(Godaddy.com) to enable the ftp_connect > extensions to php. They tell me that they cannot do so for security reasons. > Is this really such a security issue? > > At

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Randall Perry
We should be able to do that for you -- we're "developer-friendly" 8^) Check out our hosting plans at http://systame.com/html/web_hosting_plans.html. > I am trying to get a hosting provider(Godaddy.com) to enable the ftp_connect > extensions to php. They tell me that they cannot do so for securi

[PHP] Global persistent variables

2004-08-10 Thread Jean-Yves Jourdain
Hi, Is there a way to have global persistent variable with PHP? I would like to reproduce the use of the ASP possibility. The variable "name" will be available to every users... Thank-you in advance, Kind regards. Jean-Yves -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Global persistent variables

2004-08-10 Thread Jay Blanchard
[snip] Is there a way to have global persistent variable with PHP? I would like to reproduce the use of the ASP possibility. The variable "name" will be available to every users... [/snip] http://us2.php.net/manual/en/language.variables.scope.php -- PHP General Mailing List (http://www.php.net

Re: [PHP] Global persistent variables

2004-08-10 Thread Jason Davidson
Not like asp's application("") there isnt. You can use phps $_SESSION var, which is similar to asps Session(). I dont think php runs the same asp, in order for asp's application vars to work, you would think that asp must be running in some state continuously, and i dont think php does that. I

Re: [PHP] Global persistent variables

2004-08-10 Thread Robby Russell
On Tue, 2004-08-10 at 08:36, Jean-Yves Jourdain wrote: > Hi, > > Is there a way to have global persistent variable with PHP? I would like > to reproduce the use of the ASP > possibility. The variable "name" will be available to every users... > > Thank-you in advance, > > Kind regards. > > J

RE: [PHP] Global persistent variables

2004-08-10 Thread Jay Blanchard
[snip] s there a way to have global persistent variable with PHP? I would like to reproduce the use of the ASP possibility. The variable "name" will be available to every users... [/snip] One other thing I should have mentioned...neither ASP or PHP is 'persistent', they are both stateless. We i

Re: [PHP] SQL Functions

2004-08-10 Thread John Nichel
Robby Russell wrote: Run some tests and let us know. ;-) I'd be interested in knowing as well. Not really worth worrying about according to this... array_push() averaged 0.20226655006409 seconds when running the test 10 times array[] averaged 0.20317406654358 seconds when running the test 10 times

RE: [PHP] Global persistent variables

2004-08-10 Thread Jason Davidson
Im not so sure asp is completely stateless is it. The application var will hold a var as long as the server is running, for any visitor. The var doesnt need to be set each page load either.. eg. Application("counter").. you can add to the counter on any page, by any visitor, at any time, and it

Re: [PHP] You can all take a look

2004-08-10 Thread John Holmes
PHPDevX wrote: Do you think such a paid support system is needed? Needed? No. Can you pay me to answer questions? Hell yeah. Will anyone pay me to answer questions? Hell no. Didn't see the option to vote that way -- John Holmes php|architect - The magazine for PHP professionals - http://www.php

RE: [PHP] Global persistent variables

2004-08-10 Thread Jay Blanchard
[snip] Im not so sure asp is completely stateless is it. The application var will hold a var as long as the server is running, for any visitor. The var doesnt need to be set each page load either.. eg. Application("counter").. you can add to the counter on any page, by any visitor, at any time,

[PHP] MVC pattern help?

2004-08-10 Thread Justin French
Any MVC pattern gurus out there? I have a quick question on app design following an MVC pattern (which I'm attempting for the first time). Let's say I have two controllers, home and news. Both of these controllers will access the news data, and will need to access a library of functions that

Re: [PHP] Global persistent variables

2004-08-10 Thread Tom Rogers
Hi, Wednesday, August 11, 2004, 1:36:45 AM, you wrote: JYJ> Hi, JYJ> Is there a way to have global persistent variable with PHP? I would like JYJ> to reproduce the use of the ASP JYJ> possibility. The variable "name" will be available to every users... JYJ> Thank-you in advance, JYJ> Kind reg

Re: [PHP] Global persistent variables

2004-08-10 Thread John Holmes
Jean-Yves Jourdain wrote: Is there a way to have global persistent variable with PHP? I would like to reproduce the use of the ASP possibility. The variable "name" will be available to every users... No. If the values are read-only, you can use an .ini file and parse_ini_file(). If they are rea

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 fr

RE: [PHP] Global persistent variables

2004-08-10 Thread Jason Davidson
Im reading up a little on it, from the msdn site, "make your ASP pages stateless if possible, relying on Session or Application variables for transient state only" Interesting, but not conculsive. ASP sucks anyways.. Bottom line, PHP is definately stateless, and there is no Application() equivile

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Brian Anderson
Hey all, Thanks all for the good reference links. I will see what they offer. Bummed if I have to switch hosts, because I have been happy with Godaddy in general. :) -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] You can all take a look

2004-08-10 Thread John Nichel
John Holmes wrote: PHPDevX wrote: Do you think such a paid support system is needed? Needed? No. Can you pay me to answer questions? Hell yeah. Will anyone pay me to answer questions? Hell no. Didn't see the option to vote that way Why would anyone pay you when all of your answers are wrong?

Re: [PHP] MVC pattern help?

2004-08-10 Thread Justin French
On 11/08/2004, at 2:20 AM, Justin French wrote: Any MVC pattern gurus out there? I have a quick question on app design following an MVC pattern (which I'm attempting for the first time). Nevermind... some extended googling helped! http://www.phppatterns.com/index.php/article/articleview/11/ ---

Re: [PHP] Global persistent variables

2004-08-10 Thread John Holmes
Jason Davidson wrote: Im not so sure asp is completely stateless is it. The application var will hold a var as long as the server is running, for any visitor. The var doesnt need to be set each page load either.. eg. Application("counter").. you can add to the counter on any page, by any visitor

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Afan Pasalic
try "the best" hosting company: www.pair.com their prices are not low but they are definitely professionals. afan At 10:47 AM 8/10/2004, Randall Perry wrote: We should be able to do that for you -- we're "developer-friendly" 8^) Check out our hosting plans at http://systame.com/html/web_hosting_pla

Re: [PHP] PHP/MySQL based webmail?

2004-08-10 Thread Matthew Sims
> Hardik Doshi <[EMAIL PROTECTED]> writes: > >> I strongly recommend Horde web mail. We are currently >> using it in our institute and it scales better. > > Better than what? Squirrelmail? > > Can you give us some numbers, like how many simultaneous > Horde/Squirrelmail users you can run on some nu

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 09:41:45 -0500, Brian Anderson <[EMAIL PROTECTED]> wrote: > I am trying to get a hosting provider(Godaddy.com) to enable the ftp_connect > extensions to php. They tell me that they cannot do so for security reasons. > Is this really such a security issue? > I don't see how it

Re: [PHP] You can all take a look

2004-08-10 Thread John Holmes
John Nichel wrote: Why would anyone pay you when all of your answers are wrong? ;) Hey! At least I'm consistanly wrong! I'm dependable like that... -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] preg_match_all but no preg_replace_all?

2004-08-10 Thread Marten Lehmann
Hello, I want to be sure, that preg_replace replaces all matches. But it doesn't accept the /g modifier. And anyhow, there's no preg_replace_all like there is an preg_match_all. Will preg_replace replace everything by default? Regards Marten -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Global persistent variables

2004-08-10 Thread Jean-Yves
Thanks to everybody for the answers. I'll store the data somewhere (probably in a file). Kind regards, Jean-Yves - In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Davidson) wrote: > Im reading up a little on it, from the msdn site, "make your ASP pages > stateless if possible, rel

Re: [PHP] how to configure sessions

2004-08-10 Thread Naty
Thank you!!! Naty "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Please don't send the same message twice. > > Response below. > > On Mon, 9 Aug 2004 20:32:12 -0300, Naty <[EMAIL PROTECTED]> wrote: > > Hi !!! > > I'm new with php, I just install php and apache, I te

[PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Matthew Weier O'Phinney
* Marten Lehmann <[EMAIL PROTECTED]>: > I want to be sure, that preg_replace replaces all matches. But it > doesn't accept the /g modifier. And anyhow, there's no preg_replace_all > like there is an preg_match_all. Will preg_replace replace everything by > default? Yes. preg_replace is greedy b

Re: [PHP] PHP/MySQL based webmail?

2004-08-10 Thread raditha dissanayake
John W. Holmes wrote: From: "raditha dissanayake" <[EMAIL PROTECTED]> What has squirrelmail/horde scalability got to do with PHP? Is this the mantra of the PHP list, now? Come on... those are both programs written in PHP and discussing how better one is over the other is perfectly good traf

[PHP] Re: MVC pattern help?

2004-08-10 Thread Matthew Weier O'Phinney
* Justin French <[EMAIL PROTECTED]>: > Any MVC pattern gurus out there? I have a quick question on app design > following an MVC pattern (which I'm attempting for the first time). > > Let's say I have two controllers, home and news. Both of these > controllers will access the news data, and wil

RE: [PHP] You can all take a look OT

2004-08-10 Thread Jay Blanchard
[snip] > Why would anyone pay you when all of your answers are wrong? ;) Hey! At least I'm consistanly wrong! I'm dependable like that... [/snip] Hey! If John gets paid for being dependably wrong, I want to get paid for being dependably wrong! -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] SQL Functions

2004-08-10 Thread raditha dissanayake
John Nichel wrote: John W. Holmes wrote: Change that to: $array = array(); $results = mysql_query( $sql, DB::connect() ); while($data = mysql_fetch_array($result)) { $array[] = $data; } return $array; Would there be any speed/performance issuse with using something like... array_push ( $array, $d

[PHP] download script

2004-08-10 Thread Aaron Todd
I was going to post another follow-up question in a pending thread here but it seems to have been deleted. Anyway, I am trying to write a download script that will downloaded files from my site. All these files need to be protected so just anybody cant come to the site and download them. I have

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Jason Wong
On Wednesday 11 August 2004 00:48, Justin Patrin wrote: > I don't see how it would be a security problem. They probably just > don't understand and think you want FTP access to the server. Huh? Isn't FTP the usual mechanism for accessing your shared hosting space? > Allowing > outbound FTP is o

Re: [PHP] preg_match_all but no preg_replace_all?

2004-08-10 Thread Luke Davison
> I want to be sure, that preg_replace replaces all matches. But it > doesn't accept the /g modifier. And anyhow, there's no preg_replace_all > like there is an preg_match_all. Will preg_replace replace everything by > default? from php.net: mixed preg_replace ( mixed pattern, mixed replacement,

Re: [PHP] preg_match_all but no preg_replace_all?

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 18:51:43 +0200, Marten Lehmann <[EMAIL PROTECTED]> wrote: > Hello, > > I want to be sure, that preg_replace replaces all matches. But it > doesn't accept the /g modifier. And anyhow, there's no preg_replace_all > like there is an preg_match_all. Will preg_replace replace everyt

Re: [PHP] SQL Functions

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 10:31:36 -0400, Dan Joseph <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I'm trying to build a class to handle various SQL functions. > One of them is to take a query, and return all rows. Here's what I have so > far: > > function selectRows( $sql ) > > { > >

[PHP] PHP5 OOP

2004-08-10 Thread Joel Kitching
Hello, I'm trying to get the hang of OOP here but can't quite figure out how to relate these classes. I've got one for the main project, one for the database, and one for a user. Somehow I need to get the user access to the database, without cumbersome constructor calls involving a copy of the in

[PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Peter Brodersen
On 10 Aug 2004 16:53:59 -, in php.general you wrote: >Yes. preg_replace is greedy by default. Err, global, that is (although it's also greedy per default, but then again, that's also the case for ereg-functions and perl) "greedy" is the term of whether or not a range of matches should be ex

[PHP] download script

2004-08-10 Thread Aaron Todd
I was going to post another follow-up question in a pending thread here but it seems to have been deleted. Anyway, I am trying to write a download script that will downloaded files from my site. All these files need to be protected so just anybody cant come to the site and download them. I have

RE: [PHP] SQL Functions

2004-08-10 Thread Dan Joseph
Hi, > Of course, this begs the question of why you're re-implementing what > has been done so many times in the past. > > http://pear.php.net/package/DB > http://pear.php.net/package/MDB > http://pear.php.net/package/MDB2 > http://adodb.sourceforge.net/ > http://www.phpclasses.org/browse/packag

Re: [PHP] SQL Functions

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 13:37:50 -0400, Dan Joseph <[EMAIL PROTECTED]> wrote: > Hi, > > > > Of course, this begs the question of why you're re-implementing what > > has been done so many times in the past. > > > > http://pear.php.net/package/DB > > http://pear.php.net/package/MDB > > http://pear.php.

[PHP] php tools

2004-08-10 Thread Naty
Hi!! I'm trying to find editors or IDE that let me create and develop a php project. Somebody can recommned me tools ? Regards Naty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hosting provider won't enable ftp_connect()

2004-08-10 Thread Justin Patrin
On Wed, 11 Aug 2004 01:12:40 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > On Wednesday 11 August 2004 00:48, Justin Patrin wrote: > > > I don't see how it would be a security problem. They probably just > > don't understand and think you want FTP access to the server. > > Huh? Isn't FTP the usu

Re: [PHP] download script

2004-08-10 Thread Jason Wong
On Thursday 12 August 2004 01:06, Aaron Todd wrote: > I am trying to dowload a file using readfile(), but PHP still cant seem to > get to the file. And what exactly does that mean? Any error messages? > Here is my code: > > $file = "/home/lgxdlr/test/".$_GET['file'].""; > if (file_exists(base

[PHP] URL String

2004-08-10 Thread Stephen Craton
Hello, I'm working on a site that cannot use PHP exactly, so I'm trying to work around that limitation with remotely hosted scripting by tricking the server into thinking the PHP content is actually javascript. I've been able to do this before, but this time I'm having a few issues. I need to be

[PHP] Embeded PHP

2004-08-10 Thread Aaron Todd
I was just wondering if anyone out there is using PHP for an embeded development or knows of any devices that use PHP on their system. Thanks, Aaron Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] download script

2004-08-10 Thread John Nichel
Aaron Todd wrote: "; echo basename($file); echo "No File Found"; } ?> Where are you opening the file? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/MySQL based webmail?

2004-08-10 Thread Hardik Doshi
MIT is using the Horde web mail and so many other organizations are using the Horde web mail. I can't give you the numbers because i am not the one who is administrating this. We are a university and we have thousands of students so might imagine how better it scales. I personally dig into the Hor

Re: [PHP] download script

2004-08-10 Thread John Nichel
Aaron Todd wrote: "; echo basename($file); echo "No File Found"; } ?> Belay my last post...you're using readfile and not fread. Okay, what error is the script outputting? You should remove the '@' from in front of readfile() so that it will output an error if it's the problem. -- John C. N

[PHP] Re: php tools

2004-08-10 Thread Matthew Weier O'Phinney
* Naty <[EMAIL PROTECTED]>: > I'm trying to find editors or IDE that let me create and develop a php > project. > Somebody can recommned me tools ? 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 plu

  1   2   >