[PHP] multiple file upload, yet again

2003-02-08 Thread David T-G
Hi, all -- I realize that this has probably been beaten to death, and I've watched with some excitement the recent crop of discussions of multiple file uploads, but only to be disappointed. I've read in detail the archives and seen countless statements that one cannot upload multiple files in one

RE: [PHP] incromenting $counter in a whloop

2003-02-08 Thread John W. Holmes
> was wondering how you would incroment $counter in a while loop.. i want to > print it out next to each record for a record counter on a web page... while(whatever) { $counter++; echo "You are on loop #$counter"; } ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professiona

Re: [PHP] incromenting $counter in a whloop

2003-02-08 Thread Jason Wong
On Sunday 09 February 2003 13:37, Sunfire wrote: > hi.. > > was wondering how you would incroment $counter in a while loop.. i want to > print it out next to each record for a record counter on a web page... manual > "Language reference" > "Expressions" That should give you enough inspiration. -

[PHP] incromenting $counter in a whloop

2003-02-08 Thread Sunfire
hi.. was wondering how you would incroment $counter in a while loop.. i want to print it out next to each record for a record counter on a web page... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 -

[PHP] Re: Class Interfaces

2003-02-08 Thread Justin Garrett
Nope. You're stuck with straight single inheritance for now. Justin Garrett "Laborda" <[EMAIL PROTECTED]> wrote in message 005201c2cfe9$47c704b0$ad629c40@galaxy">news:005201c2cfe9$47c704b0$ad629c40@galaxy... > > Hello, > > I have a question.. Does PHP have support for Class Interfaces declaratio

Re: [PHP] how to move database from one server to another

2003-02-08 Thread Kevin Waterson
This one time, at band camp, "Sunfire" <[EMAIL PROTECTED]> wrote: > how do you copy a database from a server over to another.. do all i need to > do is copy the tables over to the sql server after i make the db? or is it > more involved than that.. assuming you are using MySQL mysqldump [db

[PHP] Re: Data Structures

2003-02-08 Thread Justin Garrett
You'd create a linked list in PHP just like you would in most languages, however IMHO it's best just to stick with PHP arrays. They grow dynamically and are so easy to work with. There is an ADT extension scheduled for PHP5 http://www.php.net/~sterling/adt/ Justin Garrett "Laborda" <[EMAIL PROT

[PHP] how to move database from one server to another

2003-02-08 Thread Sunfire
hi... couldnt find anything on the list archive about this (maybe i missed it but my internet explorer crashed before i could find it_) how do you copy a database from a server over to another.. do all i need to do is copy the tables over to the sql server after i make the db? or is it more invol

Re: [PHP] Why does this happen?

2003-02-08 Thread Jason k Larson
Because all of your field names are overwriting each other until the last one wins. name="date" This needs to be different for each field so PHP can assign that name as the variable. HTH, Jason k Larson CF High wrote: Hey all. Got a problem with I'm sure a simple solution:: In this test fo

[PHP] Data Structures

2003-02-08 Thread Laborda
Hello, Does anyone know where can I find information about data structures implemented in PHP. I need to find something about Linked Lists, implemented in PHP.. If anyone has any info, I'd appreciate it. I've tried to google it out but I can't find anything. Thanks. Laborda.- -- PHP General Ma

Re: [PHP] How to uncompress PHP

2003-02-08 Thread David T-G
Lin -- ...and then ?$BNS?(B ?$B7C72?(B said... % % Hi, I am Lin. Hello! % % When I execute a command % % gzip -d php-4_3_0_tar.gz % % on the linux. The system show the following error. % % gzip: php-4_3_0_tar.gz: not in gzip format % % How can I uncompress this file. Sounds like it isn't

[PHP] Class Interfaces

2003-02-08 Thread Laborda
Hello, I have a question.. Does PHP have support for Class Interfaces declaration? What in Java would be: public interface MyInterface { final String aString = "Str"; final String oString = "String"; void aFunction(String inter, double face); } ? If not, how can I do this?.. Thanks

php-general Digest 9 Feb 2003 03:04:49 -0000 Issue 1872

2003-02-08 Thread php-general-digest-help
php-general Digest 9 Feb 2003 03:04:49 - Issue 1872 Topics (messages 134873 through 134932): Re: Globals off and passing data 134873 by: Jason Wong Single vs. Multiple DBs || Which way to go? 134874 by: CF High 134875 by: John W. Holmes 134876 by: CF High ne

[PHP] fopen problem

2003-02-08 Thread Jeff Schwartz
I'm having trouble with a basic file write and can't figure out why. It must have something to do with the program the code is in because if I run that same code as a separate program, as the same user, and on the same directory, it works fine. The program is listening on a port with:

Re: [PHP] How to remove only the last character?

2003-02-08 Thread Kevin Waterson
This one time, at band camp, Douglas Douglas <[EMAIL PROTECTED]> wrote: > Good day. > > Is there any PHP function that removes only the last > character of a string and returns the new string? $new = substr("$string", 0, -1); Kevin -- __ (_ \

RE: [PHP] any windows php developers out here?

2003-02-08 Thread John W. Holmes
> So I guess I al looking to finding out what I need to configure IIS to > to get the ISAPI module to work, etc. 1. Unzip the php .zip file to C:\php\ 2. Copy c:\php\sapi\php4isapi.dll to c:\php\php4isapi.dll 3. Ensure the user IIS runs as, generally IUSR_, has read permissions to C:\php\ and al

RE: [PHP] any windows php developers out here?

2003-02-08 Thread Adolfo Bello
On Sat, 2003-02-08 at 21:41, Victor wrote: > "In GNU/Linux, chkconfig --level 35 httpd off" > > Wow man, that just SCREAMS "apache off"! How intuitive Linux is... > - > Vic > > Thanks, I'll try it. > > But, what will that turn off? I have apache 1.X and apache 2.X on red > hat? I want to use ei

RE: [PHP] Why does this happen?

2003-02-08 Thread John W. Holmes
> Got a problem with I'm sure a simple solution:: > > In this test form when I submit and insert into my db, only the last > select > field get entered; i.e. in this case the day value of 25. > > > > Year > > 2002 > > > Month > > 12 > > > Day > > 25 > > > > > All of you

RE: [PHP] Why does this happen?

2003-02-08 Thread Victor
Maybe you should rename them differently/ or make then into an array? -Original Message- From: CF High [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 08, 2003 10:52 PM To: [EMAIL PROTECTED] Subject: [PHP] Why does this happen? Hey all. Got a problem with I'm sure a simple solution:

RE: [PHP] any windows php developers out here?

2003-02-08 Thread Victor
"In GNU/Linux, chkconfig --level 35 httpd off" Wow man, that just SCREAMS "apache off"! How intuitive Linux is... - Vic Thanks, I'll try it. But, what will that turn off? I have apache 1.X and apache 2.X on red hat? I want to use either or, whichever works with the php 4.3 on red hat. So ... wh

Re: [PHP] How to uncompress PHP

2003-02-08 Thread Adolfo Bello
On Sat, 2003-02-08 at 21:26, 林 恵群 wrote: > Hi, I am Lin. > > When I execute a command > > gzip -d php-4_3_0_tar.gz > > on the linux. The system show the following error. > > gzip: php-4_3_0_tar.gz: not in gzip format > > How can I uncompress this file. tar -zxvf php-4_3_0_tar.gz -- __

RE: [PHP] How to uncompress PHP

2003-02-08 Thread Victor
I think it's tar -xvf -Original Message- From: —Ñ ŒbŒQ [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 08, 2003 8:26 PM To: [EMAIL PROTECTED] Subject: [PHP] How to uncompress PHP Hi, I am Lin. When I execute a command gzip -d php-4_3_0_tar.gz on the linux. The system show the

[PHP] How to uncompress PHP

2003-02-08 Thread $BNS(B $B7C72(B
Hi, I am Lin. (B (BWhen I execute a command (B (Bgzip -d php-4_3_0_tar.gz (B (Bon the linux. The system show the following error. (B (Bgzip: php-4_3_0_tar.gz: not in gzip format (B (BHow can I uncompress this file. (B (B__ (BDo You Yahoo!

RE: [PHP] Output yyyymmdd formatted date || 20030131 to FridayJanuary 31, 2003

2003-02-08 Thread John W. Holmes
SELECT * FROM table WHERE date BETWEEN 20030201 AND 20030201 + INTERVAL 7 DAY I assume '20030201' will come from PHP eventually, right, or the current date? For any record between now and 7 days from now: SELECT * FROM table WHERE date BETWEEN CURDATE() AND CURDATE() + INTERVAL 7 DAY For a date

[PHP] Why does this happen?

2003-02-08 Thread CF High
Hey all. Got a problem with I'm sure a simple solution:: In this test form when I submit and insert into my db, only the last select field get entered; i.e. in this case the day value of 25. Year 2002 Month 12 Day 25 Why does this happen? In Cold Fusion I'm able to re

RE: [PHP] any windows php developers out here?

2003-02-08 Thread Adolfo Bello
On Sat, 2003-02-08 at 20:18, Victor wrote: > How do I disable apache 2.0? In Windows, go to service->apache->manual start In GNU/Linux, chkconfig --level 35 httpd off -- __ / \\ @ __ __@ Adolfo Bello <[EMAIL PROTECTED]> / // // /\ / \\

Re: [PHP] Alternating Row Colors in PHP........

2003-02-08 Thread Brian V Bonini
On Sat, 2003-02-08 at 18:25, CF High wrote: > Hey all. > > I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the > following: > > > > Any ideas how to do this in PHP? > One possibility: while (whatever) { $bgcolor = ($i++ & 1) ? '#c0c0c0' : '#ff'; echo "bla-bla

Re: [PHP] MIME Decoding Class

2003-02-08 Thread Hatem Ben
http://sourceforge.net/projects/phpmimeclass "Jonathan Chum" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > I'm looking through Google for MIME decoding classes, one developed by > Richard Heyes used in Pear and a few others. What I'm curious is how > complete are these

Re: [PHP] Output yyyymmdd formatted date || 20030131 to FridayJanuary 31, 2003

2003-02-08 Thread Noah
Right. I've switched the date column from type INT to type DATE in our MySql db. The problem I've had with retrieving records in a certain date range with: SELECT * FROM table WHERE yourdate BETWEEN 20030201 AND 20030207 is getting the latter part of the expression; i.e. in this case 20030207 t

RE: [PHP] any windows php developers out here?

2003-02-08 Thread Victor
How do I disable apache 2.0? -Original Message- From: Jason Sheets [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 08, 2003 6:33 PM To: Victor Cc: [EMAIL PROTECTED] Subject: Re: [PHP] any windows php developers out here? You can install PHP + Apache 1.3 on Windows pretty easily. The

RE: [PHP] any windows php developers out here?

2003-02-08 Thread Victor
I got IIS working fine, and I did I think, the steps in the php ISAPI instaltion manual. I think. .. but when I call the php page, it tries to download it, as far as I know that is a sign that is doesn't know how to handle that file, whicth means that my instaltion is not that great. So I guess I

[PHP] MIME Decoding Class

2003-02-08 Thread Jonathan Chum
I'm looking through Google for MIME decoding classes, one developed by Richard Heyes used in Pear and a few others. What I'm curious is how complete are these classes or if there is one you recommend that completely decodes emails from Outlook, Hotmail, Eudora, etc. based emails. I've looked at so

[PHP] Re: question about quote and double-quoted strings

2003-02-08 Thread Justin Garrett
http://www.php.net/manual/en/language.types.string.php Just the way ' and " are defined. " understands more escape sequences then '. Justin Garrett "Duncan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > i am just adding some mail() functions to my s

[PHP] Test

2003-02-08 Thread John Nichel
Just checking to see if there's a problem with the list, or my STMP server. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] question about quote and double-quoted strings

2003-02-08 Thread Duncan
Hi, i am just adding some mail() functions to my script and had to realize, that this: $email_from = 'From: [EMAIL PROTECTED]\r\nReply-To: [EMAIL PROTECTED]\r\n'; mail($_POST['email'],'Your account details','You can login with your account details\r\nusername: '.$_POST['username'].'\npassword:

RE: [PHP] Permenant Page Generation

2003-02-08 Thread John W. Holmes
> I would like to create two pages using the fwrite() and fopen() > variables...btw I am a newbie: > > One form page to enter information. I've done that and used the same > format as a typical html page. method="post" action="submit.php"> > > I want the second page to show the information was su

RE: [PHP] Output yyyymmdd formatted date || 20030131 to FridayJanuary 31, 2003

2003-02-08 Thread John W. Holmes
> The dates are stored in a MySql db. > > I checked out the MySql DATE_FORMAT function -- pretty cool. > > However, pardon my ignorance here, how can I do date comparisons? > > For example, if I want to retrieve records from the db where the date is > between say, 2003-02-01 and 2003-02-07, will

RE: [PHP] need help with preg_match

2003-02-08 Thread John W. Holmes
> Thank You very much! > It Really works the way I want it to. But i still have a slight problem. > The > script cant read the data if it is on several rows. For example: > > > text > > > > Is there a way to fix this problem? http://www.php.net/manual/en/pcre.pattern.modifiers.php In particu

Re: [PHP] any windows php developers out here?

2003-02-08 Thread Jason Sheets
You can install PHP + Apache 1.3 on Windows pretty easily. There are instructions in the manual at http://www.php.net/manual and there are also pre-constructed installers that other people make (try www.hotscripts.com/PHP under applications). If you just need to get apache 1.3 installed on redhat

RE: [PHP] any windows php developers out here?

2003-02-08 Thread John W. Holmes
> Hello, I am wondering if any of you got a reliable php and MySQL > installation (MySQL is easy) I am mostly wondering if there is a point > in tying to use windows as a development platform for PHP. I have a nice > and working red hat 8.0 installation, but I did an upgrade from 7.3 and > now apac

[PHP] any windows php developers out here?

2003-02-08 Thread Victor
Hello, I am wondering if any of you got a reliable php and MySQL installation (MySQL is easy) I am mostly wondering if there is a point in tying to use windows as a development platform for PHP. I have a nice and working red hat 8.0 installation, but I did an upgrade from 7.3 and now apache doesn't

Re: [PHP] returning results of cURL POST

2003-02-08 Thread Lowell Allen
> From: Lowell Allen <[EMAIL PROTECTED]> > [snip] > > // check cURL results > if ((trim($curl_results) != 1) || (trim($curl_results) != 0)) { > // maybe nothing returned, bail out > echo("Can't confirm results of attempt to add to database!\n"); > exit; > } I knew I'd find a stupid mistake as so

Re: [PHP] 3 tier web development

2003-02-08 Thread Jonathan Chum
I use Smarty for seperate PHP logic and template logic. For database abstraction, I use AdoDB. Not much a fan of Pear Adodb was pretty faithful when I ported my MySQL app to PostGreSQL. "Hardik Doshi" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok so fo

Re: [PHP] need help with preg_match

2003-02-08 Thread joe
Thank You very much! It Really works the way I want it to. But i still have a slight problem. The script cant read the data if it is on several rows. For example: text Is there a way to fix this problem? Thank You! "Chris Hayes" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">ne

[PHP] returning results of cURL POST

2003-02-08 Thread Lowell Allen
I'm using cURL to POST form fields to a PHP script on a different server that does a database insertion. I know the POST is working, because the values are being inserted into the database. But I want to return results from the remote server so I can tell if the insert was *not* done. Here's the r

Re: [PHP] Output yyyymmdd formatted date || 20030131 to FridayJanuary 31, 2003

2003-02-08 Thread Noah
Hey Michael. The dates are stored in a MySql db. I checked out the MySql DATE_FORMAT function -- pretty cool. However, pardon my ignorance here, how can I do date comparisons? For example, if I want to retrieve records from the db where the date is between say, 2003-02-01 and 2003-02-07, will M

Re: [PHP] Output yyyymmdd formatted date || 20030131 to FridayJanuary 31, 2003

2003-02-08 Thread Michael Geier
the real question here is are you "storing" your dates in a file or database. If in a database (say MySQL), you can use the native DATE_FORMAT function of MySQL to pull the date out in the proper format. Otherwise, have a look at http://www.php.net/date Quoting CF High <[EMAIL PROTECTED]>: > S

[PHP] Output yyyymmdd formatted date || 20030131 to FridayJanuary 31, 2003

2003-02-08 Thread CF High
Sorry for the frequent simple posts... I've been storing my dates in mmdd format (apparently this is a bad idea). In any case, I need to display this date format as [day name month name day #, year] e.g. Friday January 31, 2003. Any ideas? Thanks for any leads, --Noah -- -- P

Re: [PHP] Problem When Linking Array Element To Itself

2003-02-08 Thread Chris Hayes
I have an array called $array_of_files. I want to echo each element of that array as a link to itself. That way when I click on an element I can send it as an actual value /usr/local/plesk/apache/vhosts/myserver.com/httpdocs/php/categories/links1.txt Once I place the variable $category inside th

Re: [PHP] Alternating Row Colors in PHP........

2003-02-08 Thread Noah
Thanks olinux. Just what I was looking for -- I'll check it out. -Noah - Original Message - From: "olinux" <[EMAIL PROTECTED]> To: "CF High" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, February 08, 2003 12:45 PM Subject: Re: [PHP] Alternating Row Colors in PHP..

Re: [PHP] need help with preg_match

2003-02-08 Thread Chris Hayes
At 17:21 8-2-2003, you wrote: Hi I have to alter this code: http://www.whatever.ee/', 'r'); for ($src = ''; !feof ($fp); $src .= fgets ($fp, 1024)); fclose ($fp); if (preg_match ('/\([^<]*)\<\/font>/i', $src, $matches)) echo'Match: '.$matches[1].''; else echo'No match !'; ?> It

[PHP] Problem When Linking Array Element To Itself

2003-02-08 Thread Guru Geek
Hello, I have an array called $array_of_files. I want to echo each element of that array as a link to itself. That way when I click on an element I can send it as an actual value Here's my code: for ($counter = 0; $counter < count($array_of_files); $counter++) { $category = $array_of_files[$co

Re: [PHP] Alternating Row Colors in PHP........

2003-02-08 Thread Chris Hayes
At 00:25 9-2-2003, you wrote: Hey all. I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the following: Any ideas how to do this in PHP? one way would be: $color_toggle=true; $color1='red'; $color2='white'; $output=""; for ($i=0;$i<10;$i++) //or any other way to w

Re: [PHP] Alternating Row Colors in PHP........

2003-02-08 Thread olinux
Pop this in your loop $bgcolor = ($i++ % 2) ? '#FF' : '#EE'; echo ""; olinux --- CF High <[EMAIL PROTECTED]> wrote: > Hey all. > > I'm coming from Cold Fusion to PHP; in CF I could > alternate rows with the > following: > > > > Any ideas how to do this in PHP? > > Thanks for c

[PHP] Alternating Row Colors in PHP........

2003-02-08 Thread CF High
Hey all. I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the following: Any ideas how to do this in PHP? Thanks for clues, --Noah -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Another Prob: MySQL Passwords

2003-02-08 Thread Stephen Craton
It's me again, trying to get some more help. My boss is hosting sites now for games and I need some help with setting up phpMyAdmin privelages for certain MySQL users and such. Right now, my problem is setting up a new MySQL username and password. I add a new user in phpMyAdmin, I type in the det

[PHP] problems with 'exec' in 4.3

2003-02-08 Thread Gav
I'm having problems with the exec command since upgrading to 4.3. Code that previously worked now doesn't. I'm using IIS5 and have checked in the php.ini file to make sure that safe mode is off. Is there anything else that I should check? Thanks in advance. -- PHP General Mailing List (http

Re: [PHP] Attaining NTLM information from IE browsers.

2003-02-08 Thread Danny Shepherd
There is actually an NTLM Auth module available for Apache. (http://modntlm.sourceforge.net/). If you really need to do it though PHP I'd suggest running a packet sniffer to see what headers IIS sends and what to expect back from IE. HTH Danny Shepherd. - Original Message - From: "Marri

Re: [PHP] Downloading File rather then Executing

2003-02-08 Thread Stephen Craton
It happens for all the files on the server. Some other subdomains had the same problem but somehow they had fixed it by changing their username and passwords. Another file is this : http://d2mods.xfernet.com/test.php All it has on it is - Original Message - From: "Jason Wong" <[EMAIL P

Re: [PHP] Downloading File rather then Executing

2003-02-08 Thread Jason Wong
On Sunday 09 February 2003 02:46, Stephen Craton wrote: > Got a problem. For some reason, when I try to view a PHP file on my server, > it wants to download the file rather then open and execute. I have no > control over my server so what should I do? > > Here's a sample URL: > > http://d2mods.xfe

[PHP] html tags

2003-02-08 Thread Erich C. Beyrent
Hi everyone, A quick question about html tags and PHP. I have a text area where users can submit text, and I need them to able to have links in the text if they so choose. The contents get written to an ini style flat file database. The problem comes when I try to print that content back out fr

[PHP] Downloading File rather then Executing

2003-02-08 Thread Stephen Craton
Got a problem. For some reason, when I try to view a PHP file on my server, it wants to download the file rather then open and execute. I have no control over my server so what should I do? Here's a sample URL: http://d2mods.xfernet.com/filecenter/team.php Please help! I'm not sending any head

[PHP] Attaining NTLM information from IE browsers.

2003-02-08 Thread Marriner, Bruce W.
I know this is in the archives, but I couldnt seem to find the answer I needed. I am running redhat8, apache 2.0.44, and php 4.2.2. I am trying to write a script that will emulate the IIS server and request NTLM auth. from the browser. And then decode the base64? information and compate th

Re: [PHP] Permenant Page Generation

2003-02-08 Thread Jason Sheets
Hello msmecca, I would suggest reading the PHP tutorials and then taking a look at the PHP manual. If you want to save and display the same page you can use output buffering to capture the html output of your script. If you are just starting with PHP I would recommend reading tutorials or gettin

[PHP] Re: Problems with SQL queries in PHP script

2003-02-08 Thread Justin Garrett
http://www.php.net/manual/en/function.addslashes.php Justin Garrett "Mike Hilty" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > I am running into an issue where when a user inputs an apostrophie ' > into the textarea section of my form, it will ge

[PHP] Permenant Page Generation

2003-02-08 Thread msmecca
I would like to create two pages using the fwrite() and fopen() variables...btw I am a newbie I don't know where to start: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the

[PHP] Problems with SQL queries in PHP script

2003-02-08 Thread Mike Hilty
Hello, I am running into an issue where when a user inputs an apostrophie ' into the textarea section of my form, it will generate an error in the SQL statement. I have narrowed down the issue to this snippet of code: $insertQuery = "INSERT INTO changeLog(vendorNumber, newVendorNumber, old

[PHP] Permenant Page Generation

2003-02-08 Thread Mecca
I would like to create two pages using the fwrite() and fopen() variables...btw I am a newbie: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the information was submitted an

[PHP] need help with preg_match

2003-02-08 Thread joe
Hi I have to alter this code: http://www.whatever.ee/', 'r'); for ($src = ''; !feof ($fp); $src .= fgets ($fp, 1024)); fclose ($fp); if (preg_match ('/\([^<]*)\<\/font>/i', $src, $matches)) echo'Match: '.$matches[1].''; else echo'No match !'; ?> It extracts the data (words) from

Re: [PHP] Single vs. Multiple DBs || Which way to go?

2003-02-08 Thread Noah
Hey John. Thanks for the candid reply -- basket weaving ;--) Re: scoring, yes, you're right, queries are sport dependent; i.e. if you're in the basketball section, basketball queries are run... At this point in my development experience, creating an all sport scoring table is stretching

RE: [PHP] Single vs. Multiple DBs || Which way to go?

2003-02-08 Thread John W. Holmes
> I'm attempting to organize a sport report site into working order. > > We've got approximately 100 tables, and I'm unsure whether to break the > info > up by sport (i.e. baseball, basketball, hockey, etc.) or to lump all the > tables in one db and prefix tables by their sport name (e.g. bk_scori

[PHP] Single vs. Multiple DBs || Which way to go?

2003-02-08 Thread CF High
Hey all. I'm attempting to organize a sport report site into working order. We've got approximately 100 tables, and I'm unsure whether to break the info up by sport (i.e. baseball, basketball, hockey, etc.) or to lump all the tables in one db and prefix tables by their sport name (e.g. bk_scoring

Re: [PHP] Globals off and passing data

2003-02-08 Thread Jason Wong
On Sunday 09 February 2003 07:59, Paul wrote: > I'm opening a socket to the remote machine and using post to send the data. > But please enlighten me, what is the usual method of accessing a remote > database? One usually use stuff like mysql_connect() and friends to connect to databases. If you'

php-general Digest 8 Feb 2003 15:01:27 -0000 Issue 1871

2003-02-08 Thread php-general-digest-help
php-general Digest 8 Feb 2003 15:01:27 - Issue 1871 Topics (messages 134845 through 134872): Re: delete query doesnt work 134845 by: Hardik Doshi Re: strip slashes from variable content 134846 by: Hardik Doshi Re: mail() vs sockets 134847 by: Jason Wong 1348

Re: [PHP] Globals off and passing data

2003-02-08 Thread Paul
I'm opening a socket to the remote machine and using post to send the data. But please enlighten me, what is the usual method of accessing a remote database? Jason Wong wrote: On Sunday 09 February 2003 06:32, Paul wrote: >> I'm working in a multitiered envoronment in development. I'd like to tu

Re: [PHP] Globals off and passing data

2003-02-08 Thread Jason Wong
On Sunday 09 February 2003 06:32, Paul wrote: > I'm working in a multitiered envoronment in development. I'd like to turn > globals off, but I can't figure out how to pass data back and forth between > machines. I'm sending data to a database machine using POST, and I can use > the data once it get

[PHP] pg_connect $B$,;H$($J$$(B

2003-02-08 Thread $BNS(B $B7C72(B
$B;O$a$^$7$F!#(Blin $B$H?=$7$^$9!#(B (B (Bphp$B$N(Bpg_connect$B$G(BpostgreSQL $B$K@\B3$r;n$_$^$7$?$,!"4X?t$,(B $B8+$D$+$j$^$;$s$H%(%i!<$,=P$F$7$^$$$^$7$?!#F1MM$J8=>]$,Ax(B $B6x$7$?J}$,$$$?$h$&$G$9$,!"4N?4$J2r7hJ}K!$O8+$D$+$j$^$;$s(B $B$G$7$?!#$I$J$?$+$,2r7hJ}K!$r$4B8CN$G$7$?$i!"CN7

Re: [PHP] How to remove only the last character?

2003-02-08 Thread Douglas Douglas
I want to thank you Ian, Zydox and Nicos. After Zydox response I checked the manual again and read this part in the substr function: "If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is

[PHP] Globals off and passing data

2003-02-08 Thread Paul
I'm working in a multitiered envoronment in development. I'd like to turn globals off, but I can't figure out how to pass data back and forth between machines. I'm sending data to a database machine using POST, and I can use the data once it gets there, but I can't seem to get anything back. At

[PHP] Re: How to remove only the last character?

2003-02-08 Thread nicos
www.php.net/substr -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Douglas Douglas" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > Good day. > > Is there any PHP function that removes only the last > character of a stri

[PHP] config.ini question

2003-02-08 Thread RoyW
Virtual Directory Support is set to "disabled" where in the config file do I set this to "enabled"? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to remove only the last character?

2003-02-08 Thread Ian Packer
Hiya, Try this, *probably* more efficient but I don't know for sure. Regards, Ian Packer - Original Message - From: "Douglas Douglas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 08, 2003 1:21 PM Subject: [PHP] How to remove only the last character? > Good

[PHP] How to remove only the last character?

2003-02-08 Thread Douglas Douglas
Good day. Is there any PHP function that removes only the last character of a string and returns the new string? I'm looking in the manual and I can't find anything. Until now I'm doing this: $var=substr($var,0,strlen($var)-1) Is this the most efficient way? Thanks. _

Re: [PHP] Vars in URL

2003-02-08 Thread Justin French
on 06/02/03 10:03 AM, Shawn McKenzie ([EMAIL PROTECTED]) wrote: > I am trying to do something simple to sell items with paypal. One of the > options paypal has is a return url, so that after the buyer pays via the > paypal website they are forwarded to the return url (my site) so they can > acces

Re: [PHP] Multi-User phpMyAdmin

2003-02-08 Thread MIKE YRABEDRA
on 2/7/03 3:35 PM, Stephen at [EMAIL PROTECTED] wrote: > Can anyone tell me a tutorial on how to setup a multi-user phpmyadmin > installation? I would like to just have one central copy, then have other > users able to access their corresponding database in phpMyAdmin. How can I > do this? It is

Re: [PHP] Dynamic input fields in Form

2003-02-08 Thread Frank Keessen
Hi, Thanks guys for helping me out! Regards, Frank Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Frank Keessen" <[EMAIL PROTECTED]>; "Jon Haworth" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 9:23 PM Subject: Re: [PHP] Dynamic input f

Re: [PHP] GD Chinese support - php4.3

2003-02-08 Thread Eddy-Das
but even i tried the hong kong local chinese font, it still display the same thing! -- - Eddy Wong __ inframatrix internet solutions http://www.inframatrix.com/ ¥¿¤KEddy Regular Octa-Eddy ¡@¢¨¡½¢ª¡½¢©¡@ ¢¨¢«¡@¡@¡½¢ª¢© ¡½¡@¡@¡@¡½¡@¡½ ¡½¡½¡½¡@¡½¡@¡½ ¡½¡@¡@¡@¡½¡@¡½