[PHP] php NEWBIE Question

2003-08-25 Thread Dennis Dujan - Partycult.de
Hi, can you tell me how is it possible to connect to a linux shell via PHP? Greetz Dennis

[PHP] mail() question

2003-08-25 Thread Matthias Wulkow
Hi php-general, I have followig error reported: Fatal error: Call to undefined function: mail() in /usr/local/www/login.php on line 235 What is the trouble here? If I would have trouble because of delivery, normally mail would return false. But here... I have php4.3.1 running on linux. I

Re: [PHP] script not terminating on user abort

2003-08-25 Thread Curt Zirzow
* Thus wrote Dennis Jacobfeuerborn ([EMAIL PROTECTED]): Hi! The connection_* function don't seem to work for me and I can no longer determine when the user has aborted the script. When I close the browser window the script just keeps running. (see bug #23163) The body of the script

Re: [PHP] php NEWBIE Question

2003-08-25 Thread Curt Zirzow
* Thus wrote Dennis Dujan - Partycult.de ([EMAIL PROTECTED]): Hi, can you tell me how is it possible to connect to a linux shell via PHP? Ok, i suppose I should reply to this before you ask the same question with less details, again. Please be a little more specific in your question, like what

Re: [PHP] mail() question

2003-08-25 Thread Curt Zirzow
* Thus wrote Matthias Wulkow ([EMAIL PROTECTED]): Hi php-general, I have followig error reported: Fatal error: Call to undefined function: mail() in /usr/local/www/login.php on line 235 What is the trouble here? If I would have trouble because of delivery, normally mail would

RE: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Giz
Access is a pc database. It doesn't run on unix. Why people insist on beating their heads against the wall in this manner I will never know. Ignorance I suppose. The alternative is to have your friend use a relational database and have a few simple forms that will allow him to

AW: [PHP] php NEWBIE Question

2003-08-25 Thread Dennis Dujan - Partycult.de
Iam currently writing some Scripts in PHP for a Webappliance. And now I have the problem that I have to connect with a PHP Script to a Shell that is located on another Server. But I don't know how to do this... :-/ Perhaps you can help me with an example or a Page with a Tutorial. Greetz Dennis

RE: [PHP] php NEWBIE Question

2003-08-25 Thread Dennis Dujan - Partycult.de
Ok thank you very much -Ursprungliche Nachricht- Von: Chris Kay [mailto:[EMAIL PROTECTED] Gesendet: Montag, 25. August 2003 01:37 An: 'Dennis Dujan - Partycult.de' Betreff: RE: [PHP] php NEWBIE Question Try http://au.php.net/manual/en/function.fsockopen.php If your looking for a

Re: [PHP] Using PHP on an .html file

2003-08-25 Thread Mike Migurski
Better to do this in an .htaccess file, so you don't incur PHP processing overhead on the entire server (if there are others using it). Apache suggests not using .htaccess files at all because they require a recursive traversing of directories looking for .htaccess files, because some

Re: [PHP] mail() question

2003-08-25 Thread Matthias Wulkow
Hallo Curt, am Montag, 25. August 2003 um 01:35 hast Du Folgendes gekritzelt: I have followig error reported: Fatal error: Call to undefined function: mail() in /usr/local/www/login.php on line 235 What is the trouble here? If I would have trouble because of delivery, normally mail

Re: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Curt Zirzow
* Thus wrote Giz ([EMAIL PROTECTED]): Access is a pc database. It doesn't run on unix. Why people insist on beating their heads against the wall in this manner I will never know. Ignorance I suppose. The alternative is to have your friend use a relational database and have a few simple

RE: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Paul Fitzpatrick
* Thus wrote Giz ([EMAIL PROTECTED]): Access is a pc database. It doesn't run on unix. Why people insist on beating their heads against the wall in this manner I will never know. Ignorance I suppose. The alternative is to have your friend use a relational database and have a few simple

Re: [PHP] mail() question

2003-08-25 Thread Stevie D Peele
What is on line 235?? That would help us - SDP On Mon, 25 Aug 2003 01:09:29 +0200 Matthias Wulkow [EMAIL PROTECTED] writes: Hi php-general, I have followig error reported: Fatal error: Call to undefined function: mail() in /usr/local/www/login.php on line 235 What is the trouble

Re: [PHP] Reading an MS Access Database file on *NIX platform usingPHP

2003-08-25 Thread [EMAIL PROTECTED]
Hi, The simplest way i know of to use access from linux is to use mdbtools (a free download at sourceforge). Haven't tried to invoke this from PHP but it would not be all that difficult to create a MDB module. Curt Zirzow wrote: * Thus wrote Giz ([EMAIL PROTECTED]): Access is a pc

Re: [PHP] Reading an MS Access Database file on *NIX platform usingPHP

2003-08-25 Thread [EMAIL PROTECTED]
Hi, One of these ' tricky' windows linux bridging techniques is with JDBC. But that only works for sql server and not for access. This works like a dream if you are on J2EE. can be used with php as well if you don't mind mixing java and php classed. I have also had success with 'ODBC socket

Re: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Curt Zirzow
* Thus wrote David Otton ([EMAIL PROTECTED]): On Sun, 24 Aug 2003 14:54:41 -0400 (EDT), you wrote: I'm building a small web application for a friend using PHP. He'd like to use MS Access to keep the data in, and update the data on the site by FTP'ing Suggestion: go backwards. Set up the

Re: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): Hi, The simplest way i know of to use access from linux is to use mdbtools (a free download at sourceforge). Haven't tried to invoke this from PHP but it would not be all that difficult to create a MDB module. yeah, I saw a reference to

Re: [PHP] mail() question

2003-08-25 Thread Alister
On Mon, 25 Aug 2003 01:09:29 +0200 Matthias Wulkow [EMAIL PROTECTED] writes: Hi php-general, I have followig error reported: Fatal error: Call to undefined function: mail() in /usr/local/www/login.php on line 235 What is the trouble here? If I would have trouble because of

Re: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Weston Cann
On Sunday, August 24, 2003, at 05:31 PM, Giz wrote: Access is a pc database. It doesn't run on unix. Why people insist on beating their heads against the wall in this manner I will never know. Ignorance I suppose. The alternative is to have your friend use a relational database and have a few

Re: [PHP] Using PHP on an .html file

2003-08-25 Thread Curt Zirzow
* Thus wrote Mike Migurski ([EMAIL PROTECTED]): Better to do this in an .htaccess file, so you don't incur PHP processing overhead on the entire server (if there are others using it). Apache suggests not using .htaccess files at all because they require a recursive traversing of

RE: [PHP] How to open random Flash page with hyperlink?

2003-08-25 Thread Cody Phanekham
Murugesan, Ok lets say you want every user to login before they can access other parts of your site. index.php: ? session_name(mysessionname); session_start(); session_register(s_authed); $s_authed = 0; // initialize session flag if ((!$passwd) || (!$username)) // user hasnt logged in { //

Re: [PHP] mail() question

2003-08-25 Thread Curt Zirzow
* Thus wrote Matthias Wulkow ([EMAIL PROTECTED]): Hallo Curt, am Montag, 25. August 2003 um 01:35 hast Du Folgendes gekritzelt: I have followig error reported: Fatal error: Call to undefined function: mail() in /usr/local/www/login.php on line 235 What is the trouble here? If

[PHP] mysql_connect error

2003-08-25 Thread Mjec
Hi, again this line is causing problems: $h = mysql_connect('localhost',constant(mysql_user),constant(mysql_password)) ; Aparantly a parse error. Idaes? Thanks, Mjec -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect error

2003-08-25 Thread John W. Holmes
Mjec wrote: Hi, again this line is causing problems: $h = mysql_connect('localhost',constant(mysql_user),constant(mysql_password)) ; Aparantly a parse error. Idaes? Is there a reason you're using constant()?? Try: $h = mysql_connect('localhost', mysql_user, mysql_password); One thing to

Re: [PHP] mysql_connect error

2003-08-25 Thread Mjec
on 25/08/2003 12:11 PM, John W. Holmes at [EMAIL PROTECTED] wrote: Mjec wrote: Hi, again this line is causing problems: $h = mysql_connect('localhost',constant(mysql_user),constant(mysql_password)) ; Aparantly a parse error. Idaes? Is there a reason you're using constant()??

[PHP] php qmail

2003-08-25 Thread Kris Reid
Hi I'm trying to build a program using PHP to increase the performance of Qmail. I'm trying to use PHP to send an email qmail-remote which connects directly to the recipients mail server. If this fails it will then add it to the queue normally so it can retry later. Here is what I have so far

[PHP] Re: php qmail

2003-08-25 Thread Manuel Lemos
Hello, On 08/25/2003 12:43 AM, Kris Reid wrote: I'm trying to build a program using PHP to increase the performance of Qmail. I'm trying to use PHP to send an email qmail-remote which connects directly to the recipients mail server. If this fails it will then add it to the queue normally so it

[PHP] Passing values from one page to another

2003-08-25 Thread murugesan
Hello all, [snip] //Page0.php a href=page1.php?empid=1Enter/a //page1.php script language=javascript function submitform() { //Check for empty values in text

Re: [PHP] mysql_connect error

2003-08-25 Thread murugesan
This is working for me. --- define('db_host','localhost'); define('db_name','mydb') ; define('db_user','use1') ; define('db_pass','pwd1') ; $h = @mysql_pconnect(db_host,db_user,db_pass); if($h) mysql_select_db (db_name) or die (could not select db);;

Re: [PHP] Re: php qmail

2003-08-25 Thread Kris Reid
Manuel Thanks for the advice however I want to use qmail-remote as I believe it will suit my needs better. I have been reading a great deal about tweaking qmail. I run a newsletter and the fastest way is to try remote deliveries and only add them to the queue if this fails. The function that I

Re: [PHP] Passing values from one page to another

2003-08-25 Thread Chris Shiflett
--- murugesan [EMAIL PROTECTED] wrote: a href=page1.php?empid=1Enter/a ... input type=hidden name=empid value=?php echo $empid;? http://www.php.net/register_globals Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing

Re: [PHP] Re: php qmail

2003-08-25 Thread Manuel Lemos
Hello, On 08/25/2003 01:34 AM, Kris Reid wrote: Thanks for the advice however I want to use qmail-remote as I believe it will suit my needs better. I have been reading a great deal about tweaking qmail. I run a newsletter and the fastest way is to try remote deliveries and only add them to the

Re: [PHP] How to open random Flash page with hyperlink?

2003-08-25 Thread murugesan
Thanks for the information. In the code you provided if ((!$passwd) || (!$username)) // user hasnt logged in { . Actually I have implemented this in a separate page. That is upon sign up of the form in the index page I call a new page auth.php In that file I have done this

Re: [PHP] 2 questions

2003-08-25 Thread Binay Agarwal
- Original Message - From: Thomas Hochstetter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 24, 2003 12:54 AM Subject: RE: [PHP] 2 questions The register globals is on with the live server, and off at home (my version is 4.3.2, the other is 4.1.2). does that matter?

RE: [PHP] How to open random Flash page with hyperlink?

2003-08-25 Thread Cody Phanekham
Murugesan, I'll assume your redirecting the user to main.php because (s)he has passed the authentication routine... in that case just store the username and password as a session variable that way you wont need to pass the username and password via the url. auth.php, [just before the call to

[PHP] (Drupal function) getting error : notice : Undefined index ?

2003-08-25 Thread fatih olcer
hi, i have installed drupal 4.2.0 without any problems. but when i try to connect to my local webserver i get errors: notice : Undefined index i couldnt get any reply to my messages from drupal.com. i think i have a configuration problem. but i couldn't find any solution. i can run the same

Re: [PHP] php qmail

2003-08-25 Thread Curt Zirzow
* Thus wrote Kris Reid ([EMAIL PROTECTED]): Hi I'm trying to build a program using PHP to increase the performance of Qmail. I'm trying to use PHP to send an email qmail-remote which connects directly to the recipients mail server. If this fails it will then add it to the queue normally

Re: [PHP] (Drupal function) getting error : notice : Undefined index ?

2003-08-25 Thread Curt Zirzow
* Thus wrote fatih olcer ([EMAIL PROTECTED]): hi, i think i have a configuration problem. but i couldn't find any solution. i can run the same code without any problems on win98 (phpdev5 installed) i have changed some php.ini settings like display_errors = off but still getting

Re: [PHP] How to open random Flash page with hyperlink?

2003-08-25 Thread murugesan
Really thanks for the support. It worked well. -regards, Murugesan - Original Message - From: Cody Phanekham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 25, 2003 11:06 AM Subject: RE: [PHP] How to open random Flash page with hyperlink? Murugesan, I'll assume your

[PHP] Unable to get the values in next page

2003-08-25 Thread murugesan
I did as what you said. But the problem now is that I am not able to get the values in the next page. index.php -- session_name(mysessionname); session_start(); --- auth.php - $failed=yes; session_register('failed'); header (Location: /main.php);

[PHP] RE: Unable to get the values in next page

2003-08-25 Thread Cody Phanekham
main.php - echo $failed;// this is null here - did you start the session in main.php before echo $failed;? eg ? session_name(mysessionname); session_start(); ? -Original Message- From: murugesan [mailto:[EMAIL PROTECTED] Sent: Monday, 25 August

php-general Digest 25 Aug 2003 06:56:24 -0000 Issue 2257

2003-08-25 Thread php-general-digest-help
php-general Digest 25 Aug 2003 06:56:24 - Issue 2257 Topics (messages 160599 through 160644): Probably has already been asked... Remote commands 160599 by: Richard D. Marriner II Re: Reading an MS Access Database file on *NIX platform using PHP 160600 by: Travis Kroh

Re: [PHP] RE: Unable to get the values in next page

2003-08-25 Thread murugesan
Thanks for the reply.Actually I don't know that I have to include the start_session in every page. I GOT it ATLAST. Regards -murugesan. - Original Message - From: Cody Phanekham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 25, 2003 12:26 PM Subject: [PHP] RE: Unable to

RE: [PHP] RE: Unable to get the values in next page

2003-08-25 Thread Cody Phanekham
NP. You only have to start a session if you want to access any session variable. You could always including the code in a header.inc file that gets included in every php script, that way you wont forget to start the session. -Original Message- From: murugesan [mailto:[EMAIL

[PHP] Use PHP or MySQL

2003-08-25 Thread Sid
Hello, This question has been lingering in my mind for some time - Say we have a function such as MD5, which is available on both PHP and MySQL? Which is faster - the PHP version or the MySQL one. Have any benchmarks been made on this? We can use the same question for say... arithmetic

[PHP] include () problems

2003-08-25 Thread Mjec
Hi, When I run the line: include (fnord.php); with the file looking like: ?php define (fnord_included, true); function fnord ($arg = true) { // 450 lines return $msg; } ? it prints out the return of fnord() (i.e. $msg). I've checked, and there's no echo or print

Re: [PHP] Reading an MS Access Database file on *NIX platform using PHP

2003-08-25 Thread Ernest E Vogelsinger
At 03:18 25.08.2003, Weston Cann said: [snip] I share a low regard for Access, and I've got a set of standard forms/code I use to set up a nice interface to MySQL, and I showed it to my friend. He likes that, but there's a problem: He wants to be able to

[PHP] php5 and mysql

2003-08-25 Thread Harry Wiens
i've got a wamp with php5. is there any possibility to activate or reinstall, etc. the mysql extension? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Window.status message

2003-08-25 Thread murugesan
Hello all, I have a proble in showing the window message [snip] echo a class=MEDIUMFONTB href='/list.php onmouseover=\javascript:window.status='hai'\ Click here /a; Here on mouse over it is not displaying hai message in the status bar. Instead when I move the mouse on the link and then

[PHP] window.status

2003-08-25 Thread murugesan
Hello all, I have cleared the stage of changing the window status on mouse over and on mouse out. echo a href='/list.php' onmouseover=\window.status=' '; return true;\ onmouseout=\window.status=' '; return true;\Click here/a; When I keep on pressing my left mouse button it is displaying

Re: [PHP] RE: Unable to get the values in next page

2003-08-25 Thread murugesan
I thought of including the script in all the files.Thanks for the message. Regards, Murugesan - Original Message - From: Cody Phanekham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 25, 2003 12:50 PM Subject: RE: [PHP] RE: Unable to get the values in next page NP. You

[PHP] Problem with date('w')

2003-08-25 Thread BEOI 7308
Hi I have a problem with the date function ? $theday = date(Y-m-d, time()); echo date((w), $theday); ? should print 1 if today is monday, 2 if today is tuesday ... though it's printing 4 and today is monday ! any idea ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Unix end of line versus windows end of line

2003-08-25 Thread Bohdan Blaha
Hi, I use PHP with apache on two systems.. (linux and windows) when I use PHP on linux, it is ok.. I get Unix end of line, when I write to the file with fwrite function... when I run the same script on windows machine, I get Unix end of line too, but I need there windows end of line,... is it

Re: [PHP] Unable to get the values in next page

2003-08-25 Thread murugesan
Thanks for the help. I got it worked. The mistake I did was that I failed to call session_start() in the next page. -Murugesan - Original Message - From: Burhan [EMAIL PROTECTED] To: murugesan [EMAIL PROTECTED] Sent: Monday, August 25, 2003 3:29 PM Subject: Re: [PHP] Unable to get the

[PHP] [Newbie Guide] For the benefit of new members

2003-08-25 Thread tech
= This message is for the benefit of new subscribers and those new to PHP. Those who do not want to be bothered just filter out the [Newbie Guide] mails. Please feel free to add more points and send to the list.

RE: [PHP] CMS question.

2003-08-25 Thread Jay Blanchard
[snip] I have a friend who have paid a developper to build him a CMS. This honest programmer did that (supposedly developped it on his own), encoded the CMS with Ioncube and did some other unethical activities as well. To make a long story short, I have read some articles about decoding and