[PHP-DB] Re: How to get PHP to download web contents

2003-07-05 Thread Ognyan Bankov
Steve B. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How would you get PHP to download a file such as a web page and put it in a string? Try this: ?php // get contents of a file into a string $filename = http://somesite.com?user=someuserpwd=somepwd;; $handle = fopen ($filename, r);

[PHP-DB] Very confused with query

2003-07-05 Thread Sparky Kopetzky
Good morning!! I'm trying to select 1 and only one record from each user based on the last date from a transaction file. This is what I'm using and it's not even close. It seems DISTINCT does not work!! SELECT DISCTINCT(transaction_user_id), MAX(transaction_date), * FROM transaction; Could

[PHP-DB] php.ini

2003-07-05 Thread frank
i found that even i have not the php.ini in my SYSTEMROOT, php can still run ... why? For window XP, should it be placed in c:/WINDOWS? or any other ? thx for answer! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] stripping a get variable out of url string

2003-07-05 Thread Steve B.
I have an online tutorial build into a web page. It has button next step. If you are on page index.php?abc=123 for instance the code is smart enough to make it index.php?abc=123step=x The problem is how to remove step=x from the old url string so that steps don't pile up.

Re: [PHP-DB] stripping a get variable out of url string

2003-07-05 Thread Stephen March
If all else fails, split on the . $url = split(, $_SERVER[REQUEST_URI]); $args = $url[0]; Cheers, ~Steve Steve B. wrote: I have an online tutorial build into a web page. It has button next step. If you are on page index.php?abc=123 for instance the code is smart enough to make it

Re: [PHP-DB] Re: OCI_ASSOC returns key with upper case string

2003-07-05 Thread Reuben D. Budiardja
On Friday 04 July 2003 10:23 pm, Manuel Lemos wrote: Hello, On 07/04/2003 08:38 PM, Reuben D. Budiardja wrote: First let me say that I am not sure if this is PHP problem or Oracle. I posted this earlier in php-general, but after looking at the available mailing lists again, I thought this

Re: [PHP-DB] Re: OCI_ASSOC returns key with upper case string

2003-07-05 Thread Manuel Lemos
Hello, On 07/05/2003 04:25 PM, Reuben D. Budiardja wrote: First let me say that I am not sure if this is PHP problem or Oracle. I posted this earlier in php-general, but after looking at the available mailing lists again, I thought this forum would be more appropriate. Sorry if someone get double

RE: [PHP-DB] mail()

2003-07-05 Thread Boaz Yahav
Assuming you use MySQL (for example...) do something like : ? $result=mysql_query(SELECT * FROM Table) or die(mysql_error()); While($row = mysql_fetch_object($result)) { $MyVar .= $row-MyField; } mail([EMAIL PROTECTED],this is may email,$MyVar,From:[EMAIL PROTECTED]); ? Sincerely berber

[PHP-DB] Sessions help needed!

2003-07-05 Thread John Fuller
Hello all, I am new to php in general and am trying to set up a user authentification system with mysql. The registration page works well and sends all of the data to the appropriate table in mysql. However, when I try to get the registered user to log in and start a session, the system

[PHP-DB] PHP crashing with using Oracle

2003-07-05 Thread Reuben D. Budiardja
Hello, I installed PHP-4.3.2 with oci8 and oracle support (using --with-oci8 --with-oracle). I recompile apache-1.3.27 to use the libpthread as mentioned here: http://ww.php.net/oci8 Now, I got crashes when using oracle with php. In my apache error logs, I get: [Sat Jul 5 17:24:28 2003]

[PHP-DB] Re: fatal error with DB.php

2003-07-05 Thread jsWalter
OK, I solved it. It seems that I **HAVE TO**, **MUST**, **NO CHOICE** place my php.ini in C:\WINNT (for NT and 2k) or PHP will not find it. This is a hardcoded path done at compile time. So, since no ini file, PHP was running on default values, thus it could not find DB.php since the default

[PHP-DB] SQLite

2003-07-05 Thread Gerard Samuel
With respect to the PHP manual, are there any documentation to using this extention? Thanks -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Compiling 4.2.3 with MySQL ... what does it look for?

2003-07-05 Thread -{ Rene Brehmer }-
X-posted to PHP General, PHP DB, and MySQL Hi gang Attempting to get my Linux test-server working, but ran into a problem when making PHP... System is RedHat 8, Apache 1.3.27 (compiled myself, tested OK), MySQL 4.0.13. The Apache 2.0.40 and PHP 4.2.2 that came w. RH8 didn't work correctly,

Re: [PHP-DB] Compiling 4.2.3 with MySQL ... what does it look for?

2003-07-05 Thread olinux
try --with-mysql=/usr --- -{ Rene Brehmer }- [EMAIL PROTECTED] wrote: X-posted to PHP General, PHP DB, and MySQL Hi gang Attempting to get my Linux test-server working, but ran into a problem when making PHP... System is RedHat 8, Apache 1.3.27 (compiled myself, tested OK), MySQL

[PHP-DB] Re: Very confused with query

2003-07-05 Thread Ronaldo Villarosa
This one works, just change the fields... SELECT transaction_user_id, Max(transaction_date) AS transaction_max_date, * FROM transactions group by transaction_user_id; This works... but I tried it on a number field instead of date... but it should handle the same way... Ronald Villarosa

[PHP-DB] Re: Sessions help needed!

2003-07-05 Thread Ronaldo Villarosa
It recently happened to me too... however, I use the session_id() to keep track of the same session... I also use a table to check on who's who.. Anyway, it was working fine and all of a sudden the client complained that no one can log in... I echoed the session id of the pages and saw that