[PHP] Deleting directories...

2002-04-02 Thread Philip Jeffs
Hi, I'm trying to delete non-empty directories. I'm using a windows 2000 server. I have a script that seems to be trying to delete the directories as it should but it can't delete the directories because it does not have permission. The script runs CHMOD on the direcory to make sure it has

Re: [PHP] Deleting directories...

2002-04-02 Thread Jason Wong
On Tuesday 02 April 2002 16:42, Philip Jeffs wrote: Hi, I'm trying to delete non-empty directories. I'm using a windows 2000 server. I have a script that seems to be trying to delete the directories as it should but it can't delete the directories because it does not have permission. The

[PHP] R: [PHP] getting at the server environment variables

2002-04-02 Thread Giovanni Lenzi
make a php file and fille it with ? phpinfo(); ? save the file run it and look at all php and apache global variables. Unknown Sender [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED] Andreas Pour wrote: Hi, Have all server requests for domain.org point to this php script: ?

[PHP] what should be my wishlist?

2002-04-02 Thread Adrian Murphy
Hi I'm creaating my wishlist for my php build for my isp. I've got the usual stuff gd/ftp/xml etc and was wondering what else should i ask for e.g. i've never used pear but it might be useful? curl etc.

[PHP] help please - strange session behaviour on IIS with php4.1.2

2002-04-02 Thread Wolfram Kriesing
i've written a simple script, which tests the session behaviour on the IIS, since it didnt seem to work the following script should increase the session-var $testVar and display it but it always stays at the same value can someone explain that? is that a bug? also if i would increase

[PHP] Re:[PHP] what should be my wishlist?

2002-04-02 Thread Liam
2/04/2002 7:47:34 PM Make sure you get all the TTF packages with GD Adrian Murphy [EMAIL PROTECTED] wrote on 2/04/2002 9:36:43 AM: Hi I'm creaating my wishlist for my php build for my isp. I've got the usual stuff gd/ftp/xml etc and was wondering what else should i ask for e.g. i've never

Re: [PHP] WWW-Authenticate problem in Apache

2002-04-02 Thread Billy S Halsey
Hi, I've never tried requiring authentication via a header (only through httpd.conf or .htaccess), but here's my best guess: You're telling it what type of authentication to do, and you're telling it what realm to authenticate to, but: - You're not telling it what to require, and you're not

[PHP] Checking if a link is valid

2002-04-02 Thread Christoph Starkmann
Hi there! This is a general networking problem, I guess... $fp = fsockopen ($tempUrl, $tempPort, $errno, $errstr, 30); // variables are fine, it works in most cases... if ($fp) { fputs ($fp, GET / HTTP/1.0\r\n\r\n); $code = fgets($fp,1024); $code =

[PHP] including file hosted by www.a.com on www.b.com

2002-04-02 Thread Giovanni Lenzi
I'm in trouble with include procedure. I have a file on host http://www.a.com that must be included by the file on the host http://www.b.com The code of the file to be included is as follows: included.php on http://www.a.com ? $vett[0] = zero; $vett[1] = one; $vett[2] = two;

[PHP] Mysql unique statement help...

2002-04-02 Thread Dhaval Desai
Hello, Well I have a field in Mysql Database called threadid. I have unique threadid's stored in this field. But the problem is that I have like 10 entries for each threadid. When I do a select statement for Mysql I want only unique threadid's to be read. How do I do that because I didn't

Re: [PHP] Mysql unique statement help...

2002-04-02 Thread RIVES Sergio
Hi, if you want to select a unique threadid to be read, try the following MySQL sentence : SELECT DISTINCT threadid FROM tablename; Hope it helps you SR Dhaval Desai a écrit : Hello, Well I have a field in Mysql Database called threadid. I have unique threadid's stored in this field. But

Re: [PHP] Another ?

2002-04-02 Thread Craig Donnelly
Have a look here: http://www.evilwalrus.com/viewcode.php?codeEx=313 Craig Eric Coleman [EMAIL PROTECTED] wrote in message 001501c1d84e$42a4f480$0201a8c0@zaireweb">news:001501c1d84e$42a4f480$0201a8c0@zaireweb... Probably Opera - Original Message - From: Sean Kennedy [EMAIL

Re: [PHP] $HTTP_USER_AGENT

2002-04-02 Thread Craig Donnelly
Have a look here: http://www.evilwalrus.com/viewcode.php?codeEx=313 Craig Donnelly Eric Coleman [EMAIL PROTECTED] wrote in message 000b01c1d845$55158020$0201a8c0@zaireweb">news:000b01c1d845$55158020$0201a8c0@zaireweb... Why not echo $HTTP_USER_AGENT and find out? - Original Message

[PHP] Custom 404

2002-04-02 Thread Craig Donnelly
Custom 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Custom 404

2002-04-02 Thread Andrew Brampton
.htaccess :) Andrew - Original Message - From: Craig Donnelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 1:36 PM Subject: [PHP] Custom 404 Custom 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] 404 error triggered by Include error??

2002-04-02 Thread Craig Donnelly
Is there a way to setup either the apache/php directives to produce a custom 404 if a file fails to be included ?? Or is this a job for .HTACCESS?? Regards, ~Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Custom 404

2002-04-02 Thread Stampe, Lars
http://rob-mike.php4hosting.com/mike/htaccess/ -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: 02 April 2002 13:50 To: [EMAIL PROTECTED] Subject: Re: [PHP] Custom 404 .htaccess :) Andrew - Original Message - From: Craig Donnelly [EMAIL PROTECTED] To:

[PHP] Re: what should be my wishlist?

2002-04-02 Thread Julio Nobrega Trabalhando
Curl, gd, zlib, sockets, pdf... pear is fine but you don't need your isp to install, can have on your own directory. Humm... if possible, no safemode() enabled :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho?

RE: [PHP] BUG in recursion

2002-04-02 Thread Rick Emery
No, this is NOT a bug. You recurse 10 times down into the function. Therefore, as you come back up and exit the previous call to test(), you complete Test's processing, which is to print j The recursion process is as expected and correct == At 09:59 AM 31/03/2002,

RE: [PHP] Need some help please

2002-04-02 Thread Rick Emery
$query=INSERT INTO news VALUES($newsid,'$title','$author',$posted,'$body' ); -Original Message- From: menezesd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 12:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Need some help please Hello Friends. I know I am asking for too much.

[PHP] date expressions

2002-04-02 Thread ROBERT MCPEAK
How do I compare a date (2002-05-01) against a date plus 5 days? I need help figuring out how to do math operations on dates, etc. Could somebody fill this newbie in? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] date expressions

2002-04-02 Thread James E. Hicks III
Convert it to timestamp and then compare or if the date's in a mysql database let mysql handle the comparison for you. James -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] date expressions

RE: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query

2002-04-02 Thread Rick Emery
Jason means that you should execute it from the mysql command line; In your PHP code: print $sql. Then copy from that window and paste into mysql command line and execute. What are the results? -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002

RE: [PHP] date expressions

2002-04-02 Thread Rick Emery
Robert, I believe you are extracting this info from a mysql database. let mysql do it for you as I explained in my examples yesterday. If you need more infor from me, just ask/ -Original Message- From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 7:25 AM To:

RE: [PHP] date expressions

2002-04-02 Thread Rick Emery
Don't need to convert to timestamp. Mysql will handle dates directly without this unnecessary conversion. -Original Message- From: James E. Hicks III [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 7:31 AM To: ROBERT MCPEAK; [EMAIL PROTECTED] Subject: RE: [PHP] date

[PHP] Variable names

2002-04-02 Thread kodrik
If I have a variable, how do I extract the name of the variable. In principle: $varname=somefunction($myvar); The value of $varname is then myvar How do I do it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] New php functions?

2002-04-02 Thread Rick Emery
FYI: http://www.lindows.com Unlike the http://www.mslinux.org (see below), which is an April Fool's joke, Lindows is an actual product in beta development now. It is a Linux based operating system that runs MS Windows applications. I can't wait to see the impact on PHP development that Lindows

[PHP] Re: Including Picture in PHP

2002-04-02 Thread Michael Virnstein
if the output of graph.php is a URL, your code should work. img src=/images/mypic.jpg if graph outputs the image itself, you have to do it a bit different: in the html it should look like: img src=graph.php?... and graph.php should do something like: header(Content-Type: image/gif); echo

Re: [PHP] help please - strange session behaviour on IIS with php4.1.2

2002-04-02 Thread Stephen Phillips
Hi, It sounds like you are experiencing a similar problem to one I had. It seems there are some problems with setting cookies when using IIS, and as I understand it one of the ways that sessions work is by storing the data in a cookie on the clients machine. On the page at www.php.net it

Re: [PHP] Variable names

2002-04-02 Thread RIVES Sergio
Hello Kodrik, I would do the following code. Excuse me if there are many mistakes. I am only a newbie. So: function somefunction($myvar) { do something... ... ... return \$myvar; } $varname = somefunction($myvar); echo $varname; Hope it helps

[PHP] DB Question

2002-04-02 Thread Martin Clifford
Hello all, I've been waiting in the shadows, reading, trying to get a handle on what type of questions go here. I'm hoping this one does, and that some of you guru's might be able to offer some insight. I've just started out with PHP, and want to get to know relational databases. I've seen

RE: [PHP] DB Question

2002-04-02 Thread Rick Emery
Normally, you'll create the databases within the native database environment. For instance, for mysql, at the mysql command line. Then, you use PHP/PERL/C/sh/bash/... to access the database with various queries, such as SELECT. You also use the database native environment to update/maintain

Re: [PHP] Custom 404

2002-04-02 Thread Scott St. John
Custom 404 what? Do you want to make one? On Tue, 2 Apr 2002, Craig Donnelly wrote: Custom 404 -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preventing back button usage?

2002-04-02 Thread Michael Virnstein
This is not possible. You cannot force the browser not to go back in its history, don't even trie to find a solution for this... the question you should ask yourself is not how to disable the browser history but how you can prevent your page by getting screwed by multiple posts. Erik Price

[PHP] how did this become an array?

2002-04-02 Thread The PHP newbie
Hi, I am trying to figure out a part of the PHP code which belongs to one of the files that is responsible for operating a discussion group. I was examining some of a part of the code which produces the total number of messages and displays the subject of the message. I encountered a part

[PHP] List server

2002-04-02 Thread Anzak Wolf
Since no one seems to have heard of a php driven list server could someone get me started on writting my own by telling me who I would read from stdin. -Jim _ Join the world’s largest e-mail service with MSN Hotmail.

RE: [PHP] how did this become an array?

2002-04-02 Thread Rick Emery
What I don't understand is how did $result_row become $result_row[0] and $result_row[1]? mysql_fetch_row() returns an array structure Also what does it mean to select max(thread) as thread, max(mesid) as mesgid? I have never used this as command before. max(x) returns the highest

Re: [PHP] help please - strange session behaviour on IIS with php4.1.2

2002-04-02 Thread Wolfram Kriesing
On Tuesday 02 April 2002 15:34, Stephen Phillips wrote: Hi, It sounds like you are experiencing a similar problem to one I had. It seems there are some problems with setting cookies when using IIS, and as I understand it one of the ways that sessions work is by storing the data in a

RE: [PHP] Re: preventing back button usage?

2002-04-02 Thread Rick Emery
use cache control in your HTML to prevent BACK button usage This is easily done Erik Price [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... Sorry to plague this list with questions today, but I was hoping someone could help me understand a fundamental thing about how browsers

Re: [PHP] Variable names

2002-04-02 Thread kodrik
function somefunction($myvar) { do something... ... ... return \$myvar; } $varname = somefunction($myvar); echo $varname; That won't work, because you escaped the $ sign, the variable won't get processed and the name returned will be the

Re: [PHP] how did this become an array?

2002-04-02 Thread RIVES Sergio
Hi, I am also a newbie in PHP, but your question is more a MySQL question I believe... : $sql = select max(thread) as thread, max(mesgid) as mesgid from discussionboard; This MySQL request gives you two informations : the maximum of the values of the two fields (thread and mesgid) of the table

Re: [PHP] Variable names

2002-04-02 Thread RIVES Sergio
function somefunction($myvar) { do something... ... ... $variablealacon = \$myvar; return $variablealacon; } $varname = somefunction($myvar); echo $varname; kodrik a écrit : function somefunction($myvar) {

[PHP] set browser timeout

2002-04-02 Thread Carl Schmidt
Is there an HTTP tag in the header that can be sent to tell the browser not to timeout? I found the HTTP spec page, but I'm not sure what to look for. Carl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Erik Price
On Monday, April 1, 2002, at 11:15 PM, Philip Olson wrote: Good little programmers define variables before using them, or at least before evaluating them. Really? I'm not arguing with you, I'm curious: I thought that it was a valued feature of newer scripting languages that they do not

RE: [PHP] set browser timeout

2002-04-02 Thread Rick Emery
what do you mean timeout? What is timing out? -Original Message- From: Carl Schmidt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 8:25 AM To: [EMAIL PROTECTED] Subject: [PHP] set browser timeout Is there an HTTP tag in the header that can be sent to tell the browser not to

RE: [PHP] Warning: Undefined variable

2002-04-02 Thread Rick Emery
I've used undefined variables for over 30 years...which has caused many late-night debugging sessions and much pain. Defining and initializing variables is a good thing. I believe PHP has a flag set to warn of use of un-initialized data. I do prefer strongly-typed languages, such as C++. That

[PHP] Re: WWW-Authenticate problem in Apache

2002-04-02 Thread Boris Klotz
You should only send the HTTP Authentication Header, if the user isn't already authenticated. Try something like this: ?php $usr = guest; $pw = guest; if(!($PHP_AUTH_USER==$usr $PHP_AUTH_PW==$pw)) { header(WWW-Authenticate: Basic realm=\My Realm\); header(HTTP/1.0 401 Unauthorized); }

Re: [PHP] set browser timeout

2002-04-02 Thread Carl Schmidt
I'm uploading a file to a web site using forms. I'm trying to narrow down if the problem is the connection is timing out on file upload, or if I'm exceeding a web host imposed limit on file upload size. I've found the server i'm running on has: upload_max_filesize 2M post_max_size 8M Apache

RE: [PHP] set browser timeout

2002-04-02 Thread Schmidt, Carl
I'm uploading a file to a web site using forms. I'm trying to narrow down if the problem is the connection is timing out on file upload, or if I'm exceeding a web host imposed limit on file upload size. I've found the server i'm running on has: upload_max_filesize 2M post_max_size 8M Apache

Re: [PHP] date expressions

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 08:25 AM, ROBERT MCPEAK wrote: How do I compare a date (2002-05-01) against a date plus 5 days? I need help figuring out how to do math operations on dates, etc. Could somebody fill this newbie in? There was a recent tutorial on DevShed introducing date

Re: [PHP] Re: preventing back button usage?

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 09:15 AM, Rick Emery wrote: use cache control in your HTML to prevent BACK button usage This is easily done I've tried this using the HTTP headers recommended on the header() man page, such as header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);

Re: [PHP] Re: preventing back button usage?

2002-04-02 Thread Erik Price
On Thursday, March 28, 2002, at 06:50 PM, Michael Virnstein wrote: This is not possible. You cannot force the browser not to go back in its history, don't even trie to find a solution for this... the question you should ask yourself is not how to disable the browser history but how you

[PHP] Please help me

2002-04-02 Thread Ing. Fernando Proll Segura
Hi all: I was working with PHP 4.0.6, ISAPI on a Win2000, IIS server, ; now I install PHP 4.1.2 on the same server but CGI module and I'm geting the following errors when I try to run any script: Security Alert! PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with

[PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Daniel Alsén
Hi, i need to pass a variable by letting the user click on a link. Right now i do it like: page.php?variable=value However, i don´t want the variable, and it´s value to appear in the adress bar of the browser. And i don´t want people to be able to pass the same variable by reloading the

Re: Re: [PHP] Warning: Undefined variable

2002-04-02 Thread Adam Voigt
PHP does give warnings about undefined array positions if you don't use quotes around them like $array1[var1] will warning (if warnings are on), but $array1[var1] won't. I have never seen (even with error reporting turned to the maximum setting) PHP throw an error about doing something like:

Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Tyler Longren
You could use a form and have a hidden vield that contains a value. The user would have to click the submit button for the variable/value to carry over though. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com - Original Message - From: Daniel Alsén [EMAIL

Re: Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Adam Voigt
You could actually have javascript auto-submit the form if you didn't want the button like: script language=javascript document.form1.submit(); /script Adam Voigt [EMAIL PROTECTED] On Tue, 2 Apr 2002 09:08:18 -0600, Tyler Longren [EMAIL PROTECTED] wrote: You could use a form and have a

SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Daniel Alsén
You could use a form and have a hidden vield that contains a value. The user would have to click the submit button for the variable/value to carry over though. I thought about that. But i have two possible values (via two links) that could be passed and i can´t really get it together. Two

Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Tyler Longren
That might not be such a good idea then. Tyler - Original Message - From: Daniel Alsén [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Tuesday, April 02, 2002 9:11 AM Subject: SV: [PHP] Passing a variable invisibly via a href? You could use a form and have a hidden vield that

Re: [PHP] Re: preventing back button usage?

2002-04-02 Thread Wolfram Kriesing
On Tuesday 02 April 2002 16:59, Erik Price wrote: On Thursday, March 28, 2002, at 06:50 PM, Michael Virnstein wrote: This is not possible. You cannot force the browser not to go back in its history, don't even trie to find a solution for this... the question you should ask yourself is

Re: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Adrian Murphy
or use javascript href=javscript:form.submit() or if you really wanted you could encrypt the variable pass it via the url and then decrypt it on the next page! to avoid a reload put no-cache in the header. - Original Message - From: Daniel Alsén [EMAIL PROTECTED] To: PHP List [EMAIL

RE: [PHP] New php functions?

2002-04-02 Thread charlesk
Its amazing how a message can change like this. My original meesage was just humorous. Charles ---Original Message--- I went to php.net wnating info on the date() function. To my surprise the word date was already in the search for field. Has PHP developed some new functions? Possible

[PHP] odbc_pconnect

2002-04-02 Thread Maris Kalnins
Hi All! I have a situation where I need to keep connection still active after php script is done and page displayed! I tried to use $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); But unfortunately connection closes automatically when script is done! What must I do to keep connection

SV: SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Daniel Alsén
Yes, there is a way to do it without using any forms. I may be able to help you better if you could show me the relevant code -- I'm not sure if what I have in mind is really applicable to what you want to do. It´s not really advanced: session_start(); session_register('text_size'); if

[PHP] Re: Passing a variable invisibly via a href?

2002-04-02 Thread kodrik
Daniel alsén wrote: Hi, i need to pass a variable by letting the user click on a link. Right now i do it like: page.php?variable=value However, i don?t want the variable, and it?s value to appear in the adress bar of the browser. And i don?t want people to be able to pass the same

[PHP] Connecting to a DB using PHP and mysql...

2002-04-02 Thread Anthony Ritter
Using the script below, I was able to connect to a database named contacts for output. *However*, when I insert a [username] and [password] in place of the , I get: Couldn't connect to the database - eventhough I am able to connect to mysql. How do I go about replacing the and to insert a

RE: [PHP] Connecting to a DB using PHP and mysql...

2002-04-02 Thread Rick Emery
have permissions been granted to contacts in mysql using that combination of username and password? -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 10:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Connecting to a DB using PHP and mysql...

[PHP] Re: Connecting to a DB using PHP and mysql...

2002-04-02 Thread Craig Donnelly
Try this for your connection: - ? // Database constants define(DATABASE_HOST, localhost); define(DATABASE_USER, root); define(DATABASE_PASSWORD, *YOUR_PASS*); define(DATABASE_NAME, *YOUR_DB_NAME*); //

[PHP] Problem reading in and displaying an image...

2002-04-02 Thread Chad Day
I'm trying to read in a 1x1 pixel file and display it, basically to assist in setting 3rd party cookies (our other affiliated sites that don't follow under the same domain.. it's really sloppily set up, but thats another story).. The problem I have is the script is just hanging, sits there and

Re: SV: SV: [PHP] Passing a variable invisibly via a href?

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 10:28 AM, Daniel Alsén wrote: I use the variable $change to set the text size in my stylesheet: if (isset($text_size)) {echo $text_size;} else {echo 10; $text_size = 10;} And i set the variable via a link: a href=? echo $PHP_SELF; ??change=inc (or

Re: [PHP] Connecting to a DB using PHP and mysql...

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 10:40 AM, Rick Emery wrote: have permissions been granted to contacts in mysql using that combination of username and password? And from that host? Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General

[PHP] Re: Re: Error Handling

2002-04-02 Thread Adam Voigt
The set_error_handler didn't work correctly in that it wouldn't execute except when trigger_error was called, otherwise this would have worked great a week ago when we were trying to implement this. Thats why we went with a error log which was auto-emailed by a timed script. Adam Voigt [EMAIL

[PHP] April fools day - did anyone notice Thies's fangs on rc1???

2002-04-02 Thread Frank Joerdens
Did anyone else notice Thies's fangs on the phpinfo() page of 4.2.0rc1 yesterday? I wonder what they where . . . french fries? Salty sticks (German 'Salzstangen')?? At first I though I was hallucinating, especially when I found that he was gone again today! Try setting your server's system date

Re: [PHP] April fools day - did anyone notice Thies's fangs on rc1???

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 11:52 AM, Frank Joerdens wrote: Did anyone else notice Thies's fangs on the phpinfo() page of 4.2.0rc1 yesterday? I wonder what they where . . . french fries? Salty sticks (German 'Salzstangen')?? At first I though I was hallucinating, especially when I found

Re: [PHP] April fools day - did anyone notice Thies's fangs on rc1???

2002-04-02 Thread Rasmus Lerdorf
They were breadsticks. Picture was taken in early 1999 in a restaurant in Tel Aviv, Israel. -Rasmus On Tue, 2 Apr 2002, Erik Price wrote: On Tuesday, April 2, 2002, at 11:52 AM, Frank Joerdens wrote: Did anyone else notice Thies's fangs on the phpinfo() page of 4.2.0rc1 yesterday? I

Re: [PHP] set browser timeout

2002-04-02 Thread Jason Wong
On Tuesday 02 April 2002 22:44, Schmidt, Carl wrote: I'm uploading a file to a web site using forms. I'm trying to narrow down if the problem is the connection is timing out on file upload, or if I'm exceeding a web host imposed limit on file upload size. I've found the server i'm running

Re: [PHP] List server

2002-04-02 Thread Jason Wong
On Tuesday 02 April 2002 22:10, Anzak Wolf wrote: Since no one seems to have heard of a php driven list server could someone get me started on writting my own by telling me who I would read from stdin. fopen(php://stdin, r); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /*

Re: [PHP] List server

2002-04-02 Thread Anzak Wolf
On Tuesday 02 April 2002 22:10, Anzak Wolf wrote: Since no one seems to have heard of a php driven list server could someone get me started on writting my own by telling me who I would read from stdin. fopen(php://stdin, r); How does that relate to readline()?

Re: [PHP] Need some help too!

2002-04-02 Thread Harry Yu
In you php.ini, change the SMTP to the Solaris mail server. Hope this help, Harry --- Ryan F. Bayhonan [EMAIL PROTECTED] wrote: Good day to all. Just want to ask some help from you guys. I'h vaving problem with mail function. I'm currently making a PHP application that would be able to

[PHP] PHP and MS access

2002-04-02 Thread Rance Hall
Anybody have a good tutorial on getting PHP to access a MS Access Database with ODBC? I cant even get a connection to succeed. Rance Hall 308.238.2455 Internal Office Extensions: 2455 or 6655 PC Programmer, The Buckle, Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Variable Appended To The End of a URL Is Not Working in SQL Query

2002-04-02 Thread Dr. Shim
I'm using ODBC (Access). But I can execute the SQL manually in Access too. I did, here's my query: SELECT * FROM fldField WHERE IDField = 3; I have to actually put in a value for IDField, it doesn't recognize my variable, of coarse. This works just fine. Rick Emery [EMAIL PROTECTED] wrote in

[PHP] odbc vs mysql

2002-04-02 Thread Maris Kalnins
When connecting to database (Sybase) through ODBC it takes some time to establish odbc connection with: $cx=odbc_pconnect($G_dbname, $G_dblogin, $G_dbpassw); And only after that I am able to access data through SQL Selects The problem is that every time the script is finished this connection

RE: [PHP] April fools day - did anyone notice Thies's fangs on rc1???

2002-04-02 Thread Brian Drexler
Wow, talk about things from your past coming back to haunt you :-) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 11:52 AM To: Erik Price Cc: Frank Joerdens; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] April fools day - did

Re: [PHP] PHP and MS access

2002-04-02 Thread pong-TC
[EMAIL PROTECTED] writes: Anybody have a good tutorial on getting PHP to access a MS Access Database with ODBC? I cant even get a connection to succeed. Check at php.weblogs.com/ADOdb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and MS access

2002-04-02 Thread Daniel Negron/KBE
you can try http://www.accessmysql.com also. Thank You Daniel Negrón Lotus Notes Administrator / Developer KB Electronics, Inc. 954.346.4900x122 http://www.kbelectronics.com |+ || pong-TC | || [EMAIL PROTECTED]| |

[PHP] sessions

2002-04-02 Thread R. Lindeman
i have a problem with PHP sessions and maybe some of you could help what do i need in my php.ini to get them to work !!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Connecting to a DB using PHP and mysql...

2002-04-02 Thread Anthony Ritter
Craig, I tried the following. I was able to connect to mysql but not to the database contacts. TR ... HTML BODY ? define(DATABASE_HOST, localhost); define(DATABASE_USER, johndoe); define(DATABASE_PASSWORD, abc); define(DATABASE_NAME,

[PHP] global vars within 2-level functions

2002-04-02 Thread Erik Price
I have some code, in which I am using the function keyword to create subroutines of code (in otherwords, not true functions but rather reuseable chunks of other code). Yeah, it's ugly, but I need to do it this way for now. So my question is this: One of my subroutine/functions generates a

RE: [PHP] April fools day - did anyone notice Thies's fangs on rc1???

2002-04-02 Thread Rasmus Lerdorf
Well, not really. This easter egg has been in the code since April 2000, so it isn't actually a new thing. We had this same discussion in April 2001. You guys just have a short memory. ;) -Rasmus On Tue, 2 Apr 2002, Brian Drexler wrote: Wow, talk about things from your past coming back to

Re: [PHP] sessions

2002-04-02 Thread Jason Wong
On Wednesday 03 April 2002 21:34, R. Lindeman wrote: i have a problem with PHP sessions and maybe some of you could help what do i need in my php.ini to get them to work !!! You just need to edit it until it works. Seriously, if you're going to keep your problem a secret nobody will be able

Re: [PHP] global vars within 2-level functions

2002-04-02 Thread Jason Wong
On Wednesday 03 April 2002 02:11, Erik Price wrote: (b) Pass a variable as an argument to a function but make that argument optional so that it does not have to exist to make the function legitimate. function function2 ($variable_A=) { } It's in manual under Functions -- original isn't it?

RE: [PHP] Re: Connecting to a DB using PHP and mysql...

2002-04-02 Thread Rick Emery
at the mysql command line, type: mysql show grants for johndoe@localhost; what does it show? -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 1:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Connecting to a DB using PHP and mysql...

[PHP] Counting months between two dates

2002-04-02 Thread John Hughes
I want to determine the number of months between two dates. Is there a function in PHP or a way to make strtotime do the job? For instance, how many months between 2001-08-27 and 2002-06-05. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] global vars within 2-level functions

2002-04-02 Thread Erik Price
On Tuesday, April 2, 2002, at 01:24 PM, Jason Wong wrote: (b) Pass a variable as an argument to a function but make that argument optional so that it does not have to exist to make the function legitimate. function function2 ($variable_A=) { } Thanks for the pointer. I didn't realize

RE: [PHP] Counting months between two dates

2002-04-02 Thread Rick Emery
John, Are you pulling dates from mysql? If so, let mysql do it for you. If you don't know how, ask again. -Original Message- From: John Hughes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Counting months between two dates I

[PHP] Re: April fools day - did anyone notice Thies's fangs on rc1???

2002-04-02 Thread Septic Flesh
He was eating fish n chips . .but he didn;t like the chips so . . .he put them in his f..k..nose.. hahahahah -- Sapilas/dev/pinkeye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] header location redirect to frameset target

2002-04-02 Thread Tom Beidler
Can you specify a frameset target, i.e. _blank, in a redirect. I have a site built with frames and one of the frames has a redirect in it. Currently the redirect works but pulls the site I want up in the frame and doesn't create an entire new page. -- PHP General Mailing List

Re: [PHP] header location redirect to frameset target

2002-04-02 Thread Adam Voigt
I think what your looking for is _new, but I'm not sure if you can do it in what I guess your saying is a meta refresh, I know you can as target=_new in a href. Adam Voigt [EMAIL PROTECTED] On Tue, 02 Apr 2002 10:42:19 -0800, Tom Beidler [EMAIL PROTECTED] wrote: Can you specify a frameset

Re: [PHP] List server

2002-04-02 Thread Jason Wong
On Wednesday 03 April 2002 01:05, Anzak Wolf wrote: On Tuesday 02 April 2002 22:10, Anzak Wolf wrote: Since no one seems to have heard of a php driven list server could someone get me started on writting my own by telling me who I would read from stdin. fopen(php://stdin, r);

[PHP] Re: sessions

2002-04-02 Thread R. Lindeman
okay i'll explain a bit i want my sessions to store some values but instead of storing them their doing nothing at all here's some code // beginning of registering of values session_start(); session_register(fu); session_register(bar); $fu=fu; $bar =bar; // end of registering

  1   2   >