Re: [PHP] (another) regex difficulty

2003-10-01 Thread jonas_weber
01.10.03 at 18:17 Curt Zirzow wrote: preg_replace('/(?!\\).{1}/', 'x', $term); 01.10.03 at 18:27 CPT John W. Holmes wrote: $term = preg_replace('/[^\\]./','x',$term); they don't work (thanks anyway) it's pretty simple: i need a regex that matches any character in a string except \* (* stands for

Re: [PHP] (another) regex difficulty

2003-10-01 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] it's pretty simple: i need a regex that matches any character in a string except \* (* stands for any char that follows the \). example: this is \ba test should match: this a is test isn't there a way to do this? Turn that around. What you need to do is remove \*

[PHP] OpenSSL questions

2003-10-01 Thread Carlos Serrao
Dear all, I have some questions concerning the usage of OpenSSL within PHP. I'm a litle confused by the fact that I couldn't find any function capable of verifying if a X.509 certificate is valid or not. For instance, I wish to develop some applications were some X.509 certificates will be

[PHP] Re: documentation on

2003-10-01 Thread Dennis Sterzenbach
Rich Fox [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can someone point me to documentation on the operator? I am wondering if there are some quirks I don't know about. Yet I can't find it documented on the php website. THanks, Rich I've never seen a operator. Do you mean

Re: [PHP] documentation on

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 01:07:35PM -0400, Rich Fox wrote: : : Can someone point me to documentation on the operator? I am wondering if : there are some quirks I don't know about. Yet I can't find it documented on : the php website. Try searching for heredoc. -- PHP General Mailing List

RE: [PHP] documentation on

2003-10-01 Thread Chris W. Parker
Rich Fox mailto:[EMAIL PROTECTED] on Wednesday, October 01, 2003 10:08 AM said: Can someone point me to documentation on the operator? I am wondering if there are some quirks I don't know about. Yet I can't find it documented on the php website. I don't know the answer to your question

[PHP] Re: documentation on

2003-10-01 Thread Dennis Sterzenbach
Sorry forgot about the heredoc, just waste my post unterneath -- Dennis Dennis Sterzenbach [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Rich Fox [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can someone point me to documentation on the operator? I am wondering if

Re: [PHP] Mail.php help

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 08:31:49AM -0700, Eric Rounds wrote: : : On Wednesday, October 01, 2003, at 08:26AM, Eugene Lee wrote: : : Make sure that Sendmail is enabled and running on OS X. By default, : Sendmail is disabled on OS X. : : Thank you! I will let the administrator know. : : By the

[PHP] upapck() woes

2003-10-01 Thread Jay Blanchard
I have kibitzed and kaboodles all morning seeking the answer to the unpack question. I need to unpack some binary data and make sense of it. Unfortunately I am unsure how the binary for this was created. I have tried converting ascii but I am thinking (after much frustration) that I should go hex

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-01 Thread Gerard Samuel
CPT John W. Holmes wrote: From: Eugene Lee [EMAIL PROTECTED] On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : : Got a problem with htmlspecialchars being too greedy, where : for example, it converts : foo; : to : amp;foo; : : Yes it displays correctly in the browser for some

[PHP] question on set_uid

2003-10-01 Thread R'twick Niceorgaw
Hi all, I'm trying to run a php application in cgi mode which will use posix_set_uid function to set its user id to different users. I have set the user and group of the program to root:root and set the permissions as -rws--sr-x1 root root 1096 Oct 1 12:58 test2.cgi here's my

Re: [PHP] Variables not passed on localhost setup [FIXED]

2003-10-01 Thread Greg Watson
Thank you all so much! That sorted it! Cheers! I didn't see that before because I'm blind. Metorphorically speaking. Put it down to code-blindness from staring at the screen too long. Weird thing is, my searches took me to http://www.php.net/configuration, which didn't mention the moving ini

Re: [PHP] Mail.php help

2003-10-01 Thread Jason Wong
On Thursday 02 October 2003 01:28, Eugene Lee wrote: On Wed, Oct 01, 2003 at 08:31:49AM -0700, Eric Rounds wrote: : On Wednesday, October 01, 2003, at 08:26AM, Eugene Lee wrote: : Make sure that Sendmail is enabled and running on OS X. By default, : Sendmail is disabled on OS X. : : Thank

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 02:02:08PM -0400, Gerard Samuel wrote: : CPT John W. Holmes wrote: : From: Eugene Lee [EMAIL PROTECTED] : On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : : : : Got a problem with htmlspecialchars being too greedy, where : : for example, it converts : : foo;

[PHP] Session_start() problem

2003-10-01 Thread Jeff McKeon
Hey all, I'm working out of a book teaching myself PHP4 here and I've got this code from a login web page... [begin code] session_start(); if(!isset($userid)) { login_form(); exit; } else { session_regisister(userid, userpassword);

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-01 Thread Gerard Samuel
Eugene Lee wrote: On Wed, Oct 01, 2003 at 02:02:08PM -0400, Gerard Samuel wrote: : CPT John W. Holmes wrote: : From: Eugene Lee [EMAIL PROTECTED] : On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : : : : Got a problem with htmlspecialchars being too greedy, where : : for example,

Re: [PHP] Mail.php help

2003-10-01 Thread Eugene Lee
On Thu, Oct 02, 2003 at 02:23:44AM +0800, Jason Wong wrote: : On Thursday 02 October 2003 01:28, Eugene Lee wrote: : On Wed, Oct 01, 2003 at 08:31:49AM -0700, Eric Rounds wrote: : : : : By the way, is there a way I can check, without looking into the : : serving Mac, to see if it is running? :

Re: [PHP] Session_start() problem

2003-10-01 Thread CPT John W. Holmes
From: Jeff McKeon [EMAIL PROTECTED] [snip] where do I set the default location for session data? session.save_path in php.ini ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Read a PDF File using php

2003-10-01 Thread Pushpinder Singh Garcha
Hello All I need to allow a user to access a PDF file, only if he/she is logged in as a registered user. So here is the code that I am trying to use. I have been able to make this work in the past, when I had to read .html file, now since the file in question is a .pdf file, I am having

Re: [PHP] Read a PDF File using php

2003-10-01 Thread Chris Sherwood
http://ca.php.net/manual/en/ref.pdf.php check this out you should find what you need -- snip -- From: Pushpinder Singh Garcha [EMAIL PROTECTED] I need to allow a user to access a PDF file, only if he/she is logged in as a registered user. So here is the code that I am trying to use. I have

[PHP] Portability of Php across Solaris systems

2003-10-01 Thread Donahue, Peter
I successfully built Php 4.3.3 on Solaris for apache with ora8 support. I noticed that the .reg files in php/lib/.registry have hardcoded pathnames to the php files. I want to be able to take the php files (along with the apache files) and install them on a different Solaris system, possibly in a

[PHP] Too many connections fix?

2003-10-01 Thread Nicole
Hello, I run Apache with PHP and MySQL on a RedHat 7.2 box with 1GB Ram @ 2GHZ (p4). I last increased my max connections to 500. That seemed to fix things for a while. Now I am getting the problems (database freezing up because too many connections) again. The site I run is pretty high traffic.

[PHP] What's the difference ?

2003-10-01 Thread X-Virus
What's the difference between : $_SERVER[COMPUTERNAME] and $_ENV[COMPUTERNAME] ?

Re: [PHP] Too many connections fix?

2003-10-01 Thread Brad Pauly
Nicole wrote: I last increased my max connections to 500. That seemed to fix things for a while. Now I am getting the problems (database freezing up because too many connections) again. The site I run is pretty high traffic. I wondered if anyone encountered a solution to handle this sort of

[PHP] printf....

2003-10-01 Thread Dan Joseph
Hi Folks.. printf ( html body center form action=\%s\ method=post name=\frmSearch\ input type=hidden name=search value=yes table

[PHP] Re: (another) regex difficulty

2003-10-01 Thread Cristian Lavaque
Jonas_weber @ Gmx . Ch wrote: regular expressions the example below should turn any character exept \* (*= any char) into an x: $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); but i guess because of the [brackets] the . (period) is treated as character . instead as metacharacter

Re: [PHP] Too many connections fix?

2003-10-01 Thread Brad Pauly
Brad Pauly wrote: Nicole wrote: I last increased my max connections to 500. That seemed to fix things for a while. Now I am getting the problems (database freezing up because too many connections) again. The site I run is pretty high traffic. I wondered if anyone encountered a solution to

Re: [PHP] printf....

2003-10-01 Thread Mike Migurski
Warning: printf(): too few arguments in /home/sites/site8/web/index_test.php on line 34 I cannot for the life of me figure out what the problem is. I've looked thru archives, examples, and pages of a book all about printf, and this just doesn't add up to me.. Anyone see the problem? To print a

Re: [PHP] Too many connections fix?

2003-10-01 Thread Nicole
Originally, I used pconnect for a while. Then I learned that with high traffic site, that's not the best idea. So I changed to 'connect.' But I still get the problems. Nicole aeontrek.com Brad Pauly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Nicole wrote: I last increased my

Re: [PHP] printf....

2003-10-01 Thread Chris Sherwood
well for starters dan I would pass the first element as a string variable that way I could echo the string and see what it actually says ie $stringtopass = htmlbody center; $stringtopass .= form action=\%s\ method=post name=\frmSearch\input type=hidden name=search value=yes; $stringtopass .=

RE: [PHP] printf....

2003-10-01 Thread Dan Joseph
OH! Heh... learn something new everyday.. Thank you! -Dan Joseph -Original Message- From: Mike Migurski [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 3:49 PM To: Dan Joseph Cc: [EMAIL PROTECTED] Subject: Re: [PHP] printf Warning: printf(): too few

[PHP] regex drive me crazy

2003-10-01 Thread jonas_weber
1. The PHP manual sais to escape the escape char, it has to be written twice*, but: $term = preg_replace('/(\\)/', 'backslash $1', $term); causes an error** while using three backslashes (see 2.) works. 2.1. $term = beg \ end; print preg_replace('/(\\\)/', 'backslash $1', $term); returns: beg

Re: [PHP] Read a PDF File using php

2003-10-01 Thread Tyler Lane
Are you sending a Content-Type header to the browser to let it know what type of file you are sending it? On Wed, 2003-10-01 at 12:27, Pushpinder Singh Garcha wrote: Hello All I need to allow a user to access a PDF file, only if he/she is logged in as a registered user. So here is the code

Re: [PHP] Read a PDF File using php

2003-10-01 Thread Pushpinder Singh Garcha
No I am not sending any headers to the browser. Any suggestions ! Thanks On Wednesday, October 1, 2003, at 04:05 PM, Tyler Lane wrote: Are you sending a Content-Type header to the browser to let it know what type of file you are sending it? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Too many connections fix?

2003-10-01 Thread Chris Shiflett
--- Nicole [EMAIL PROTECTED] wrote: I run Apache with PHP and MySQL [snip] I last increased my max connections to 500. That seemed to fix things for a while. Now I am getting the problems (database freezing up because too many connections) again. The site I run is pretty high traffic. This

Re: [PHP] Too many connections fix?

2003-10-01 Thread Chris Shiflett
--- Nicole [EMAIL PROTECTED] wrote: Originally, I used pconnect for a while. Then I learned that with high traffic site, that's not the best idea. Where did you learn this? I disagree with that notion. I manage a Web site that serves 10 million hits a day, and if I didn't use persistent

[PHP] mail(): can it reply with quoted text?

2003-10-01 Thread Chris
I wrote an ultra basic mail interface as a part of my client's customer administration area to handle emails. Basically, the standard email form gets stored in a database, and when they respond to the help request, they fill out the form and PHP emails the message. Now, they want to have the

RE: [PHP] regex drive me crazy

2003-10-01 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Wednesday, October 01, 2003 1:02 PM said: Does this make ANY sense? Seeing as how you haven't had a response yet, I'll ask this: what exactly is your question? I'm not sure as to what it is that you want. c. -- PHP General Mailing List

Re: [PHP] Variables not passed on localhost setup [FIXED]

2003-10-01 Thread Chris
On Wed, 01 Oct 2003 14:22:30 -0400, Greg Watson [EMAIL PROTECTED] wrote: I'll check up on the security implications. Unfortunately for me, this is the way I was taught PHP. I'll have to rethink things I suppose! (and make sure you understand the security implications that may arise from having

Re: [PHP] Read a PDF File using php

2003-10-01 Thread Kevin Stone
? header(Content-type: application/pdf); header(Content-disposition: attachment; filename=filename.pdf ); readfile(filename.pdf); ? Launching this script will prompt a file download screen if the Acrobat Reader Plugin is not available on the client browser. Otherwise it will display inside the

[PHP] PHP OOP

2003-10-01 Thread Geoff Hellstrand
I'm working for the first time with object orientated programming in php and I can't figure out how to access elements or methods when you place objects inside objects inside other objects. my origonal idea was to use the following syntax: $a-b-c but this just returns: $a-b . -c Please, need

RE: [PHP] PHP OOP

2003-10-01 Thread Daniel Purdy
[snip]I'm working for the first time with object orientated programming in php and I can't figure out how to access elements or methods when you place objects inside objects inside other objects. my origonal idea was to use the following syntax: $a-b-c but this just returns: $a-b . -c Please,

Re: [PHP] PHP OOP

2003-10-01 Thread Raquel Rice
On Tue, 30 Sep 2003 19:00:18 -0400 Geoff Hellstrand [EMAIL PROTECTED] wrote: I'm working for the first time with object orientated programming in php and I can't figure out how to access elements or methods when you place objects inside objects inside other objects. my origonal idea was to

Re: [PHP] regex drive me crazy

2003-10-01 Thread jonas_weber
Am Mittwoch, 01.10.03 um 22:27 Uhr schrieb Chris W. Parker: Seeing as how you haven't had a response yet, I'll ask this: what exactly is your question? I'm not sure as to what it is that you want. My question are: a) Why does the PHP manual say that backslashes get escaped by writing them twice

[PHP] OT(?): mod_rewrite not passing GET variables to php

2003-10-01 Thread Steven Jarvis
I'm just starting to experiment with mod_rewrite on Apache 1.3.x and php 4.3.3. Register_globals is off. I have the following rules in my .htaccess file (which sits in the site's root dir along with paper.php): RewriteEngine On RewriteRule ^/([a-z]+)/([a-z]+)/$ paper.php?paper=$1section=$2 [L]

[PHP] Plugin System Implementation

2003-10-01 Thread Eric Czarny
I am thinking about writing a content management system which allows user to use plugins written by other developers. It would allow me to easily update system functionality simply through creating and releasing plugins, as well as giving the user some power when it comes to using this system.

Re: [PHP] (another) regex difficulty

2003-10-01 Thread Curt Zirzow
* Thus wrote jonas_weber @ gmx. ch ([EMAIL PROTECTED]): 01.10.03 at 18:17 Curt Zirzow wrote: preg_replace('/(?!\\).{1}/', 'x', $term); 01.10.03 at 18:27 CPT John W. Holmes wrote: $term = preg_replace('/[^\\]./','x',$term); they don't work (thanks anyway) quote orignal message the example

[PHP] [Stats] PHP Net List Stats; September 2003

2003-10-01 Thread Bill Doerrfeld
Greetings: For those of you curious to see the stats for usage of this list, please check out the following. You can create your own reports based on custom date ranges and search the archives via the URL below. Enjoy! --

Re: [PHP] OT(?): mod_rewrite not passing GET variables to php

2003-10-01 Thread Leif K-Brooks
Steven Jarvis wrote: I'm just starting to experiment with mod_rewrite on Apache 1.3.x and php 4.3.3. Register_globals is off. I have the following rules in my .htaccess file (which sits in the site's root dir along with paper.php): RewriteEngine On RewriteRule ^/([a-z]+)/([a-z]+)/$

Re: [PHP] regex drive me crazy

2003-10-01 Thread Curt Zirzow
* Thus wrote jonas_weber @ gmx. ch ([EMAIL PROTECTED]): Am Mittwoch, 01.10.03 um 22:27 Uhr schrieb Chris W. Parker: Seeing as how you haven't had a response yet, I'll ask this: what exactly is your question? I'm not sure as to what it is that you want. My question are: a) Why does the PHP

[PHP] Sort an array of objects

2003-10-01 Thread Matt Palermo
I have an array of object for files on my site. The objects hold a file's name, size, extension, etc... I was wondering if anyone knows where I could find a relatively easy function for sorting the array of these objects by either name, size, etc... Please let me know if got any tips. Thanks a

[PHP] Re: Sort an array of objects

2003-10-01 Thread Kevin Stone
Matt Palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have an array of object for files on my site. The objects hold a file's name, size, extension, etc... I was wondering if anyone knows where I could find a relatively easy function for sorting the array of these objects

Re: [PHP] Sort an array of objects

2003-10-01 Thread Marek Kilimajer
Matt Palermo wrote: I have an array of object for files on my site. The objects hold a file's name, size, extension, etc... I was wondering if anyone knows where I could find a relatively easy function for sorting the array of these objects by either name, size, etc... Please let me know if got

[PHP] Re: What's the difference ?

2003-10-01 Thread Jon Kriek
$_ENV http://www.phpbuilder.com/manual/reserved.variables.php#reserved.variables.environment Variables provided to the script via the environment $_SERVER http://www.phpbuilder.com/manual/reserved.variables.php#reserved.variables.server Variables set by the web server or otherwise directly

[PHP] Re: mail(): can it reply with quoted text?

2003-10-01 Thread Manuel Lemos
Hello, On 10/01/2003 05:28 PM, Chris wrote: I wrote an ultra basic mail interface as a part of my client's customer administration area to handle emails. Basically, the standard email form gets stored in a database, and when they respond to the help request, they fill out the form and PHP

Re: [PHP] Session_start() problem

2003-10-01 Thread Curt Zirzow
* Thus wrote Jeff McKeon ([EMAIL PROTECTED]): Not related to your problem but: session_regisister(userid, userpassword); spelling ~~~^^ Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: (another) regex difficulty

2003-10-01 Thread Cristian Lavaque
Cristian Lavaque wrote: Jonas_weber @ Gmx . Ch wrote: regular expressions the example below should turn any character exept \* (*= any char) into an x: $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); but i guess because of the [brackets] the . (period) is treated as character .

[PHP] upload security

2003-10-01 Thread Philippe Lemmerling
I have a question concerning security of my file upload script. I'm using the php upload routines (move_uploaded_file,...) and variables ($_FILES) to upload images to a webdirectory. Everything works fine, meaning that I can upload images BUT only if I change the permission of the directory to

[PHP] Re: Too many connections fix?

2003-10-01 Thread Cristian Lavaque
Nicole wrote: Hello, I run Apache with PHP and MySQL on a RedHat 7.2 box with 1GB Ram @ 2GHZ (p4). I last increased my max connections to 500. That seemed to fix things for a while. Now I am getting the problems (database freezing up because too many connections) again. The site I run is

Re: [PHP] Too many connections fix?

2003-10-01 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Nicole [EMAIL PROTECTED] wrote: Originally, I used pconnect for a while. Then I learned that with high traffic site, that's not the best idea. Where did you learn this? I disagree with that notion. This may be debatable, which is

Re: [PHP] printf....

2003-10-01 Thread Curt Zirzow
* Thus wrote Dan Joseph ([EMAIL PROTECTED]): Hi Folks.. [... messy code that probably had a width=something% in it ...] I have that code, and I get this error: Warning: printf(): too few arguments in /home/sites/site8/web/index_test.php on line 34 Curt -- I used to think I was

[PHP] your method for validating forms

2003-10-01 Thread Chris W. Parker
Hey people. I'm trying to come up with an easy way to validate forms. I've got an idea and I'd like your feedback as well as suggestions and/or your own methods. My idea is to have a multi-dimensional array with fields: data and type. Let's say you have a form with three fields. First Name

RE: [PHP] Output data repeatedly more than once

2003-10-01 Thread esctoday.com | Wouter van Vliet
What I would advise is to capture the output of your reciept into a variable. Assuming that you've got some function calls, maybe even Database request mixed up with some print commands .. Or even some times where you escape out of php (?). Something like this ?php $RecieptID = GetRecieptID();

[PHP] Re: upload security

2003-10-01 Thread Dennis Sterzenbach
Philippe Lemmerling [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a question concerning security of my file upload script. I'm using the php upload routines (move_uploaded_file,...) and variables ($_FILES) to upload images to a webdirectory. Everything works fine, meaning

Re: [PHP] PHP OOP

2003-10-01 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 9:00:18 AM, you wrote: GH I'm working for the first time with object orientated programming in php and GH I can't figure out how to access elements or methods when you place objects GH inside objects inside other objects. GH my origonal idea was to use the

Re: [PHP] exec shell command from php

2003-10-01 Thread Tom Rogers
Hi, Thursday, October 2, 2003, 1:54:38 AM, you wrote: N hi all; N - When i run php.. what user am i using ? is it apache user (nobody) ?? N - How can i execute useradd command from php ? should i write it in N pearl/cgi ?? N - I want to grant my user on my web a free pop account (or webmail) so

[PHP] Changing users in php script

2003-10-01 Thread John Nichel
I know php runs under the same user/group as the webserver for web based applications, but is there a way to change to another user? All the recent talk about exec got me thinking that I could set something up to automatically create user mailboxes under qmail + vmailmgr. I normall do this

Re: [PHP] upapck() woes

2003-10-01 Thread Tom Rogers
Hi, Thursday, October 2, 2003, 3:31:40 AM, you wrote: JB I have kibitzed and kaboodles all morning seeking the answer to the JB unpack question. I need to unpack some binary data and make sense of it. JB Unfortunately I am unsure how the binary for this was created. I have JB tried converting

Re: [PHP] your method for validating forms

2003-10-01 Thread Brad Pauly
On Wed, 2003-10-01 at 17:43, Chris W. Parker wrote: Hey people. Hey [snip] What I'd like to do is get rid of all the if's and what not and throw them into a function. What I thought of doing to replace all this is: ? // pseudo code $formdata['fname']['data'] = (!empty($_GET['fname']))

Re: [PHP] your method for validating forms

2003-10-01 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): Hey people. function validateFormData($input) { foreach($input as $field) { switch ($field['type']) { case 'name': // do the magic

[PHP] Show index.php instead of index.html

2003-10-01 Thread Ryan A
Hi, I just deleted my index.html page because i want to use my index.php page instead but when i visit my site i see the directory listing instead, what should i do to display the index.php page automatically?? Kindly help. Thanks, -Ryan -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Show index.php instead of index.html

2003-10-01 Thread Martin Towell
Hi It depends on the web server you're using... Martin -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 October 2003 12:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Show index.php instead of index.html Hi, I just deleted my index.html page because i want to

Re: [PHP] Show index.php instead of index.html

2003-10-01 Thread Ryan A
Hi, Thanks for replying. I am on a shared hosting account and dont have access to my httpd.conf file, is there some way to do the same via .htaccess or something? Any ideas? i want to open the site today. Thanks, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site

[PHP] Re: your method for validating forms

2003-10-01 Thread Manuel Lemos
Hello, On 10/01/2003 08:43 PM, Chris W. Parker wrote: $_SESSION['form_errors'] = validateFormData($formdata); redirect(to_the_previous_page.php); You may want to study how this classic form validation and generation class works. It generates the necessary Javascript to validate on the client

[PHP] Very first web app and questions

2003-10-01 Thread mike
I've just to put together my very first little web application project in PHP and I have a couple of questions. The first isn't that important because it's no where near finished yet but the help would be appreciated. Can those who have the time visit

[PHP] need a php server

2003-10-01 Thread Hung Cuong
I need an server to put my php file to test. So anybody can introduce me some server Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Bug Problems

2003-10-01 Thread Richard Baskett
Well I saw a post on a forum talking about a certain bug that PHP has for Mac OS X.. so I thought.. Im on OS X, I should see if that bug is real since on bugs.php.net they say it's bogus which you can view here: http://bugs.php.net/bug.php?id=25394 So I tried it out.. at first I created a loop

Re: [PHP] Too many connections fix?

2003-10-01 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: This may be debatable, which is better? php searching through a pool of 1000 connections for a free one or the overhead of opening a new resource to the database each request. I suppose people can debate just about anything, but I doubt anyone can come

[PHP] if..else condition for checkbox

2003-10-01 Thread irinchiang
Hi all, May I just ask how do I do a if..elseif..else condition to check if a checkbox have been checked. For some reference, I have attached my HTML code and PHP code below: HTML: html head titlePayment Mode/title style type=text/css @import url(receipt.css); /style /head

[PHP] need PHP server

2003-10-01 Thread Hung Cuong
I need an server to put my php file to post mail. So anybody can introduce me some server Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] your method for validating forms

2003-10-01 Thread Robert Cummings
InterJinn works something like this for it's FormJinn engine. So I'd say it sounds quite good :) Cheers, Rob. On Wed, 2003-10-01 at 19:43, Chris W. Parker wrote: Hey people. I'm trying to come up with an easy way to validate forms. I've got an idea and I'd like your feedback as well as

[PHP] Re: need PHP server

2003-10-01 Thread Cameron Metzke
If your on windows try this -- http://apache2triad.org/ Hung Cuong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I need an server to put my php file to post mail. So anybody can introduce me some server Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: your method for validating forms

2003-10-01 Thread Brad Pauly
On Wed, 2003-10-01 at 20:26, Manuel Lemos wrote: Hello, On 10/01/2003 08:43 PM, Chris W. Parker wrote: $_SESSION['form_errors'] = validateFormData($formdata); redirect(to_the_previous_page.php); You may want to study how this classic form validation and generation class works.

Re: [PHP] Too many connections fix?

2003-10-01 Thread Becoming Digital
I'm with Chris on this one. I did some serious load testing on my servers and always faired better with persistent connections. I don't have the logs handy right now, but I can probably dig them up if anyone really wants to see the numbers. Edward Dudlik Becoming Digital

[PHP] multi uploads permissions

2003-10-01 Thread Cameron Metzke
Hi all, I have a multi upload script, which works, but the end result is that the files that are uploaded are set to permissions of 600. Im think this is because they have a tmp name then are written to the uploads folder so in effect they are written by another system user? (lol ok so im new to

Re: [PHP] Too many connections fix?

2003-10-01 Thread Nicole
I don't see a MaxConnections in Apache conf, or maybe I overlooked it. I do see: MaxClients 150 MaxKeepAliveRequests 100 It seems the latter var there relates more. Any ideas which or if both should be bumped up? I did read -- in various places -- that it was better to use connect, including

[PHP] Re: Too many connections fix?

2003-10-01 Thread Nicole
I am working on a way to do this. The site is for tracking. The hits get stored in the database. The database must be hit in order to retrieve the URL that is needed to redirect to. I am contemplating storing this URL in a file instead of db. Perhaps this will reduce the load. Thanks. I run

[PHP] Testing Variables

2003-10-01 Thread Gerard Samuel
I've noticed code written in this order - if (FALSE === $foo) { // yada yada } Is there a reason/benefit to test variables like that instead of - if ($foo === FALSE) { // yada yada } Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Testing Variables

2003-10-01 Thread Richard Baskett
on 10/1/03 8:23 PM, Gerard Samuel at [EMAIL PROTECTED] wrote: I've noticed code written in this order - if (FALSE === $foo) { // yada yada } Is there a reason/benefit to test variables like that instead of - if ($foo === FALSE) { // yada yada } Thanks I think it's more to

Re: [PHP] Too many connections fix?

2003-10-01 Thread Nicole
Pardon me, I misread a pervious comment. I meant MaxClients. Sigh. too much sleep. -- Nicole aeontrek.com Nicole [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't see a MaxConnections in Apache conf, or maybe I overlooked it. I do see: MaxClients 150

Re: [PHP] Too many connections fix?

2003-10-01 Thread Jason Sheets
Generally persistent connections will almost always be faster there are some considerations though, first resource usage if you are busy site and don't have enough memory to support one connection to the db for each apache process you will run into problems, second if you site is not busy

Re: [PHP] your method for validating forms

2003-10-01 Thread John W. Holmes
Chris W. Parker wrote: What I'd like to do is get rid of all the if's and what not and throw them into a function. What I thought of doing to replace all this is: ? // pseudo code $formdata['fname']['data'] = (!empty($_GET['fname'])) ? $_GET['fname'] : ; $formdata['fname']['type'] = name;

Re: [PHP] Too many connections fix?

2003-10-01 Thread Nicole
Thanks. My problem is that I am getting a too many connections error, and wondered if there was a proper configuration to handle this. I have the problem, regardless of using connect or pconnect. I originally used pconnect for the last year. But my site is growing and growing and am looking for

[PHP] problem with if..else condition

2003-10-01 Thread irinchiang
Hi all, I'm having some problem with my PHP script here. Do hope to receive some help. I have written the script with a if..elseif..else ...condition to check if my checkbox have been checked. There is 3 radio button to be clicked: eg button1 , button 2 and button3.Only one to be

Re: [PHP] Too many connections fix?

2003-10-01 Thread Chris Shiflett
--- Nicole [EMAIL PROTECTED] wrote: I don't see a MaxConnections in Apache conf, or maybe I overlooked it. I do see: MaxClients 150 Maximum connections is the MySQL configuration option. MaxClients is the Apache directive I mentioned. Ultimately, all you have to do to use persistent

Re: [PHP] Too many connections fix?

2003-10-01 Thread Chris Shiflett
--- Nicole [EMAIL PROTECTED] wrote: So I switched to connect, with no luck in fixing the too many connections problem. Now that's some helpful information. The first thing you need to do is forget about persistent connections being the problem. I don't claim to be an expert at debugging MySQL

Re: [PHP] Testing Variables

2003-10-01 Thread Curt Zirzow
* Thus wrote Richard Baskett ([EMAIL PROTECTED]): on 10/1/03 8:23 PM, Gerard Samuel at [EMAIL PROTECTED] wrote: I've noticed code written in this order - if (FALSE === $foo) { // yada yada } Is there a reason/benefit to test variables like that instead of - if ($foo ===

Re: [PHP] Testing Variables

2003-10-01 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: if ($do || false == $do ) { try(); } /* Do, or do not. There is no try. */ Isn't there always try? :-) Chris = HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp My Blog

Re: [PHP] Testing Variables

2003-10-01 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Curt Zirzow [EMAIL PROTECTED] wrote: if ($do || false == $do ) { try(); } /* Do, or do not. There is no try. */ Isn't there always try? :-) Only in php5 :) Curt -- I used to think I was indecisive, but now I'm not so sure. --

Re: [PHP] Show index.php instead of index.html

2003-10-01 Thread Becoming Digital
Contact your hosting provider and ask them to make the change, or go through your control panel and look for a setting that will achieve the desired effect. It's probably hiding under your nose, as this is a fairly common requirement for data-driven sites. In the meantime, upload a new

<    1   2   3   >