Re: [PHP] Problems connecting to remote mySQL server

2001-03-21 Thread almir
the only problem could be that yourUser@webhost do not have same permisions for this db as yourUser@yourHost, check them if you can -almir "Floyd Piedad" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Almir, > > Yes I checked the names and they are

RE: [PHP] PDF reading via IE5.5

2001-03-21 Thread Stewart Taylor
Try, header("Content-type: application/pdf"); header("Location:$filename"); -Stewart -Original Message- From: Dennis Moore [mailto:[EMAIL PROTECTED]] Sent: 21 March 2001 04:14 To: [EMAIL PROTECTED] Subject: [PHP] PDF reading via IE5.5 I have searched long and hard to resolve this iss

[PHP] Date solved! And now TIME problems : Booking by Date/Time

2001-03-21 Thread Thomas Edison Jr.
i was able to succesfully check for start dates & end dates before feeding new booking in the database using the following code : =sdate and '$realsdate'<=edate) or ('$realedate'>=sdate and '$realedate'<=edate)",$db); if (mysql_num_rows($result)) { ?> alert('Sorry, the room is already book

[PHP] Optional Parameter ?

2001-03-21 Thread Jack Sasportas
Is it possible to have a function that looks something like function print_this( $value1, $value2, $maybe3) { do whatever; } that would expect $value1, $value2 BUT would not care if $maybe3 came in or not ? and not give an error message that there is a missing paramter ? I know I can do a

RE: [PHP] Optional Parameter ?

2001-03-21 Thread Stewart Taylor
You can give $maybe3 a default value which will be used if it is not passed in the function call. You can only do this for the last parameter in the function. function print_this ($value1, $value2, $maybe3=false) { do whatever if ($maybe != false) do whatever with $maybe } -Stewart ---

Re: [PHP] PHP post

2001-03-21 Thread Dezider Góra
You could use curl functions to do this. Search the manual for curl functions, and enable curl extension in php. hth Dezider David Robley wrote: > On Wed, 21 Mar 2001 17:45, Paul Juliano wrote: > > Hello, > > > > How would I simulate an http post in PHP. Something like the > > equivalent of

Re: [PHP] Problems connecting to remote mySQL server

2001-03-21 Thread Floyd Piedad
Hi Almir, Here is more info: Server1: where my database resides Server2: where my script resides On Server1: I can access the database using mysql command and PHP. On Server2: I can access the database using mysql -hserver1 I can show all the tables, select data, etc. BUT, when running PHP

Re: [PHP] banner exchange, how to?

2001-03-21 Thread Mark Maggelet
On Tue, 20 Mar 2001 21:27:14 -0800, Ed Lazor ([EMAIL PROTECTED]) wrote: >Hi =) > >I'd like to setup a banner exchange with some friends. Some of them >don't >have PHP access, so I'm trying to come up with something that will >work for >everyone. I checked one site that's running a banner exchang

[PHP] sorri- Non-php question

2001-03-21 Thread John LYC
Sorry guys... this is not a php question... but this is by far the best web resource i have seem...so here goes.. does anyone here know of any mailing list for perl or JAVA...? any great web resrcs/website? anyway, so far.. i still think php official website provides the best resource for their

[PHP] RE: Dynamically build a form from mySQL table

2001-03-21 Thread Tim Ward
$result = mysql_db_query("FocusDynamics", "SHOW COLUMNS FROM items"); while($field = mysql_fetch_array($result)) { $thisfield = $field["field"]; echo(""); echo("$thisfield"); echo(""); } I'm assuming mysql. You may want to play around with analysing $field["type"] to

[PHP] Finding every even 100

2001-03-21 Thread Nicklas af Ekenstam
Hi Propably a really simple question, but my math skills are not up to speed anymore: How do I find out if an int is an even 100? I.e. 100, 200, 1200, 9900 etc. I could always divide by 100 and have a look at the result and se if it has any decimals but I'm guessing this could be done prettier

RE: [PHP] Optional Parameter ?

2001-03-21 Thread Neil Kimber
Alternatively, you can use the approach below. There are different benefits from each approach. The following approach is particularly useful if you want an unlimited number of parameters (like elipses in C). function print_this ($value1, $value2) { if (3==func_num_args())

RE: [PHP] Finding every even 100

2001-03-21 Thread Stewart Taylor
If the number divided by 100 hundred has no remainder e.g. if (($num % 100) == 0) even_100 = true; -Stewart -Original Message- From: Nicklas af Ekenstam [mailto:[EMAIL PROTECTED]] Sent: 21 March 2001 09:38 To: [EMAIL PROTECTED] Subject: [PHP] Finding every even 100 Hi Propably a reall

[PHP] Post -vs- Get

2001-03-21 Thread Jack Sasportas
I have written a system with authentication to gain access to individual data. Since I am using the post method the command line has something like abc.com?client_no=5 Now even though if that person emails you that url, you won't gain access to it bascause of authentication that is needed, what

[PHP] can you have two sql statements on the same page.

2001-03-21 Thread Matt Davis
I want to extract 2 sets of data each from different tables in the same db but display the results on the same page at the same time. Can I just have two sql statements like this or do I need to do something else. //sql statement 1 $sql1 = "select club_full_name from clubs where club_n

RE: [PHP] Post -vs- Get

2001-03-21 Thread Stewart Taylor
It would be better to use randomly generated strings for your client ids e.g. md5(uniqid(rand())); This would be must harder for another use to guess. Even better would be to store your users details in a session variable so that the id will never appear in the url at all. e.g. a very basic ex

Re: [PHP] Editing Variables from another script.

2001-03-21 Thread techzeus
What are the functions that can achieve that ? - Original Message - From: "Neil Kimber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Stewart Taylor" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 21, 2001 12:24 AM Subject: RE: [PHP] Editing Variables from another script.

Re: [PHP] can you have two sql statements on the same page.

2001-03-21 Thread Jack Sasportas
The simple answer would be 2 while statements, but are you trying to mix the results or are you keeping them seperate? By mix there are 2 options value_db1 Value_db2 Value_db1 or value_db1 value_db1 value_db2 value_db1 by the simple answer above it would result in something like Category #1 va

RE: [PHP] Optional Parameter ?

2001-03-21 Thread Rudolf Visagie
Or you can use an array: function print_this( $ArrayValues ) { do whatever using count($ArrayValues) to determine the bounds of the array; } -Original Message- From: Neil Kimber [mailto:[EMAIL PROTECTED]] Sent: 21 March 2001 11:44 To: Stewart Taylor; 'Jack Sasportas'; [EMAIL PROTECT

[PHP] function mail()

2001-03-21 Thread Eric Tonicello
Hi ! I'm trying to use the function mail(). I get : Warning: Failed to Connect in D:\IBOIS\web\test.php on line 1 I'm using the lastest version of PHP on IIS 4.0 What's wrong ? Should I change the php.ini ? If I try to use the snmp library i get lot of errors... PLease help.me mcfly

FW: [PHP] can you have two sql statements on the same page.

2001-03-21 Thread Jeff Armstrong
Matt, > put two sets of data in the same while loop... If there is some logical relationship between the sets of records then consider adding a join: $sql = "select club_full_name,message,messate_title " " from clubs,noticeboard " " where clubs.club_name = noticeboard.club_na

[PHP] apache problem on startup w/ libmhash

2001-03-21 Thread Dean Hall
(Sorry for the cross-post; I'd like to get this solved, as I haven't been able to find a solution for several months.) I have installed mhash and libmcrypt (and mcrypt, for that matter), configured php with both of the extensions, and compiled PHP (as a DSO), and apache gives the following error

RE: [PHP] Attachment problem with web based mail - CODE SAMPLE

2001-03-21 Thread Grant Walters
> We hired a developer about a year ago to develop a > web based email system for us in php. The developer > is no longer around, so I am having to pick up > the development on the project...When clicking > on the attachment link of an email in Internet > Explorer 5.5 in Windows 98, I get the save

RE: [PHP] Attachment problem with web based mail

2001-03-21 Thread Grant Walters
> We hired a developer about a year ago to develop a > web based email system for us in php. The developer > is no longer around, so I am having to pick up > the development on the project...When clicking > on the attachment link of an email in Internet > Explorer 5.5 in Windows 98, I get the sav

[PHP] Response.Write [OK]

2001-03-21 Thread AJDIN BRANDIC
Hi, I have built a shopping cart and have made connection to an Internet payment company. Now once transaction is processed they want from my confirmation page to receive an "[OK]". How can I do this with php3/4? Response.Write"[OK]" is what ASP uses, I think??? Thanks Ajdin -- PHP Gen

Re: [PHP] Post -vs- Get

2001-03-21 Thread Michael Hall
> abc.com?client_no=5 > > Now even though if that person emails you that url, you won't gain > access to it bascause of authentication that is needed, what can happen > is an authorized user could change the 5 in the url to 8, and then see > the information that is there which belongs to client

RE: [PHP] Response.Write [OK]

2001-03-21 Thread Jon Haworth
You could investigate www.php.net/echo, I think it's what you're after. Cheers Jon -Original Message- From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]] Sent: 21 March 2001 12:05 To: [EMAIL PROTECTED] Subject: [PHP] Response.Write [OK] Hi, I have built a shopping cart and have made conne

RE: [PHP] Response.Write [OK]

2001-03-21 Thread AJDIN BRANDIC
You think I need to do something like echo'Response.Write[OK]'; This will print Response.Write [OK] on he screen or Ajdin On Wed, 21 Mar 2001, Jon Haworth wrote: > You could investigate www.php.net/echo, I think it's what you're after. > > Cheers > Jon > > > -Original Message-

[PHP] Lostpassword script Error

2001-03-21 Thread techzeus
Hi there, I need some help here. I have uploaded all the files necessary into my server. grab it at www.frozened.com/zeus/lostpassword.zip This is a lostpassword script whereby when the user inputs his email address, the script will check if his email is a valid email ( [EMAIL PROTECTED] ) aft

Re: [PHP] Response.Write [OK]

2001-03-21 Thread techzeus
no. Imagine Response.write as echo. so it will be echo "OK"; PHP doesn't parse ASP tags - Original Message - From: "AJDIN BRANDIC" <[EMAIL PROTECTED]> To: "Jon Haworth" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, March 21, 2001 8:24 PM Subject: RE: [PHP] Response.Writ

Re: [PHP] function mail()

2001-03-21 Thread Tobias Talltorp
See the SMTP value in your PHP.ini and set it to a valid outgoing mail server Another thing I have noticed, perhaps this is only me, is that if the TO-address isn´t valid it will fail. Try to send an email to your own email address... // Tobias ""Eric Tonicello"" <[EMAIL PROTECTED]> wrote in m

Re: [PHP] PHP post

2001-03-21 Thread Tobias Talltorp
No can do... You can send a post to another page, but not go to that page. In order to go to the page the form was was posted, the information must come from the client. You can use javascript for this, but it is not a very stable solution. // Tobias ""Paul Juliano"" <[EMAIL PROTECTED]> wrote

RE: [PHP] Response.Write [OK]

2001-03-21 Thread Matt Williams
> > I have built a shopping cart and have made connection to an Internet > payment company. Now once transaction is processed they want from my > confirmation page to receive an "[OK]". How can I do this with php3/4? > > Response.Write"[OK]" is what ASP uses, I think??? try echo "alert('

Re: [PHP] apache problem on startup w/ libmhash

2001-03-21 Thread Yasuo Ohgaki
At first find where is libmhash.so.2. Then edit your ld.so.conf. Then run ldconfig. Filename and command name may vary, I can't tell since you didn't mention your OS. Alternatively, you can build into PHP if you have static lib. I prefer this way for non standard libs to make sure web server star

Re: [PHP] Perl and PHP

2001-03-21 Thread Yasuo Ohgaki
I'm not sure what you really want to do, but you can use system() (or others) to execute something on your web server. (You may not be able to do that. It depends on server config) Regards, -- Yasuo Ohgaki "Calin Rotaru" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTE

[PHP] Sessions help please

2001-03-21 Thread KPortsmout
Hi, I am going to use sessions to authenticate and protect my pages, this is what I have so far... User logs in via form, this is checked via a SQL call, if the correct username and password are entered I run the following: session_start(); session_register("UserName","Password"); hea

Re: [PHP] session.gc_maxlifetime

2001-03-21 Thread Yasuo Ohgaki
It depends on your requirement. For me 1440 sec is too short. I'll set it to little over 1 hour because login timeout is 1 hour. If you have login/logout system using session, the value better to be larger than login timeout. Regards, PS: You might want to set gc probability around 10%. Depends

Re: [PHP] Response.Write [OK]

2001-03-21 Thread AJDIN BRANDIC
OK I have done this. Thanks guys Ajdin On Wed, 21 Mar 2001 [EMAIL PROTECTED] wrote: > no. > > Imagine Response.write as echo. > > so it will be > > echo "OK"; > > PHP doesn't parse ASP tags > > - Original Message - > From: "AJDIN BRANDIC" <[EMAIL PROTECTED]> > To: "Jon Haworth"

Re: [PHP] Header Problem

2001-03-21 Thread Pierre-Yves Lemaire
Hello, Yes this should work, but if like me, you still have no redirection and you are working with IE 4.0, put exit; after header. $URL="domain.com"; header ("Location: Http://www.$URL/members/index.php"); exit; I have not seen this anywhere, but putting exit; after a redirection was the only wa

Re: [PHP] apache problem on startup w/ libmhash

2001-03-21 Thread Dean Hall
""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message 99a7rf$rer$[EMAIL PROTECTED]">news:99a7rf$rer$[EMAIL PROTECTED]... > At first find where is libmhash.so.2. Then edit your ld.so.conf. > Then run ldconfig. I'm trying this, and I'll get back to you on whether it works. > Filename and command n

[PHP-CVS] cvs: php4 /tests/lang 018.phpt 019.phpt 020.phpt 021.phpt 022.phpt 023.phpt 024.phpt 025.phpt 028.phpt

2001-03-21 Thread André Langhorst
andre Wed Mar 21 04:47:34 2001 EDT Modified files: /php4/tests/lang018.phpt 019.phpt 020.phpt 021.phpt 022.phpt 023.phpt 024.phpt 025.phpt 028.phpt Log: more win32 fixes Index: php4/tests/lang/018.phpt diff -u php4/tests/lang/

[PHP] file height and width

2001-03-21 Thread george
I want to restrict the height and width of a file a user will upload to the how do I do this, is there a function for this. TIA -- george [EMAIL PROTECTED] remove my_pants to reply P@tty's excellent DW tutorial site http://www.thepattysite.com/dreamweaver/ Jhinuk Chowdhury 's DW FAQ http://peo

Re: [PHP] apache problem on startup w/ libmhash

2001-03-21 Thread Dean Hall
""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message 99a7rf$rer$[EMAIL PROTECTED]">news:99a7rf$rer$[EMAIL PROTECTED]... > At first find where is libmhash.so.2. Then edit your ld.so.conf. > Then run ldconfig. Well, this seems to have worked. I don't know why it didn't work when I tried doing it

Re: [PHP] apache problem on startup w/ libmhash

2001-03-21 Thread Dean Hall
""Dean Hall"" <[EMAIL PROTECTED]> wrote in message 99a9kk$hnp$[EMAIL PROTECTED]">news:99a9kk$hnp$[EMAIL PROTECTED]... > > ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message > 99a7rf$rer$[EMAIL PROTECTED]">news:99a7rf$rer$[EMAIL PROTECTED]... > > At first find where is libmhash.so.2. Then edit

[PHP] RE: [PHP-DB] Transmitting Arrays

2001-03-21 Thread Rudolf Visagie
Try using array variable names in HTML: $rs is a statement from a select sql. This code snippet puts the values of the columns returned in an array $field. if (OCIFetch($rs)) { for ($i = 0; $i <= $NFields; $i++) { $field[$i] = OCIResult($rs, $i+1); } } Somewhere

Re: [PHP] Sessions help please

2001-03-21 Thread Hardy Merrill
[EMAIL PROTECTED] [[EMAIL PROTECTED]] wrote: > Hi, > > I am going to use sessions to authenticate and protect my pages, this is what > I have so far... > > User logs in via form, this is checked via a SQL call, if the correct > username and password are entered I run the following: > > sessio

[PHP-CVS] cvs: php4 /tests/strings 001.phpt 002.phpt 003.phpt

2001-03-21 Thread André Langhorst
andre Wed Mar 21 04:47:46 2001 EDT Modified files: /php4/tests/strings 001.phpt 002.phpt 003.phpt Log: more win32 fixes Index: php4/tests/strings/001.phpt diff -u php4/tests/strings/001.phpt:1.1 php4/tests/strings/001.phpt:1.2 --- php4/tests/strings/001.ph

[PHP-CVS] cvs: php4 / run-tests.php

2001-03-21 Thread André Langhorst
andre Wed Mar 21 04:52:33 2001 EDT Modified files: /php4 run-tests.php Log: win32 fixes again Index: php4/run-tests.php diff -u php4/run-tests.php:1.18 php4/run-tests.php:1.19 --- php4/run-tests.php:1.18 Tue Mar 20 22:33:00 2001 +++ php4/run-tests.p

[PHP-CVS] cvs: php4 / run-tests.php

2001-03-21 Thread André Langhorst
andre Wed Mar 21 05:00:34 2001 EDT Modified files: /php4 run-tests.php Log: fighting against the cvs client, it does not want to let the win32 binary safe change go in... Index: php4/run-tests.php diff -u php4/run-tests.php:1.19 php4/run-tests.php:1.20

Re: [PHP] header redirection

2001-03-21 Thread Jason Stechschulte
On Tue, Mar 20, 2001 at 10:05:06PM -0800, [EMAIL PROTECTED] wrote: > Why wouldn't this redirect? The query works, but the page won't redirect. I > have used the same two lines successfully on other pages. I'm very tired, > it's probably obvious. > > // assuming $uid, $itemid, $week, $cur_wk in

[PHP-CVS] cvs: php4 /ext/standard basic_functions.c

2001-03-21 Thread Sean Bright
elixer Wed Mar 21 05:53:39 2001 EDT Modified files: /php4/ext/standard basic_functions.c Log: Fix for bug #9698. # Anyone that can think of a way to fix long2ip(), feel free. Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_func

RE: [PHP] Sessions help please

2001-03-21 Thread Jeff Armstrong
Apologies for the long post. I use this approach: (simplified) at the top of every page, before any HTML. Pop it into an include right at the top. I have not included all the util function e.g. LogQuietAlert() regards Jeff "); gotoPage("/login"); } } #===

Re: [PHP] header redirection

2001-03-21 Thread Yasuo Ohgaki
"Jason Stechschulte" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tue, Mar 20, 2001 at 10:05:06PM -0800, [EMAIL PROTECTED] wrote: SNIP > > > > $redirurl = "bid.php?uid=" . $uid . "&itemid=" . $itemid; > > header ($redirurl); > > ?> > > It appears your code

Re: [PHP] Post -vs- Get

2001-03-21 Thread Yasuo Ohgaki
Since original poster requests where to look. http://www.php.net/manual/en/language.variables.external.php PHP manual is great reference for PHP programmers. If you haven't read, it is recommended to read. Another link in zend.com http://www.zend.com/zend/tut/ There are many useful links in www.z

Re: [PHP] Setting up mail() for WinXX

2001-03-21 Thread Yasuo Ohgaki
Why you are using IP address? (No DNS MX record for the host??) Anyway, SMTP server can work w/ IP address, but many programs tries to look up DNS MX records for SMTP server. I guess PHP trying to get MX records for the IP. I didn't look into code, I can easily be wrong. (SMTP server should have M

[PHP] OCI8 server errors -> client

2001-03-21 Thread Hardy Merrill
I have an Oracle client on a webserver talking to an Oracle server through Oracle networking and the PHP OCI8 interface. When an error occurs on the server, the 'message' that OCIError receives on the client is Error while trying to retrieve text for error ORA-03113 This seems to happen with the

Re: [PHP] Status on ISAPI PHP

2001-03-21 Thread Yasuo Ohgaki
I've recently installed PHP4.0.4 and PHP4.0.5-RC1 for IIS5 (CGI and ISAPI) CGI version works ok so far. However, ISAPI version is very unstable. I haven't use it much, but it is not ready for production use for sure. -- Yasuo Ohgaki ""Carsten Gehling"" <[EMAIL PROTECTED]> wrote in message 01a00

Re: [PHP] email an ms-word attachment (please)

2001-03-21 Thread Jen Hall
Hi Rick I have advised my client of all of the risk you mention. They still want to go ahead. They feel that the bulk of their website visitors are trustworthy (huge assumption on their part), and they tell me they will assume all responsibility for virus checking, etc. I still need to know how

[PHP] Session Help for newbie plz

2001-03-21 Thread insight
I am looking for help with session handling. I have modified Joe Jarosciak`s password script slightly, so that instead of logging in to d/l files, you login to one or two secure area`s. (depending on the access level of password used) How and where can i modify this more, so that a session will b

Re: [PHP-CVS] cvs: php4 / run-tests.php

2001-03-21 Thread Thies C. Arntzen
On Wed, Mar 21, 2001 at 12:52:33PM -, André Langhorst wrote: > andre Wed Mar 21 04:52:33 2001 EDT > > Modified files: > /php4 run-tests.php > Log: > win32 fixes again > > Index: php4/run-tests.php > diff -u php4/run-tests.php:1.18 php4/run-tests.php:1.1

Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c

2001-03-21 Thread Stanislav Malyshev
SB>> Fix for bug #9698. SB>> # Anyone that can think of a way to fix long2ip(), feel free. I don't think there's any good way to fix this - PHP "long" value is signed long, and it cannot hold unsigned long. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com

Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c

2001-03-21 Thread Bright, Sean
How do I merge these changes into the RC2 branch? ""Sean Bright"" <[EMAIL PROTECTED]> wrote in message news:... > elixerWed Mar 21 05:53:39 2001 EDT > > Modified files: > /php4/ext/standardbasic_functions.c > Log: > F

Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c

2001-03-21 Thread Sascha Schumann
On Wed, 21 Mar 2001, Bright, Sean wrote: > How do I merge these changes into the RC2 branch? > Please DON'T. Only well-tested fixes for _critical_ bugs should be merged automatically. - Sascha Experience IRCG http://schumann.cx/

[PHP] New Site for PHP Beginners

2001-03-21 Thread Jeff Oien
PHP >start here Internet resources and book reviews for those just starting out with PHP and MySQL http://www.webdesigns1.com/php/ Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

RE: [PHP] Create a Bulletin Board

2001-03-21 Thread John Huggins
You mean something like this: http://www.astronomy.net/forums/ > -Original Message- > From: Jimmy Bäckström [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 20, 2001 4:54 PM > To: PHP General List > Subject: [PHP] Create a Bulletin Board > > > Yo! > I'm thinking of writing a bulletin

[PHP] RE: [Q] Parser behavior in a string

2001-03-21 Thread Tim Ward
I just spotted this, so apologies if it's already been answered. PHP will try to treat first in $arr[first] as a constant. if it doesn't find a constant with this name it will treat it as a string. There may be an error reporting level which throws this up as an error. $arr['first'] is therefore

[PHP] RE: [Q] Parser behavior in a string

2001-03-21 Thread Tim Ward
I just spotted this, so apologies if it's already been answered. PHP will try to treat first in $arr[first] as a constant. if it doesn't find a constant with this name it will treat it as a string. There may be an error reporting level which throws this up as an error. $arr['first'] is therefore

Re: [PHP] Finding every even 100

2001-03-21 Thread Rick St Jean
$i % 100 = 0 At 10:37 AM 3/21/01 +0100, Nicklas af Ekenstam wrote: >Hi > >Propably a really simple question, but my math skills are not up to speed >anymore: > >How do I find out if an int is an even 100? I.e. 100, 200, 1200, 9900 etc. >I could always divide by 100 and have a look at the result

Re: [PHP-CVS] cvs: CVSROOT / cvsusers gen_acl_file.m4

2001-03-21 Thread Andrei Zmievski
On Wed, 21 Mar 2001, Stig Bakken wrote: > Index: CVSROOT/cvsusers > diff -u CVSROOT/cvsusers:1.240 CVSROOT/cvsusers:1.241 > --- CVSROOT/cvsusers:1.240Sat Mar 17 16:37:01 2001 > +++ CVSROOT/cvsusers Tue Mar 20 22:48:06 2001 > @@ -283,3 +283,4 @@ > sfox Steph Fox [EM

[PHP-CVS] cvs: php4 /ext/midgard article.c

2001-03-21 Thread Emiliano Heyns
emile Wed Mar 21 06:53:29 2001 EDT Modified files: /php4/ext/midgard article.c Log: Disallow duplicate article names under one parent Index: php4/ext/midgard/article.c diff -u php4/ext/midgard/article.c:1.17 php4/ext/midgard/article.c:1.18 --- php4/ext/m

[PHP] PHP Verbindung zu mysql

2001-03-21 Thread denis mettler
Hi, Habe folgendes Problem: Suse 7.1 Standardmässig ist Apache mit PHP installiert. Das läuft auch alles solange ich nicht versuche eine DB anzubinden bzw. abzufragen. Ich bekomme dann immer folgende Meldung: Warning: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.s

Re: [PHP] PHP Verbindung zu mysql

2001-03-21 Thread denis mettler
Hi Remco, That's not the Problem. But I don't have the mysql.sock in this directory. Regards Denis On Wednesday 21 March 2001 16:36, you wrote: > denis mettler <[EMAIL PROTECTED]> writes: > > Hi, > > > > Habe folgendes Problem: > > > > > Warning: Can't connect to local MySQL server through so

RE: [PHP] email an ms-word attachment (please)

2001-03-21 Thread Grant Walters
> [EMAIL PROTECTED] wrote: > > > Addressed to: Jen Hall <[EMAIL PROTECTED]> > > [EMAIL PROTECTED] > > > > ** Reply to note from Jen Hall <[EMAIL PROTECTED]> Tue, > 20 Mar 2001 19:59:26 -0500 > > > > > > Hi there > > > I am trying to build an application where a user can use an > > >

Re: [PHP-CVS] cvs: php4 / run-tests.php

2001-03-21 Thread André Langhorst
>> -set_time_limit(0); > > > out of curiousity - why is removing set_time_limit(0) needed? in case you did not notice... it was not in there before, Sebastian added it due to a misbehaviour I introduced with pathnames containing spaces, but it is fixed now and is not needed anymore andré

Re: [PHP] PHP Verbindung zu mysql

2001-03-21 Thread Julie Meloni
denis mettler wrote: > But I don't have the mysql.sock in this directory. Is mysqld running at all? ++ | Julie Meloni ([EMAIL PROTECTED]) | || | "PHP Essentials" and "PHP Fast & Easy" | | http://www.thickb

php-general Digest 21 Mar 2001 15:58:26 -0000 Issue 580

2001-03-21 Thread php-general-digest-help
php-general Digest 21 Mar 2001 15:58:26 - Issue 580 Topics (messages 44867 through 44963): Re: Cache 44867 by: Matt Stone 44868 by: Tyrone Mills 44869 by: Matt Stone PDF reading via IE5.5 44870 by: Dennis Moore 44902 by: Stewart Taylor PHP/MySQL & C

Re: [PHP] file height and width

2001-03-21 Thread Chris Lee
you *could* limit them, imaesx() and imagesy() are what your looking for. what I would say is why? why limit someones image upload when you can easily resize it. display_thumbnail.inc should be able to hack it up :) -- Chris Lee [EMAIL PROTECTED] ""george"" <[EMAIL PROTECTED]> wrote i

Re: [PHP-CVS] cvs: php4 / run-tests.php

2001-03-21 Thread Sebastian Bergmann
André Langhorst wrote: > in case you did not notice... it was not in there before, Sebastian > added it due to a misbehaviour I introduced with pathnames containing > spaces, but it is fixed now and is not needed anymore run-tests.php will still need more than 30 seconds (default) on some syste

Re: [PHP] header redirection

2001-03-21 Thread Chris Lee
header("Location: http://$SERVER_NAME/$redirurl"); or better header("Location: http://$SERVER_NAME/$redirurl?$SID"); where $SID = "PHPSESSID=". session_id(); this way your sessions will carry if your not using cookies and are using --enable-trans-sid i <[EMAIL PROTECTED]> wrote in message

[PHP-CVS] cvs: php4 /ext/standard mail.c

2001-03-21 Thread Ben Mansell
joostersWed Mar 21 07:15:31 2001 EDT Modified files: /php4/ext/standard mail.c Log: UnixWare 7.1 does not have EX_TEMPFAIL or (as far as I can tell) a concept of a temporary failure response to pclose(). Index: php4/ext/standard/mail.c diff -u

[PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
Can't I or or ??? I'm trying to, the script works fine if I load it normally, but as an include in a shtml (server parsed) file it always returns "error ocurred bla bla bla". What am I doing wrong? . [ Christian Dechery ] . Webdeveloper @ Tá Na Mesa! . Listmaster @ Gaita-L . http://ww

[PHP-CVS] cvs: php4(PHP_4_0_5) / run-tests.php

2001-03-21 Thread André Langhorst
andre Wed Mar 21 07:35:07 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4 run-tests.php Log: synchronizing with CVS Index: php4/run-tests.php diff -u php4/run-tests.php:1.16.2.1 php4/run-tests.php:1.16.2.2 --- php4/run-tests.php:1.16.2.1 Tue Mar 20

Re: [PHP] file height and width

2001-03-21 Thread george
Chris, It's going straigt into a db and is then pulled out and displayed on the page. I want the image to be a specific size. Thanks george -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

RE: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Brian V Bonini
Is there a reason you not using PHP's include method to do this? Rename your shtml file to have a PHP extension, replace the SSI instructions with PHP functions. You should be good to go. -Brian *** > -Original Message- > From: Christian Dechery [mailto:[EMAIL PROTECTED]] >

RE: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Jon Haworth
Wow, error messages are getting better these days ;-) Are you running PHP as a CGI interpreter or a server module? -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: 21 March 2001 16:20 To: [EMAIL PROTECTED] Subject: [PHP] include virtual, file or exec cgi?

[PHP-CVS] cvs: php4 / run-tests.php

2001-03-21 Thread André Langhorst
andre Wed Mar 21 08:01:53 2001 EDT Modified files: /php4 run-tests.php Log: I don't like to commit this over and over either, but this client definitely seems to dislike branches Index: php4/run-tests.php diff -u php4/run-tests.php:1.20 php4/run-tests.

[PHP] FW: Returned mail: User unknown

2001-03-21 Thread Brian V Bonini
Why do I always get his when posting to the list? The original message was sent to [EMAIL PROTECTED] -Original Message- From: Mail Delivery Subsystem [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 3:38 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Returned mail: User u

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-03-21 Thread Stig Bakken
ssb Wed Mar 21 08:10:38 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: * give mboeren access to phpdoc too Index: CVSROOT/avail diff -u CVSROOT/avail:1.123 CVSROOT/avail:1.124 --- CVSROOT/avail:1.123 Tue Mar 20 22:58:25 2001 +++ CVSROOT/

[PHP] Central Inbox

2001-03-21 Thread Tim Haynes
Collect your email anytime and anywhere with http://www.centralinbox.co.uk, if you register you can check upto 5 email accounts, allowing you to read your emails and attachments as well as sending email with attachments. Their is also a calendar that you can enter important dates so you don't miss

[PHP] Simple question about mail() limitations (if any :)

2001-03-21 Thread SED
Hi, Before I try it myself and kill my server :), is it safe to send via mail() function multiply e-mails like: while (expr) { mail ($to, $subject, $message); } Are there any limitation in this? (e.g. 100 mails? 100.000? 1.000.000?) If so, is it possible

[PHP-CVS] cvs: php4 / NEWS

2001-03-21 Thread Andrei Zmievski
andrei Wed Mar 21 08:19:55 2001 EDT Modified files: /php4 NEWS Log: Fixing news. Index: php4/NEWS diff -u php4/NEWS:1.617 php4/NEWS:1.618 --- php4/NEWS:1.617 Tue Mar 20 18:09:20 2001 +++ php4/NEWS Wed Mar 21 08:19:54 2001 @@ -8,11 +8,11 @@ No

Re: [PHP] A NETWORK MARKETER?

2001-03-21 Thread Phillip Bow
Geez, where can I buy stock? This is gonna be HUGE! ;-) -- phill <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > ATTENTION: ANY SERIOUS NETWORK MARKETER > TAKE A LOOK AT THE FOLLOWING OPPORTUNITY I CAME ACROSS!! > IF YOU PLUG INTO THEIR PROVEN SYSTEM, TH

RE: [PHP] include virtual, file or exec cgi?

2001-03-21 Thread Christian Dechery
>Is there a reason you not using PHP's include method >to do this? >Rename your shtml file to have a PHP extension, replace >the SSI instructions with PHP functions. You should >be good to go. I don't wanna rename all my shtml files (which are a LOT) and change all my links to .php in files like

[PHP] MySQL "DISTINCT" query

2001-03-21 Thread Jared Howard
I need to retrive all column information from a DISTINCT query. But so far, I only can get one column to show by using this: SELECT DISTINCT my_column FROM my_table; which then gives me a list of my_column information and is correct, but I need all information from all columns. Querying this:

[PHP] PHP an WinNT-Filesystem

2001-03-21 Thread Dirk Ritters
Hi, i have to install a php-tool on an IIS4.0 NT-server owned by our customer. I would like to write into a directory with a script but i always receive an error: Warning: fopen("d:\InetPub\blabla\pages\news\admin\data\210301192417.dat","a") - Permission denied in d:\InetPub\blabla\pages\news\ad

[PHP] Custom Session Handlers with Oracle?

2001-03-21 Thread Michael Champagne
Has anyone out there implemented custom session handlers using Oracle? If so, is there any code out there that might point me on how to do this. I've found the article on phpbuilder.net that details doing this for with DBM but I can't find anything for doing this with Oracle. Thanks! -- Micha

RE: [PHP] MySQL "DISTINCT" query

2001-03-21 Thread Jack Dempsey
I'm not sure what you're trying to do, but have you tried SELECT DISTINCT * FROM tablename; ? jack -Original Message- From: Jared Howard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 1:05 PM To: [EMAIL PROTECTED] Subject: [PHP] MySQL "DISTINCT" query I need to retrive all

Re: [PHP-CVS] cvs: php4 / run-tests.php

2001-03-21 Thread André Langhorst
> run-tests.php will still need more than 30 seconds (default) on some > systems. If not now, then when more tests are added, etc. > > IMHO it should be in there. ok. maybe a good idea to put it there, but set_time_limit(900) will be sufficient andré -- · André Langhorstt: +49 33

[PHP] session destroy???

2001-03-21 Thread Miguel Loureiro
Hello all, when using sessions, if use command session_destroy shouldn't all variables related with used session destroyed??? It seams that is a crazy question, but, after make a logout(session_destroy()), I use the browser buttons to go back to inicial page and forward until logout page, it c

[PHP] URIs as variables

2001-03-21 Thread Issac Goldstand
Newbie question here. I am trying to pass a varaible containing a URI across a few scripts. Basically, the first script get's a query string including the URI (eg http://foo.bar/script1.php?url=script2.php?var1=a&var2=b). Now, script1 contains a form pointing to script3 so basically, I have the

  1   2   3   >