RE: [PHP] case insenstive

2002-03-07 Thread Kearns, Terry
Just substitute strstr() with stristr() The extra I in stristr() stands for Insensitive. If I was insensitive, I would say RTFM :) If you look under http://www.php.net/manual/en/function.strstr.php It tells you about stristr [TK] -Original Message- From: jtjohnston [mailto:[EMAIL

[PHP] Compilation of PHP with socket module

2002-03-07 Thread Frdric Vissault
Hi, Please, is there anybody who can help me to compile PHP with socket module? I work under W2000 with VC++ 6! Thanks in advance Fred

RE: [PHP] CheckBoxes....

2002-03-07 Thread Kearns, Terry
Don't name the checkboxes all the same, instead: Option1 input type=checkbox name=ck0br Option2 input type=checkbox name=ck1br Option3 input type=checkbox name=ck2br Then handle it with function getCheckboxResults($prefix=FALSE) { global $_POST ; $results = NULL ; // needed for

[PHP] mail() getenv() problems (after 4.1.2 update)...

2002-03-07 Thread Paul
Hello, I wonder if anyone can help me with a problem I have. I have some sites hosted on a Cobalt Raq4 server (not sure if this is relevant). I recently upgraded PHP from a package at www.pkgmaster.com, and since making this upgrade I have problems with PHP that I cannot find the solution to.

[PHP] Database Error

2002-03-07 Thread Navid Yar
Ok guys, I need help with this one. I am getting the error: Error in query: SELECT label FROM menu WHERE id = '1'. Why am I getting this error? It seems right to me. I have the following code to call the class object, and I listed the class below it (I'm fairly new to classes): // Object being

Re: [PHP] Database Error

2002-03-07 Thread Jason Wong
On Wednesday 06 March 2002 17:56, Navid Yar wrote: Ok guys, I need help with this one. I am getting the error: Error in query: SELECT label FROM menu WHERE id = '1'. Why am I getting this error? It seems right to me. I have the following code to call the class object, and I listed the class

RE: [PHP] Database Error

2002-03-07 Thread Navid Yar
I'm thinking that it probably has to do with the quoting scheme or something else. I tried it on the command line, and it worked fine. I don't even think it matters what types of quotes I use around the id field. I tried both (single and double) on the command line, and it worked just fine. In

php-general Digest 7 Mar 2002 10:17:11 -0000 Issue 1212

2002-03-07 Thread php-general-digest-help
php-general Digest 7 Mar 2002 10:17:11 - Issue 1212 Topics (messages 87544 through 87595): Re: data from service into array 87544 by: Jim Winstead 87549 by: Craig Westerman 87550 by: Jim Winstead Re: Perl and PHP 87545 by: Steve Cayford Stopping PHP from

[PHP] Alphabet

2002-03-07 Thread Jeroen Timmers
Is there a simple function to generate the alphabet with php Thx Jeroen

Re: [PHP] Database Error

2002-03-07 Thread Jason Wong
On Wednesday 06 March 2002 18:27, Navid Yar wrote: I'm thinking that it probably has to do with the quoting scheme or something else. I tried it on the command line, and it worked fine. I don't even think it matters what types of quotes I use around the id field. I tried both (single and

Re: [PHP] Alphabet

2002-03-07 Thread Edward van Bilderbeek - Bean IT
something like: for ($i=ord('A'); $iord('A')+26; $i++) { $str .= chr($i); } print $str; Greets, Edward - Original Message - From: Jeroen Timmers [EMAIL PROTECTED] To: [General] [EMAIL PROTECTED] Sent: Thursday, March 07, 2002 11:37 AM Subject: [PHP] Alphabet Is there a simple

[PHP] overload() not working

2002-03-07 Thread S.Murali Krishna
is any compile time configuration needed to make 'overload()' function to work ?. when I use the below code it's saying 'undefined function overload'. Hope some light on this. Thanks in advance. ?php class OO { var $a = 111; var $elem = array('b' = 9, 'c' = 42);

Re: [PHP] Alphabet

2002-03-07 Thread Jason Wong
On Thursday 07 March 2002 18:42, Edward van Bilderbeek - Bean IT wrote: something like: for ($i=ord('A'); $iord('A')+26; $i++) { $str .= chr($i); } print $str; - Original Message - From: Jeroen Timmers [EMAIL PROTECTED] To: [General] [EMAIL PROTECTED] Sent: Thursday, March

[PHP] PDF generation

2002-03-07 Thread Jean-Arthur Silve
Hello, I use PDF function to generate a PDF file. It works fine except I cannot generate a document with more than 10 pages ! For each page I use pdf_begin_page($pdf, 595, 842); I close each page with pdf_end_page Any ideas ?? jean-arthur

[PHP] Rasmus, O'Reilly, Programming PHP

2002-03-07 Thread DL Neil
Rasmus/others, O'Reilly are advertising the imminent release (Mar 2002) of Programming PHP (http://www.oreilly.com/catalog/progphp/desc.html). Is that still going ahead? (I'll submit an advanced purchase order...) Regards, =dn -- PHP General Mailing List (http://www.php.net/) To

[PHP] LDAP question

2002-03-07 Thread Sven Jacobs
Hey I'm testing LDAP and I seem to have an error Call undefined function ldap_connect() the code is from php.net Can anybody tell me what I'm doing wrong :-)

[PHP] Re: header() and frames

2002-03-07 Thread Alan McFarlane
Nope, that didn't work... Jim Winstead [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Alan McFarlane [EMAIL PROTECTED] wrote: header(location: index.php; target: _top); header(Location: index.php); header(Window-target: _top); jim -- PHP General

Re: [PHP] LDAP question

2002-03-07 Thread Billy Halsey
You don't seem to have LDAP support compiled into PHP. Try running ?php phpinfo(); ? and make sure that you have ldap support. /bsh/ Sven Jacobs wrote: Hey I'm testing LDAP and I seem to have an error Call undefined function ldap_connect() the code is from php.net Can

[PHP] Re: Is flock necessary?

2002-03-07 Thread Alan McFarlane
flock() may not be required - but I'm pretty sure it's damn sensible. As for using mySQL, well, these routines are part of a simple file-based cache system (specifically in my case used for caching mySQL data) Jtjohnston [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Re: header() and frames

2002-03-07 Thread Jason Wong
On Thursday 07 March 2002 19:49, Alan McFarlane wrote: Nope, that didn't work... Jim Winstead [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Alan McFarlane [EMAIL PROTECTED] wrote: header(location: index.php; target: _top); header(Location:

[PHP] define new window

2002-03-07 Thread [EMAIL PROTECTED]
Hi This line opens in a new window. How can i define the size of the window, scroll options etc. echo a href= . $PHP_SELF . ?mode=results target=_blankResults/a; Thanks in advance Mohamed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] define new window

2002-03-07 Thread Duncan Hill
On Thu, 7 Mar 2002, Administration@myclassguide wrote: This line opens in a new window. How can i define the size of the window, scroll options etc. Javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and IBM DB2 / odbc_connect failed

2002-03-07 Thread Jerry
Hello All, I have IBM DB2 v7.2 FP5 on a Windows 2000 Server A Linux Web server running with Apache/PHP4 And IBM DB2 V7.2 Client Install on it. When I try to use odbc_connect($dbname, $user,$password); I received the message: Warning: SQL error: , SQL state ¿Ë ?=z@éÿ¿ÛË ?=z@?=z in SQLConnect

Re: [PHP] PHP and IBM DB2 / odbc_connect failed

2002-03-07 Thread Alexander Weber
Jerry wrote: I have IBM DB2 v7.2 FP5 on a Windows 2000 Server A Linux Web server running with Apache/PHP4 And IBM DB2 V7.2 Client Install on it. When I try to use odbc_connect($dbname, $user,$password); I received the message: Warning: SQL error: , SQL state ¿Ë ?=z@éÿ¿ÛË ?=z@?=z in

Re: [PHP] PHP MAIL function...why wont it work????

2002-03-07 Thread DL Neil
Brad, [I've put this back on the list, because someone who's into PHP's MAIL() from Linux might be able to help] OK, I 'KISS'ed' it. The line now reads: mail([EMAIL PROTECTED], Please call if this works, Hi there, From: [EMAIL PROTECTED]); and works fine. BUT, if i put my email address

RE: [PHP] Calling a Variable in a weird Way

2002-03-07 Thread Ford, Mike [LSS]
-Original Message- From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 05:52 for ($i=1; $i 12; $i++) { echo state_$i; // This would print out either Yes No or Maybe. } Close -- it's actually: echo ${state_$i}; (For the record, these are

Re: [PHP] PHP and IBM DB2 / odbc_connect failed

2002-03-07 Thread Jerry
Which version of Apache did you installed to solve the problem ? Alexander Weber [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Jerry wrote: I have IBM DB2 v7.2 FP5 on a Windows 2000 Server A Linux Web server running with Apache/PHP4 And IBM DB2 V7.2 Client

[PHP] Sessions PROBLEMS

2002-03-07 Thread Sven Jacobs
Hey I have a problem with sessions, with the code below If I post i always seems to get the same session_id That is not the idea. I want to generate everytime a unique one what is wrong with my code if ($action ==logout){ session_destroy(); print destroy; } if ( $action == post

[PHP] Can anybody help me?

2002-03-07 Thread Balaji Ankem
Hi friend, from morning onwards I am facing the problem with following php script. This script functionality as follows: Getting the date from user and validating it. I couldn't trace where the error is. Can anybody help me? Any help greatly appreciable. Devicetag.php

RE: [PHP] HELP UNIX vs Windows

2002-03-07 Thread Ford, Mike [LSS]
-Original Message- From: Christopher J. Crane [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 02:26 The problem is that on the windows platform all information is returned. On the linux platform the $Details variable is not populated. The nothing changes...so what could it be.

[PHP] Anybody have the script for getting date from the user and validating it?

2002-03-07 Thread Balaji Ankem
Hi, If any body have the script for getting the date including the time from the user and validating it. If anybody have can u please forward it to me. Thanks in advance Balaji **Disclaimer Information

[PHP] Re: Calling a Variable in a weird Way

2002-03-07 Thread Nico Vrouwe
You can do: for ($i=1; $i 12; $i++) { $n = state_$i; echo $$n; } That should do what you want (if I understood what you want correctly ;) /nico Phillip S. Baker [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am not sure I can articulate this well.

Re: [PHP] Alphabet

2002-03-07 Thread Nico Vrouwe
$iord('Z') seems easier to me than $iord('A')+26 :) /Nico Edward Van Bilderbeek - Bean It [EMAIL PROTECTED] wrote in message 002601c1c5c4$d008e3f0$2d48c23e@VANBILDE01">news:002601c1c5c4$d008e3f0$2d48c23e@VANBILDE01... something like: for ($i=ord('A'); $iord('A')+26; $i++) { $str .=

Re: [PHP] Can anybody help me?

2002-03-07 Thread Tyler Longren
Did you recieve an error? If so, what was it? Tyler - Original Message - From: Balaji Ankem [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Thursday, March 07, 2002 7:23 AM Subject: [PHP] Can anybody help me? Hi friend, from morning onwards I am facing the problem with

Re: [PHP] Alphabet

2002-03-07 Thread Nico Vrouwe
Very true. oops :) /Nico - Original Message - From: David Apthorpe [EMAIL PROTECTED] To: 'Nico Vrouwe' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, March 07, 2002 2:34 PM Subject: RE: [PHP] Alphabet : Shouldn't it be $i=ord('Z') ? : : David Apthorpe : : -Original

RE: [PHP] Alphabet

2002-03-07 Thread Robert V. Zwink
Or how about: foreach(range('A', 'Z') AS $val){ echo $val; } range('A', 'Z') will produce an array of character A thru Z. http://www.php.net/manual/en/function.range.php Robert Zwink http://www.zwink.net/daid.php -Original Message- From: Nico Vrouwe [mailto:[EMAIL

RE: [PHP] File/Directory Permissions

2002-03-07 Thread Ford, Mike [LSS]
-Original Message- From: Alan McFarlane [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 03:20 I've seen and successfully used the built-in function 'mkdir()' on several occasions, but I am having trouble understanding the mode parameter. I've seen 0771, 0775 and 0777 used on

[PHP] Session_start()

2002-03-07 Thread Team GotFusion
Do I have to place a session_start() function at the top of a page (.php) before the headers? If I am creating a login form with PHP_SELF, can I place the session_start() at any point in the html where the user has been validated and logged in? Thanks, Tami Team GotFusion

RE: [PHP] Re: PHP-Based Authentication Security?

2002-03-07 Thread Coggeshall, John
.htaccess and pw files are pointless, who wants to maintain potentially 10 or 20 of these things? Furthermore, it's gotta do more than just serve a single file at a time -- that's simple... I needed directly-level security. The solution I came up with was to use a module called mod_auth_any,

RE: [PHP] Makeing $string into CAPS

2002-03-07 Thread Coggeshall, John
$str = strtoupper($str); John -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 4:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Makeing $string into CAPS How can I make a $string = hello into $string = HELLO? Philip J. Newman

Re: [PHP] Can anybody help me?

2002-03-07 Thread Balaji Ankem
Dear Tyler Thankyou for reply. I got java script error message! Line: 478 Char :1 Error:Object expected Code :0 Otherwise if u have the script (html and java) for getting the date and time and validating it... could u plz.

[PHP] using a variable to a function call

2002-03-07 Thread Matt Williams
Hi all I get a variable that is set be a select box on a page. I want to use this variable to call a function within a class that is based on it's name. so if $var = me I want to call $class-me_function(); or if $var = you call $class-you_function(); How can I use the variable as part

[PHP] Script Debug.

2002-03-07 Thread DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
Hi, someone was helping me with this last night at home, but now I am in work I am still struggling. I have a user_auth script what works fine, it registers the username and password as session variables then matches them to the rows entered in the database - if they don't match it unregisters

RE: [PHP] PHP and IBM DB2 / odbc_connect failed

2002-03-07 Thread Dan Vande More
I had the exact same problem too, reference here and you will find the answer, I assure you: http://www.phpbuilder.com/forum/read.php3?num=3id=105752thread=104455 -Original Message- From: Jerry [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 6:10 AM To: [EMAIL PROTECTED]

RE: [PHP] Script Debug.

2002-03-07 Thread Matt Schroebel
Could be several things ... else { session_register(user_auth_level); $auth_select = select account_admin_level from account_details where username='$login_username'; Perhaps echo the sql statement here so you can see what you're trying to do. $run_auth_select = mysql_query($auth_select);

RE: [PHP] PHP and IBM DB2 / odbc_connect failed

2002-03-07 Thread Dan Vande More
A quick and easy check is this: Once logged in as root do an 'su - db2inst1' The '-' is ins mandatory to get the dbinst profile Once there, do a 'su' with no '-' to keep the db2inst profile. Then stop and start apache. Dan -Original Message- From: Jerry [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Re: using a variable to a function call

2002-03-07 Thread Nico Vrouwe
You could try something like this: eval( \$class- . $var . _function(); ); /nico Matt Williams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all I get a variable that is set be a select box on a page. I want to use this variable to call a function within

Re: [PHP] using a variable to a function call

2002-03-07 Thread Edward van Bilderbeek - Bean IT
isn't it the easiest way to do something like this: class test { function do ($var) { if ($var=='you') { $this-you_function(); } else { $this-me_function(); } } function you_function() { ... } function

RE: [PHP] Script Debug.

2002-03-07 Thread Hunter, Ray
Also you can set up php to show you all warnings and display them for you. In the php.ini file you can change some values so that you can do some debugging. Here are the values you can change: display_errors = On display_startup_errors = On or error_log

[PHP] PLease Help : Php4.1.2 and MySQL Problem

2002-03-07 Thread Requiem Aurelien
Hi all, I'm currently experiencing a very strange probleme. It appears randomly and i'm not able to debug/diagnostic myself. I've a php script that connects to my mySQL database. This works good in most of time, but sometime i've got the following messages: Warning: Lost connection to MySQL

[PHP] Congrats to Rasmus?

2002-03-07 Thread Michael Kimsal
It doesn't seem to have been mentioned here unless my newsfeed is very slow, but phpdeveloper.org has a quick mention of the new addition to Rasmus' family. http://www.phpdeveloper.org/ Well, everyone's favorite PHP developer multiplied last night - Rasmus Lerdorf now has a son (9.0lbs,

[PHP] New to PHP, need help.

2002-03-07 Thread Michele
I currently working with some free source from CyberGl and am having a problem with the membership module. I've inserted the php into the beginning of the page but when I go to test the page, nothing appears. I don't get a 404 error or any error, the page just doesn't display. Any ideas?

[PHP] Userfriendly

2002-03-07 Thread Josiah Wallingford
Hello, Does anybody know of a php script that will email the daily userfriendly.org comic? Thanks, Josiah Wallingford Email = [EMAIL PROTECTED] Mailing lists: PHP General - [EMAIL PROTECTED] BBEdit Talk - [EMAIL PROTECTED] BBEdit Web Authoring - [EMAIL PROTECTED] ICRadius -

[PHP] Re: PHP and IBM DB2 / odbc_connect failed

2002-03-07 Thread Jerry
Good news problem solved ! It was an incorrect modules somewhere and an error of settings (a missing backslash) by our Linux Expert. Jerry Jerry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello All, I have IBM DB2 v7.2 FP5 on a Windows 2000 Server A

Re: [PHP] PHP and IBM DB2 / odbc_connect failed

2002-03-07 Thread Jerry
Good news problem solved ! It was an incorrect modules somewhere and an error of settings (a missing backslash) by our Linux Expert. Jerry Dan Vande More [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I had the exact same problem too, reference here and you will

[PHP] trapping the user name from .htaccess / .htpasswd

2002-03-07 Thread Dave
Hello all, I have an .htaccess and .htpasswd file in a directory. This is working fine, when anyone attempts to enter this directory, they are prompted for a user name and password, and if correctly entered, the page will load fine. What I would like is the ability to capture, or trap the user

[PHP] impossible to delete file after 'parse_ini_file'

2002-03-07 Thread Gregory Collette
php script : ?php $ini_array = parse_ini_file(conf/conf.php); echo($ini_array[var1]); ? content of conf/conf.php : [data] var1 = xxx After execution of the php script, it is impossible to delete the conf.php file. Any idea ? greg -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] trapping the user name from .htaccess / .htpasswd

2002-03-07 Thread Jason Wong
On Friday 08 March 2002 00:36, Dave wrote: Hello all, I have an .htaccess and .htpasswd file in a directory. This is working fine, when anyone attempts to enter this directory, they are prompted for a user name and password, and if correctly entered, the page will load fine. What I would

[PHP] PHP 4.1.2 binary for windows

2002-03-07 Thread charlesk
Does anyone know when this will be available? Or if it already is, where it can be downloaded? Thanks Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] emulation of foreach with reference

2002-03-07 Thread Andrey Hristov
The code below is too weird. I spent 15 min writing it but now works: for(reset($ar),list($k,)=each($ar),$v=$ar[$k];$k;list($k,)=each($ar),$v=$ar[$k]){ var_dump($k,$v); $v='ather'.($j+++0); var_dump($k,$v); } The $ar array is generated in

RE: [PHP] Congrats to Rasmus?

2002-03-07 Thread John Huggins
http://www.phpdeveloper.org/ Well, everyone's favorite PHP developer multiplied last night - Rasmus Lerdorf now has a son (9.0lbs, 19.25in. - a big boy) was born at 13:26 PDT on Wednesday March 6, 2002. If you'd like to see some pics from the family, check out this page - or to send

[PHP] Why session is not deleted ???

2002-03-07 Thread Beta
Firstly i create a session, After that when i close the browser the sesion can still be seen in tmp directory in apache webserver. I just wanted to know that If i close the browser, Does the session terminates ? Beta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Why session is not deleted ???

2002-03-07 Thread Sven Jacobs
I've the same problem here If i do logout it doesn't doe a session_destroy :( -Original Message- From: Beta [mailto:[EMAIL PROTECTED]] Sent: jeudi 7 mars 2002 18:54 To: [EMAIL PROTECTED] Subject: [PHP] Why session is not deleted ??? Firstly i create a session, After that when i close

Re: [PHP] Why session is not deleted ???

2002-03-07 Thread Andrey Hristov
Yes. If you know what is garbage collector then you will understand why it is there. The GC is started from time to time and cleans expired session data. Best regards, Andrey Hristov IcyGEN Corporation http://www.icygen.com On Thursday 07 March 2002 07:54 pm, you wrote: Firstly i create a

[PHP] require v. includes

2002-03-07 Thread Joshua E Minnie
I was just wondering if anyone could tell me when would be the time to choose require(), require_once(), or include(). I know a little bit about using each one, but I am just not sure if there is one that is better than the other in certain situations. -- Joshua E Minnie CIO [EMAIL PROTECTED]

[PHP] Re: REQUEST QUESTION

2002-03-07 Thread karthikeyan
Dear Mark, Thanx for your reply. The solution you mentioned I knew it allready but i cannot change the name of order to order[] or something else but i still want to know is there any other way i can solve this issue. I got so many anwer saying that it is not possible I wonder why because

RE: [PHP] Re: PHP-Based Authentication Security?

2002-03-07 Thread J Smith
I wouldn't say .htaccess and .htpasswd files are pointless. They might not be applicable to your situation, fine, but they're not totally useless. And .htaccess/passwd files do provide directory-level security -- the directory they're in, plus any subdirectories if need be. But there are a

Re: [PHP] require v. includes

2002-03-07 Thread Andrey Hristov
require includes code only once(on the parse), include includes code everytime it is called. if you have some libs and in two or more you do require or include of some core lib you have to use require_once or to define some constant and use it to check. I am sure when but require changed its

[PHP] Re: require v. includes

2002-03-07 Thread Michael Kimsal
Joshua E Minnie wrote: I was just wondering if anyone could tell me when would be the time to choose require(), require_once(), or include(). I know a little bit about using each one, but I am just not sure if there is one that is better than the other in certain situations. For all

RE: [PHP] Re: REQUEST QUESTION

2002-03-07 Thread Ford, Mike [LSS]
-Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 17:52 [] I am very sure that there must be some solution to this but I don't know how to do this in PHP. I have one solution using GET method but not with POST. Then you're very

[PHP] Re: php, text file, and mysql

2002-03-07 Thread Julio Nobrega Trabalhando
If you are not going to save, I wouldn't call it a file :-) Just store the contents in a string and insert in a TEXT (etc) field. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho?

Re: [PHP] php, text file, and mysql

2002-03-07 Thread Andrey Hristov
You can use a string to keep the file content. And then put it the mysql(probably a BLOB field) Best regards, Andrey Hristov IcyGEN Corporation On Thursday 07 March 2002 11:30 pm, you wrote: hello everyone. i'm wondering if i can do the following: FIRST, using php, can i create/generate

[PHP] php4.1.2 compile error with-gd

2002-03-07 Thread Eric Persson
Hi, I'm about to compile the 4.1.2 version found on php.net. I have the following configure command: ./configure --with-apache=../apache_1.3.23 --with-mysql --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir --with-freetype-dir --with-gd --enable-gd-native-ttf --with-tiff-dir

RE: [PHP] Database Error

2002-03-07 Thread Navid Yar
I changed mysql_db_query() to mysql_query(). I took the quotes away from the id. It still gives me an error: Error in query: SELECT label FROM menu WHERE id = 3 Where else could I be going wrong? -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07,

Re: [PHP] Userfriendly

2002-03-07 Thread James Arthur
On Thursday 07 Mar 2002 16:22, Josiah Wallingford wrote: Hello, Does anybody know of a php script that will email the daily userfriendly.org comic? Not sure about this -- Userfriendly.org is maintained by advertising, so unless you want to pay them a royalty for every page you view they

Re: [PHP] trapping the user name from .htaccess / .htpasswd

2002-03-07 Thread Dave
EXCELLANT! I have found that $username = $_SERVER['REMOTE_USER']; does exactly what I need it to do. Now, final question is how do I program a LOGOUT button, so when clicked the person will lose their identity and I can bounce them to a non-secure page. Any ideas? Dave Jason Wong [EMAIL

Re: [PHP] Parsing Content

2002-03-07 Thread James Arthur
On Tuesday 05 Mar 2002 15:07, Erik Price wrote: 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. PEAR has an RSS headline class that's dead easy to use and works for RDF files.

Re: [PHP] emulation of foreach with reference

2002-03-07 Thread Andrey Hristov
try this: ?php echo foo.$i++; echo \n; echo bar.($+++0); ? Thanks for showing that I add new element to the array. This is because on last iteration $k is null and I access $ar[$k] which automatically adds the new element. Why? I don't know? Maybe because I refer it by reference! The fixed

Re: [PHP] emulation of foreach with reference

2002-03-07 Thread Andrey Hristov
ooops ?php echo foo.$i++; echo \n; echo bar.($j+++0); ? On Thursday 07 March 2002 09:09 pm, Andrey Hristov wrote: try this: ?php echo foo.$i++; echo \n; echo bar.($+++0); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] uploading images

2002-03-07 Thread Filippo Veneri
When uploading image files to my powerpc linux box (derived from redhat 7.1) running apache + php4.0.4pl1 something wierd happen. Images get corrupted by (IMHO) php itself. It adds the following 2 lines at the top of the file: Content-Type: image/jpeg^M ^M ...(rergular image file data) (as

[PHP] upload corrupts images

2002-03-07 Thread Filippo Veneri
When i upload an image file (i.e. a jpeg) to the server using php, it gets corrupted. Indeed the GIMP is no longer able to open it. Opening the uploaded file with a text editor i found that the following 2 lines were added at the top (as displayed by vim, my text editor): Content-Type:

Re: [PHP] using a variable to a function call

2002-03-07 Thread Lars Torben Wilson
On Thu, 2002-03-07 at 06:25, Matt Williams wrote: Hi all I get a variable that is set be a select box on a page. I want to use this variable to call a function within a class that is based on it's name. so if $var = me I want to call $class-me_function(); or if $var = you

[PHP] Re: require v. includes

2002-03-07 Thread Joshua E Minnie
Thanks for the information, was definitely very helpful in clearing up that question. Joshua E Minnie [EMAIL PROTECTED] Don't work for recognition, but always do work worthy of recognition. ~ Unknown Michael Kimsal [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Arrays/OOP again

2002-03-07 Thread Joshua E Minnie
I am having problem with an array filled with an object. I am trying to access it using current($object_array)-object_var. Here is the line of code that is giving me the problem, any help that can be provided will be greatly appreciated. if((current($retrieved)-beginTime $morning)

[PHP] Re: mail() getenv() problems (after 4.1.2 update)...

2002-03-07 Thread Paul
Can nobody help? This is so frustrating. I cannot see what's wrong, open to ANY suggestions! Thanks. Paul Paul [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I wonder if anyone can help me with a problem I have. I have some sites hosted on a Cobalt

[PHP] mcrypt? - Can't find any good info

2002-03-07 Thread Nick Richardson
I'm getting this error: Warning: mcrypt module initialization failed in /home/www/common.php on line 314 When running this code: ?php function encryptPassword($password) { $key = randomString(); $code = mcrypt_ecb(MCRYPT_BLOWFISH_128, $key, $password, MCRYPT_ENCRYPT); print($code = enc

[PHP] Use an ini file

2002-03-07 Thread jtjohnston
Anyone know of an easy to use library/or code that will read and write an ini file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to PHP, need help.

2002-03-07 Thread Matt Drake
Michele, Possible a dumb question, but does the machine you are running it on have PHP installed and configured to work with the server software? If so, did you name the file correctly? It may need to be called page.php rather than page.html... M On Thu, 7 Mar 2002, Michele wrote: I

[PHP] User accounts

2002-03-07 Thread David Johansen
I'm new to this php thing and I would like to set up a web page were the users can login and edit their preferences and all that stuff. I have the basic login stuff worked out and I was passing the username and password as a hidden input in the form, but then the password can be seen with view

[PHP] Re: User accounts

2002-03-07 Thread Michael Kimsal
David Johansen wrote: I'm new to this php thing and I would like to set up a web page were the users can login and edit their preferences and all that stuff. I have the basic login stuff worked out and I was passing the username and password as a hidden input in the form, but then the

[PHP] PHP vs object.record set

2002-03-07 Thread Rodrigo Peres
Hi list, I'm new to PHP, but I found it greate. But I have a question. Recently I've saw a friend using asp and the object record set seems perfect, I mean the function to count records, navigate in throw record (back and forth) everything automatic is amazing. There's a way, to implement such

Re: [PHP] php, text file, and mysql

2002-03-07 Thread Erik Price
On Thursday, March 7, 2002, at 04:30 PM, gregory hernandez wrote: i'm wondering if i can do the following: FIRST, using php, can i create/generate a text file on-the-fly (not saved to a server) THEN, insert the actual text file (and not its contents) into a mysql database. Sorry,

[PHP] Re: mcrypt? - Can't find any good info

2002-03-07 Thread Michael Kimsal
Nick Richardson wrote: I'm getting this error: Warning: mcrypt module initialization failed in /home/www/common.php on line 314 When running this code: ?php function encryptPassword($password) { $key = randomString(); $code = mcrypt_ecb(MCRYPT_BLOWFISH_128, $key, $password,

Re: [PHP] Rasmus, O'Reilly, Programming PHP

2002-03-07 Thread Erik Price
On Thursday, March 7, 2002, at 06:05 AM, DL Neil wrote: Rasmus/others, O'Reilly are advertising the imminent release (Mar 2002) of Programming PHP (http://www.oreilly.com/catalog/progphp/desc.html). Is that still going ahead? (I'll submit an advanced purchase order...) Hmmm... on the

[PHP] Re: PHP vs object.record set

2002-03-07 Thread Michael Kimsal
Rodrigo Peres wrote: Hi list, I'm new to PHP, but I found it greate. But I have a question. Recently I've saw a friend using asp and the object record set seems perfect, I mean the function to count records, navigate in throw record (back and forth) everything automatic is amazing. There's

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-07 Thread Erik Price
On Wednesday, March 6, 2002, at 05:11 AM, DL Neil wrote: My 'rules' are simple: If the date/time is for processing, keep it as a timestamp (consider which type). If the timestamp is being used to keep track of RDBMS activity, then use a TIMESTAMP column. By RDBMS activity, do you mean

Re: [PHP] php, text file, and mysql

2002-03-07 Thread gregory hernandez
Erik: thank for answering my first question: the word file indicates that this is represented by an entity in a filesystem -- thus, it would be saved to a server. now let me rephrase the second part. what i meant to say was the following: can i insert the actual file (i.e. document.txt, of

Re: [PHP] php, text file, and mysql

2002-03-07 Thread Anas Mughal
Are you planning on using MySQL as a filesystem? There seems to be great confusion here. Good luck! --- gregory hernandez [EMAIL PROTECTED] wrote: hello everyone. i'm wondering if i can do the following: FIRST, using php, can i create/generate a text file on-the-fly (not saved to a

RE: [PHP] Database Error

2002-03-07 Thread Navid Yar
Yes, Jason. I posted it earlier, but here it is again. // Error I'm getting Error in query: SELECT label FROM menu WHERE id = 3 Warning: Supplied argument is not a valid MySQL result resource in e:\localhost\menu\menu.class.php on line 47 // Object being called from get.php ?php

RE: [PHP] Userfriendly

2002-03-07 Thread Jason Murray
Does anybody know of a php script that will email the daily userfriendly.org comic? Why not write one yourself? Most of the file names can be guessed, today is http://www.userfriendly.org/cartoons/archives/02mar/uf004027.gif for example. By the way... Josiah Wallingford Email = [EMAIL

  1   2   >