RE: [PHP] Sorting Country List

2003-06-25 Thread Boaz Yahav
Why don't you just add a hard coded line like this: OPTION VALUE=USAUSA/OPTION as the 1st option in your select box? Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Ralph [mailto:[EMAIL PROTECTED] Sent:

[PHP] Re: PHP Mysql Hit Counter

2003-06-25 Thread Nadim Attari
http://www.hotscripts.com/PHP/Scripts_and_Programs/index.html

[PHP] Re: Returning TWO variables from function

2003-06-25 Thread Nadim Attari
Can someone let me know how to return TWO variables from a function Try http://www.php.net/manual/en/language.references.php

[PHP] Re: Returning TWO variables from function

2003-06-25 Thread Slava
The function can return an array that include two or more variables. Nadim Attari [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can someone let me know how to return TWO variables from a function Try http://www.php.net/manual/en/language.references.php -- PHP General Mailing

RE: [PHP] Sorting Country List

2003-06-25 Thread Craig Avnit
I use this code, which extracts from mysql, and you can set the option of which you want to be selected ?php // List Box MySQL Functions function listbox_field ($mysql_link, $name, $default=0) { $result=select name=\$name\\n; while (list($key,$val)=mysql_fetch_array($mysql_link)) {

[PHP] Month name

2003-06-25 Thread cavagnaro
How can I get the month name from a date? If you could post with an example i'll be gratefull -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] remove characters, add newline making a twodimensional array

2003-06-25 Thread Dore van Hoorn
Well, i'm kind of a newby, but this is what i would like to do in php: 1. i'm writing all instances of a mysql table to a txt file, but when i add \n to go on on the next line, in the txt file there is a square printed. When i try to import the txt file into ms access, the square is not

RE: [PHP] Month name

2003-06-25 Thread Boaz Yahav
Check out : http://www.php.net/manual/en/function.date.php M - A short textual representation of a month, three letters Jan through Dec Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: cavagnaro

RE: [PHP] Month name

2003-06-25 Thread Martin Towell
date(F, mktime(0, 0, 0, $mm, $dd, $)); http://au2.php.net/manual/en/function.date.php http://au2.php.net/manual/en/function.mktime.php -Original Message- From: cavagnaro [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 June 2003 4:31 PM To: [EMAIL PROTECTED] Subject: [PHP] Month name

RE: [PHP] ereg_replace and quotation marks

2003-06-25 Thread Boaz Yahav
Your example should work Maybe something else is the problem? Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Paul Nowosielski [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 8:45 PM To: [EMAIL

RE: [PHP] calling functions in classes using text and graphic links

2003-06-25 Thread SLanger
Hello What you are asking isn't possible that way. You have to write a controller script that calls the appropriate functions on your object. Example: controller.php is the controller script A link on your page: a href=controller.php?action=someActionSome Action/a In controller.php you do

Re: [PHP] Month name

2003-06-25 Thread cavagnaro
Thanks guys! It works perfectly!! Boaz Yahav [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Check out : http://www.php.net/manual/en/function.date.php M - A short textual representation of a month, three letters Jan through Dec Sincerely berber Visit http://www.weberdev.com/

[PHP] Re: Month name

2003-06-25 Thread Nadim Attari
How can I get the month name from a date? If you could post with an example i'll be gratefull Two links to help you... http://www.php.net/manual/en/function.getdate.php http://www.php.net/manual/en/function.strtotime.php

[PHP] correct syntax

2003-06-25 Thread Harry Wiens
What would be the correct syntax? 1. $_SESSION[test] 2. $_SESSION['test'] 3. $_SESSION[test] mfg. harry wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: generate word docs

2003-06-25 Thread dorgon
hmm... sounds troublesome. do you need all text/paragraph formatting features of word? what if finding a spec for RTF, which is much easier and specifying the word MIME key respectifely saving as .doc (words opens rtf without a convert dialog I think). just a thought Evan Nemerson wrote:

[PHP] Re: correct syntax

2003-06-25 Thread dorgon
Harry Wiens wrote: What would be the correct syntax? 1. $_SESSION[test] in this case test is a constant and must be defined by calling define(test, some_integer_value) before 2. $_SESSION['test'] this is correct. but variables will not be equaled in the string. so when using '' brackets, you

[PHP] rtf files

2003-06-25 Thread Steven
I need some advice on how to go about importing rtf files page by page seperatly into a mysql database, or some way that can read a file and break each page into page sized sections, maybe an array, that i could then import to a database. The rtf files are mostly about '7mb' in size, and contain

RE: [PHP] Re: generate word docs

2003-06-25 Thread George Pitcher
RTF is the way to go. If you know what you want your word doc to look like, set it up in Word, or whatever will save a formatted rtf file (Sorry, I'm Windows/Mac based, but I presume that Open Office etc will do this on Linux). I insert placeholders into the document where I want to put dynamic

Re: [PHP] Re: generate word docs

2003-06-25 Thread dorgon
If you know what you want your word doc to look like, set it up in Word, or whatever will save a formatted rtf file (Sorry, I'm Windows/Mac based, but I presume that Open Office etc will do this on Linux). I'm not sure if I got you, but RTF as very different from native word format. RTF doesn't

RE: [PHP] correct syntax

2003-06-25 Thread Ford, Mike [LSS]
-Original Message- From: Harry Wiens [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 09:04 What would be the correct syntax? 1. $_SESSION[test] 2. $_SESSION['test'] 3. $_SESSION[test] All of these are correct depending on the context. What's your context? Cheers! Mike

Re: [PHP] status of current online users

2003-06-25 Thread Angelo Zanetti
there is a program called LivePerson, which tells you what IP address they are using, where they are situated and how they got to your site. Used for commercial websites, like online travel consulting company. - Original Message - From: Miranda, Joel Louie M [EMAIL PROTECTED] To: [EMAIL

[PHP] a generic getsql() function

2003-06-25 Thread Thomas Hochstetter
Hi guys, I wrote a generic getsql() function for my project's class. However, I only manage to retrieve a single row. What it should really do is: Read all rows into the array (with multiple results). The code is below: function getsql($sql,$conn,$dbase,$arr) { if($conn)

RE: [PHP] Sorting Country List

2003-06-25 Thread Ralph
Thanks for your replies, however what I was looking for was to have the countries sorted by alphabetical order starting with the US. I rewrote the query to: SELECT IF(countries_id='US', 0, 1) as ctsort, countries_id, countries_name FROM TABLE_COUNTRIES ORDER BY ctsort, countries_name

Re: [PHP] free web host needed.

2003-06-25 Thread poetbox
hi, Joel Rees£¡ lycos can do,and you can write a program to delete the ad! === 2003-06-25 11:50:00 you wrote£º=== Joel Rees, programmer, Kansai Systems Group Altech Corporation (Alpsgiken), Osaka, Japan http://www.alpsgiken.co.jp -- PHP General Mailing List

[PHP] Ldap bind: checking group membership

2003-06-25 Thread Jason End
I need my ldap bind to check whether a user is member of a group, but the user isn't exclusively from that group. So for example, I have the user jbrown and the ldap connection string: $r=ldap_bind($ds, uid=$uid, ou=people,dc=mycompany,dc=mydomain,dc=dom, $passw); That works fine. But I need to

[PHP] Fw: PHP forever ;)

2003-06-25 Thread Hatem Ben
Hey all, just to inform u that the choice for baccalaureat 2003 website in tunisia was PHP and redhat (www.bac.tn) http://193.95.69.17/ the 1st year it was using oracle, windows, then windows 2000 in load balancing and now redhat linux !! this is what i call the good choice ;) Cheers,

[PHP] Re: rtf files

2003-06-25 Thread sven
hi steven, i don't know the rft-file-syntax, but i would start here. if you find out, how the page break is defined, you could splitt the whole file by that. but i assume, that works only on manual page-breaks. and like other text-files (i.e. .txt or .doc) the page-break is done by the progamm

Re: [PHP] remove characters, add newline making a twodimensionalarray

2003-06-25 Thread Marek Kilimajer
Dore van Hoorn wrote: Well, i'm kind of a newby, but this is what i would like to do in php: 1. i'm writing all instances of a mysql table to a txt file, but when i add \n to go on on the next line, in the txt file there is a square printed. When i try to import the txt file into ms access,

[PHP] Re: remove characters, add newline making a twodimensional array

2003-06-25 Thread sven
hi dore, Dore Van Hoorn wrote: Well, i'm kind of a newby, but this is what i would like to do in php: 1. i'm writing all instances of a mysql table to a txt file, but when i add \n to go on on the next line, in the txt file there is a square printed. When i try to import the txt file into

[PHP] Re: Help please!

2003-06-25 Thread sven
hmm, well this post is here twice. so it works better than you thought? ;-) Nadim Attari wrote: Hi php-general, I have subscribed to news://news.php.net/php.general. But when I post something (i'm using Outlook Express), it seems that the post is sent; but in fact it isn't and so I don't

Re: [PHP] Re: correct syntax

2003-06-25 Thread Chris Hayes
At 10:08 25-6-03, you wrote: Harry Wiens wrote: What would be the correct syntax? 1. $_SESSION[test] in this case test is a constant and must be defined by calling define(test, some_integer_value) before But PHP is extremely tolerant and if it cannot find a defined constant called test, or if

RE: [PHP] a generic getsql() function

2003-06-25 Thread French, Alastair
Thomas Hochstetter wrote: Hi guys, I wrote a generic getsql() function for my project's class. However, I only manage to retrieve a single row. What it should really do is: Read all rows into the array (with multiple results). The code is below: function getsql($sql,$conn,$dbase,$arr)

[PHP] Re: ereg_replace and quotation marks

2003-06-25 Thread sven
maybe stripslashes() can solve your problem? Paul Nowosielski wrote: I'm trying to strip quotation marks out of user from input but it doesn't seem to work correctly. $string=ereg_replace(\,,$string); I get a \ mark after I run a quote through the form. When I want the quote turned to

[PHP] Re: Help please!

2003-06-25 Thread Nadim Attari
hmm, well this post is here twice. so it works better than you thought? ;-) Well it doesn't... I have to send it as a mail to [EMAIL PROTECTED], then it works... If I click on the thread and try to Reply to Group, it doesn't work !!! Anyway I can send my post now... and special thanks goes to

Re: [PHP] Re: correct syntax

2003-06-25 Thread Hidayet Dogan
On Wed, 25 Jun 2003, Chris Hayes wrote: At 10:08 25-6-03, you wrote: Harry Wiens wrote: What would be the correct syntax? 1. $_SESSION[test] in this case test is a constant and must be defined by calling define(test, some_integer_value) before But PHP is extremely tolerant and if it

[PHP] Error reporting at runtime

2003-06-25 Thread Anthony
I have error reporting turned off in my php.ini file on my production server. I have an app I'm writing that I need to run on the same server (no one can see it though). Anyway. I want to turn on error reporting during runtime for this particular app while I'm debugging it. so I put

Re: [PHP] Error reporting at runtime

2003-06-25 Thread Robert Cummings
This is hardly perfect since it shows all errors, but it works for me: ini_set( 'display_errors', 1 ); ini_set( 'log_errors', 1 ); ini_set( 'error_reporting', -1 ); Anthony wrote: I have error reporting turned off in my php.ini file on my production server. I have an

RE: [PHP] Error reporting at runtime

2003-06-25 Thread Ford, Mike [LSS]
-Original Message- From: Anthony [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 12:36 I have error reporting turned off in my php.ini file on my production server. I have an app I'm writing that I need to run on the same server (no one can see it though). Anyway. I want to turn

RE: [PHP] Re: correct syntax

2003-06-25 Thread Ford, Mike [LSS]
-Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 12:02 At 10:08 25-6-03, you wrote: Harry Wiens wrote: What would be the correct syntax? 1. $_SESSION[test] in this case test is a constant and must be defined by calling define(test,

[PHP] multi language support

2003-06-25 Thread Arvind V
Hi, Can anyone suggest the best method (plain substitution, gettext or db) for implementing a shop cart with multilanguage support?.As the cart will be hosted with multiple clients which of these approach is best for the long run, and which requires less client intervension.Also i would like to

php-general Digest 25 Jun 2003 12:18:52 -0000 Issue 2138

2003-06-25 Thread php-general-digest-help
php-general Digest 25 Jun 2003 12:18:52 - Issue 2138 Topics (messages 152678 through 152747): Re: how to get the date of this Saturday all the time? 152678 by: poetbox 152679 by: James Hicks 152680 by: poetbox 152682 by: James Hicks 152690 by: Joseph

Re: [PHP] Error reporting at runtime

2003-06-25 Thread Anthony
Thanks. That did the trick. According to a post from Mike Ford, it was ini_set( 'display_errors', 1 ); that was messing me up. I have display_error turrned off in php.ini too, so even though my reporting was on, nothing was sent to the browser. Thanks for the help guys :) - Anthony Robert

[PHP] Fw: upload

2003-06-25 Thread Vahid Pourahmary
i have this problem when i try to upload a file this is the form that i have form action=archivo2.php method=post enctype=multipart/form-data input type=hidden name=MAX_FILE_SIZE value=5 Send this file: input name=userfile type=file input type=submit value=Send File /form and this

[PHP] CC Gateways, Authnet vs. PayFlowPro

2003-06-25 Thread Jon Shoberg
From strictly a coding/implementation standpoint ... Which services have had the best availability as a card processing gateway? Ease of implementation? Ease of upkeep? Any particular headaches experienced? I'm obviously intent on implementing with PHP :) thanks -- PHP General

RE: [PHP] Fw: upload

2003-06-25 Thread Jay Blanchard
[snip] this is the form that i have form action=archivo2.php method=post enctype=multipart/form-data input type=hidden name=MAX_FILE_SIZE value=5 Send this file: input name=userfile type=file input type=submit value=Send File /form and this is the script for upload $Archivo =

[PHP] Please help !!!!!!!!!!!!!!!!

2003-06-25 Thread Mark Clarkstone
can anyone tell me whats wrong with this script , I don't get errors Or anything it won't process a form right, test it you'll see what i mean signup.php script ? require (config.php); if ($allow == no) { echo html head title$sitename -- Register -- disabled/title /head body form

[PHP] MySQL session handler.

2003-06-25 Thread Duncan Hill
Greetings, I've been scouring Google, trying to find a working MySQL handler for the PHP session data. Many places point to the PEAR one out on sourceforge, but the last time it was worked on was 2001, and the notes state the author was waiting for testing to make sure it worked properly.

Re: [PHP] Please help !!!!!!!!!!!!!!!! (form)

2003-06-25 Thread Chris Hayes
Are you aware that since PHP 4.1.0 form vars only pass through as variables to the next page if you explicitly state in php.ini that you want that? Otherwise they are in $_GET or $_POST, depending on the form method. See 'new input mechanism' at http://www.php.net/release_4_1_0.php for the why

Re: [PHP] Fw: upload

2003-06-25 Thread Harry Wiens
this is working for me: [snip] $data = addslashes(fread(fopen($userfile, r), filesize($userfile))); $fp = fopen($filename, w); fwrite($fp,stripslashes($data)); fclose($fp); [/snip] greets harry wiens Jay Blanchard [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]

[PHP] Javascript and forms in PHP

2003-06-25 Thread [EMAIL PROTECTED]
Is there a limitation in PHP with Javascript and forms? I have a problem when creating a form within a table with Checkboxes and the accompanying javascript to govern the checks. I am generating the html for a table the first of 10 cells has 3 checkboxes. I have experimented whether to make the

Re: [PHP] Javascript and forms in PHP

2003-06-25 Thread Chris Hayes
At 14:55 25-6-03, you wrote: Is there a limitation in PHP with Javascript and forms? Your question shows you do not have a clear idea of what PHP does and where javascript comes in. Please do a Google on this combination. The short of it: PHP builds a HTML/javascript page and sends it to the

[PHP] Re: Javascript and forms in PHP

2003-06-25 Thread Manuel Lemos
Hello, On 06/25/2003 09:55 AM, [EMAIL PROTECTED] wrote: Is there a limitation in PHP with Javascript and forms? I have a problem when creating a form within a table with Checkboxes and the accompanying javascript to govern the checks. I am generating the html for a table the first of 10 cells

Re: [PHP] Javascript and forms in PHP

2003-06-25 Thread [EMAIL PROTECTED]
I understand perfectly well what PHP does. That is why I am confused that if HTML including javascript within script tags, generated by PHP and sent to the browser, is not working. I have checked for unique names and they are all unique. I will try your suggestion with the form tags, I have not

Re: [PHP] Re: Javascript and forms in PHP

2003-06-25 Thread [EMAIL PROTECTED]
Thanks for the info... /T on 6/25/03 8:06, Manuel Lemos at [EMAIL PROTECTED] wrote: Hello, On 06/25/2003 09:55 AM, [EMAIL PROTECTED] wrote: Is there a limitation in PHP with Javascript and forms? I have a problem when creating a form within a table with Checkboxes and the accompanying

[PHP] PHP script in C SHELL

2003-06-25 Thread Marcos
I need to execute the archive php below in the server Apache, but I perceived that I obtain the waited result if I use csh (C shell) and not using bash, somebody could say me as to execute this script in csh? $pipe = $username\n$password\n; $pwauth = /usr/local/apache/bin/pwauth;

[PHP] sessions and browser back

2003-06-25 Thread Bibhas Kumar Samanta
Hi, I am trying to create restricted pages for my php/mysql/apache server with sessions and passing session varibales to other pages for validation. Eventually I am doinng session_start() at the begining and checking whether logged in user is authorised to use this page by a routine. Now

RE: [PHP] ereg_replace and quotation marks

2003-06-25 Thread Paul Nowosielski
I think it has to do with magic quotes Oh well no worries :) On Wed, 2003-06-25 at 03:59, Boaz Yahav wrote: Your example should work Maybe something else is the problem? Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow.

[PHP] validation library?

2003-06-25 Thread Paul Nowosielski
Can any point me to a nice GNU php validation library? Looking for something thats strips bad user input and validates email, tel etc etc... Paul Nowosielski -- What good are computers? They can only give you answers. ~ Pablo Picasso -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] validation library?

2003-06-25 Thread Dan Joseph
Hi, Can any point me to a nice GNU php validation library? Looking for something thats strips bad user input and validates email, tel etc etc... I don't have a link to a library, but, here's a function to validate e-mail addresses: if (!ereg (^[^@ [EMAIL PROTECTED]@ ]+\.[^@ \.]+$,

[PHP] Re: validation library?

2003-06-25 Thread Manuel Lemos
Hello, On 06/25/2003 08:29 AM, Paul Nowosielski wrote: Can any point me to a nice GNU php validation library? Looking for something thats strips bad user input and validates email, tel etc etc... Depending on what you want, you may find here some alternatives: Classes: Validation

RE: [PHP] sessions and browser back[Scanned]

2003-06-25 Thread Michael Egan
Bibhas, I'm sure I've read somewhere that this is a deliberate security feature with using sessions - i.e. you can't view contents of form fields by using the back button on your browser. Couldn't you use JavaScript to ensure that the data is validated on the client side before the form is

Re: [PHP] PHP parser extension?

2003-06-25 Thread anzenews
Is there some extension or anything that would allow me to hook my code to PHP parser? Even lex and yacc for PHP would be great... Have you tried the tokenizer? Should be able to build what you're talking about with that (unless you just want hooks or something).

[PHP] Three questions.

2003-06-25 Thread Didier McGillis
I am building a smallish site that has planned growth over the next year or so. I have time to do this correctly and would like to do so, most other projects I have done have come down to the wire for one reason or another. Anyway, I have two hopefully easy questions and one that could be

[PHP] quotes

2003-06-25 Thread Lso .
Ok I have been searching to no avail. I have a form that lets you add new sets of information to a database. Once you add information i have a page that displays this information in a series of text fields. I have done this so you can alter the information in the fields hit edit and the

Re: [PHP] quotes

2003-06-25 Thread Adam Voigt
Try a textarea. Example: textarea rows=5 cols=40 ?php echo(stripslashes($whatever)); ? /textarea On Wed, 2003-06-25 at 10:20, Lso . wrote: Ok I have been searching to no avail. I have a form that lets you add new sets of information to a database. Once you add information i have a page

[PHP] default time

2003-06-25 Thread Gary Ogilvie
Hi everyone, I want to assign the current time to a variable. Currently I am using: $myTime = time() But this displays the time as: 1056551047 when it is in fact 15:25 How do I get the proper format for time? I looked on the web site but couldn't understand any of it :( Thanks in advance --

Re: [PHP] quotes

2003-06-25 Thread Lso .
Yes!! You are the man! It works! Thank you all for the fast response. Lucas Owens www.lucasowens.com www.technoiraudio.com Try a textarea. Example: _ The new MSN 8: advanced junk mail protection and 2 months FREE*

Re: [PHP] default time

2003-06-25 Thread Adam Voigt
Read the manual page for the date tag: http://us2.php.net/date On Wed, 2003-06-25 at 10:28, Gary Ogilvie wrote: Hi everyone, I want to assign the current time to a variable. Currently I am using: $myTime = time() But this displays the time as: 1056551047 when it is in fact 15:25

Re: [PHP] quotes

2003-06-25 Thread Lso .
Does anyone know why this works this way? seems kinda odd that a textarea will display it correctly but a normla field will not. Try a textarea. Example: Lucas _ Tired of spam? Get advanced junk mail protection with MSN 8.

Re: [PHP] default time

2003-06-25 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 25 Jun 2003 at 15:30, lines prefixed by '' were originally written by you. Hi everyone, I want to assign the current time to a variable. Currently I am using: $myTime = time() But this displays the time as: 1056551047 when it is in

Re: [PHP] quotes

2003-06-25 Thread Adam Voigt
Cause of the quotes around the value, example: input type=text value=my nickname is hank or bob The HTML parser gets confused by the 's around hank, so since the textarea doesn't use quote's to delimit the value, it works fine. On Wed, 2003-06-25 at 10:37, Lso . wrote: Does anyone know why

RE: [PHP] default time (Solved)

2003-06-25 Thread Gary Ogilvie
Thanks a lot - I never realised you had to use the date() function to get the time! -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 15:44 To: Gary Ogilvie Cc: [EMAIL PROTECTED] Subject: Re: [PHP] default time Read the manual page for the date tag:

Re: [PHP] quotes

2003-06-25 Thread Lso .
understood. thanks for the help. Lucas Owens www.lucasowens.com www.technoiraudio.com From: Adam Voigt [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Lso . [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] quotes Date: 25 Jun 2003 10:47:56 -0400 Cause of the quotes around the

[PHP] Copy or move_uploade_file

2003-06-25 Thread Vahid Pourahmary
Wich is better to use and why to options im trying tu figure out what is better COPY or Move_Uploaded_File -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] quotes

2003-06-25 Thread Leif K-Brooks
Lso . wrote: Ok I have been searching to no avail. I have a form that lets you add new sets of information to a database. Once you add information i have a page that displays this information in a series of text fields. I have done this so you can alter the information in the fields hit

[PHP] php.ini

2003-06-25 Thread Blake Schroeder
I am running a red hat 9 linux box with Apache 1.3.27 with PHP 4 what is the default location for the php.ini file -- Blake Schroeder [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini

2003-06-25 Thread Chris Hayes
At 16:51 25-6-03, you wrote: I am running a red hat 9 linux box with Apache 1.3.27 with PHP 4 what is the default location for the php.ini file can be somehere under /etc/ try to run whereis php.ini or maybe whereis php -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] php.ini

2003-06-25 Thread Adam Voigt
/etc probably, just do a locate php.ini on the console. On Wed, 2003-06-25 at 10:51, Blake Schroeder wrote: I am running a red hat 9 linux box with Apache 1.3.27 with PHP 4 what is the default location for the php.ini file -- Blake Schroeder [EMAIL PROTECTED] -- Adam Voigt ([EMAIL

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] I am running a red hat 9 linux box with Apache 1.3.27 with PHP 4 what is the default location for the php.ini file [/snip] Create a page with just the following... ?php phpinfo(); ? place the page in your web root and access it through a browser. On there you will find the path to your

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] If you are in a *nix box you can type 'locate php.ini' from the shell command line to locate them. [/snip] I also forgot, for command line PHP you can do 'php -I | grep php.ini' from the console... Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] I also forgot, for command line PHP you can do 'php -I | grep php.ini' from the console... [/snip] Ooops, small 'i' !$%$# Outlook -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini

2003-06-25 Thread Blake Schroeder
Thanks all It is in the /etc. thanks Adam Voigt wrote: /etc probably, just do a locate php.ini on the console. On Wed, 2003-06-25 at 10:51, Blake Schroeder wrote: I am running a red hat 9 linux box with Apache 1.3.27 with PHP 4 what is the default location for the php.ini file -- Blake

[PHP] Weird mktime problem

2003-06-25 Thread Glenn
I have a form that takes a file name, a starting time, ending time, starting date and ending date. It then submits this data into a php script to pull data from the file for the time specified. It would look something like this: File Name: Snafu.txt StartTime (local military): 17:00 EndTime

Re: [PHP] php.ini

2003-06-25 Thread CPT John W. Holmes
- Original Message - From: Jay Blanchard [EMAIL PROTECTED] [snip] I am running a red hat 9 linux box with Apache 1.3.27 with PHP 4 what is the default location for the php.ini file [/snip] Create a page with just the following... ?php phpinfo(); ? place the page in your

RE: [PHP] quotes

2003-06-25 Thread Petre Agenbag
What you also need is to htmlspecialchars() the vars that you echo as form element values, else your HTML will be broken if one of the vars contains . This should work for both text fields and textareas input type=text value=?=htmlspecialchars($var)? or

Re: [PHP] quotes

2003-06-25 Thread Chris Sherwood
or you would escape the quote by putting a \ in front of it that way the engine knows to write the quote. ie input type=\text\ - Original Message - From: Adam Voigt [EMAIL PROTECTED] To: Lso . [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 7:47 AM Subject: Re:

Re: [PHP] Javascript and forms in PHP

2003-06-25 Thread Anthony
is all off you javascript making it to the browser? check the source. You probably forgot to escape a quote somplace. PHP really has noting to do with javascript. - Anthony [EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I understand perfectly well what PHP does.

Re: [PHP] php.ini

2003-06-25 Thread Anthony
Cpt John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] - Original Message - From: Jay Blanchard [EMAIL PROTECTED] [snip] I am running a red hat 9 linux box with Apache 1.3.27 with PHP 4 what is the default location for the php.ini file [/snip]

Re: [PHP] quotes

2003-06-25 Thread Adam Voigt
Umm, in his first email, he specifically said all the quotes were already escaped with slashes and it didn't help. On Wed, 2003-06-25 at 11:50, Chris Sherwood wrote: or you would escape the quote by putting a \ in front of it that way the engine knows to write the quote. ie input

Re: [PHP] quotes

2003-06-25 Thread Chris Sherwood
well thats seems unlikely as I do it all the time.. how ever I am not going to argue p's and q's ... if it doesnt work for him it doesnt work - Original Message - From: Adam Voigt [EMAIL PROTECTED] To: Chris Sherwood [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003

[PHP] php.ini

2003-06-25 Thread Steve Marquez
I am running MacOSX and can not find my php.ini file. Does anyone know where it is located on a mac? I looked at my phpinfo file, and it says /usr/lib/ but does not have the php.ini file in it. Can anyone help? Steve Marquez Marquez Design [EMAIL PROTECTED] www.marquez-design.com -- PHP

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] I am running MacOSX and can not find my php.ini file. Does anyone know where it is located on a mac? I looked at my phpinfo file, and it says /usr/lib/ but does not have the php.ini file in it. Can anyone help? [/snip] I just want to make sure that I have not lost my mind, but haven't we

Re: [PHP] php.ini

2003-06-25 Thread Chris Sherwood
Steve have you tried to search the entire drive for the php.ini file? - Original Message - From: Steve Marquez [EMAIL PROTECTED] To: PHP eMail List [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 8:59 AM Subject: [PHP] php.ini I am running MacOSX and can not find my php.ini file.

[PHP] Please help can anyone figure whats wrong with this?

2003-06-25 Thread Mark Clarkstone
? require(config.php); if ($allow==no) { echo html head title$sitename -- Login --- Error/title /head body font size=\2\font face=\Tahoma\Sorry but the Staff at $sitename are currently configuring the members Area please return soonbr /font /body /html; } else if ($allow ==yes) if

Re: [PHP] php.ini

2003-06-25 Thread Steve Marquez
Yes, But I had a question that is php and mac specific. I used the info in the discussion all morning, and could not find the file, I thought that some of you great gurus could help with that. Does the php.ini file always go in the same place no matter the OS? I did a locate in the shell, and

Re: [PHP] quotes

2003-06-25 Thread Lso .
Thanks everyone. Honestly I tried so many things that Im not sure exactly what combinations I tried. The textfield trick works, and I so sick of looking at this script Im moving on. Ill try something else the next time around. Thanks again for all of the excellent fast help!! Lucas Owens

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] If you'll notice, that was for linux. However, if MaxOSX has a /etc directory I'd look there... [/snip] Click MacintoshHD, type php.ini in your search box and click 'search' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini

2003-06-25 Thread Andrew McCombe
Hi I had this problem when i installed php on my linux box. Because I hadn't copied renamed php.ini-dist to php.ini, PHP seems to use a default setup and lists php.ini in the path where it expects to find it. I resolved it by copying php.ini-dist from the php source dir to the new dir and

RE: [PHP] php.ini

2003-06-25 Thread Jay Blanchard
[snip] Can the file be called anything else? [/snip] php.ini-dist php.ini-recommended A wildcard search might reveal its whereabouts Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini

2003-06-25 Thread Mike Morton
Depending on how you compiled/installed PHP on the mac - you may not have a php.ini file - for example, if you used the binary from entropy.ch - there is no php.ini - you would have to create it. On 6/25/03 12:07 PM, Steve Marquez [EMAIL PROTECTED] wrote: Yes, But I had a question that is

  1   2   3   >