Re: [PHP] Select drop-down box overflow?

2002-12-11 Thread Jason Wong
On Wednesday 11 December 2002 13:17, Doug Parker wrote: I've got sort of an odd one here. I'm populating a select drop down box with a substantial number of options - actually every county in the U.S.- which is about 3000 results from a query. The problem is that when I load the page,

[PHP] fgetcsv Help

2002-12-11 Thread Richard Baskett
I am parsing a csv file with fgetcsv and the fields are surrounding by double quotes, now I am running into a problem periodically that when there are quotes within the value it is treating it like another value instead of the same value. Any ideas on how to get around that? I am thinking I

Re: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return Values

2002-12-11 Thread KANM MD
Here is the code in a readable form (alterations for security, simplicity ...) if ((stristr($HTTP_SERVER_VARS[remote_address],XXX.YYY.ZZZ))||($pwprotect== 'password')) { setcookie(pwprotect2,1,time()+300); } else { echo form(ASK FOR PASSWORD)/form; } Now when you say blank line does that mean

[PHP] Passing variables from script to script

2002-12-11 Thread Stefan Hoelzner
Hi folks, surely this question has already been answered many times before in this ng, but nevertheless: I want to pass variables from one .php to another .php script. But I do not want to use either the http://localhost/target.php?var1=testvar2=test2 nor the POST method. I would like to

Re: [PHP] Question Regarding Cookies, Sent Headers, and FunctionsThat Return Values

2002-12-11 Thread bahwi
Forgive if this is not the answer to the problem. I think he means a blank line at the beginning of the file before the ? If you have anything before the ? it gets sent to the browser, and thus headers have already been sent (This is the same for print statements, etc). --Joseph Guhlin -

Re: [PHP] Passing variables from script to script

2002-12-11 Thread Jason Wong
On Wednesday 11 December 2002 07:56, Stefan Hoelzner wrote: Hi folks, surely this question has already been answered many times before in this ng, but nevertheless: So why don't you search the archives to read the answers!?! I want to pass variables from one .php to another .php script.

Re: [PHP] Passing variables from script to script

2002-12-11 Thread bahwi
If they are static you could store them in another php file and include them. HTTP is stateless, meaning one person can go from one page to another or log out in between all of this. It also means there is no authentication for users, you can not prove that one person is the same person the

Re: [PHP] Passing variables from script to script

2002-12-11 Thread Philip Olson
On Tue, 10 Dec 2002, Stefan Hoelzner wrote: Hi folks, surely this question has already been answered many times before in this ng, but nevertheless: I want to pass variables from one .php to another .php script. But I do not want to use either the

[PHP] Rename an upload

2002-12-11 Thread Steve Jackson
I'm trying to rename an uploaded file with the value of a select I have in the uploaded form. Can someone point me in the right direction. The PHP.net rename manual isn't helping a lot? My code: //Form for upload form enctype=multipart/form-data action=eshop_upload.php method=post input

[PHP] Uploading a directory via browser w/ php

2002-12-11 Thread Davíð Örn Jóhannsson
Hi I’m wondering if any body has done somthing like uploading a whole directory trough webbrowser using php, or has any Ideas how such a thing can be done, any Ideas appriciated. Regards, David

Re: [PHP] Passing variables from script to script

2002-12-11 Thread Chris Hewitt
Stefan Hoelzner wrote: nevertheless: I want to pass variables from one .php to another .php script. But I do not want to use either the http://localhost/target.php?var1=testvar2=test2 nor the POST method. I would like to pass over general variables like usernames and Sessions. The data is

[PHP] trimming nans from a string

2002-12-11 Thread Frands Sørensen
I want a user to type a number in an html-form. Afterwards I want to check for wrong typing. How do I remove all non numbers from the string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rename an upload

2002-12-11 Thread Jason Wong
On Wednesday 11 December 2002 17:30, Steve Jackson wrote: I'm trying to rename an uploaded file with the value of a select I have in the uploaded form. Can someone point me in the right direction. The PHP.net rename manual isn't helping a lot? My code: What is the problem?

Re: [PHP] trimming nans from a string

2002-12-11 Thread Leif K-Brooks
$variable = ereg_replace('[^0-9]','',$variable); Frands Sørensen wrote: I want a user to type a number in an html-form. Afterwards I want to check for wrong typing. How do I remove all non numbers from the string? -- The above message is encrypted with double rot13 encoding. Any

Re: [PHP] Forms

2002-12-11 Thread Chris Hewitt
Beauford.2002 wrote: --snip--- The problem is that the form is not sending the employee name to the php page. If I insert the name in the php page manually, it works fine, so the problem appears to be with the form.

Re: [PHP] Displaying output from MySQL

2002-12-11 Thread Chris Hewitt
Beauford.2002 wrote: Hi, Not sure if this is a PHP of a MySQL question, so I am sending it to both groups. Basically I have a list of numbers with two decimal places in the MySQL database, but I only want to display some of them with the decimal points. Check out number_format() in the manual

Re: [PHP] Page display of query resuts using ODBC

2002-12-11 Thread Tom Rogers
Hi, Wednesday, December 11, 2002, 2:05:25 AM, you wrote: LR Hi, LR Just wondering if anybody knows a script to display a resultset over several pages using page numers previous, next links. LR So far I've only found such scripts for mysql using the the following sql syntax which is not odbc

[PHP] PHP-4.3-dev - What is it for?

2002-12-11 Thread info
Hello all, simple question: I successfully compiled and installed PHP-4.3-dev from tarball on a RH7.3 box. What is the meaning of dev in PHP-4.3-dev? Can I use it as a fully working PHP distribution? Oliver Etzel

Re: [PHP] PHP-4.3-dev - What is it for?

2002-12-11 Thread Dan Hardiker
What is the meaning of dev in PHP-4.3-dev? Development release, not a Production release. Its a snapshot of the upcoming 4.3 system. Can I use it as a fully working PHP distribution? No, as the name suggests its purely an insight as to where the development is up to at this point in time.

[PHP] Refresing a PHP page! which is called from a FORM

2002-12-11 Thread Shams
Hi, I have a index.html file, which creates a HTML login page - which is a simple FORM/FORM allowing a user to enter their username and password into 2 seperate fields. The action is to call another php script for processing, i.e. FORM action=login.php method=post. Now, I can understand why it

Re[2]: [PHP] Page display of query resuts using ODBC

2002-12-11 Thread Tom Rogers
Hi, Wednesday, December 11, 2002, 8:02:41 PM, you wrote: TR Hi, TR Wednesday, December 11, 2002, 2:05:25 AM, you wrote: LR Hi, LR Just wondering if anybody knows a script to display a resultset over several pages using page numers previous, next links. LR So far I've only found such scripts

RE: [PHP] Rename an upload

2002-12-11 Thread Steve Jackson
On Wednesday 11 December 2002 17:30, Steve Jackson wrote: I'm trying to rename an uploaded file with the value of a select I have in the uploaded form. Can someone point me in the right direction. The PHP.net rename manual isn't helping a lot? My code: What is the problem? I can't

[PHP] Problem relating to images in email

2002-12-11 Thread khuram noman
Hello Dear Members Iam new at this mailing list . I have a problem in php is that i want to store the images on local hard disk that are in email (pop3 account) by runing a php file. how can i do that. please help me asap. Thanks Khuram noman __

Re: [PHP] How to test php.info from command line

2002-12-11 Thread Sean Burlington
Jason Wong wrote: On Tuesday 10 December 2002 02:39, [EMAIL PROTECTED] wrote: Hello All, How to test php.info from command line: #echo ?php phpinfo()? | php to the standard output (screen) - or if you want to a file like this way: #echo ?php phpinfo()? | php /tmp/test_php.txt Oliver

[PHP] PHP Editor Browser View? (Beginner Question)

2002-12-11 Thread Paul Lazare
A Company Programmed my Homepage in PHP. Now I want to make simple changes like changing some text. And I want to try it alone, so I got myselv PHPEdit. I copied the complete Homepage on my harddisc to work on it tiht PHP Edit and everthing works fine. But how can I see the result of the changes

RE: [PHP] Re: Help please: Unable to get $_POST[variable]; to work in a form.

2002-12-11 Thread Ford, Mike [LSS]
- Original Message - From: Victor [EMAIL PROTECTED] To: 'Rick Emery' [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 1:49 PM Subject: RE: [PHP] Re: Help please: Unable to get $_POST[variable]; to work in a form. Why are you using $_POST[]? I thought you had to use

Re: [PHP] PHP Editor Browser View? (Beginner Question)

2002-12-11 Thread Chris Hewitt
Paul Lazare wrote: I copied the complete Homepage on my harddisc to work on it tiht PHP Edit and everthing works fine. But how can I see the result of the changes (without uploading it the provider again)? In your browser, use the File menu to open a file (assuming this is a static not

RE: [PHP] Flushing Output

2002-12-11 Thread Ford, Mike [LSS]
-Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED]] Sent: 11 December 2002 00:27 Is there a way of flushing output to the browser. So for example, I have a script that checks things in a database, every check, or every hundred checks it would be nice to output

RE: [PHP] Repeat This...

2002-12-11 Thread Ford, Mike [LSS]
-Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: 11 December 2002 02:50 I want to repeat the following code as many times as the user specifies in the variable $_POST['x']. I then need to have the output display as all the numbers found in the sequence. How

RE: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return Values

2002-12-11 Thread Ford, Mike [LSS]
-Original Message- From: KANM MD [mailto:[EMAIL PROTECTED]] Sent: 11 December 2002 08:55 Here is the code in a readable form (alterations for security, simplicity ...) if ((stristr($HTTP_SERVER_VARS[remote_address],XXX.YYY.ZZZ))| |($pwprotect== 'password')) {

[PHP] Re: PHP Editor Browser View? (Beginner Question)

2002-12-11 Thread UberGoober
You might consider downloading a package like foxserve (http://sourceforge.net/projects/foxserv) for your system. This is an apache/php bundle that will allow you to test your code from a local instance of php. Paul Lazare [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] PHP Editor Browser View? (Beginner Question)

2002-12-11 Thread Marek Kilimajer
Simply make a test directory on your provider's webserver and test the changes there Paul Lazare wrote: A Company Programmed my Homepage in PHP. Now I want to make simple changes like changing some text. And I want to try it alone, so I got myselv PHPEdit. I copied the complete Homepage on my

[PHP] Re: Uploading a directory via browser w/ php

2002-12-11 Thread Peter Dotinga
Föíö Öxî‰êójînyóon wrote: Hi I’m wondering if any body has done somthing like uploading a whole directory trough webbrowser using php, or has any Ideas how such a thing can be done, any Ideas appriciated. A serverside-only solution isn't possible. On the clientside, a piece of software (eg.

[PHP] Problem with globals

2002-12-11 Thread George's Fun Club
Hi, I'm working with win2000-apache 2-php 4.3.x I'm always working with register_globals=on, so all my previewes projects are written this way. I'm having a problem to set up php and apache. Does anyone knows the configs that i should do on apache2 and php.ini to work properly? thenx --

Re: [PHP] Problem relating to images in email

2002-12-11 Thread DL Neil
Hello khuram, Iam new at this mailing list . =welcome to our happy band! I have a problem in php is that i want to store the images on local hard disk that are in email (pop3 account) by runing a php file. how can i do that. please help me asap. =there are a number of classes available

Re: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return Values

2002-12-11 Thread Rick Emery
If you want our help, we need to see all the code, not just the code that YOU think is relevant. What you've shown us is useless for diagnosing your problem. Show the EXACT code, not a simple secure, readable version. Just remove passwords. - Original Message - From: KANM MD [EMAIL

Re: [PHP] fgetcsv Help

2002-12-11 Thread DL Neil
Richard, I am parsing a csv file with fgetcsv and the fields are surrounding by double quotes, now I am running into a problem periodically that when there are quotes within the value it is treating it like another value instead of the same value. Any ideas on how to get around that? I am

[PHP] Re: Objects and Classes?

2002-12-11 Thread Christopher Raymond
Shawn: I beleive I can clarify the purpose of objects/classes for you and enrich my clarification with a couple of examples. THE DIFFERENCE BETWEEN OBJECT AND CLASS: A class defines the structure of an object. A class is a template for an object. An object is a container for data and

[PHP] Re: Forms

2002-12-11 Thread Christopher Raymond
PCENTERFORM NAME=Employees SELECT NAME=name OPTION SELECTED VALUE=/OPTION OPTION VALUE=John/OPTIONJohn OPTION VALUE=Mary/OPTIONMary /SELECT INPUT TYPE=submit VALUE=Submit TIA: You are missing the action and method attributes to the form tag. You are also missing the closing form tag. I

Re: [PHP] Flushing Output

2002-12-11 Thread Matt Vos
Try flush() Matt - Original Message - From: Richard Baskett [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 7:27 PM Subject: [PHP] Flushing Output Is there a way of flushing output to the browser. So for example, I have a script that checks things

[PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Christopher Raymond
Greetings: I'm wondering if someone has a great source for a master-list of controversial and vulger words that I can use on my site. I would like to pattern match input text against this master-list in order to prevent vulger and controversial words from appearing on my site. Thanks for any

Re: Re[2]: [PHP] Script not working from one computer

2002-12-11 Thread DL Neil
I have a feeling it's going to work out to be something stupidly simple... like these problems always do. :) =embarrassingly so! If you're taking this all off a user's say-so, then it sounds like an eyeball job to me... I never did solve it, but it came down to a weird cookie problem.

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
Hi Christopher, I'm wondering if someone has a great source for a master-list of controversial and vulger words that I can use on my site. I would like to pattern match input text against this master-list in order to prevent vulger and controversial words from appearing on my site.

Re: [PHP] Forms

2002-12-11 Thread Hank Marquardt
I think Keith hits this one on the head -- Without an ACTION directive in the FORM definition, you're at the mercy of the browser where it gets sent (if in fact it's sent anywhere) ... You might find some browsers work (defaulting to resubmit to the current page), whereas others will silently

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
Following up to my own post Once you've got the routine working, post it here, because there are many people who would like to know how to do this properly. I didn't use any profanity I was aware of in this post, but I still received this a few minutes later: Trend SMEX Content

[PHP] PHP-4.x many ways of compiling/installing with GD-support

2002-12-11 Thread info
Hello list, simple question: I´ve heard that it is possible to compile php with dg-support on two ways 1) first way: Distribution dependant with the gd-files and libraries, eg. gd.c, gd.lo, gd.o coming with the distribution of the compiled php-4.x-tarball compiled the follwing way:

[PHP] upload image

2002-12-11 Thread Shaun
Hi, i am using a form to upload an image to the server, is it possible to get the image size during this process so i can store it for later use (i.e. determining the size of the popup window to view the image)? thanks for your help -- PHP General Mailing List (http://www.php.net/) To

[PHP] Add column to table

2002-12-11 Thread Shaun
Hi, please could someone tell me what the sql command is to add a colummn to a table? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
Following up to my own post And again... I wonder if it was Shorpe I suppose I'll find out when/if I get another bounce :-) I got another bounce :-) Whoever is running this filter obviously doesn't want to do business with any of the 70,000 odd people who live in a particular

Fw: [PHP] Add column to table

2002-12-11 Thread Rick Emery
First, you've asked the wron list; ask the mysql list Second: ALTER mytable ADD COLUMN new column INT UNSIGNED AFTER old_column; - Original Message - From: Shaun [EMAIL PROTECTED] To: Sent: Wednesday, December 11, 2002 8:25 AM Subject: [PHP] Add column to table Hi, please could

Re: [PHP] Add column to table

2002-12-11 Thread bbonkosk
look at the alter table syntax on the mysql Documentation page. nice version of RTFM -Brad Hi, please could someone tell me what the sql command is to add a colummn to a table? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] date() on two diff. servers

2002-12-11 Thread Ford, Mike [LSS]
-Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 10 December 2002 19:52 =as a Windows user I struggle to cope with some of these UNIX concepts, so I hit Google - with no joy, and ripped through the SuSE manuals (I'm a closet Linux user - will become one, just

Re: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread DL Neil
Hi Jon, I think we've seen this discussion on the list before (so Christopher, check the archives!) I'm wondering if someone has a great source for a master-list of controversial and vulger words that I can use on my site. I would like to pattern match input text against this master-list

[PHP] Install Problem

2002-12-11 Thread Adam Voigt
I'm attempting to install Pear DataObjects on Windows 2000 Advanced Server with all the most current patches and updates. When utilizing the php-cli exe to run createTables.php, we recieve the error invalid function call to getStaticProperty, in DataObject.php on line 1620. I have attempted to

Re: [PHP] Rename an upload

2002-12-11 Thread Jason Wong
On Wednesday 11 December 2002 18:55, Steve Jackson wrote: On Wednesday 11 December 2002 17:30, Steve Jackson wrote: I'm trying to rename an uploaded file with the value of a select I have in the uploaded form. Can someone point me in the right direction. The PHP.net rename manual isn't

[PHP] Boucing Emails

2002-12-11 Thread bbonkosk
Hello... I gotten a few of these, was wondering if this account is going to be axed from the distrbution list, hopefully soon. This is an automatically generated Delivery Status Notification. Delivery to the following recipients failed. [EMAIL PROTECTED] Thanks -Brad -- PHP

[PHP] Re: PHP Editor Browser View? (Beginner Question)

2002-12-11 Thread David Eisenhart
If your local machine is running Windows you could also use Personal Web Server or IIS (whichever comes with your Windows) for the web server (of course you will also need a local copy of php, but this is very easy to set up) David Eisenhart Ubergoober [EMAIL PROTECTED] wrote in message

Fw: [PHP] upload image

2002-12-11 Thread Rick Emery
If it is a GIF file, the header format is: Byte # 0 - 2 GIF 3 - 5 87a or 89a 6 - 7 Width (in pixels) 8 - 9 Height (in pixels) Be advised, the dimensions are in reverse major order; that is, 50 pixels is represented as 32 00 - Original Message - From: Shaun [EMAIL PROTECTED] To:

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
Hi, I think we've seen this discussion on the list before (so Christopher, check the archives!) Quite :-) The problems that others have experienced in the past are: - what happens with misspellings, e.g. fsck? - what happens with dodgy formatting, e.g f s c k? - what happens with

[PHP] Populating form value fields.

2002-12-11 Thread Steve Jackson
I am having problems populating form fields. Here is my code: //$ItemCode is passed to the page with this code $mysql = mysql_query(SELECT * FROM products WHERE ItemCode='$ItemCode'); $result = mysql_query($mysql); Then the form: form action=eshop_editprodprocess.php method=post input type=text

[PHP] mail() problem

2002-12-11 Thread Carlos Alberto Pinto Hurtado
i setting php.ini [mail function] ;For Win32 only SMTP = hermes.ica.gov.co sendmail_from = [EMAIL PROTECTED] i invoke mail($to,$subject,$body,$headers); if $to is [EMAIL PROTECTED] is perfect. if $to is user@otherdomain generate error the problem is when the content $to is different at

Re: [PHP] Passing variables from script to script

2002-12-11 Thread Justin French
1. the only other ways to pass things around would be in sessions, or by setting a cookie on the user's computer... i hate the latter, and would prefer the former, but would NEVER carry things like a MySQL uname and password around in cookies or sessions. cookies, sessions, and even post get

[PHP] Converted version of mysqlhotcopy.pl

2002-12-11 Thread Riaan Stander
Hi all Does any of you know if anybody has taken the time to convert the perl script mysqlhotcopy.pl to PHP. And if so where can one find it. Thanks Riaan Stander -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Sean Burlington
DL Neil wrote: Hi Jon, [SNIP] May I suggest, rather than picking your way through this minefield, you provide a report abusive comment link instead? Most sensible! The employment of a technological solution to a social problem is somewhat shooting the messenger. However some countries are

Re: [PHP] Populating form value fields.

2002-12-11 Thread Jason Wong
On Wednesday 11 December 2002 23:18, Steve Jackson wrote: I am having problems populating form fields. Here is my code: //$ItemCode is passed to the page with this code $mysql = mysql_query(SELECT * FROM products WHERE ItemCode='$ItemCode'); $result = mysql_query($mysql); Then the form:

Re: [PHP] upload image

2002-12-11 Thread Sean Burlington
Shaun wrote: Hi, i am using a form to upload an image to the server, is it possible to get the image size during this process so i can store it for later use (i.e. determining the size of the popup window to view the image)? thanks for your help you want getimagesize()

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
Hi Sean, if you want a partial list of offensive terms - try looking at the meta keywords on a few porn sites ... Excellent idea! Unfortunately I'd have to explain that to my boss... No, really, I'm doing some research... Cheers Jon -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Populating form value fields.

2002-12-11 Thread liljim
Hi Steve, you will need to use mysql_fetch_* on the result (where * might be object, row, array, assoc): $query = SELECT * FROM products WHERE ItemCode='$ItemCode'; $result = mysql_query($query) // for debug or die(Error in query quot;$queryquot;. MySQL said: . mysql_error()); $row =

Re: [PHP] fgetcsv Help

2002-12-11 Thread Justin French
How is the CSV being generated? Seems to me like your problem isn't ggetcsv(), but rather the file itself. Commonly, a CSV file is a series of values, separated by a comma (duh!!). The separated values are generally enclosed in double quotes (), as it would appear yours are. Any double quotes

RE: [PHP] Populating form value fields.

2002-12-11 Thread Steve Jackson
Cheers Jason. Sorted. Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com [EMAIL PROTECTED] Mobile +358 50 343 5159 -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 11. joulukuuta 2002 17:17 To: [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jason Wong
On Wednesday 11 December 2002 23:12, Sean Burlington wrote: there simply is no definitive list of words you can't stop people talking about pussy cats, turkey breasts or even shag pile carpets (and words have different meanings from one place to the next) automated filters can be a

Re: [PHP] mail() problem

2002-12-11 Thread Chris Hewitt
Carlos Alberto Pinto Hurtado wrote: mail($to,$subject,$body,$headers); if $to is [EMAIL PROTECTED] is perfect. if $to is user@otherdomain generate error the problem is when the content $to is different at ica.gov.co eg. [EMAIL PROTECTED] function mail dont'n response. Carlos, This has to

[PHP] Automatic include of files containing functions

2002-12-11 Thread Dave [Hawk-Systems]
On a few sites we have used a master include or function file containing all the unctions required for the site... Some of these function files may contain 30-40 functions and some pages use only 1 function from the file. Would like to be a little more dynamic in our approach of this, and have

[PHP] php, ldap, and ssl

2002-12-11 Thread dweise
hi, i sent this to the php install list but nobody was able to help me. thus i'm giving this list a crack at it. When i installed php v4.2.1 on my Solaris 8 (x86) using this install command: ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-gd=/usr/local

Re: [PHP] mail() problem

2002-12-11 Thread Chris Hewitt
Carlos Alberto Pinto Hurtado wrote: SMTP = hermes.ica.gov.co I forgot to add, look at the mail log on the above computer. It should show the attempt to send the email. If so, then it is another confirmation that your php is OK and it is the email server. Chris -- PHP General Mailing List

Re: [PHP] date() on two diff. servers

2002-12-11 Thread DL Neil
Mike, No complaints about explanations in PHP manual - I often say that it IS a cut-above the average. However it does NOT explain the underlying concepts of timestamps, (quite rightly) expecting that we pick up such from other/more appropriate sources. Hence my comments are refering to such

Re: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread DL Neil
if you want a partial list of offensive terms - try looking at the meta keywords on a few porn sites ... Excellent idea! Unfortunately I'd have to explain that to my boss... No, really, I'm doing some research... =guess monopolising the color printer for a whole afternoon would give you

Re: [PHP] Automatic include of files containing functions

2002-12-11 Thread R'twick Niceorgaw
I don't know about the efficiency .. but to do it .. you can use function_exists() to see if a function is already defined if not include the file for that function before using a function. HTH - Original Message - From: Dave [Hawk-Systems] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

RE: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Jon Haworth
if you want a partial list of offensive terms - try looking at the meta keywords on a few porn sites ... Excellent idea! Unfortunately I'd have to explain that to my boss... No, really, I'm doing some research... but won't your gateway/web server's filter prevent access to such

Re: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread DL Neil
Jason, there simply is no definitive list of words The fact is content filtering does not work without a heavy dose of human intervention. It is quite shocking that large numbers of well known corporations deploy misconfigured content-filtering software which rejects perfectly innocent

[PHP] right or wrong - Two ways of compiling/installing with GD-support

2002-12-11 Thread info
Hello list, simple question: I´ve heard that it is possible to compile php with dg-support on two ways 1) first way: Distribution dependant with the gd-files and libraries, eg. gd.c, gd.lo, gd.o coming with the distribution of the compiled php-4.x-tarball compiled the follwing way:

Re: [PHP] mail() problem

2002-12-11 Thread DL Neil
i setting php.ini [mail function] ;For Win32 only SMTP = hermes.ica.gov.co sendmail_from = [EMAIL PROTECTED] =it is impressive to see that the Greeks' messenger has made it all the way over to Colombia! Wasn't he also held responsible for dealing with people who were guilty of indiscreet speech

[PHP] GD installation - Simple Question

2002-12-11 Thread info
Hello list, simple question: I´ve heard that it is possible to compile php with dg-support on two ways 1) first way: Distribution dependant with the gd-files and libraries, eg. gd.c, gd.lo, gd.o coming with the distribution of the compiled php-4.x-tarball compiled the follwing way:

[PHP] Stable version of php-4.2

2002-12-11 Thread info
Hello list, anybody here know where I can get a stable linux version of php-4.2? Oliver Etzel

Re: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Chris Hewitt
there simply is no definitive list of words I agree. In Amateur Radio we faced this problem in the UK in the mid-90s on the ax25/tcpip network when the Home Office made the sysops responsible for content. Filtering messages off for human reading if any words on the list occured was the

RE: [PHP] Automatic include of files containing functions

2002-12-11 Thread Dave [Hawk-Systems]
I don't know about the efficiency .. but to do it .. you can use function_exists() to see if a function is already defined if not include the file for that function before using a function. Please check this for viability... # the directory ./includes/ contains # - get_my_info.php

[PHP] Can PHP do this...?

2002-12-11 Thread RClark
Hello all. I have a question that I hope someone can answer. Is it possible to determine is someone is hitting your site over SSL or plain http using PHP? If so, is it part of getenv()? Thanks in advance, Ron Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP imagick Windows DLL

2002-12-11 Thread Michael Montero
For any Windows users of PHP that want ImageMagick functionality built into PHP, you can download the ImageMagick PHP DLL from here: http://php.chregu.tv/php_imagick.dll Christian Stocker was gracious enough to spend time figuring out how to get it to work. For the official imagick PEAR site,

RE: [PHP] Stable version of php-4.2

2002-12-11 Thread John W. Holmes
Hello list, anybody here know where I can get a stable linux version of php-4.2? www.php.net always works for me. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -Original Message- From: [EMAIL PROTECTED]

RE: [PHP] Can PHP do this...?

2002-12-11 Thread John W. Holmes
Hello all. I have a question that I hope someone can answer. Is it possible to determine is someone is hitting your site over SSL or plain http using PHP? If so, is it part of getenv()? I think it's $_SERVER['HTTPS']. If that is set, then the connection is over SSL. ---John W. Holmes... PHP

[PHP] Move Decimal Point

2002-12-11 Thread Stephen
I have a question. How would you move the decimal left or right, depending on if the number a user enters is negative or not, and then move it that many spaces? If needed, it would add zeros. One other question. How would I find the first 0 of a repeating zero. Like 204,000. How would you

Re: Fwd: RE: [PHP] Odd Strpos Behavior

2002-12-11 Thread Steve Keller
At 12/10/2002 03:43 PM, you wrote: John's suggestion of using '{', and '}' as the tag delimiters was to simplify the regex. You can continue to use '[', and ']' as your delimiters, just change the regex accordingly -- and don't forget that '[', and ']' needs to be escaped. Ah, all right. That

RE: [PHP] Move Decimal Point

2002-12-11 Thread John W. Holmes
I have a question. How would you move the decimal left or right, depending on if the number a user enters is negative or not, and then move it that many spaces? If needed, it would add zeros. Hmm. Trying to remember what grade I learned this in. You multiply by 10 to move it right, divide by 10

Re: [PHP] Move Decimal Point

2002-12-11 Thread Chris Wesley
On Wed, 11 Dec 2002, Stephen wrote: I have a question. How would you move the decimal left or right, depending on if the number a user enters is negative or not, and then move it that many spaces? If needed, it would add zeros. Math ... multiply divide ... I assume you're using a base-10

[PHP] strstr-pls help

2002-12-11 Thread Mekrand
i couldnt find out what is wrong with this script , can anbody explain $ip=fopen(ip.txt, 'r+'); $adam=fread($ip,filesize($adam)); fclose($ip); if(stristr($adam,$_SERVER[REMOTE_ADDR])) echo an entry submitted from this ip already; else { .. //block 1 .. } the ip.txt 10.8.0.21 10.8.5.21 10.8.7.21

[PHP] hi

2002-12-11 Thread Mekrand
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strstr-pls help

2002-12-11 Thread Mako Shark
Your problem is with this line: $adam=fread($ip,filesize($adam)); Remember that $adam is not a file pointer, but text read from a file. The file pointer is $ip, so the line should read: $adam=fread($ip,filesize($ip)); (and should probably be contained within an if statement for error

[PHP] Thanks

2002-12-11 Thread Mako Shark
Long time in coming, but thanks to all that have helped with my stremaing audio and $_array questions. I've figured out my problems thanks to all your help! __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

Re: [PHP] fgetcsv Help

2002-12-11 Thread Richard Baskett
I did email the company that the csv feed is coming from so we'll see what comes of that. I really hope they fix it. Well here is what I did to solve the problem: I pulled the csv file in using file(), then found the string length, used substr() to get rid of the first double quote in the line

[PHP] 2 dates, difference in days AARGH!!

2002-12-11 Thread Curtis Gordon
HI! I have two dates, one in the future, and the current date, I want to calculate the difference between the two in # of days. I have converted both dates to seconds: future date: ?$maturity_date = mktime (0,0,0,$mday_row[3],$mday_row[2],$mday_row[5]);? current date: ?$today = getdate();?

  1   2   >