Re: [PHP] Configure vpopmail with php

2003-07-28 Thread Haseeb
hi, i have compiled php with vpopmail and i didn'tget any error but when i try accessing vpopmail functions i getcall to undefined function error. soo whai amdoing wrong, Haseeb ---Original Message--- From: Curt Zirzow Date: Saturday, July 26, 2003 10:06:37 PM To: [EMAIL

Re: [PHP] Get Local IP Address

2003-07-28 Thread Chris Lee
Try this: ?php exec('ipconfig',$catch); foreach($catch as $line){ if(eregi('IP Address',$line)){ list($t,$ip) = split(':',$line); echo 'IP is '.$ip.\n; } } ? Thanks Tom, but I think it only work for Win NT, how about Win 9x? -- PHP General

Re[2]: [PHP] Get Local IP Address

2003-07-28 Thread Tom Rogers
Hi, Monday, July 28, 2003, 4:29:46 PM, you wrote: Try this: ?php exec('ipconfig',$catch); foreach($catch as $line){ if(eregi('IP Address',$line)){ list($t,$ip) = split(':',$line); echo 'IP is '.$ip.\n; } } ? CL Thanks Tom, but I think it only work

[PHP] PHP5: Will register_globals be an option or not - or hasn't it beendecided yet?

2003-07-28 Thread Tommy Ipsen
Hi I would like to know if it has been decided whether or not register_global will continue to be an option in PHP5. Cheers, Tommy Ipsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] variable in function parameter

2003-07-28 Thread 386-DX
Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa(a is . ($a5?greater:equal to or less). than 5.); I want this to output a is greater than 5.. how can i modify the code so that the function parameter is evaluated inside the function?

[PHP] $_GET['sort'] argument separator

2003-07-28 Thread Ow Mun Heng
Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title # Heads My Findings row2) P1000 Title16 This is my

[PHP] using SESSIONS to store page 2 page variables

2003-07-28 Thread Ow Mun Heng
Hi, Is it advisable to use SESSIONS to store variable from one page to another page instead of using something like a hidden field? eg: $_SESSION['sql_sort_cat'] $_SESSIOn['sql_sort_dir'] instead of input type=hidden value=?php $sql_sort_cat? Cheers, Mun Heng, Ow H/M Engineering

[PHP] Re: Set Cookie in PHP and call with Perl

2003-07-28 Thread TWSC HQ
Hi - Sorry - by caling I meant to echo the cookie value on a .pl page - and include it (the cookie value)then in an email. Any help would be appreciated because the PERL list people said I must try a PHP list - Thanks August Is this possible : How do i call the cookie value (surname) with Perl

Re: [PHP] using SESSIONS to store page 2 page variables

2003-07-28 Thread Marek Kilimajer
No problem, but remember the user might want to bookmark the page. Ow Mun Heng wrote: Hi, Is it advisable to use SESSIONS to store variable from one page to another page instead of using something like a hidden field? eg: $_SESSION['sql_sort_cat'] $_SESSIOn['sql_sort_dir'] instead of

Re: [PHP] $_GET['sort'] argument separator

2003-07-28 Thread Nicholas Robinson
What happens if you use a non-breaking html space instead? I.e Evalnbsp# HTH Nick On Monday 28 Jul 2003 9:06 am, Ow Mun Heng wrote: Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query

Re: [PHP] Re: Set Cookie in PHP and call with Perl

2003-07-28 Thread Jason Wong
On Monday 28 July 2003 13:52, TWSC HQ wrote: Sorry - by caling I meant to echo the cookie value on a .pl page - and include it (the cookie value)then in an email. Any help would be appreciated because the PERL list people said I must try a PHP list - A cookie is a cookie regardless of what

[PHP] IMAP and NNTP

2003-07-28 Thread {R}ichard Ashton
The manual says that the majority of IMAP commands can be used for NNTP access. This code works fine. $status = imap_status($nntp,{news.gradwell.net:119/nntp}#news.gradwell. lists.test,SA_ALL); if($status) { print(Messages: . $status-messages ).br\n; print(Recent: . $status-recent

Re: [PHP] variable in function parameter

2003-07-28 Thread Marek Kilimajer
www.php.net/variables.scope You need global $a; as the first line in your function. 386-DX wrote: Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa(a is . ($a5?greater:equal to or less). than 5.); I want this to output a is greater than

RE: [PHP] Half solved...............what the @#%# is PHPSESSID?

2003-07-28 Thread Ford, Mike [LSS]
-Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: 26 July 2003 21:16 Hey John, I dont think its the browser because I have tried this with opera 6,opera 7, IE and NN with the same results... But when i checked the phpinfo() it says that cookies are enabledDo

RE: [PHP] incrementing string value

2003-07-28 Thread Ford, Mike [LSS]
-Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: 26 July 2003 01:14 * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote Jeremy ([EMAIL PROTECTED]): let me make sure I understand... $var = 'a'; $var++ print($var); would print b to

RE: [PHP] replacing but not special chars

2003-07-28 Thread Ford, Mike [LSS]
-Original Message- From: Shawn McKenzie [mailto:[EMAIL PROTECTED] Sent: 27 July 2003 08:36 I have some URLs in hrefs that have an . This does not validate HTM4.01 transitional, so I want to replace them with amp; So I buffer the output and do a replace, but suppose there is

[PHP] Mail Authentication or redirection of SMTP server

2003-07-28 Thread Ron Allen
Here is my problem. When I send emails locally theough the Exchange Server I have no problems sending mail. When I try to send emails to another site through the MTA funtion_mail pops up. One of two things came to mind. First is that we have anonymous forwarding of emails turned off for

php-general Digest 28 Jul 2003 09:50:14 -0000 Issue 2202

2003-07-28 Thread php-general-digest-help
php-general Digest 28 Jul 2003 09:50:14 - Issue 2202 Topics (messages 157105 through 157149): Re: Recompiling the PHP Binary with PCNTL 157105 by: DvDmanDT 157127 by: Jason Wong Flash Variables 157106 by: Taylor Smith 157108 by: skate Re: Your E-Book

RE: [PHP] Sessions GET vs. Cookies

2003-07-28 Thread Ford, Mike [LSS]
-Original Message- From: Nicholas Robinson [mailto:[EMAIL PROTECTED] Sent: 27 July 2003 23:40 Many thanks, that's fixed it! On Sunday 27 Jul 2003 10:42 pm, Chris Shiflett wrote: --- Nicholas Robinson [EMAIL PROTECTED] wrote: I've noticed that links in my pages are getting the

[PHP] php ncurses - colors not working

2003-07-28 Thread rainman
Hello, I have been working with php ncurses for an IRC client and I have a problem with using colors. I have been able to find the example php-4.3.2/ext/ncurses/example1.php, and that does work. It seems to use ncurses_color_set() for setting the color. However, my application uses 3 windows.

[PHP] HELP WITH ODBC freetds

2003-07-28 Thread Nabil
Hiya all; I have been trying so hard to get that done.. and i posted many here. but with no hope.. here is a summury of what i did: - I tried FreeTDS as a driver with unixODBC ... - Tried to remove mysql- apache - php and recomplied them with : iodbc - Tried to try openlink driver. - tried to

[PHP]IE6 back button problems

2003-07-28 Thread Jim McNeely
Here's a puzzler, I've searched the archives and couldn't find a satisfactory answer, and it would be nice to have one in the archives. I'm working on a web app that draws a search screen with fields coming from settings in a database. When you do the search, it works fine, but in IE 6 on

[PHP] Re: Mail Authentication or redirection of SMTP server

2003-07-28 Thread Pete Morganic
I used to have similar problem and that was when I was using the php mail() command.. Have a look at phpmailer http://phpmailer.sourceforge.net/ This deals witha lot of the peculiarities with mail servers.. Pete Ron Allen wrote: Here is my problem. When I send emails locally theough the

[PHP] javascript php

2003-07-28 Thread Roman Duriancik
I have problem with variables in javascript and php. I have code in php and in this code I insert some values from javascript.: $color = script!-- document.write(screen.colorDepth) //-- /script; when I write command echo $color - result is correct. but when i need insert or select some

RE: [PHP] using SESSIONS to store page 2 page variables

2003-07-28 Thread Ow Mun Heng
I think it's OK since users needs to be authenticated. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:46 PM To: Ow Mun Heng Cc: [EMAIL PROTECTED] Subject: Re:

[PHP] Re: javascript php

2003-07-28 Thread Thomas Seifert
On Mon, 28 Jul 2003 12:48:04 +0200 [EMAIL PROTECTED] (Roman Duriancik) wrote: I have problem with variables in javascript and php. I have code in php and in this code I insert some values from javascript.: $color = script!-- document.write(screen.colorDepth) //-- /script;

RE: [PHP] $_GET['sort'] argument separator

2003-07-28 Thread Ow Mun Heng
Nope.. Still does not work.. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Nicholas Robinson [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 4:53 PM To: Ow Mun Heng; [EMAIL PROTECTED] Subject: Re: [PHP] $_GET['sort']

[PHP] Re: javascript php

2003-07-28 Thread Kristin Schesonka
Hi Roman, I'm not sure if I understand what you want to do - but if you try to set your PHP-Variable with JavaScript it couldn't work. JavaScript is Clientside interpreted and PHP is Serverside interpreted, that means your PHP-Code is done before the JavaScript-Code. So the Webserver reads your

Re: [PHP] Array help

2003-07-28 Thread skate
because in reality I don't have just these 4 fields but 43 fields in one table that have to be taken. Select *... seems a much easier way to get it you have 43 fields in 1 table? if you are seriously considering offering hosting packages, then i'm guessing your wanting to be half

[PHP] Dynamically generate a drop down list

2003-07-28 Thread Mukta Telang
Hi, I want to dynamically generate a drop down list of authors by querying a database. What I am doing at present is: function init_auth_list($auth_list) { $auth_list=select name=author option value=\\select the name of t he author/option\; $query=select name from author order by

Re: [PHP] Dynamically generate a drop down list

2003-07-28 Thread skate
Is it possible to have a function which echoes the values as they are read from the database? something like function init_auth_list() { print select name=author option value=\\select the name of the author/option\; $query=select name from author order by name;

Re: [PHP] $_GET['sort'] argument separator

2003-07-28 Thread Marek Kilimajer
If your table column is named Eval #, you need to use backtick quotes: `Eval #` Ow Mun Heng wrote: Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title

Re: [PHP] $_GET['sort'] argument separator

2003-07-28 Thread John W. Holmes
Ow Mun Heng wrote: Hi, I have this problem, which could easily be solved through a name change but I would like to learn more. There's a table set up from a MySQL query like this row1) Eval # Title # Heads My Findings row2) P1000 Title16

RE: [PHP] Problem setting variables.

2003-07-28 Thread Ralph Guzman
//Find User Configuration $sql = mysql_query(SELECT field_name FROM config WHERE show_field=1) OR die(Could not query database: .mysql_error().); while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){ $field_name_array[] = $result['field_name'] } // Iterate through array and print fields

RE: [PHP] Problem setting variables - Correction

2003-07-28 Thread Ralph Guzman
Correction...Forgot a ; //Find User Configuration $sql = mysql_query(SELECT field_name FROM config WHERE show_field=1) OR die(Could not query database: .mysql_error().); while($result = mysql_fetch_array($sql, MYSQL_ASSOC)){ $field_name_array[] = $result['field_name']; } // Iterate through

[PHP] replacing \ with - in a string

2003-07-28 Thread Merlin
Hi there, I am trying to replace a backslash inside a string. Somehow nothing workes, not the str_replce, not preg_replace, not erreg_replace. Can anybody please help? Thanx you in advance, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Dynamically generate a drop down list

2003-07-28 Thread sven
... or even shorter (since php 4.1.0): function init_auth_list() { print select name=author option value=\\select the name of the author/option\; $query=select name from author order by name; $result=pg_exec($GLOBALS[db],$query); while ($row = pg_fetch_row($result)) {

Re: [PHP] replacing \ with - in a string

2003-07-28 Thread John W. Holmes
Merlin wrote: I am trying to replace a backslash inside a string. Somehow nothing workes, not the str_replce, not preg_replace, not erreg_replace. $new_str = str_replace('\','-',$old_string); or $new_str = str_replace(\\,'-',$old_string); But this begs the question of why do you think you need to

Re: [PHP] replacing \ with - in a string

2003-07-28 Thread Merlin
oh.. you are right, I ment slash. Workes now. Thanx for the hint :-)) -- lt;IFRAME SRC=http://saratoga.globosapiens/associates/report_member.php?u=3color=EEE EEE scrolling=no frameborder=0 TITLE=My travel articles width=330 height=155 ALLOWTRANSPARENCY=truea href=http://www.globosapiens.net;

RE: [PHP] Dynamically generate a drop down list

2003-07-28 Thread Dave [Hawk-Systems]
Is it possible to have a function which echoes the values as they are read from the database? something like function init_auth_list() { print select name=author option value=\\select the name of the author/option\; $query=select name from author order by name;

[PHP] Mail parse

2003-07-28 Thread Radek Zajkowski
I am curious if there is a better documentation of Mail Parse functions than the one provided on the php.net site. Any help is appreciated, R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upload files

2003-07-28 Thread Rosen
Hi, I have some problem with uploading files on server with PHP. The upload is ok, but I must set directory permissions with FULL Access - but this is not a good idea :(( Have someone idea how I can do this with no setting permissions to full acess ? Thanks, Rosen -- PHP General Mailing List

[PHP] Upload problem

2003-07-28 Thread Rosen
Hi, I have some problem with uploading files on server with PHP. The upload is ok, but I must set directory permissions with FULL Access - but this is not a good idea :(( Have someone idea how I can do this with no setting permissions to full acess ? Thanks, Rosen reserved! -- PHP General

[PHP] Absolute and relative paths ..... a quick explanation required

2003-07-28 Thread Kevin McGinley
Hi all, can anyone tell me how php paths are worked out Im just starting to use php over asp so would appreciate the answer to the following If a file a.php includes a file b.php which includes a file c.php is the include in file b.php relative to itself or the file that included it i.e.

Re: [PHP] Absolute and relative paths ..... a quick explanation required

2003-07-28 Thread Marek Kilimajer
relative to a.php Kevin McGinley wrote: Hi all, can anyone tell me how php paths are worked out Im just starting to use php over asp so would appreciate the answer to the following If a file a.php includes a file b.php which includes a file c.php is the include in file b.php relative to

[PHP] Displaying MySQL data inside of a table

2003-07-28 Thread SP Computing
Hi all, I have this code so far: ? mysql_connect(localhost, USER, PASS); mysql_select_db(DB); $result = mysql_query(SELECT * FROM tbl); ? Inside one of my tables, I have one field called IP which contains just over a thousand IP addresses. I would like these IP addresses to be displayed

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread Jacob Vennervald Madsen
Hi Next time you can find a lot of information about this on www.php.net. Check out this example: ?php $conn = mysql_connect(localhost, mysql_user, mysql_password); if (!$conn) { echo Unable to connect to DB: . mysql_error(); exit; } if

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread desa15
$mysql_link = mysql_connect(localhost, USER, PASS); mysql_select_db(DB, $mysql_link); $SQL = SELECT * FROM tbl; $result = mysql_query($SQL, $mysql_link) or die (mysql_error()); echo table border=1 cellpadding=5; while($resultat = @mysql_fetch_array($result)) { echo trtd

Re: [PHP] uploading a file from a form

2003-07-28 Thread Amanda McComb
I'm not sure what that means...how do I use it, and where? On Fri, 25 Jul 2003, Marek Kilimajer wrote: Don't you need to use $HTTP_POST_FILES array because you have register_globals off? Amanda McComb wrote: I am having a problem with uploading a file from a form. I changed the

Re: [PHP] variable in function parameter

2003-07-28 Thread Curt Zirzow
* Thus wrote 386-DX ([EMAIL PROTECTED]): Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa(a is . ($a5?greater:equal to or less). than 5.); http://php.net/eval Curt -- I used to think I was indecisive, but now I'm not so

Re: [PHP] variable in function parameter

2003-07-28 Thread CPT John W. Holmes
* Thus wrote 386-DX ([EMAIL PROTECTED]): Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa(a is . ($a5?greater:equal to or less). than 5.); http://php.net/eval No... you need to make $a global within the function for

[PHP] problem: creating global alias inside function

2003-07-28 Thread Martin Peck
The following code illustrates a problem I've got with references (running on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any assistance! Martin ?php $globalvariable = 0; $one = 1; //want to set up $globalvariable as a reference to $one setglobal($one); echo

RE: [PHP] Debugging a Session Problem

2003-07-28 Thread Johnson, Kirk
Anything in the Apache or PHP error logs? Permissions are OK, there is space on the drive? Kirk -Original Message- From: Lee Stewart [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2003 6:00 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Debugging a Session Problem Using the

Re: [PHP] uploading a file from a form

2003-07-28 Thread Marek Kilimajer
Everything is in the manual: http://www.php.net/features.file-upload Amanda McComb wrote: I'm not sure what that means...how do I use it, and where? On Fri, 25 Jul 2003, Marek Kilimajer wrote: Don't you need to use $HTTP_POST_FILES array because you have register_globals off? Amanda McComb

Re: [PHP] variable in function parameter

2003-07-28 Thread Curt Zirzow
* Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): * Thus wrote 386-DX ([EMAIL PROTECTED]): Hello. Let's say I have something like this: function aa($test) { $a = 8; echo $test; } $a = 2; aa(a is . ($a5?greater:equal to or less). than 5.);

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread sven
[EMAIL PROTECTED] wrote: $mysql_link = mysql_connect(localhost, USER, PASS); mysql_select_db(DB, $mysql_link); $SQL = SELECT * FROM tbl; $result = mysql_query($SQL, $mysql_link) or die (mysql_error()); echo table border=1 cellpadding=5; while($resultat =

Re: [PHP] Absolute and relative paths ..... a quick explanation required

2003-07-28 Thread Curt Zirzow
* Thus wrote Kevin McGinley ([EMAIL PROTECTED]): Hi all, can anyone tell me how php paths are worked out Im just starting to use php over asp so would appreciate the answer to the following If a file a.php includes a file b.php which includes a file c.php is the include in file b.php

RE: [PHP] problem: creating global alias inside function

2003-07-28 Thread Ford, Mike [LSS]
-Original Message- From: Martin Peck [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 15:33 The following code illustrates a problem I've got with references (running on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any assistance! Martin ?php

Re: [PHP] uploading a file from a form

2003-07-28 Thread Martin Peck
Amanda, You need to look at some of the error messages that are available to you: 1) remove the prepended @ from the file functions. This will tell what is going wrong with the file copy. if ([EMAIL PROTECTED]($photo, $long_path . company_logo/ . $photo_name)) { echo Copy failed.;

Re: [PHP] problem: creating global alias inside function

2003-07-28 Thread Curt Zirzow
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]): -Original Message- rints 0, not 1 function setglobal($one) { global $globalvariable; PHP actually handles this by executing the equivalent of: $globalvariable = $GLOBALS['globalvariable']; --

Re: [PHP] php pages without .php extension on linux and windows

2003-07-28 Thread Heiko Mundle
I just had to turn on MultiViews in my directory options... Heiko Jeff Harris wrote: On Jul 7, 2003, Heiko Mundle claimed that: |I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K). | |On Linux I can access the PHP scripts without adding the .php extension. |E.g.

Re: [PHP]IE6 back button problems

2003-07-28 Thread Jim Lucas
Try taking the value='' out of your form fields. if you have it reseting the values every time the page is loaded, it will reset the values. Jim Lucas - Original Message - From: Jim McNeely [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 28, 2003 3:20 AM Subject: [PHP]IE6 back

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread desa15
[EMAIL PROTECTED] wrote: $mysql_link = mysql_connect(localhost, USER, PASS); mysql_select_db(DB, $mysql_link); $SQL = SELECT * FROM tbl; $result = mysql_query($SQL, $mysql_link) or die (mysql_error()); echo table border=1 cellpadding=5; while($resultat =

[PHP] convert mysql datetime to unix timestamp

2003-07-28 Thread Chris Hayes (SENSE)
hi, i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert mysql datetime to unix timestamp

2003-07-28 Thread Adam Voigt
Tried passing it through strtotime? Example: echo(date('U',strtotime($string))); On Mon, 2003-07-28 at 12:06, Chris Hayes (SENSE) wrote: hi, i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? Chris -- Adam Voigt

[PHP] Re: convert mysql datetime to unix timestamp

2003-07-28 Thread Shena Delian O'Brien
Look into mktime() http://us3.php.net/manual/en/function.mktime.php Chris Hayes wrote: hi, i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] convert mysql datetime to unix timestamp

2003-07-28 Thread Comex
[EMAIL PROTECTED] Chris Hayes (SENSE): hi, i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? Chris strtotime(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mssql_execute problems...

2003-07-28 Thread T. Rader
Any takers on this? T. Rader [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, System: RH9, Apache 1.3.27, PHP 4.3.2, FreeTDS 0.61 connecting to a Win2K Server, MSSQL Server 2K Problem: mssql_execute hangs when run. The script just never comes back. The code is as follows:

Re: [PHP] Re: mssql_execute problems...

2003-07-28 Thread Adam Voigt
Umm, try setting TDSVER to 8.0 is all I could say to try. On Mon, 2003-07-28 at 12:10, T. Rader wrote: Any takers on this? T. Rader [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, System: RH9, Apache 1.3.27, PHP 4.3.2, FreeTDS 0.61 connecting to a Win2K Server, MSSQL

[PHP] Re: convert mysql datetime to unix timestamp

2003-07-28 Thread Thomas Seifert
SELECT UNIX_TIMESTAMP(datetime-field) ... thomas On Mon, 28 Jul 2003 18:06:32 +0200 [EMAIL PROTECTED] (Chris Hayes) wrote: hi, i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? Chris -- PHP General Mailing

[PHP] sessions help - apache2 + mod_auth_ldap + PHP

2003-07-28 Thread th0th
Hello everyone! I am having some issues with authentication and was wondering if someone out there could point me in the right direction. I am using apache2 and have htaccess setup to require a valid user via mod_auth_ldap communicating with an ldap server. Everything works like a million bucks

Re: [PHP] convert mysql datetime to unix timestamp

2003-07-28 Thread John W. Holmes
Chris Hayes (SENSE) wrote: i have to move data from a table with a datetime (2003-05-14 13:36:04) to a unix timestamp (e.g. 2147483647) . Any ideas? ALTER TABLE Table ADD COLUMN unix_time_column INT; UPDATE Table SET unix_time_column = UNIX_TIMESTAMP(mysql_time_column); -- ---John Holmes...

Re: [PHP] Get Local IP Address

2003-07-28 Thread Mark
For Win9x, use winipcfg instead of ipconfig. --- Chris Lee [EMAIL PROTECTED] wrote: Try this: ?php exec('ipconfig',$catch); foreach($catch as $line){ if(eregi('IP Address',$line)){ list($t,$ip) = split(':',$line); echo 'IP is '.$ip.\n; } }

Re: [PHP] Get Local IP Address

2003-07-28 Thread Comex
[EMAIL PROTECTED] Mark: For Win9x, use winipcfg instead of ipconfig. winipcfg is a windows-based utility, which can't work with PHP. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mssql_execute problems...

2003-07-28 Thread T. Rader
Thanks for the reply. I gave it a try and still have the same problem. I have FreeTDS logging enabled, but the logs do not show anything useful. A connection is made to the server, and the database is selected correctly. Then, the log shows an outgoing connection. After that, nothing. We have

Re: [PHP] Get Local IP Address

2003-07-28 Thread Curt Zirzow
* Thus wrote Tom Rogers ([EMAIL PROTECTED]): Hi, Monday, July 28, 2003, 4:29:46 PM, you wrote: Try this: ?php exec('ipconfig',$catch); foreach($catch as $line){ if(eregi('IP Address',$line)){ list($t,$ip) = split(':',$line); echo 'IP is '.$ip.\n;

Re: [PHP] Re: Set Cookie in PHP and call with Perl

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, Jason Wong claimed that: |On Monday 28 July 2003 13:52, TWSC HQ wrote: | | Sorry - by caling I meant to echo the cookie value on a .pl page - and | include it (the cookie value)then in an email. | | Any help would be appreciated because the PERL list people said I must try | a

[PHP] Array Question

2003-07-28 Thread Pushpinder Singh Garcha
hello everyone, I am trying to store one of the fields of the resultset into an array as I display the results. while ($row = mysql_fetch_array($result1)) { // Alternate the bgcolor of each row for visibility ($even % 2) == 0 ? $bgcolor = #EFEFEF : $bgcolor = #ee;

[PHP] List Problems

2003-07-28 Thread Curt Zirzow
Any body else getting a message back with subject like: [ERR] Re: [PHP] subject of message. With contents: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) I tried contacting the list admin and posted a message here ealier this weekend about fixing this

Re: [PHP] Absolute and relative paths ..... a quick explanation required

2003-07-28 Thread Marek Kilimajer
use require_once() or include_once() - these remember what has been included and do not include files that has been already. Kevin McGinley wrote: Can u tell me then how its posssible to include a file that inculdes another file if it is itself included in two other files that are in difeerent

[PHP] Jason Wong-Array help

2003-07-28 Thread Ryan A
Hey Jason, Thanks for that bit of code, it was exactly what i was looking for. For those of you curious or face the same problem: After dumping the data into the array I am calling each part that i need via ?php echo $data['pname'][1]; ? where pname in this case is the field name and the 1 is for

RE: [PHP] replacing but not special chars

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, Ford, Mike [LSS] claimed that: | -Original Message- | From: Shawn McKenzie [mailto:[EMAIL PROTECTED] | Sent: 27 July 2003 08:36 | | I have some URLs in hrefs that have an . This does not | validate HTM4.01 | transitional, so I want to replace them with amp;

Re: [PHP] Jason Wong-Array help

2003-07-28 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): one last question: According to the script I am calling an include file... eg: if(r=2){include blah1.php;} elseif (r=3){include blah2.php;} and so on now blah1,2,3 etc are mostly html code files with php in them.will this slow down

Re: [PHP] List Problems

2003-07-28 Thread Ryan A
Nope, I too have gotten a few of those and its a pain in the @ss. - Original Message - From: Curt Zirzow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 28, 2003 7:26 PM Subject: [PHP] List Problems Any body else getting a message back with subject like: [ERR] Re: [PHP]

Re: [PHP] Upload problem

2003-07-28 Thread Jason Wong
On Monday 28 July 2003 21:47, Rosen wrote: I have some problem with uploading files on server with PHP. The upload is ok, but I must set directory permissions with FULL Access - but this is not a good idea :(( Have someone idea how I can do this with no setting permissions to full acess ?

Re: [PHP] List Problems

2003-07-28 Thread skate
Any body else getting a message back with subject like: [ERR] Re: [PHP] subject of message. yeah, i'm getting that every now and then. maybe 1 or 2 a day tho... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List Problems

2003-07-28 Thread Nicholas Robinson
I've been getting them too. The really annoying bit is that the most likely reason for it is that the lucky devil hanmir is probably on holiday! On Monday 28 Jul 2003 6:26 pm, Curt Zirzow wrote: Any body else getting a message back with subject like: [ERR] Re: [PHP] subject of message.

[PHP] Parsing MySQL query return

2003-07-28 Thread John
Hey All, I have a question regarding parsing text from a MySQL query. Basically, I have several paragraphs of text in a field in MySQL. I run a query, get the results, no problem. However, I would like to only display the first paragraph of the data returned. What is the best way to do this?

Re: [PHP] List Problems

2003-07-28 Thread Jeff Harris
On Jul 28, 2003, skate claimed that: | | | Any body else getting a message back with subject like: | [ERR] Re: [PHP] subject of message. | | |yeah, i'm getting that every now and then. maybe 1 or 2 a day tho... [Regression mode] Not to start the discussion all over again, but if the responses

Re: [PHP] unique id

2003-07-28 Thread Gabriel Guzman
On Sat, 2003-07-26 at 07:11, Curt Zirzow wrote: * Thus wrote jan ([EMAIL PROTECTED]): Hi there! What's the best way to create uids (unique ids) even when runnig at exactly same time (microseconds)? is this enough ??? $r = mt_rand(); $uid = uniqid(getmypid() . $r); If

Re: [PHP] Parsing MySQL query return

2003-07-28 Thread Ewout de Boer
- Original Message - From: John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 28, 2003 8:22 PM Subject: [PHP] Parsing MySQL query return Hey All, I have a question regarding parsing text from a MySQL query. Basically, I have several paragraphs of text in a field in

[PHP] MySQL limitations

2003-07-28 Thread Mike Mannakee
Does anyone know what the maximun number of columns I could put in a table is?? I can't find it in manual. Like, could I have a table with 200,000 columns? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL limitations

2003-07-28 Thread John Manko
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=mysql+max+columnsbtnG=Google+Search Mike Mannakee wrote: Does anyone know what the maximun number of columns I could put in a table is?? I can't find it in manual. Like, could I have a table with 200,000 columns? Mike -- PHP

[PHP] Store array as Session Variable

2003-07-28 Thread Pushpinder Singh Garcha
hello All, I am trying to store an array as a session variable. while ($row = mysql_fetch_array($result)) { if ( !is_array($company_name) ) $company_name = array(); array_push($company_name, $row['company']); // try to register session variable

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Chris Shiflett
--- Pushpinder Singh Garcha [EMAIL PROTECTED] wrote: I am trying to store an array as a session variable. Based on your code, it looked like your question had little to do with storing an array as a session variable. To do that, this works: $_SESSION['myarray'] = $myarray; while ($row =

Re: [PHP] Store array as Session Variable

2003-07-28 Thread CPT John W. Holmes
$details is an array (just like $company_name was). Try to view print_r($details); and see what you get. ---John Holmes... - Original Message - From: Pushpinder Singh Garcha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 28, 2003 3:18 PM Subject: [PHP] Store array as Session

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Pushpinder Singh Garcha
$details is empty !! Thanks --Pushpinder On Monday, July 28, 2003, at 03:31 PM, CPT John W. Holmes wrote: $details is an array (just like $company_name was). Try to view print_r($details); and see what you get. ---John Holmes... - Original Message - From: Pushpinder Singh Garcha [EMAIL

Re: [PHP] Store array as Session Variable

2003-07-28 Thread Chris Shiflett
--- Pushpinder Singh Garcha [EMAIL PROTECTED] wrote: I am trying to store the value in row['company'] in an array called $company_name. I see now. I think you might find this a bit simpler (if I understand correctly): $company_name = array(); while ($row = mysql_fetch_assoc($result)) {

[PHP] Email forwarding from SendMail to PHP

2003-07-28 Thread Donald Tyler
Anyone know of a place to get some good tutorials on how to forward email from SendMail to PHP for processing?

Re: [PHP] MySQL limitations

2003-07-28 Thread Brent Baisley
You should rethink your data structure if you want to create 200,000 columns. If you need to create that many columns, chances are you are going to need to add more periodically. That means changing your table structure which you shouldn't have to do in a well defined schema. I'm guessing most

  1   2   >