Re: [PHP] How to argue with ASP people...

2004-12-31 Thread John Holmes
mail.pmpa wrote: Can I do any session handling before calling header(Location: $url); ? Yeah, sure. You just can't have any output before you redirect with a Location header (unless you use output buffering as a workaround). This is basic HTTP and ASP has to play by the same rules. If you can

Re: [PHP] Quick compile question --with-oci8

2004-12-31 Thread John Nichel
Brian Duke wrote: Thanks John, Can you (or someone on the list) direct me to the oracle site where I can download the client files? The only client files I saw were for the 10g instantclient. Our current build says the libraries need don't exist with that one.

Re[2]: [PHP] How to argue with ASP people...

2004-12-31 Thread Richard Davey
Hello John, Friday, December 31, 2004, 8:14:31 AM, you wrote: JH This is basic HTTP and ASP has to play by the same rules. If you JH can have output before Response.Redirect, then ASP is just doing JH the buffering for you before it sends a Location header. Which is exactly what it does. It

Re: [PHP] How to argue with ASP people...

2004-12-31 Thread Richard Davey
Hello Tony, Thursday, December 30, 2004, 4:38:18 PM, you wrote: TDC I am not totally against ASP, but it would have to be pretty good TDC to get me to switch at this point (PHP seems to do everything I TDC need)... But I will need to convince him of this... While I know for sure that there is

[PHP] Quickref on search (php.net)

2004-12-31 Thread é isso ai!
anyone know how to make it works? I get files from CVS, created funclist.txt, put some functions and type make to generate pages, everything works fine but when i try to open 'test.html' i got javascript error Anyone know how to make it work? thanks! -- PHP General Mailing List

Re: [PHP] Understanding flock()

2004-12-31 Thread Gerard Samuel
Marek Kilimajer wrote: Gerard Samuel wrote: Im trying to simulate conditions, to see how flock works. Can anyone verify with the example code below, that data, never gets written to the file. //1 //2 are supposed to be processes??? For me, the var_dump() reports - int(7) bool(false) Thanks $fp =

[PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Robin Getz
Hi. I am trying to get Apache 2.0.52 / PHP 4.3.10 working with some scripts I am using. I have a file named /www/projects which is a php script. When I type the url: www.site/projects/variable I want variable passed to the script projects I have the the http.conf set up as: Files projects

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Andrew Kreps
On Fri, 31 Dec 2004 11:39:51 -0800, Robin Getz [EMAIL PROTECTED] wrote: Hi. I am trying to get Apache 2.0.52 / PHP 4.3.10 working with some scripts I am using. Which used to work with apache 2.0.40 and php 4.2.3 - but what happens now, is I actually get passed the php script back as

RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Robin Getz
Andrew Kreps wrote: I had to add this line to my httpd.conf: AddType application/x-httpd-php .php I have this and the DirectoryIndex - the problem is that my script does not end in a .php extention. (GForge ) If I rename the file projects.php and point to that, it works, but that means an

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread John Nichel
Robin Getz wrote: Andrew Kreps wrote: I had to add this line to my httpd.conf: AddType application/x-httpd-php .php I have this and the DirectoryIndex - the problem is that my script does not end in a .php extention. (GForge ) If I rename the file projects.php and point to that, it works, but

RE: [PHP] Quick compile question --with-oci8

2004-12-31 Thread Brian Duke
That's a valid question. I am not a dba. In fact I'm not even a real designer. I'm only a hack technician who got tired of arguing with the IT department one day and decided to make my own tools to use. I chose php based off the community of php. I tried a couple other languages and a few

RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Brian Duke
What exactly does your script end in? I think you can make up your own extension and add it as well just tell apache what to use when it sees it. I.E. AddType application/x-httpd-php .fred I can't guarantee that's true but I think you can. -Original Message- From: Robin Getz

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Andrew Kreps
On Fri, 31 Dec 2004 11:55:13 -0800, Robin Getz [EMAIL PROTECTED] wrote: I have this and the DirectoryIndex - the problem is that my script does not end in a .php extention. (GForge ) If I rename the file projects.php and point to that, it works, but that means an entire re-write of the

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Chris
Robin Getz wrote: Andrew Kreps wrote: I had to add this line to my httpd.conf: AddType application/x-httpd-php .php I have this and the DirectoryIndex - the problem is that my script does not end in a .php extention. (GForge ) If I rename the file projects.php and point to that, it works, but

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Mark Charette
Robin Getz wrote: Andrew Kreps wrote: I had to add this line to my httpd.conf: AddType application/x-httpd-php .php I have this and the DirectoryIndex - the problem is that my script does not end in a .php extention. (GForge ) If I rename the file projects.php and point to that, it works, but

Re: [PHP] Quick compile question --with-oci8

2004-12-31 Thread John Nichel
Brian Duke wrote: snip Would you have a link to the client downloads at OTN? I have been downloading the wrong things apparently. I sent you that link earlier. There's no 'client library only' download that I know of. The client libraries are included with the actual db software. Unless

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread John Holmes
Robin Getz wrote: I have a file named /www/projects which is a php script. When I type the url: www.site/projects/variable I want variable passed to the script projects I have the the http.conf set up as: Files projects SetInputFilter PHP SetOutputFilter PHP AcceptPathInfo On /Files Which

RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Robin Getz
The prize goes to Mark Charette of [EMAIL PROTECTED] for reading the apache manual in more detail than I. After Reading http://httpd.apache.org/docs-2.0/mod/core.html#forcetype Then adding: ForceType application/x-httpd-php Things work great. Thanks -Robin -- PHP General Mailing List

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread John Holmes
Mark Charette wrote: Robin Getz wrote: I guess the question is - how to make a file that does not end in .php or have any extension, be understood as a php file? ForceType directive. I was thinking the same thing, but after doing some reading it seems Apache 2 uses a different method now

[PHP] ereg function

2004-12-31 Thread Michael Lutaaya
I want to validate someones age. How do I do this in the ereg function. I also have some visitors on my site who are in between the ages of 7-9 so don't forget to make them part of the ereg function. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Mark Charette
John Holmes wrote: Robin Getz wrote: I have a file named /www/projects which is a php script. When I type the url: www.site/projects/variable I want variable passed to the script projects I have the the http.conf set up as: Files projects SetInputFilter PHP SetOutputFilter PHP

Re: [PHP] ereg function

2004-12-31 Thread Rasmus Lerdorf
Numbers are pretty easy. You could just do: $age = (int)$_POST['age']; if($age 9) do_something(); else do_something_else(); Using ereg doesn't make much sense in this case. -Rasmus On Fri, 31 Dec 2004, Michael Lutaaya wrote: I want to validate someones age. How do I do this in

Re: [PHP] ereg function

2004-12-31 Thread Rory Browne
The ereg function doesn't have the capability to test the age of the person viewing your page. You have to depend on them to input their age in some way. Your answer depends on how your age is submitted. Assuming it is submited as $_POST['age'], you could perhaps use ereg(0*[7-9]$, $_POST['age'])

RE: [PHP] How to argue with ASP people...

2004-12-31 Thread mail.pmpa
I used response.redirect in asp to avoid form re-submit, so I can have form handling functions and other related functions on the same file. new_customer_form.php : form action=form_results.php Customer fills form and hits submit button. form_results.php : function validate_form_data(){

Re: [PHP] How to argue with ASP people...

2004-12-31 Thread John Holmes
mail.pmpa wrote: I used response.redirect in asp to avoid form re-submit, so I can have form handling functions and other related functions on the same file. new_customer_form.php : form action=form_results.php Customer fills form and hits submit button. form_results.php : function

Re: [PHP] Environment and Modules

2004-12-31 Thread Richard Lynch
1) I want PHP to look for my php.ini file in the php folder (c:\php4) but it refuses to do so. Setting PHPRC doesn't help and this setting actualy won't I believe that directory is compiled into your php.exe and php4ts.dll (?) file -- and it cannot be changed from any external setting/action

RE: [PHP] How to argue with ASP people...

2004-12-31 Thread mail.pmpa
-Mensagem original- De: John Holmes This is a workaround, really. Your code should be structured so that you can decide if you need to perform a redirect before any output is sent to the browser. If you're going to send them to another page, why would you have any output anyhow? Using

Re: [PHP] handling large files w/readfile

2004-12-31 Thread Richard Lynch
Sebastian wrote: i'm working on a app which output files with readfile() and some headers.. i read a comment in the manual that says if your outputting a file php will use the same amount of memory as the size of the file. so, if the file is 100MB php will use 100MB of memory.. is this true?

Re: [PHP] Recommend a free shopping cart app?

2004-12-31 Thread Richard Lynch
Bosky, Dave wrote: I was looking for a nice 'Free' shopping cart app that I can plug into my website and wanted some recommendations. Years ago, after suffering through the flame wars on this list every few days from posts like this, I threw up a comparison application. You may, or may not,

RE: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Andras Kende
-Original Message- From: Robin Getz [mailto:[EMAIL PROTECTED] Sent: Friday, December 31, 2004 1:40 PM To: php-general@lists.php.net Subject: [PHP] Apache 2.0.52 / PHP 4.3.10 Integration Question... Hi. I am trying to get Apache 2.0.52 / PHP 4.3.10 working with some scripts I am

Re: [PHP] handling large files w/readfile

2004-12-31 Thread Rory Browne
I'd go with Richards Basic idea, but if you're outputting a 100Mb file I'd use a hell of a lot bigger chunks than 4K. With the syscall and loop overhead, i'd go with at least half a megabyte, or more likely 2Mb depending on your amount of memory. To do this you'd change Richards echo fread($fp,

[PHP] Re: Apache 2.0.52 / PHP 4.3.10 Integration Question...

2004-12-31 Thread Matthew Weier O'Phinney
* Robin Getz [EMAIL PROTECTED]: I have a file named /www/projects which is a php script. When I type the url: www.site/projects/variable I want variable passed to the script projects I have the the http.conf set up as: Files projects SetInputFilter PHP SetOutputFilter PHP

[PHP] phpMyAdmin w/ winXP - IIS w/PHP 4.3 w/mysql 4.1.8

2004-12-31 Thread GH
Has anyone had any problems installing phpMyAdmin with the above configuration? I get an error about the mySql client and authentication methods? MySQL Error: 1251 : Client does not support authentication protocol requested by server Please assist Happy New Year Gary -- PHP General Mailing List

Re: [PHP] How to argue with ASP people...

2004-12-31 Thread M Saleh EG
the ob_start() in ASP is Response.Buffer=True ASP doesnt handle it for you automaticaly! Just wanted to notify ;) On Fri, 31 Dec 2004 03:14:31 -0500, John Holmes [EMAIL PROTECTED] wrote: mail.pmpa wrote: Can I do any session handling before calling header(Location: $url); ? Yeah, sure.