Re[2]: [PHP] Scripts creating files and folders into un/grp "Nobody" on Apache

2004-03-10 Thread Tom Rogers
Hi, Thursday, March 11, 2004, 5:52:08 PM, you wrote: >> Use the php ftp functions to create directories and move uploaded >> files would be one way. >> >> -- >> regards, >> Tom J> Move the uploaded files? You mean create the directory in the wrong spot and J> then move it to the right spot? and

[PHP] Re: Listing for a specific list of files

2004-03-10 Thread David Robley
[EMAIL PROTECTED] (Brent Clark) wrote in news:[EMAIL PROTECTED]: > Hi there > > I need to perform a function whereby I can list a directory (which is I > can do) > but the problem is that I want to list only a certain list of files that > is in the directory. > for example in linux > I do a: >

Re: [PHP] Scripts creating files and folders into un/grp "Nobody" on Apache

2004-03-10 Thread Jay
> Use the php ftp functions to create directories and move uploaded > files would be one way. > > -- > regards, > Tom Move the uploaded files? You mean create the directory in the wrong spot and then move it to the right spot? and the same with the files? -- PHP General Mailing List (http://www

[PHP] Scripts creating files and folders into un/grp "Nobody" on Apache

2004-03-10 Thread Jay
Hi. I have a script that creates a folder and a bunch of jpegs... however instead of creating them into the user/group I'm in (let's call it "myGroup") it creates them into "Nobody". The problem becomes that when I ftp in to delete the files and idenitfy myself as myGroup, it fails to delete any of

Re: [PHP] Scripts creating files and folders into un/grp "Nobody" on Apache

2004-03-10 Thread Tom Rogers
Hi, Thursday, March 11, 2004, 5:20:04 PM, you wrote: J> Hi. J> I have a script that creates a folder and a bunch of jpegs... however J> instead of creating them into the user/group I'm in (let's call it J> "myGroup") it creates them into "Nobody". The problem becomes that when I J> ftp in to dele

[PHP] Scripts creating files and folders into un/grp "Nobody" on Apache

2004-03-10 Thread Jay
Hi. I have a script that creates a folder and a bunch of jpegs... however instead of creating them into the user/group I'm in (let's call it "myGroup") it creates them into "Nobody". The problem becomes that when I ftp in to delete the files and idenitfy myself as myGroup, it fails to delete any o

[PHP] Scripts creating files and folders into un/grp "Nobody" on Apache

2004-03-10 Thread Jay
Hi. I have a script that creates a folder and a bunch of jpegs... however instead of creating them into the user/group I'm in (let's call it "myGroup") it creates them into "Nobody". The problem becomes that when I ftp in to delete the files and idenitfy myself as myGroup, it fails to delete any o

Re: [PHP] AI:Categorize

2004-03-10 Thread Adam i Agnieszka Gasiorowski FNORD
Evan Nemerson wrote: > There is an artificial neural network extension in the CVS repository at > sf.net/projects/fann (disclaimer, I'm the author of that extension and a > developer for the FANN library). I don't know of any bayesian networks for > PHP, but I could be wrong. Sorry to hea

Re: [PHP] Regexp Oddity

2004-03-10 Thread Raditha Dissanayake
print "Matches: " . preg_match('/((?i)rah)\s+\1/', "RAH RAH") . "\n"; print "Matches: " . preg_match('/((?i)rah)\s+\1/', "rah rah") . is what you should use. [EMAIL PROTECTED] wrote: I must be missing something obvious ... I am trying to use backreferences in a PCRE regexp to check for a r

Re: [PHP] Screen Res

2004-03-10 Thread Raditha Dissanayake
1) Your questions is not very clear. 2) javascript and php are not stronly typed languages. 3) This topic has been covered quite extensively in the past please check the archives. all the best res0b8b6 wrote: I am trying to get the users screen res into a var for php. And I have the Javascript

[PHP] Listing for a specific list of files

2004-03-10 Thread Brent Clark
Hi there I need to perform a function whereby I can list a directory (which is I can do) but the problem is that I want to list only a certain list of files that is in the directory. for example in linux I do a: ls -l 00*.pdf If some one can knows of a url as an example or could help in some wa

[PHP] Re: Screen Res

2004-03-10 Thread Luis Mirabal
please post the code, so we can see the errors luis. "Res0b8b6" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > I am trying to get the users screen res into a var for php. And I have > the Javascript that gets the screen res. But when I try to put that into > a var, it puts it

[PHP] Screen Res

2004-03-10 Thread res0b8b6
I am trying to get the users screen res into a var for php. And I have the Javascript that gets the screen res. But when I try to put that into a var, it puts it in as a string, storing the javascript code instead of the results of that code. Is there a way to fix this? -- PHP General Mailing Lis

Re: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread J J
Wow I think you are on to something!!! I'll give it a whirl! Thanks! --- [EMAIL PROTECTED] wrote: > On 10 Mar 2004 J J wrote: > > > My problem is how do I recreate this in PHP to > make > > sure any newly added records follow this same > unique > > ID? > > I haven't played much with these fun

[PHP] Regexp Oddity

2004-03-10 Thread trlists
I must be missing something obvious ... I am trying to use backreferences in a PCRE regexp to check for a repeated character, but they don't seem to work. I've used regexps often before, but never needed backreferences. For example this: print "Matches: " . preg_match("/(a)\1/", "aa"

Re: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread trlists
On 10 Mar 2004 J J wrote: > My problem is how do I recreate this in PHP to make > sure any newly added records follow this same unique > ID? I haven't played much with these functions but I think for MySQL you'd want something like this, for the state "XX" (excuse the wrapped lines):

Re: [PHP] odd acrobat reaction to streaming files

2004-03-10 Thread daniel
stuff i've added to my header class header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must- revalidate"); header("Cache-Control: post-check=0, p

Re: [PHP] magic_quotes_sybase - Windows MSSQL

2004-03-10 Thread Tom Rogers
Hi, Thursday, March 11, 2004, 3:23:20 AM, you wrote: J> My ISP has the following settings in their php.ini file: J> magic_quotes_gpc = ON J> magic_quotes_sybase = OFF J> I am using a Windows Server and a SQL Server database. J> I need to set magic_quotes_sybase to ON so that quotes will be esca

[PHP] odd acrobat reaction to streaming files

2004-03-10 Thread Scott Taylor
I have been using a php file to stream pdf (and various other sorts of files)... Here's my code. if ($extension == ".doc"){$type = "application/msword";} else if ($extension == ".pdf"){$type = "application/pdf";} else if ($extension == ".exe"){$type = "a

Re: [PHP] How to mesure response time of php pages

2004-03-10 Thread Tom Rogers
Hi, Thursday, March 11, 2004, 11:05:08 AM, you wrote: M> Hi there, M> can anybody recommend tools to messure page loading time of php pages. M> I am working on a new site and it apears to me that the old one loads M> much faster. Are there any tools around to break this down to hard numbers? M>

Re: [PHP] Spelling without Aspell/Pspell

2004-03-10 Thread daniel
is there a prebuilt so for solaris ? which i cant load in via php load_dl ? > On Wednesday 10 March 2004 05:59 pm, Justin French wrote: >> Has anyone written/found a library (commercial/free/whatever) that can >> be used like Aspell/Pspell, but doesn't require a recompile of PHP? > > If modules are

Re: [PHP] Passing array from class to class produces more than one result...

2004-03-10 Thread Firman Wandayandi
Hi Jon! If you wanna do that, use pass by reference operator "&" in front of your method/function, the method should be like this: class someClass { function &fetchArray() { // do something } } Good luck, Firman - Original Message - From: "Jonathan Villa" <[EMAIL PRO

Re: [PHP] AI:Categorizer

2004-03-10 Thread Evan Nemerson
On Wednesday 10 March 2004 04:08 am, Adam i Agnieszka Gasiorowski FNORD wrote: > Is there avaiable something alike > a port of PERL AI:Categorizer? Google didn't know what that was, so I'm assuming you meant AI::Categorize. If you just want to classify documents as, for example, html, pdf,

Re: [PHP] Spelling without Aspell/Pspell

2004-03-10 Thread Evan Nemerson
On Wednesday 10 March 2004 05:59 pm, Justin French wrote: > Has anyone written/found a library (commercial/free/whatever) that can > be used like Aspell/Pspell, but doesn't require a recompile of PHP? If modules are okay, there's an extension for enchant in PECL. Otherwise, at least aspell has a

Re[2]: [PHP] Re: Are $_POST and $_GET interchangable? MORE

2004-03-10 Thread Richard Davey
Hello daniel, Thursday, March 11, 2004, 2:40:08 AM, you wrote: deo> something a little off topic, aparantly the manual says that $_POST is read deo> only ? Where does it say this? The $_POST array is like any other array, although populated at the start, you can still manipulate it, remove from

Re: [PHP] Re: Are $_POST and $_GET interchangable? MORE

2004-03-10 Thread daniel
something a little off topic, aparantly the manual says that $_POST is read only ? I've managed in 4.3.1 to add tot he $_POST array after posting ?? hehe > > "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] [snip] > stuff > [/snip] > >>From http://www.w3.org/T

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
To everyone, especially Richard, Thanks a lot for the help. I have accomplished everything I needed to do with your help, and I have never used PHP before. Thanks again! alistair -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Spelling without Aspell/Pspell

2004-03-10 Thread Justin French
Has anyone written/found a library (commercial/free/whatever) that can be used like Aspell/Pspell, but doesn't require a recompile of PHP? In other words, something that will work on a base install of PHP4.2+. --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread J J
Yeah thanks for the feedback, I'm already including a primary key auto_increment field in place to tie the tables together with an ID I *know* will be unique. This other ID scheme is just to work within their existing system that uses this. I'm just trying to mirror/maintain that scheme for their

Re[2]: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
Hello Alistair, Thursday, March 11, 2004, 1:25:47 AM, you wrote: AH> unset($type); AH> $type = $_GET['type']; AH> $link = mysql_connect('localhost', 'user', 'password'); AH> if (!$link) { AH> echo "Couldn't make a connection!"; AH> exit; AH> } AH> $db = mysql_sele

Re: [PHP] Re: Are $_POST and $_GET interchangable? MORE

2004-03-10 Thread Five
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] stuff [/snip] >From http://www.w3.org/TR/html4/interact/forms.html#h-17.13.1 17.13.1 Form submission method The method attribute of the FORM element specifies the HTTP method used to send the form to the p

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Rodrigo Castro
On Wednesday 10 March 2004 18:54, Raditha Dissanayake wrote: > Hi. > There is an ADO simulator for PHP (i think it's called ADODB PHP but i > can't remember the link). There is also a asp to php converter called > (can you guess? ) asp2php. http://php.weblogs.com/ And Pear::DB must work too :P h

[PHP] proxy of sorts

2004-03-10 Thread erythros
two files proxy.php and image.php proxy downloads the website and image downloads the pictures proxy.php-- http://www.website.com/image.php?image='; $myproxy = 'http://www.website.com/proxy.php?web='; $site = 'http://www\.website\.com/proxy\

RE: [PHP] How to mesure response time of php pages

2004-03-10 Thread Jason Sheets
You can also use something like Turck MMCache to accelerate the scripts. There is a class at http://pear.php.net for benchmarking PHP scripts and you can use a web client that times how long it takes to download a page. I would look at template caching and Turck MMCache to increase performance. j

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Sorry, was the query! Richard Davey wrote: Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH> I get this error: mysql_num_rows(): supplied argument is not a valid AH> MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over be

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Richard Davey wrote: Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH> I get this error: mysql_num_rows(): supplied argument is not a valid AH> MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over before anything else. Mayb

RE: [PHP] How to mesure response time of php pages

2004-03-10 Thread Chris W. Parker
Merlin on Wednesday, March 10, 2004 5:05 PM said: > can anybody recommend tools to messure page loading time of php pages. > I am working on a new site and it apears to me that the old one loads > much faster. Are there any tools around to break this down to hard > n

[PHP] How to mesure response time of php pages

2004-03-10 Thread Merlin
Hi there, can anybody recommend tools to messure page loading time of php pages. I am working on a new site and it apears to me that the old one loads much faster. Are there any tools around to break this down to hard numbers? thanx for any hint, merlin -- PHP General Mailing List (http://www.

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread Miles Thompson
At 04:10 PM 3/10/2004 -0800, Chris W. Parker wrote: J J on Wednesday, March 10, 2004 4:03 PM said: > I'd like to keep it in one field if possible since > that's how their database is now and data will be > going back and forth. [snip] > So any state with more than on

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Raditha Dissanayake
Hi. There is an ADO simulator for PHP (i think it's called ADODB PHP but i can't remember the link). There is also a asp to php converter called (can you guess? ) asp2php. Alistair Hayward wrote: Hi , What is the equavilant in PHP to creating a recordset in ASP using a query? This is what I d

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread Chris W. Parker
J J on Wednesday, March 10, 2004 4:22 PM said: > Will it be able to figure out what the last number is > if it's a character type and the number is something > like 3? So it'll add one to make it 4 and not > something like 10003. php knows. you'll just have

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread J J
Will it be able to figure out what the last number is if it's a character type and the number is something like 3? So it'll add one to make it 4 and not something like 10003. ?? --- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > yeah that makes sense. hmm.. well i'll give you my > ide

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread Chris W. Parker
J J on Wednesday, March 10, 2004 4:03 PM said: > I'd like to keep it in one field if possible since > that's how their database is now and data will be > going back and forth. [snip] > So any state with more than one record can be > sequential and not jump around l

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread J J
I'd like to keep it in one field if possible since that's how their database is now and data will be going back and forth. Plus there should be allowed two of the same numbers, so like: AL3 KY3 So any state with more than one record can be sequential and not jump around like KY3, AL0

RE: [PHP] Unique ID system - need help/ideas

2004-03-10 Thread Chris W. Parker
J J on Wednesday, March 10, 2004 3:46 PM said: > Any ideas? Thank you in advance! does it all have to be in the same field? can you not just combine two fields? one field would be called 'id' and it would be auto-incrementing. second field would be 'state' and it w

[PHP] Unique ID system - need help/ideas

2004-03-10 Thread J J
I was given a database that has uniques IDs such as: AL1 AL2 AR1 AR2 MI1 etc... The first two letters are based on the state they live in, then it would need to look at the next 5 characters to determine the next ID. My problem is how do I recreate this in PHP to make sure

Re[2]: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH> I get this error: mysql_num_rows(): supplied argument is not a valid AH> MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over before anything else. Maybe post that part of y

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Richard Davey wrote: A few ways to do this: $total_records = mysql_num_rows($result); for ($i=0; $i < $total_records; $i++) { $data = mysql_fetch_assoc($result); print_r($data); } $data will now be an array holding the first set of information. The print_r line just displays it so you can

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Sam Masiello
Since I am assuming "Type" is a text field, you will want to enclose it in single quotes. Also, because I am anal retentive, I like to also use the addslashes() function on any input coming in on the GET string or via a POST. Also, since all variables are preceded by a $ character, your call to

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Richard: Thank you so much! Richard Davey wrote: Hello Alistair, Wednesday, March 10, 2004, 10:26:03 PM, you wrote: AH> dim Type AH> Type = CStr(Request.QueryString("action")) (getting parameter from URL) unset($type); $type = $_GET['action']; (Please note - you don't HAVE to "unset" each variab

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
Hello Alistair, Wednesday, March 10, 2004, 10:26:03 PM, you wrote: AH> dim Type AH> Type = CStr(Request.QueryString("action")) (getting parameter from URL) unset($type); $type = $_GET['action']; (Please note - you don't HAVE to "unset" each variable, but if you are working in a Register Globals

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Sam Masiello
Not trying to sound rude or anything, but have you looked up the mysql functions at http://php.net/mysql in your research? I would start with mysql_connect(), mysql_query(), and mysql_fetch_array()/mysql_result(). There are lots of user notes on each page as well which should be of assistance.

Re: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
This is what I have: $connection = mysql_connect("localhost","root","batman"); if (!$connection) { echo "Couldn't make a connection!"; exit; } $db = mysql_select_db("sealhouse", $connection); if (!$db) { echo "Couldn't select database!";

Re: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Thanks Chris, Believe me, I have been doing research non-stop for a few days now and this is my last resort. The problem is the language. I can't find what I'm looking for on the net because I don't know what it's called. I have worked out how to create a connection to a mySQL server and datab

RE: [PHP] Re: ASP to PHP language problems

2004-03-10 Thread Chris W. Parker
Alistair Hayward on Wednesday, March 10, 2004 2:46 PM said: > This is what I get when I try to create the recordset > > Notice: Use of undefined constant DBlink - assumed 'DBlink' in > D:\Development\Completed\Sealhouse\phpSealTest\ProductSpecs.php on > line 24

[PHP] Re: ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
This is what I get when I try to create the recordset Notice: Use of undefined constant DBlink - assumed 'DBlink' in D:\Development\Completed\Sealhouse\phpSealTest\ProductSpecs.php on line 24 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in D:\Development\Com

[PHP] Re: ASP to PHP language problems

2004-03-10 Thread Ligaya Turmelle
I don't know ASP but I think this is what you want: $sql = "SELECT * FROM table WHERE Type = \"& type & \" order by style;"; $resultID = mysql_query($sql, DBlink); // send the query and returns a pointer to the results while ($row = mysql_fetch_assoc($resultID)) // while there are results giv

[PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
Hi , What is the equavilant in PHP to creating a recordset in ASP using a query? This is what I do in PHP: .. dim Type Type = CStr(Request.QueryString("action")) (getting parameter from URL) Dim cnn ' ADO connection Dim rst ' ADO recordset Dim strDBPath ' path to

RE: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Shaunak Kashyap
Thanks for the prompt reply. I downloaded the file from www.GaryKeith.com and set up the php.ini entry to point to it. Then I called get_browser() and it returned nothing. Once again, my configuration is as under: OS: Linux Red Hat Enterprise WS PHP: 4.2.3 Web server: Apache 1.3.29 Have you tri

[PHP] PHP on Novell server

2004-03-10 Thread Tim Thorburn
Hi, I'm putting together a proposal to design a website that is to be hosted on a Novell Enterprise 5.1 webserver - I'm told its an off-shoot of the Netscape Enterprise server. I've spoken with the network admin, and we're playing some phone tag right now, so I thought I'd ask here - is it po

[PHP] If Using PHP CLI to Query Oracle8I DB, is Version Number Critical?

2004-03-10 Thread Martin McCormick
We use PHP 4.3.4 (cli) to query a Microsoft SQL database server with no problem. We are now going to attempt the same sort of thing, only with a Pinnacle server running an Oracle8I data base. The php installation is on a FreeBSD UNIX platform and the Pinnacle server is on a Window

Re: [PHP] perl, cgi and php

2004-03-10 Thread joel boonstra
On Wed, Mar 10, 2004 at 04:07:28PM -0500, Edward Peloke wrote: > First let me say, I know very little about perl and cgi. I have a friend > who is moving his site to a new hosting company. One of his php pages has > the following line of code: > > virtual("./timeline/ganttChart.cgi?user={$gall

[PHP] perl, cgi and php

2004-03-10 Thread Edward Peloke
Hello, First let me say, I know very little about perl and cgi. I have a friend who is moving his site to a new hosting company. One of his php pages has the following line of code: session->username}"); ?> but when the page is displayed all that shows up is the content of the .cgi script. I

RE: [PHP] arrays, loops, vars and props

2004-03-10 Thread Jason Davidson
Im fully aware of diffrent ways of doing it, my question is, in the 2 ways i mentioned, which is more efficient. Ill take the question to the internals list. Thanks for your responses. Jason "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > Luis Mirabal > on We

[PHP] Re: what does this mean?

2004-03-10 Thread Luis Mirabal
the casting is as follows, any value distinct from zero, null or empty string is converted to true, else the it is converted to false "Harry Wiens" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > $this->styles['shadow'] = (boolean)$bool; >

RE: [PHP] arrays, loops, vars and props

2004-03-10 Thread Chris W. Parker
Luis Mirabal on Wednesday, March 10, 2004 12:30 PM said: > i would do it this way > > function MyClass() > { > $this->myArray = range(0, 99); > } guys (luis), guys (mike), let's not try to one-up each other... ... ... but i would take it a step further. :P

RE: [PHP] arrays, loops, vars and props

2004-03-10 Thread Michal Migurski
>here's how i would do it (coding styles aside): > >function MyClass() >{ >$limit = 100; > >$i = -1; >while(++$i < $limit) >{ >$this->myArray[] = $i; >} >} Don't forget poor old range: $this->myArray = range(0, 99);

Re: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread James Kaufman
On Wed, Mar 10, 2004 at 02:21:19PM -0500, Shaunak Kashyap wrote: > I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's > get_browser function which needs a file called browscap.ini on the server. > It *seems* that there is no such file available for Linux (I have checked > the

Re: [PHP] arrays, loops, vars and props

2004-03-10 Thread Luis Mirabal
i would do it this way function MyClass() { $this->myArray = range(0, 99); } luis. "Chris W. Parker" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] Jason Davidson on Wednesday, March 10, 2004 12:25 AM said: > would the following example be

[PHP] Re: Passing array from class to class produces more than one result...

2004-03-10 Thread Luis Mirabal
mmmh... i think its not coded the right way, first of all, you shouldn't put this: $this->setArray(@mysql_fetch_array($this->getResultID())); in the Select method, you should do it in your FetchArray method, every time it gets called, and return the value directly or false if there are no more ro

[PHP] error_log set but still writing to syslog and the apache error_log

2004-03-10 Thread Jason Lehman
I have set error_log to /var/logs/php_error.log and no matter what it keeps writing to syslog. I have restarted the server and it shows up in the phpinfo(); correctly but it won't write to the it keeps writing to syslog. I have changed the owner to apache.apache and I have kept it to root.ro

RE: [PHP] arrays, loops, vars and props

2004-03-10 Thread Chris W. Parker
Jason Davidson on Wednesday, March 10, 2004 12:25 AM said: > would the following example be faster or slower had i simply done > $this->myArray[$i] = $i; > > class MyClass { > var $myArray = array(); > > function MyClass() { > $myTempArray = array();

RE: [PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Chris W. Parker
Shaunak Kashyap on Wednesday, March 10, 2004 11:21 AM said: > I am running Apache 1.3.29 on a Linux platform. I am trying to use > PHP's get_browser function which needs a file called browscap.ini on > the server. It *seems* that there is no such file available for L

[PHP] get_browser() - browscap.ini for Linux

2004-03-10 Thread Shaunak Kashyap
I am running Apache 1.3.29 on a Linux platform. I am trying to use PHP's get_browser function which needs a file called browscap.ini on the server. It *seems* that there is no such file available for Linux (I have checked the manual and the link that it mentions). Can anyone point me to a source f

RE: [PHP] new to php question

2004-03-10 Thread Chris W. Parker
Luke Brindley on Wednesday, March 10, 2004 10:37 AM said: > Specifically, I want to create an online form that the > booking agent can fill out with information like Date, Time, Cover > Charge, Band Name, Description, etc and have this data populate the > calendar pa

Re: [PHP] Letters and Numbers limitation

2004-03-10 Thread Larry E . Ullman
Form takes parameter username, so I want to accept username taht includes only numbers and letters. How can I check if variable contains only letters and numbers? Use regular expressions. See the PHP manual (for PCRE or POSIX) for more. You'll also find a number of tutorials online about validati

Re: [PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Kelly Hallman
Mar 10 at 9:45am, Five wrote: > If I have some snap and I want to see some other employee's info I can > then type it into the URL > http://www.foo.com/employee.php?eid=bstreisand > > The rules for usage come down to this - A little common sense goes a > long way. There are really no specific rule

[PHP] Letters and Numbers limitation

2004-03-10 Thread Mike Mapsnac
Form takes parameter username, so I want to accept username taht includes only numbers and letters. How can I check if variable contains only letters and numbers? _ FREE pop-up blocking with the new MSN Toolbar – get it now! http://

[PHP] new to php question

2004-03-10 Thread Luke Brindley
I'm new to php but want to use it for a music club's website I'm working on. Specifically, I want to create an online form that the booking agent can fill out with information like Date, Time, Cover Charge, Band Name, Description, etc and have this data populate the calendar page in chronologi

RE: [PHP] small business inventory management package

2004-03-10 Thread Ralph
OSSUITE: http://sourceforge.net/projects/ossuite/ or just browse through sourceforge projects: http://sourceforge.net/softwaremap/trove_list.php?form_cat=129&discrim=183 -Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 1:38 AM To: [EM

Re: [PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Five
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] for $_GET[], I found indirect references (documentation of other subjects that use $_GET[] and $_POST[] ) but no documentation focusing directly on either. Is there on line documentation specifically dedicated to

RE: [PHP] wysiwyg editor

2004-03-10 Thread Vincent Jansen
I use http://www.fredck.com/FCKeditor/ Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to make sure a redirect works

2004-03-10 Thread Vincent Jansen
>If you output a location header then I don't know what the browser will >do with text sent after that. Hopefully nothing! I experienced some strange behaviour(=no redirect at all!!) with a script that send data after the location header. Best to do this header("Location: http://somesite.nl";)

[PHP] magic_quotes_sybase - Windows MSSQL

2004-03-10 Thread Jeremy
My ISP has the following settings in their php.ini file: magic_quotes_gpc = ON magic_quotes_sybase = OFF I am using a Windows Server and a SQL Server database. I need to set magic_quotes_sybase to ON so that quotes will be escaped with another quote instead of a slash. However, I do not have ac

Re: [PHP] Return value efficiency question

2004-03-10 Thread Robert Cummings
On Wed, 2004-03-10 at 08:30, [EMAIL PROTECTED] wrote: > On 10 Mar 2004 Robert Cummings wrote: > > > Overhead is minimal since PHP doesn't actually copy the contents of the > > container until an attempt to modify it is made. At which time the > > contents are only actually copied if the internal r

RE: [PHP] Warning: Cannot modify header information - headers already sent by (o

2004-03-10 Thread Chris W. Parker
Mike Mapsnac on Wednesday, March 10, 2004 4:31 AM said: > Thank for your help .. no problem. > One more question: > I include header to the acount.php page. And it gives the same error, > but in this situation I don't have any outputs. yes you are. here is why: -

Re: [PHP] Control Structure Syntax Question

2004-03-10 Thread Michal Migurski
>$x ? xxx : xxx > >But it makes your code less readable IMHO and offers no tangible benefit >whatsoever. It offers the tangible benefit of evaluating to something: return (isset($foo) ? $foo : $bar); $query = "select * from foo" .(isset($bar) ? " where bar = ${ba

[PHP] Passing array from class to class produces more than one result...

2004-03-10 Thread Jonathan Villa
I'm writing a DBI class with the following function function Select($sql) { $this->setResultID(@mysql_query($sql,$this->getDBConn())); if ($this->getResultID() == false) Error::fatalError(__FILE__.' ('.__LINE__.') : Unable to run query : '.mysql_error().'('.mysql_er

Re: [PHP] what does this mean?

2004-03-10 Thread "Miguel J. Jiménez"
That's a boolean casting; used for forcing a variable to become boolean... Hope it helps... Harry Wiens wrote: $this->styles['shadow'] = (boolean)$bool; what does "(boolean)$bool" mean? mfg. harry wiens -- Miguel J. Jiménez ISOTROL, S.A. (Á

Re: [PHP] what does this mean?

2004-03-10 Thread Richard Davey
Hello Harry, Wednesday, March 10, 2004, 12:55:44 PM, you wrote: $this->>styles['shadow'] = (boolean)$bool; HW> what does "(boolean)$bool" mean? It's casting the value ($bool) to a boolean (i.e. TRUE or FALSE). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP

Re: [PHP] what does this mean?

2004-03-10 Thread Raditha Dissanayake
The () operator means 'cast into' so (boolean)$bool means cast this into a booolean. Harry Wiens wrote: $this->styles['shadow'] = (boolean)$bool; what does "(boolean)$bool" mean? mfg. harry wiens -- Raditha Dissanayake. ---

[PHP] what does this mean?

2004-03-10 Thread Harry Wiens
$this->styles['shadow'] = (boolean)$bool; what does "(boolean)$bool" mean? mfg. harry wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Are $_POST and $_GET interchangable? MORE

2004-03-10 Thread Jay Blanchard
[snip] stuff [/snip] >From http://www.w3.org/TR/html4/interact/forms.html#h-17.13.1 17.13.1 Form submission method The method attribute of the FORM element specifies the HTTP method used to send the form to the processing agent. This attribute may take two values: get: With the HTTP "get

Re: [PHP] Return value efficiency question

2004-03-10 Thread messju mohr
On Wed, Mar 10, 2004 at 04:48:06PM +0300, Burhan Khalid wrote: > Kelly Hallman wrote: > >Consider this method: > > > >function xyz() { > >return $this->data = unserialize($this->serial); } > > > > Maybe I'm just being stupid, but wouldn't that simply return true if the > assignment wa

RE: [PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Jay Blanchard
[snip] for $_GET[], I found indirect references (documentation of other subjects that use $_GET[] and $_POST[] ) but no documentation focusing directly on either. Is there on line documentation specifically dedicated to these two phenomena? [/snip] This is more of a general web programming ques

RE: [PHP] Return value efficiency question

2004-03-10 Thread Ford, Mike [LSS]
On 10 March 2004 13:48, Burhan Khalid wrote: > Kelly Hallman wrote: > > Consider this method: > > > > function xyz() { > > return $this->data = unserialize($this->serial); } > > > > Maybe I'm just being stupid, but wouldn't that simply return true if > the assignment was successful,

Re: [PHP] How to make sure a redirect works

2004-03-10 Thread Burhan Khalid
Henry Grech-Cini wrote: Hi All, I want to randomly select a desitniation page and use cookies to ensure that refreshes and return visits on the same machine always return to that desination (assuming the cookie is intact). Imagine that we have an array of URL's $url=array(1=>"dest1.html", "dest2

Re: [PHP] Return value efficiency question

2004-03-10 Thread Burhan Khalid
Kelly Hallman wrote: Consider this method: function xyz() { return $this->data = unserialize($this->serial); } Maybe I'm just being stupid, but wouldn't that simply return true if the assignment was successful, and false otherwise? [ trimmed ] -- PHP General Mailing List (http://www

[PHP] Re: Are $_POST and $_GET interchangable?

2004-03-10 Thread Five
"David Jackson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I understand the difference between how they process from data. > Most application seem to reply on $_GET which display the > session/from/cookie values in the URL windows. > > What I'm not clear on are there times when

Re: [PHP] How to make sure a redirect works

2004-03-10 Thread trlists
On 10 Mar 2004 Henry Grech-Cini wrote: > My question is are there problems with: > > header("Location: ".$url[$index]); > ?> As long as no other headers have been sent that should work fine. Location: is the standard method for redirection -- I'm not aware of any circumstances in which it wo

  1   2   >