[PHP] Image raw data

2004-01-14 Thread php
Hello I've been using the image functions to resize images and do very basic stuff. I have PHP 4.2.2 with the built in GD. I was wondering if there's a way to access the raw image data, somethiung like image_get_as_array() so that you can do more nifty things, such as applying convolution

Re: [PHP] class limitations brought by PEAR

2004-01-14 Thread Burhan Khalid
Glenn Yonemitsu wrote: I don't want to rely on PEAR, mainly because I don't know it too well to use it fully. But most PHP installs come with base PEAR classes, so does that take away my ability to name classes that PEAR already made? (ie. class DB). No. -- PHP General Mailing List

[PHP] Defining own globals

2004-01-14 Thread Ville Mattila
Hello, Would it be possible to make all hard-coded variables beginning with $_ automatically global? I've found useful to set some variables per page to $_PAGE variable (for example $_PAGE['title'] etc) that would be nice to get available to all functions without extra procedures (like global

[PHP] Re: class limitations brought by PEAR

2004-01-14 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I don't want to rely on PEAR, mainly because I don't know it too well to use it fully. But most PHP installs come with base PEAR classes, so does that take away my ability to name classes that PEAR already made? (ie. class DB).

RE: [PHP] PHP, MySQL problem

2004-01-14 Thread Humberto Silva
So, does anybody know what I the problem might be? Hi, Well you need to post the code so one can see what's the problem Humberto Silva World Editing Portugal -Original Message- From: Nicolai Elmqvist [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 14 de Janeiro de 2004 0:11

[PHP] PHP,MySQL problem

2004-01-14 Thread Nicolai Elmqvist
Sorry, I should have done that from the beginning, but here it is. I have looked further on the variables and it seams like the name attribute sumbit (in the form) is not converted to the $submit variable when I press the button. If I make a var_dump() in the beginning and end of the code, $submit

Re: [PHP] PHP,MySQL problem

2004-01-14 Thread Richard Davey
Hello Nicolai, Wednesday, January 14, 2004, 12:14:09 PM, you wrote: NE Sorry, I should have done that from the beginning, but here it is. I have NE looked further on the variables and it seams like the name attribute NE sumbit (in the form) is not converted to the $submit variable when I NE if

[PHP] Can you recommend a good PHP includes tutorial?

2004-01-14 Thread Freedomware
I thought this would be the easiest thing to learn, but I'm striking out right and left. I bought a book about PHP, but the includes examples don't work for me at all. I searched several forums and www.php.net, but it's hard to even zero in on a good tutorial. I think part of the problem is

RE: [PHP] Can you recommend a good PHP includes tutorial?

2004-01-14 Thread Jay Blanchard
[snip] I thought this would be the easiest thing to learn, but I'm striking out right and left. I bought a book about PHP, but the includes examples don't work for me at all. I searched several forums and www.php.net, but it's hard to even zero in on a good tutorial. [/snip]

[PHP] Re: Can you recommend a good PHP includes tutorial?

2004-01-14 Thread Freedomware
Yikes, scratch my last post! I think I stumbled over the answer just after I posted it. Freedomware wrote: I thought this would be the easiest thing to learn, but I'm striking out right and left. I bought a book about PHP, but the includes examples don't work for me at all. I searched several

[PHP] Multiple RDBMS in one request

2004-01-14 Thread Geoff Caplan
Hi folks, Is it possible to interact with multiple RDBMS during a single request? I seem to remember that with older versions at least, there was some problems with this, but can't find anything definitive in the archive or docs. Can't try it out in practice as I only have 1 RDBMS installed on

RE: [PHP] Multiple RDBMS in one request

2004-01-14 Thread Jay Blanchard
[snip] Is it possible to interact with multiple RDBMS during a single request? I seem to remember that with older versions at least, there was some problems with this, but can't find anything definitive in the archive or docs. [/snip] If they are on one server, yes. Do not select a db, just

Re: [PHP] Defining own globals

2004-01-14 Thread CPT John W. Holmes
From: Ville Mattila [EMAIL PROTECTED] Would it be possible to make all hard-coded variables beginning with $_ automatically global? I've found useful to set some variables per page to $_PAGE variable (for example $_PAGE['title'] etc) that would be nice to get available to all functions

Re: [PHP] Multiple RDBMS in one request

2004-01-14 Thread CPT John W. Holmes
From: Geoff Caplan [EMAIL PROTECTED] Is it possible to interact with multiple RDBMS during a single request? I seem to remember that with older versions at least, there was some problems with this, but can't find anything definitive in the archive or docs. Yes, you can open up multiple

Re: [PHP] Can you recommend a good PHP includes tutorial?

2004-01-14 Thread Freedomware
Wow, that is a lot simpler than I imagined. Thanks for the tip! Jay Blanchard wrote: [snip] I thought this would be the easiest thing to learn, but I'm striking out right and left. I bought a book about PHP, but the includes examples don't work for me at all. I searched several forums and

[PHP] mysql selecting question

2004-01-14 Thread tony
hi I have a question I have to select a group of person i.e $query = SELECT * FROM table WHERE id = 10; my question is that can we order order in random mode?? or do we have to program it in php any help is appreciated -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] convert date from UK to US for strtotime

2004-01-14 Thread Jon Bennett
Hi, I'm trying to re-work this code from the php site http://uk.php.net/strtotime so that my users can input dates in UK format (dd-mm-) and still use strtotime. // from http://uk.php.net/strtotime $date=explode(/,trim($records[2])); $posted=strtotime ($date[1]./.$date[0]./.$date[2]); so

Re: [PHP] Multiple RDBMS in one request

2004-01-14 Thread Geoff Caplan
John CJWH Yes, you can open up multiple connections to different database systems in a CJWH single script. Thanks for the quick response: saved me from spending half a day setting up a new RDBMS to try it out... CJWH Each one is separate, though; you're not going to be doing CJWH any joins

Re: [PHP] Security issues

2004-01-14 Thread memoimyself
Hi Chris, First of all, thanks a lot for sharing your modus operandi with us. On 14 Jan 2004 at 7:32, Chris W wrote: I then verify that every character in the string is with in the ascii range of a space to the ~ which is basically all the characters on the key board. How exactly are you

Re: [PHP] convert date from UK to US for strtotime

2004-01-14 Thread CPT John W. Holmes
From: Jon Bennett [EMAIL PROTECTED] I'm trying to re-work this code from the php site http://uk.php.net/strtotime so that my users can input dates in UK format (dd-mm-) and still use strtotime. // from http://uk.php.net/strtotime $date=explode(/,trim($records[2])); $posted=strtotime

Re: [PHP] convert date from UK to US for strtotime

2004-01-14 Thread php
What I really need is to re-order the string that a user inputs, say, 21/04/2004, so that it becomes 04/21/2004 so I can use strtotime. I use preg_match() (http://www.php.net/manual/de/function.preg-match.php): $dateuk = '21/04/2004'; preg_match(/([0-9]{1,2})\/([0-9]{1,2})\/([0-9]{2,4})/,

Re: [PHP] convert date from UK to US for strtotime

2004-01-14 Thread Jon Bennett
ok, got it: // converts a UK date (DD-MM-YYY) to a US date (MM-DD-) and vice versa function convertDate ($sDate) { $aDate = split (/, $sDate); $return = $aDate[1]./.$aDate[0]./.$aDate[2]; return $return; } Cheers, Jon jon bennett | [EMAIL PROTECTED] new media creative _ _

[PHP] ODBC in PHP4.3.4 crashes when used with Mysql 4

2004-01-14 Thread Nico Sabbi
Hi, I have Mysql-4.0-14, MyODBC 3.51.06 and unixODBC 2.2.0. They are working perfectly together (isql works correctly) but php-4.3.x always crashes when I try odbc_connect() on the same DSN I use with isql (env vars are correctly set). Is this a known bug? This is a bt of a simplified example

[PHP] Security issues

2004-01-14 Thread Chris W
I wanted to run by everyone what I am doing in my application to help prevent someone from inadvertently or intensionally breaking the system and compromising security. First some quick background. This is an Apache/php/mysql project. It is a wish list database where people can create an

Re: [PHP] Defining own globals

2004-01-14 Thread Chris Boget
Would it be possible to make all hard-coded variables beginning with $_ automatically global? I've found useful to set some variables per page to $_PAGE variable (for example $_PAGE['title'] etc) that would be nice to get available to all functions without extra procedures (like global

Re: [PHP] Security issues

2004-01-14 Thread Chris W
[EMAIL PROTECTED] wrote: Hi Chris, First of all, thanks a lot for sharing your modus operandi with us. On 14 Jan 2004 at 7:32, Chris W wrote: I then verify that every character in the string is with in the ascii range of a space to the ~ which is basically all the characters on the key board.

[PHP] nested tags

2004-01-14 Thread Gregor Jaksa
Can anyone provide me with some link or code on how to deal with nested tags. thx! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] nested tags

2004-01-14 Thread David T-G
Gregor -- ...and then Gregor Jaksa said... % % Can anyone provide me with some link or code on how to deal with nested % tags. What kind of tags? HTML? PHP? Mattress? What do you want to accomplish? % % thx! HAND :-D -- David T-G * There is too much animal

Re: [PHP] nested tags

2004-01-14 Thread Gregor Jaksa
HTML tags. I can have something like table first table second table /table table /table and i need to convert each table/table tags into something more user friendly. David T-G [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -- PHP General Mailing List

Re[2]: [PHP] nested tags

2004-01-14 Thread Richard Davey
Hello Gregor, Wednesday, January 14, 2004, 3:22:32 PM, you wrote: GJ HTML tags. GJ I can have something like GJ table GJ first GJ table GJ second table GJ /table GJ table GJ /table GJ and i need to convert each table/table tags into something more user GJ friendly. Come again?

[PHP] Compiling php for MySQL and Apache 2 Newbie

2004-01-14 Thread James Marcinek
Hello Everyone, I'm still having problems compiling the latest version of PHP. I have several issues - The apache 2 that was installed was from a Red Hat package. From what I can tell it is configured in a manner that is similar to the with-apxs2filter. The configuration file that point to this

Re: Re[2]: [PHP] nested tags

2004-01-14 Thread CPT John W. Holmes
From: Richard Davey [EMAIL PROTECTED] GJ HTML tags. GJ I can have something like GJ table GJ first GJ table GJ second table GJ /table GJ table GJ /table GJ and i need to convert each table/table tags into something more user GJ friendly. Come again? Might be helpful to

Re: [PHP] mysql selecting question

2004-01-14 Thread Lowell Allen
I have a question I have to select a group of person i.e $query = SELECT * FROM table WHERE id = 10; my question is that can we order order in random mode?? or do we have to program it in php any help is appreciated Not a PHP question, but if you're using MySQL version 3.23.2 or later,

Re: [PHP] TMP directory problem

2004-01-14 Thread Matt Matijevich
[snip] When I had a look at the servers phpinfo and I saw that both upload_tmp_dir and user_dir have no value and no value set for them.how do I change it (via a .htaccess file as I dont have access to the php.ini) so that I can write the data as required from my script? [/snip] Take a look

Re: [PHP] Can you recommend a good PHP includes tutorial?

2004-01-14 Thread Steve Edberg
And, you can even do this automatically using the auto_prepend_file and auto_append_file settings: http://us3.php.net/manual/en/configuration.directives.php These can be set in your Apache config file, php.ini or .htaccess, so you can control what files are used down to the lowest

[PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Roger Spears
Hello, This question may border on OT... I have a web form where visitors must enter large amounts of text at one time (text area). Once submitted, the large amount of text is stored as a CLOB in an Oracle database. Some of my visitors create their text in Ms-Word and then cut and paste it

[PHP] Re: Apache - Previewing Pages with Dreamweaver

2004-01-14 Thread zerof
To use LIVEDATA in Dreamweaver you need: ( You are at Windows environment. ) 1 ) Apache server running ( normaly as a service ); 2 ) PHP installed and configured; 3 ) MySQL installed; 4 ) Dreamweaver configured for the server model PHP/MySQL. Some pages are not shown correctly in LIVEDATA (

[PHP] Re: credit card acceptance recommendations?

2004-01-14 Thread Matt Grimm
Your needs are a little vague here -- if you're not looking for a service that will actually accept payment, but will simply ensure a valid credit card number has been submitted, you can build your own validation class. There's a fabulous article on the process at Sitepoint:

[PHP][PEAR] PEAR::DB_Common::nextId()

2004-01-14 Thread Alessandro Vitale
I would like to get the last insert id... anyone has some experience in using the PEAR::DB_Common::nextId() ? any suggestion would be very much appreciated. alessandro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] nested tags

2004-01-14 Thread memoimyself
Gregor, On 14 Jan 2004 at 16:02, Gregor Jaksa wrote: Can anyone provide me with some link or code on how to deal with nested tags. Could you please tell us a bit more about what you want or need? Are you talking about HTML or XML? What do you want to be able to do with your nested tags? You

Re: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Marek Kilimajer
I don't know what the character is but if you paste it into the textarea, ord() will tell you. Roger Spears wrote: Hello, This question may border on OT... I have a web form where visitors must enter large amounts of text at one time (text area). Once submitted, the large amount of text is

[PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hi, I have a blog kind of app running on my site...presently it shows like this: show.php?category=Beginners%20Cornersid=1id=1 After searching on google on how to make my blog my search engine friendly I came accorss mod_rewrite and couple of tutorials on it, finally the one I understood and

[PHP] Re: Security issues

2004-01-14 Thread John Leach
On Wed, 2004-01-14 at 13:32, Chris W wrote: Are there many php or mysql configuration considerations for making the site secure? I have already done the obvious with my sql and set up the grant tables with passwords for all users and removed the [EMAIL PROTECTED] user. Give the MySQL user

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 11:14, Ryan A wrote: Hi, I have a blog kind of app running on my site...presently it shows like this: show.php?category=Beginners%20Cornersid=1id=1 After searching on google on how to make my blog my search engine friendly I came accorss mod_rewrite and couple of

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Thanks for replying. It seems to be partly working. /* How isn't it working? What happens? I would try one variable first, get that working, then add the others. Also, I am not sure how it will handle the space in Beginners Corner. Try passing simple values first. */ Its a bit hard to

Re: [PHP] Compiling php for MySQL and Apache 2 Newbie

2004-01-14 Thread R'twick Niceorgaw
Hi James, James Marcinek wrote: Hello Everyone, I'm still having problems compiling the latest version of PHP. I have several issues - The apache 2 that was installed was from a Red Hat package. From what I can tell it is configured in a manner that is similar to the with-apxs2filter. The

Re: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Roger Spears
Marek Kilimajer wrote: I don't know what the character is but if you paste it into the textarea, ord() will tell you. I have done some further testing. I created a form with a text area. When you hit submit, it just redisplays what ever you typed. Now, using this new test script if I cut

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 02:44, Ryan A wrote: It seems to be partly working. /* How isn't it working? What happens? I would try one variable first, get that working, then add the others. Also, I am not sure how it will handle the space in Beginners Corner. Try passing simple values

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 11:44, Ryan A wrote: [snip] Its a bit hard to explain what happens so see for yourself: Heres the index page: http://www.rizkhan.net/articles/articles.php Heres the actual page: http://www.rizkhan.net/articles/show.php?category=Beginners%20Cornersid=1id=1 and then if

Re: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Roger Spears
Marek Kilimajer wrote: I don't know what the character is but if you paste it into the textarea, ord() will tell you. When I run ord(), it returns the value of 19. I'm guessing that is a hex value. And when I look that up on the ascII table, it says: 19 DC3 (Device Control 3) For some

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Lowell Allen
On Thursday 15 January 2004 02:44, Ryan A wrote: It seems to be partly working. /* How isn't it working? What happens? I would try one variable first, get that working, then add the others. Also, I am not sure how it will handle the space in Beginners Corner. Try passing simple values

[PHP] Re: PHP, MySQL problem

2004-01-14 Thread Jan Grafström
Hi Add records with this code. ?php $name=isset($_POST['name']) ? $_POST['name'] :''; $address=isset($_POST['address']) ? $_POST['address'] :''; if (!empty($name)) { mysql_connect($server,$user,$pass) or die (Error conecting); mysql_select_db($dbnamn,$conection) or die (no db .$dbnamn); $query =

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey Jason, Brad, Thanks for replying. I took out the .php part...and even tried it with [L] tacked to the end of the second linenot working Heres how my .htaccess looks now: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetrysid=$2id=$3 I even took out the space

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 12:41, Ryan A wrote: Hey Jason, Brad, Thanks for replying. I took out the .php part...and even tried it with [L] tacked to the end of the second linenot working Heres how my .htaccess looks now: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*)

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Lowell Allen
[snip] I took out the .php part...and even tried it with [L] tacked to the end of the second linenot working Heres how my .htaccess looks now: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetrysid=$2id=$3 I even took out the space which was in category.

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Ok, have added echo Ok,we are in show.php; and if you go to http://rizkhan.net/articles/show/category/1/2 or http://rizkhan.net/articles/show.php?category=poetrysid=1id=2 you will see that its echoing that without a problem..so this is partly working. now what to do about the

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 13:14, Ryan A wrote: Hey, Ok, have added echo Ok,we are in show.php; and if you go to http://rizkhan.net/articles/show/category/1/2 or http://rizkhan.net/articles/show.php?category=poetrysid=1id=2 you will see that its echoing that without a problem..so this is

Re: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Dagfinn Reiersøl
Roger Spears wrote: Marek Kilimajer wrote: I don't know what the character is but if you paste it into the textarea, ord() will tell you. When I run ord(), it returns the value of 19. I'm guessing that is a hex value. And when I look that up on the ascII table, it says: 19 DC3 (Device

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, I put this in for testing: if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No \$_GET[id]br;} if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No \$_GET[sid]br;} and heres the output: No $_GET[id] No $_GET[sid] So the variables are not being passed Any idea why and what I

[PHP] alternative to protecting files through http auth.

2004-01-14 Thread Scott Taylor
Is there no other way to protect your (non PHP) files than through authentication? I've been trying to set up a system that will protect files. Those trying to access the files would only be able to do so after entering their email address. So I set up a form that submits the email to my

RE: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Williams, Olwen - SAL
I't the Word smart quotes. A bit of experimenting suggests ASCII 145 and 146 for single quotes and 147 and 148 for double quotes. I have the same problem with my forms, and for me they display okay in IE, but not in Mozilla. I must put some editing in place for this :-) Olwen Williams [EMAIL

[PHP] Re: alternative to protecting files through http auth.

2004-01-14 Thread Paul Chvostek
On Wed, Jan 14, 2004 at 04:17:06PM -0500, Scott Taylor wrote: Is there no other way to protect your (non PHP) files than through authentication? I've been trying to set up a system that will protect files. Those trying to access the files would only be able to do so after entering their

[PHP] Re: alternative to protecting files through http auth.

2004-01-14 Thread Luke
there has been a discussion in this group recently about URL re-writing (see URL rewriting...anybody done this? and replies) That is a possibility, using a combination of URL Re-Writing PHP Sessions/Cookies And the Location: header So all requests go back to the index, then you decide from the

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 05:01, Ryan A wrote: I put this in for testing: if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No \$_GET[id]br;} if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No \$_GET[sid]br;} and heres the output: No $_GET[id] No $_GET[sid] So the

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Oops sorry, missed that. Heres whats on top of the page: echo Ok,we are in show.phpbr; if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No \$_GET[id]br;} if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No \$_GET[sid]br;} print_r($_GET); print_r($_GET['id']); print_r($_GET['sid']);

[PHP] Missing Array Key with apache_request_headers()

2004-01-14 Thread Philip Pawley
Hello, I don't get this at all. I'm trying to use php to manipulate my HTTP headers. [ Background Info about HTTP headers.] [ If an ETag header is sent by the server, then, next time a user-agent requests the same page, it sends back that header's value - in an If-None-Match header. ] The

[PHP] multi-table select?

2004-01-14 Thread Kirk Babb
I'm looking for a good way to do the following: I have two tables, one named teams and one named divisions. Divisions relates divisionID to the name of the division (division_name). In teams I have the divisionID stored along with the team_name. [BG info: teams can be relegated or promoted so

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 15:11, Ryan A wrote: [snip] and heres the output: Ok,we are in show.php No $_GET[id] No $_GET[sid] Array ( ) Ideas? Seems like you are getting closer. You are going to the right place, but none of your variables are making it. I am not sure what your rule looks

Re: [PHP] multi-table select?

2004-01-14 Thread Toby Irmer
Try SELECT teams.*, divisions.id AS divisonid, divisions.name AS divisionname FROM teams LEFT JOIN divisions ON teams.divisonID = divisions.divisionID if the ids are the same you can actually also write ON teams.divisonID and omit = divisions.divisionID ... I think. hth toby I'm looking

RE: [PHP] multi-table select?

2004-01-14 Thread Martin Towell
This is a basic table join: select * from teams, divisions where teams.divisionID = divisions.divisionID -Original Message- From: Kirk Babb [mailto:[EMAIL PROTECTED] Sent: Thursday, 15 January 2004 9:41 AM To: [EMAIL PROTECTED] Subject: [PHP] multi-table select? I'm looking

[PHP] Re: alternative to protecting files through http auth.

2004-01-14 Thread Scott Taylor
Paul Chvostek wrote: On Wed, Jan 14, 2004 at 04:17:06PM -0500, Scott Taylor wrote: Is there no other way to protect your (non PHP) files than through authentication? I've been trying to set up a system that will protect files. Those trying to access the files would only be able to do so

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, At least you remember what it used to look like, I dont! Soo many modificatios in both .htaccess and httpd.conf and restarts...have just lost track. Will try your example one at a time and see what happens. Thanks again. Cheers, -Ryan Seems like you are getting closer. You are going to

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Matt Matijevich
I am a little late but I have used the method described on a list apart http://www.alistapart.com/articles/succeed/ and it works really well. You might want to give it a try, I think it works a little bit different than the way you are trying. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] multi-table select?

2004-01-14 Thread Toby Irmer
i must overlooked that... no wonder my pages all take ages to load *g* ;) ;) - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Kirk Babb' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 11:52 PM Subject: RE: [PHP] multi-table select? This is a

[PHP] SOLVED= is ' or different in MS-Word then ascII?

2004-01-14 Thread Roger Spears
Hello Everybody, I have found a solution and/or the root of the problem. I googled on the topic of MS-Word + smart quotes. That lead me to this site: http://www.rpgtimes.net/rpgtimes/guide.php?guide=1 It seems that the default for Word is to have smart quotes to on. When you have smart quotes

Re: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Tom Rogers
Hi, Thursday, January 15, 2004, 3:07:02 AM, you wrote: RS Hello, RS This question may border on OT... RS I have a web form where visitors must enter large amounts of text at one RS time (text area). Once submitted, the large amount of text is stored as RS a CLOB in an Oracle database. RS Some

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hi again, I did a little pokeing around and installed this on 3 differient serversand the results were identical... so its not the servers fault but something with the directives... got some interesting results with my testing am using this: echo Ok,we are in show.phpbr;

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Justin Patrin
RewriteEngine On RewriteRule ^show/(.*)/(.*) /show.php?sid=$1id=$2 Try: RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1id=$2 -- paperCrane Justin Patrin -- Question Everything, Reject Nothing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Script Needed

2004-01-14 Thread Eric Belardo
Good evening all, I am designing a website were different users will be posting their portfolios and I am seeking a PHP Contact form script that will email JUST the person on the profile and the profiled person's email will remain anonymous. Does anyone know if this script exists?? Eric

Re: [PHP] Script Needed

2004-01-14 Thread Philip J. Newman
payme $80 a hour and i can write one ... (o; - Original Message - From: Eric Belardo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 2:33 PM Subject: [PHP] Script Needed Good evening all, I am designing a website were different users will be posting their

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Thanks for replying. Nope, does not work. Looks like I got a problem that finally stumped the whole listlucky me :-p Cheers, -Ryan On 1/15/2004 2:28:33 AM, Justin Patrin ([EMAIL PROTECTED]) wrote: RewriteEngine On RewriteRule ^show/(.*)/(.*) /show.php?sid=$1id=$2 Try:

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 09:28, Justin Patrin wrote: RewriteEngine On RewriteRule ^show/(.*)/(.*) /show.php?sid=$1id=$2 Try: RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1id=$2 The original ought to work just fine -- I have it working here. -- Jason Wong - Gremlins Associates -

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 09:42, Ryan A wrote: Nope, does not work. Looks like I got a problem that finally stumped the whole listlucky me This works fine for me: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?a=$1b=$2c=$3 What version of Apache/PHP are you using?

Re[2]: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Tom Rogers
Hi, Thursday, January 15, 2004, 10:41:57 AM, you wrote: TR Hi, TR Thursday, January 15, 2004, 3:07:02 AM, you wrote: RS Hello, RS This question may border on OT... RS I have a web form where visitors must enter large amounts of text at one RS time (text area). Once submitted, the large amount

RE: [PHP] Re: Ver 5.0 Questions ...

2004-01-14 Thread Mark Charette
If you read through the archives you'll find it isn't so much that PHP is the problem per se, but many of the PHP modules. If you use the multi-threading model of Apache 2 (the raison d'etre for using Apache 2 for most people) then all the modules have to be thread-safe, and that's a non-trivial

[PHP] Re: Script Needed

2004-01-14 Thread Ben Ramsey
The script should be easy enough to create on your own. Just check the documentation on the mail() function at php.net. -Ben Eric Belardo wrote: Good evening all, I am designing a website were different users will be posting their portfolios and I am seeking a PHP Contact form script that

[PHP] upload picture: limit size problems

2004-01-14 Thread Matt Hedges
Hello, with ya'lls help I've gotten a php that uploads only a jpg... now I'm trying to add a constraint that limits the width and size... I've been reading the manual (don't understand the error_messages)... and can't figure it out... this is what I have so far: ? $base_img_dir = images/;

RE: [PHP] Installing PHP on 2nd Windows Drive

2004-01-14 Thread Warren Vail
There is only one port 80 (the port used by your browser by default to connect to apache), choose a different port for the second instance, and you should be ok, but all url's will have to have a non-standard port number. Same is true for MySQL (different port number, but same conflict).

Re: [PHP] upload picture: limit size problems

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 12:03, Matt Hedges wrote: with ya'lls help I've gotten a php that uploads only a jpg... now I'm trying to add a constraint that limits the width and size... I've been reading the manual (don't understand the error_messages)... and can't figure it out... this is

[PHP] Re: file writing question

2004-01-14 Thread Mehdi Achour
Please send your questions only to php-general ... Mehdi Achour Hello all, Thanks in advance. I have a quesetion about writing to files. I am successfully opening a file and writing to it, but I'm having problems inserting text. My file currently has the following structure:

[PHP] Variable PHP Includes - Is there such a thing?

2004-01-14 Thread Freedomware
Suppose you design a standard banner for the top of your web pages and use an include to insert it into every page on your site, like this: ?php include (../../../../includes/header.php); ? But you later decide you'd like to change just one element on each page. For example, you might design a

Re: [PHP] Having a bit of regex troubles

2004-01-14 Thread David OBrien
I just ran this on this line... for ($x=0; $xstrlen($field);$x++) { echo ( .ord($field{$x}) . ) ; } to see the ascii values to make sure nothing funky was there and it still stopped after the

[PHP] Getting PHP to work with SQLite

2004-01-14 Thread gohaku
Hi everyone, I'm currently trying to use SQLite databases with PHP 4.3.2 I downloaded the SQLite-PHP module and tried './configure' but couldn't get that to work. Also, even If I could get './configure' to work, where would I install the appropriate files and what do I have to modify in