[PHP] How to get the local date formated like this: 2002-03-15 Y2K Problem

2002-03-05 Thread Andy
Hi there, I am trying to find out how to get the local date in a format conform to this: 2002-03-15 The following code is a try, but it does not work like I want: $local_time = localtime(time() , 1); echo Date: $local_time[tm_year]'-'$local_time[tm_mon]'-'$local_time[tm_mday]; Returns:

RE: [PHP] How to get the local date formated like this: 2002-03-15 Y2K Problem

2002-03-05 Thread Niklas Lampén
date(Y-m-d); Niklas -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5. maaliskuuta 2002 9:59 To: [EMAIL PROTECTED] Subject: [PHP] How to get the local date formated like this: 2002-03-15 Y2K Problem Hi there, I am trying to find out how to get the local date in a

[PHP] exists?

2002-03-05 Thread jtjohnston
It's late, I'm tired I want to parse $searchenquiry if(% exists in $searchenquiry) { do }else{ do } -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

[PHP] Perhaps a task for regexp?

2002-03-05 Thread Daniel Reichenbach
Hy list, I'm currently writing an application to edit and send our customer news- letter. The interface and the template engine which will put the content into text or html templates is ready and working. Now I'd love to extend the system to automatically generate content lists. The html

[PHP] Directory

2002-03-05 Thread Roman Duriancik
Help me, I want create directory on local disc in php script, do you know how ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] exists?

2002-03-05 Thread Niklas Lampén
Do you have manual at all? Download it from www.php.net. The function ereg() is your answer. Niklas -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: 5. maaliskuuta 2002 10:29 To: [EMAIL PROTECTED] Subject: [PHP] exists? It's late, I'm tired. I want to parse

RE: [PHP] exists?

2002-03-05 Thread joakim . andersson
Perhaps something like this: if(strpos($searchenquiry, %)) { do }else{ don't } /Joakim -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:29 AM To: [EMAIL PROTECTED] Subject: [PHP] exists? It's late, I'm tired. I want to

RE: [PHP] Directory

2002-03-05 Thread joakim . andersson
mkdir() http://www.php.net/manual/en/function.mkdir.php -Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:45 AM To: PHP-General Subject: [PHP] Directory Help me, I want create directory on local disc in php script, do you

[PHP] sending multiple frames to different pages

2002-03-05 Thread Matthew Darcy
Hello all I have just created a login script that works fine. At the moment I have a pretty simple (I have coded this but I am trying to keep it simple to explain what I am after if login != ok then generate HTML for error page else Generate HTML for ok page. end; what I want to do is

[PHP] php files on cd

2002-03-05 Thread Ivan Carey
Hello Is it possible to put a mysql php web site on CD or maybe to capture the site statically to put it onto cd. thanks Ivan

[PHP] How to validate this date: 2002-02-31

2002-03-05 Thread Andy
Hi there, I am still lacking of one error the user can provide: Desired format: mmdd Asuming he enters a date: 2002-02-31 (There is no Feb 31) Is there a function which check is the date is ok? Thanx guys, Andy PS: I wrote this function which has the whole: /* * Validates the format

Re: [PHP] How to validate this date: 2002-02-31

2002-03-05 Thread Jason Wong
On Tuesday 05 March 2002 17:27, Andy wrote: Hi there, I am still lacking of one error the user can provide: Desired format: .mm.dd Asuming he enters a date: 2002-02-31 (There is no Feb 31) Is there a function which check is the date is ok? Try checkdate() -- Jason Wong - Gremlins

Re: [PHP] How to validate this date: 2002-02-31

2002-03-05 Thread Andrey Hristov
First but may be not probably the best decision is to use (gm)strftime() and (gm)mktime(). So parse your string put the data into mktime() with hour/minute/second for exmaple 12,0,0 . Strftime() will return a unix timestamp. Use that timestamp with strftime() to get the year,month and date. If

[PHP] Re: time limit ?

2002-03-05 Thread ??
However, the value cannot transfer by this method. I want the value transfer to a txt file ,although it is not completed -- ? http://fansing.hk.st/ ACG(!) http://acgzone.hk.st/ George Whiffen [EMAIL PROTECTED] ???:[EMAIL PROTECTED] ÁC¬P wrote: How can I set a time limit

[PHP] addslashes needed for db security? Hack proving web apps

2002-03-05 Thread Andy
Hi there, I am wondering how to make my application more secure No I was reading in a mysql book, that chars like ' are bad for db PHP provides the function addslashes Is this the way to check for bad entries a user provides? What happens if a hacker tryes to delete my db entries with a input

Re: [PHP] How to validate this date: 2002-02-31

2002-03-05 Thread Tomek Golembiewski
Dnia wtorek 05 marzec 2002 10:34, Jason Wong napisa: On Tuesday 05 March 2002 17:27, Andy wrote: Hi there, I am still lacking of one error the user can provide: Desired format: .mm.dd Asuming he enters a date: 2002-02-31 (There is no Feb 31) Is there a function which check

[PHP] How can I use PHP4 module for Apache Win32 ????

2002-03-05 Thread hei
How can I use PHP4 module for Apache Win32 _ wai wing hei ICQ#:102663005 Current ICQ status: SMS: (Send an SMS message to my ICQ): +2783142102663005 More ways to contact me: http://wwpicqcom/102663005 _ --

Re: [PHP] Is it correct having number of forms in the same html page?

2002-03-05 Thread bvr
Yes, that can be correct, however: -You can only submit one form at a time - You cannot have 'nested' forms (forms in forms) bvr -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

Re: [PHP] How can I use PHP4 module for Apache Win32 ????

2002-03-05 Thread bvr
Download it from wwwphpnet Read install notes, come back when you really need help bvr hei wrote: How can I use PHP4 module for Apache Win32 -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

[PHP] HELP Using PHP with Apache (IAS Oracle)

2002-03-05 Thread Berlina
Hi to all, Im trying to use Apache Web Server from IAS (Oracle) with PHP 411 in a Windows NT server When I try to load the php modules, apache shows an error that said that I need to recompile Apache with the flag -EAPI Somody know to do this? There ara another way to use these libraries

[PHP] registering a session variable from a select statment.

2002-03-05 Thread Matthew Darcy
Hi, I have a user auth script. Very simple and works. when I check the username and password I check it against a select all the values from the user table where the username and password match. (inputted from a 2 text boxes) like so //sets and runs SQL statement that brings back all info on

[PHP] ?include?... another dumb question

2002-03-05 Thread Team GotFusion
I have people telling me that I MUST put the ?include? file before or inside the header of the .php file I am writing before a script is pulled into my file. I usually just put the ?include? whereever I need it on the page. Actually have it embedded in an IF statement, so that if the

Re: [PHP] ?include?... another dumb question

2002-03-05 Thread Jason Wong
On Tuesday 05 March 2002 20:58, Team GotFusion wrote: I have people telling me that I MUST put the ?include? file before or inside the header of the .php file I am writing before a script is pulled into my file. I usually just put the ?include? whereever I need it on the page. Actually have

[PHP] mysql_query: how to uniquely identify the query???

2002-03-05 Thread Simon De Deyne
Hi, I'm a bit a newbie at the mysql-php tandem, but I wanted to ask a pretty basic question Supose you do x=mysql_query(/somequery/) // fetch a row and then later you do y=mysql_query(/somequery/) If you want to fetch the following row for the query in x, you should probably make the

[PHP] File Upload.

2002-03-05 Thread DrouetL
Hi everybody I use a form to upload data to Oracle database using csv file I need to display a result page with all the lines who are good and the one which are bad Everything works fine except the little problem of the refresh If I click on the Explorer Refresh Button I will upload an other

[PHP] Re: Directory

2002-03-05 Thread Andy
Hi Roman, Check out: http://www.php.net/manual/en/function.mkdir.php Good luck, andy Roman Duriancik [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]; Help me, I want create directory on local disc in php script, do you know how ? -- PHP General Mailing List

[PHP] RE: php files on cd

2002-03-05 Thread Rodya Jörn Koester [B2A]
| -Original Message- | From: Ivan Carey [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, March 05, 2002 10:17 AM | Subject: [PHP] php files on cd | | Is it possible to put a mysql php web site on CD or maybe to | capture the site statically to put it onto cd. Hello, Ivan! Since php

RE: [PHP] File Upload.

2002-03-05 Thread Dan Vande More
This is exactly how I solve the problem as well, good to know I'm not the only one with that idea. That must mean it wasn't that bad of an idea. Dna -Original Message- From: Niklas Lampén [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 6:52 AM To: Php-General Subject: RE: [PHP]

[PHP] Help about Linux password change script

2002-03-05 Thread Henry Zambrano
Hi, I'm trying to do a script for changing the Linux password of an user in a web page. I don't know how to implement the command passwd in a php script or to do a shell script which would be invoked by the php script. I hope someone can help me. Thanks. Henry Zambrano.

RE: [PHP] ?include?... another dumb question

2002-03-05 Thread Cal Evans
Yes, this is acceptable. Normally, include and require go at the top of the page out of convention. However, there is no requirement that they be there. Just be careful. it's an accepted convention because it's a good idea. Make sure you know what you are doing when you break with the

[PHP] Re: registering a session variable from a select statment.

2002-03-05 Thread Lerp
Hi there :) Try something like this: session register (user_auth_level); $user_auth_level = $user_level; HTH, Joe :) Matthew Darcy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]; Hi, I have a user auth script. Very simple and works. when I check the username and password I

[PHP] Re: registering a session variable from a select statment.

2002-03-05 Thread Lerp
Ammendment: You'll have to dump that value (the user's level) into a variable called user_level first. HTH Joe :) Lerp [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]; Hi there :) Try something like this: session register (user_auth_level); $user_auth_level = $user_level;

Re: [PHP] ?include?... another dumb question

2002-03-05 Thread Team GotFusion
Yep, ordered the manuals from Amazon.com... and they inadvertently shipped the books to my mom-in-law ha ha. except that she's retired and computers are still a mystery. So, I am muddling through with my PHP dev. dictionary until I get to see my relatives this weekend. (cheesy smiley)

[PHP] serialize

2002-03-05 Thread Axel Nilsson
Hi All! I use this code to create a number of fields in a form depending on what input number I use. My problem occurs when i am going to save it. Right now only the value of the last field gets stored. I want to serialize all values from all fields so that they can be saved as a stringvalue

[PHP] Converting Image Data Directly from MySQL

2002-03-05 Thread Josh Trutwin
Hello list, Sorry for this cross post, I subscribed to PHP and PHP-DB, the PHP list seems to be receiving about 95% of the traffic so I thought I'd post this here as well to reach more of the PHP wizards. I've been stumped on this for a while, I have a large project where I am storing image

Re: [PHP] Parsing Content

2002-03-05 Thread Erik Price
On Monday, March 4, 2002, at 06:10 PM, Jonathan Duncan wrote: I want to make a web site that displays news headlines from my favorite news sites. The way that you're thinking of doing it (parsing via regexes from other site's HTML) is the Long Way Around. Why not do it the way the pros

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-05 Thread Erik Price
On Monday, March 4, 2002, at 07:22 PM, DL Neil wrote: The choice comes down to how you are generating the time data prior to its storage in the db, and how you plan to use it afterwards. If you are going to be doing lots of temporal processing in PHP, then UNIX timestamp is the way to go.

[PHP] Directory Size

2002-03-05 Thread Simon H
Hello! I hope someone can help me with this...it's doin' my head in! Below I have a class I found for finding out directory sizes. What I have done is to get the username of each user and their create a directory path (based on their username - these directories do exist with subdirs). This

Re: [PHP] Can I authenicate user with the accounts in passwd and shadow??

2002-03-05 Thread Erik Price
On Monday, March 4, 2002, at 07:51 PM, Zenith wrote: But I wonder if I can check the user account against with the /etc/passwd, i.e. use the system accounts. You can do this I think. I just saw an Oreillynet article about it, I think. If this link doesn't tell you how, then I don't

Re: [PHP] live Counter

2002-03-05 Thread Erik Price
On Monday, March 4, 2002, at 07:59 PM, olev rumm wrote: Hello How can I monitor how many visitors are currently on line, with out refreshing the frame - like a live monitor. Olev I've seen questions like this quite a bit on this list. If you really think about it, nobody's logged in to

Re: [PHP] registering a session variable from a select statment.

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 06:54 AM, Matthew Darcy wrote: $sql_authorisation = SELECT * FROM account_details WHERE account_name='$login_username' AND account_password=PASSWORD'$login_password'); $sql_authorisation_result = mysql_query($sql_authorisation); I then register 2 session

[PHP] VeriSign

2002-03-05 Thread lists
I have tried compling in the VeriSign support for phpI just downloaded the newest version of the VeriSign SDK, however, after I complie it with apxs and I restart httpd it will not start If I removed the --with-pfpro statment it works fine Any ideas? Michael -- PHP General Mailing List

Re: [PHP] serialize

2002-03-05 Thread Tom Rogers
hHi $data = serialize($felnummer); That should do it.. Tom At 12:58 AM 6/03/2002, Axel Nilsson wrote: Hi All! I use this code to create a number of fields in a form depending on what input number I use. My problem occurs when i am going to save it. Right now only the value of the last field

Re: [PHP] ?include?... another dumb question

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 08:08 AM, Jason Wong wrote: Is placing the include at the top absolutely required, good programming convention or just preferred? Simply put, you can place them wherever you want. Obviously if your include file defines certain variables then common sense

Re: [PHP] serialize

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 09:58 AM, Axel Nilsson wrote: I use this code to create a number of fields in a form depending on what input number I use. My problem occurs when i am going to save it. Right now only the value of the last field gets stored. I want to serialize all values

Re: [PHP] Help about Linux password change script

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 02:25 PM, Henry Zambrano wrote: Hi, I'm trying to do a script for changing the Linux password of an user in a web page. I don't know how to implement the command passwd in a php script or to do a shell script which would be invoked by the php script. I

[PHP] Php4 / Class / Session

2002-03-05 Thread David Tandberg-Johansen
Hello! I am litle confused about this, so I hope someone could give reply on this message an give me the right answer I am comfortable with the use of session, but lately when I have surf around, I have found some documents/tutorials about saving Objects/classes in session It's here I am

Re: [PHP] serialize

2002-03-05 Thread bvr
Instead of serialize(), you could also fix your existing code like this: ?php for ($i=0; $i$HTTP_GET_VARS['num']; $i++) { echo felnummer INPUT TYPE=\ TEXT\ name=\felnummer[ $i ]\BR; } ? Or ?php for ($i=0; $i$HTTP_GET_VARS['num']; $i++) { echo felnummer

RE: [PHP] Can I authenicate user with the accounts in passwd and shadow??

2002-03-05 Thread Hunter, Ray
You might want to try setting up an LDAP, kerberos, or NIS system before using the passwd and shadow file. There are some security issues that you might not be aware of... Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]]

Re: [PHP] Help about Linux password change script

2002-03-05 Thread bvr
# passwd -? Usage: passwd [OPTION] accountName --stdin read new tokens from stdin (root only) bvr Henry Zambrano wrote: Hi, I'm trying to do a script for changing the Linux password of an user in a web page I don't know how to implement the command passwd in a php

RE: [PHP] Does anyone follow?

2002-03-05 Thread Tim Ward
How about: while ($mydata = mysql_fetch_object($news)) { $mydata-AUS = str_replace( ;, ;, $mydata-AUS); $mydata-AUS = str_replace(; , ;, $mydata-AUS); $tempauthors = explode(;, $mydata-AUS); foreach ($tempauthors as $singleauthor) { if

RE: [PHP] include() and paths

2002-03-05 Thread Ford, Mike [LSS]
-Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 01 March 2002 17:30 To: PHP-General Subject: Re: [PHP] include() and paths -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Winfield declared I didn't catch the first part of this

[PHP] REQUEST QUESTION

2002-03-05 Thread karthikeyan
Hi Guys, I allready posted this question in detail but I believe I didn't explain it properly. There are 2 hidden variable in my FORM. 1. order = 10 and 2. order=20 I want to retrieve both the orders in the next page say somename.php. How do i do that. Regards, karthikeyan.

Re: [PHP] FORM RELATED QUESTION - I

2002-03-05 Thread karthikeyan
Yes I did use $HTTP_POST_VARS but it removes duplicate values. Say if there are two hidden variables 1. order= 10 2. order= 20 I get order=20 the last one but i want both. I need both. Regards, karthikeyan. - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL

[PHP] Mysql

2002-03-05 Thread Vlad Kulchitski
Hi, I am trying to connect to the database like this: $db=mysql_pconnect(localhost, clark, clark) while in mysql do the following: grant all on * to clark identified by 'clark'; And I cannot connect to the DB unless I use root in my php Actually it seems to connect under 'clark' but will

Re: [PHP] REQUEST QUESTION

2002-03-05 Thread Scott St. John
Call me silly, but I would just call the hidden values: $order1 and $order2 Did I miss why they both must be called order? On Tue, 5 Mar 2002, karthikeyan wrote: Hi Guys, I allready posted this question in detail but I believe I didn't explain it properly There are 2 hidden

[PHP] data from service into array

2002-03-05 Thread Craig Westerman
I'm retrieving data from a data service. This is the ENTIRE source code of the URL they let me receive: symbolRHAT/symbol price6.82/price date3/4/2002/date time3:59pm/time change0.32/change change_percent/change_percent open6.59/open high6.99/high low6.53/low volume932400/volume How can I

[PHP] Re: REQUEST QUESTION

2002-03-05 Thread David Tandberg-Johansen
Karthikeyan [EMAIL PROTECTED] skrev i melding 002601c1c461$cfa08580$0600a8c0@aspire006..">news:002601c1c461$cfa08580$0600a8c0@aspire006..; Hi Guys, I allready posted this question in detail but I believe I didn't explain it properly. There are 2 hidden variable in my FORM. 1. order = 10

RE: [PHP] Mysql

2002-03-05 Thread Matt Schroebel
Change the grant to: grant all on * to clark@localhost identified by 'clark'; Then do a: flush privileges; I am trying to connect to the database like this: $db=mysql_pconnect(localhost, clark, clark) while in mysql do the following: grant all on * to clark identified by 'clark';

[PHP] How to question...

2002-03-05 Thread jas
This may seem a bit unorthodox but I am wondering if there is a simple way to take an existing web site done in mostly html and wrap that code in php so that when a user goes to view source they get nadda Remember I said a simple way Thanks in advance Jas -- PHP General Mailing List

RE: [PHP] How to question...

2002-03-05 Thread Cal Evans
No. Wrapping in PHP or any other scripting language won't hide the HTML from the user. For the browser to render it, you HAVE to send the HTML to the browser. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: jas

[PHP] How to transfer letters (e.g. en-us, es, fr etc.) to full names (e.g. England, France etc.)?

2002-03-05 Thread SED
Hi, I'm finishing a log script which determines what country the visitors come from via language settings in the browser Now I need to transfer those letters (eg en-us, es, fr etc) to full names (eg England, France etc) Do you know where I can find an index-file that I can use to make full names?

[PHP] Re: file upload problem (files 7.5mb)

2002-03-05 Thread Peter Clarke
Stefan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]; i wrote a php uploadscript and it works fine till the file is not larger then 7.5mb. is set the max upload file size in the upladfrom as well as in php.ini to 100mb. but it still doesn't work! system is linux red hat and php

[PHP] RSA Encryption with PHP (code attached)

2002-03-05 Thread William Bailey
Hi all, I currently trying to get RSA encryption working in PHP and have came up against a few issues that i hope somebody on here will be able to help me with. Basicly i have it mostly working and am able to generate keys OK and i can also encrypt/decrypt data that will fit

RE: [PHP] FORM RELATED QUESTION - I

2002-03-05 Thread Johnson, Kirk
Append '[]' to the field name, e.g., order[] = 10 order[] = 20 Then process the submitted field as an array. Kirk -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:18 AM To: Jason Wong Cc: [EMAIL PROTECTED] Subject: Re: [PHP] FORM

RE: [PHP] PHP and SQL help

2002-03-05 Thread Lu, Yuan
All the output is generated from one big while loop. If some records have all the information displayed properly, so should the other records. I also checked the HTML output, everything seems all right. I am really puzzled. Below is part of my script that display the records. The script shows

Re: [PHP] How to transfer letters (e.g. en-us, es, fr etc.) to full names (e.g. England, France etc.)?

2002-03-05 Thread Miles Thompson
The International Standards Organization may be your best bet It maintains lists of countries and country codes which can be cut and pasted Try searching for ISO language code or ISO country code Miles Thompson At 05:22 PM 3/5/2002 +, SED wrote: Hi, I'm finishing a log script which

Re: [PHP] Re: REQUEST QUESTION

2002-03-05 Thread karthikeyan
Hi Thanx, --- input type=hidden name=order [1] value=10 input type=hidden name=order [2] value=20 On the nest page you just do echo The first order is .order[1]. and the second order is .order[2]; -- But that is what I cannot do. I cannot change the name of the order

[PHP] PHP 4.1.2 and gdbm

2002-03-05 Thread Leo
Hello, all! I have one problem i can't bild php --with-gdbm support I have it on my Linux: gdbm-180-10 and during install there are no errors, but when i try use function in my program (dbmopen(), dblist()) PHP write that it is undefined function Thanks! -- PHP General Mailing List

Re: [PHP] Accessing Mainframe

2002-03-05 Thread Andrew Brampton
When you say accessing, how do you mean? Access the file system? Access a service running on the Mainframe? Please be a little more specific Andrew - Original Message - From: Sridhar Moparthy [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 6:15 PM

[PHP] Verify script location...

2002-03-05 Thread jas
Ok I have a question that i havent seen a tutorial on How would I go about making an included file check the host before executing? I want to make sure that any files I use as included in a php document verify the request is coming from a valid script on the same server for instance Is this

RE: [PHP] Verify script location...

2002-03-05 Thread Demitrious S. Kelly
http://www.php.net/manual/en/language.variables.predefined.php $HTTP_HOST Contents of the Host: header from the current request, if there is one. $HTTP_REFERER The address of the page (if any) which referred the browser to the current page. This is set by the user's browser; not all browsers

RE: [PHP] Accessing Mainframe

2002-03-05 Thread Sridhar Moparthy
Thank you Andrew for the reply! Actually I have requirements for booth. I also have a requirement to access the DB2 databases and VSAM files if possible. Thanks Again Sridhar -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:41 PM To:

Re: [PHP] How to transfer letters (e.g. en-us, es, fr etc.) to full names (e.g. England, France etc.)?

2002-03-05 Thread Anas Mughal
Here you go: www-old.ics.uci.edu/pub/ietf/http/related/iso639.txt --- Miles Thompson [EMAIL PROTECTED] wrote: The International Standards Organization may be your best bet. It maintains lists of countries and country codes which can be cut and pasted. Try searching for ISO language

[PHP] Arrays/OOP

2002-03-05 Thread Joshua E Minnie
I am relatively new to PHP but have had some background in OOP. I am having some trouble with a method that for a certain class. The problem is that I can seem to read my objects from an array that I am storing them to. I keep getting the error Call to a member function on a non-object. I

RE: [PHP] Verify script location...

2002-03-05 Thread Kevin Stone
It's not possible to include() a remote file so there may be little point to this. However maybe you want to keep users on your system from including the file in their scripts. In that case I suppose you could set $PHP_SELF (of the main script) to a temporary variable for checking in the

[PHP] Re: Arrays/OOP

2002-03-05 Thread Michael Kimsal
Joshua E Minnie wrote: while(!feof($fp)) { $temp = fgetcsv($fp, 1024, :); $event_list[$i] = $event_object-init($temp[0],$temp[1],$temp[2],$temp[3],$temp[4],$temp[5],$temp[6],$temp[7],$temp[8]); $i++; } Without seeing more of the code, I can't say for certain, but I

Re: [PHP] Accessing Mainframe

2002-03-05 Thread Andrew Brampton
Having a quick search through the PHP manual, I find this little note: (This is not to be confused with IBM's DB2 software, which is supported through the ODBC functions.) So I guess DB2 is supported via the ODBC functions.. As for the VSAM, I find no mention of it in the manual. Just have a

Re: [PHP] REQUEST QUESTION

2002-03-05 Thread William Lovaton
That is impossible. If you want to store two values you will need two variables! William. El mar, 05-03-2002 a las 11:21, karthikeyan escribió: Hi Guys, I allready posted this question in detail but I believe I didn't explain it properly. There are 2 hidden variable in my FORM.

Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Joshua E Minnie
Michael Kimsal wrote: Joshua E Minnie wrote: while(!feof($fp)) { $temp = fgetcsv($fp, 1024, :); $event_list[$i] = $event_object-init($temp[0],$temp[1],$temp[2],$temp[3],$temp[4],$temp[5],$t emp[6],$temp[7],$temp[8]); $i++; } Without seeing more of the code, I

Re: [PHP] REQUEST QUESTION

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 11:21 AM, karthikeyan wrote: I allready posted this question in detail but I believe I didn't explain it properly. There are 2 hidden variable in my FORM. 1. order = 10 and 2. order=20 I want to retrieve both the orders in the next page say

Re: [PHP] Verify script location...

2002-03-05 Thread jas
Ok I think I am a little confused... with regards to include() and require(), if I knew the name of a file on say brownstone.com and that file was called database.inc and it contained all the connection settings for brownstone.com's database. Say I run a website called hacktheplanet.com and I

RE: [PHP] Accessing Mainframe

2002-03-05 Thread Dan Vande More
http://www.e-gineer.com/instructions/installing-ibm-db2-for-php4x-with-apach e13x-on-linux.phtml I used this, and currently use PHP to AS400 DB2 everyday. Dan -Original Message- From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 11:51 AM To: 'Andrew

Re: [PHP] Verify script location...

2002-03-05 Thread jas
Essentially what I would like to do is to prevent this kind of thing from happening to my own website, just to clear up my example. =) Jas Jas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]; Ok I think I am a little confused... with regards to include() and require(), if I knew the

Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Michael Kimsal
Joshua E Minnie wrote: Michael Kimsal wrote: Attached you will find the class definition. Thanks in advance.. Joshua E Minnie CIO [EMAIL PROTECTED] What version of PHP are you using? I took the file and it seemed to work OK in PHP 4.0.5. Michael Kimsal

[PHP] value of an array into a sendmail function

2002-03-05 Thread Kris Vose
I want to take the value of an array and define it as $message. This variable will be called in the sendmail function mail(). Here is what I have so far. (does not work!) $automail = file(DOCUMENT_ROOT/BetterBus/1/AutoEmail.txt); $number_of_lines = count($automail); for ( $i=0;

Re: [PHP] Verify script location...

2002-03-05 Thread jas
A Mr. Sheets gave me this snippet to use... if ($_SERVER[SERVER_ADDR] != 'ip address of server') { echo You are attempted to use this file from an unauthorized host exit; } Jas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]; Essentially what I would like to do is to prevent this kind

Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Joshua E Minnie
Michael Kimsal wrote: What version of PHP are you using? I took the file and it seemed to work OK in PHP 4.0.5. Michael Kimsal http://www.phphelpdesk.com 734-480-9961 I am currently using PHP 4.1.2. Maybe it's in the file that I am using for testing, I have attached the code. Joshua E

[PHP] Value of $_* variables

2002-03-05 Thread James Taylor
I'm sure this has been asked before, but at least not within the last 600 messages (i checked): I have the session variable $_SESSION['id'] set Well, I want to actually check the value of this variable, not just to check if it's set I would be doing this in a mysql query mainly Something

[PHP] PHP returns this error... (1030: Got error 28 from table handler)

2002-03-05 Thread Jeff Lewis
I was returned this error after a mysql_query: 1030: Got error 28 from table handler What does this mean? It doesn't happen all the time and it almost random... I searched the mysql site and didn't find anything and a search on Google I found that it is a table that may have become corrupt so

[PHP] PHP and IMAP_SSL

2002-03-05 Thread Tom Holton
I am trying to force php to compile WITHOUT IMAP-SSL because TWIG cannot communicate with IMAP-SSL on port 993 I upgraded my PHP to 412 to close the security hole just recently announced I am assured that the c-clienta lib i am linking to in the configure is NOT SSL supported, yet the ocnfigure

Re: [PHP] PHP returns this error... (1030: Got error 28 from table handler)

2002-03-05 Thread Jeff Lewis
More digging has turned up that the disk space is low or running out...so I will look into that. However, if anyone has any tips I'd greatly listen :) Jeff - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 2:51 PM Subject: [PHP]

[PHP] Classes

2002-03-05 Thread David Tandberg-Johansen
Hallo! Can I from inside an Class Intialize other classes, and access them from the ordinary script? Page1php ?PHP require_once(/myclassinc); $my = new MyClass; $my-init(); $fileread-readfile($file=myfiletxt); ? myclassinc ?PHP class MyClass { var classes = Array(

Re: [PHP] Verify script location...

2002-03-05 Thread Erik Price
On Tuesday, March 5, 2002, at 01:57 PM, Kevin Stone wrote: It's not possible to include() a remote file so there may be little point to this. However maybe you want to keep users on your system from including the file in their scripts. In that case I suppose you could set $PHP_SELF (of

Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Joshua E Minnie
Michael Kimsal wrote: Still works - at least, I'm not getting the error you posted. Is there something else we may be missing? What line(s) are causing a problem? On line 21 of the corrected test file that I attached previously. Joshua E Minnie [EMAIL PROTECTED] -- PHP General

[PHP] Classes

2002-03-05 Thread David Tandberg-Johansen
Hallo! Can I from inside an Class Intialize other classes, and access them from the ordinary script? Page1.php ?PHP require_once(./myclass.inc); $my = new MyClass; $my-init(); $fileread-readfile($file=myfile.txt); ? myclass.inc ?PHP class MyClass { var classes = Array(

[PHP] value of an array into a sendmail function

2002-03-05 Thread Kris Vose
I want to take the value of an array and define it as $message. This variable will be called in the sendmail function mail(). Here is what I have so far. (does not work!) Can anyone help me with this problem? $automail = file(DOCUMENT_ROOT/BetterBus/1/AutoEmail.txt); $number_of_lines =

[PHP] OOP .. I just don't get it.

2002-03-05 Thread mojo jojo
Hi I've been using php for a while now but I have not got my head around OOP (classes) Why bother using them? I've read thru a few tutorials on using classes and the examples given are quite simple This is probably the problem - I just can't see the benefit of using this style of programming

RE: [PHP] value of an array into a sendmail function

2002-03-05 Thread Demitrious S. Kelly
$mail=''; foreach($automail as $mailline) { $mail.=$mailline; } $to = $EMAILADDRESS $subject = Thank You for your submission!; $message = eval($automail); $fromaddress = [EMAIL PROTECTED]; mail($to, $subject, $mail, $fromaddress); that's my $.02 -Original Message- From: Kris

RE: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Demitrious S. Kelly
I've often wondered the same thing... which is why I've never moved to OOP So I'm patiently waiting for a reply to this message as well :) -Original Message- From: mojo jojo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:22 PM To: [EMAIL PROTECTED] Subject: [PHP] OOP .. I

  1   2   >