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

2001-01-16 Thread Rasmus Lerdorf
rasmus Wed Jan 17 00:05:45 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Karma for Lyric Index: CVSROOT/avail diff -u CVSROOT/avail:1.43 CVSROOT/avail:1.44 --- CVSROOT/avail:1.43 Tue Jan 16 16:29:32 2001 +++ CVSROOT/avail Wed Jan 17

[PHP] random no. between two numbers?

2001-01-16 Thread Erick Papadakis
hi, in php, how can i generate a random no. but between two numbers? for example, i need to generate any integer, randomly, between 1 and 1000. thanks a lot! regards/erick __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http:

Re: [PHP] I love/hate FrontPage - need another HTML editor. -> Dreamweaver 4

2001-01-16 Thread andreas \(@work\)
hi, here you see our FLASHBOOK its just flash4, php and mysql www.artfuntasy.com greetings andre - Original Message - From: "Murph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 3:45 AM Subject: Re: [PHP] I love/hate FrontPage - need another HTML edito

[PHP-CVS] cvs: php4 /ext/exif exif.c /main network.c

2001-01-16 Thread Rasmus Lerdorf
rasmus Tue Jan 16 22:40:49 2001 EDT Modified files: /php4/ext/exif exif.c /php4/main network.c Log: Kill a couple of warnings Index: php4/ext/exif/exif.c diff -u php4/ext/exif/exif.c:1.10 php4/ext/exif/exif.c:1.11 --- php4/ext/exif/exif.c:1.10

Re: [PHP] win 2000 nt 5.0 and IIS

2001-01-16 Thread Niel Zeeman
Try this and see how far you get... Niel Zeeman - Original Message - From: "Serge Montmarquette" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 7:54 PM Subject: [PHP] win 2000 nt 5.0 and IIS > > how can I make php work with this now!? > > > -- > PHP Ge

RE: [PHP] Anything similar to phpmyedit?

2001-01-16 Thread Maxim Maletsky
www.heraut.demon.nl is a good tool for database design/presentation, then DBTools http://dbtools.vila.bol.com.br/ is also awsome for managing the databases... non of these is written in PHP, they are for your local machine, but I personally like it this way better... Cheers, Maxim Maletsky. ---

Re: [PHP] HELP! Date formatting

2001-01-16 Thread Niel Zeeman
Thanx This should make live a bit easier :) - Original Message - From: "Niel Zeeman" <[EMAIL PROTECTED]> To: "php gen list" <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 7:46 AM Subject: [PHP] HELP! Date formatting Hi Ive gotto format a date such as 30/12/1956 to format 30-Dec

[PHP] Anything similar to phpmyedit?

2001-01-16 Thread Gerry Chu
I'm looking for something exactly like phpmyedit (mysql database displayer/editor) but where I can edit more than one database row at a time. Is there anything like this? Thanks, Gerry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] HTTP_POST???

2001-01-16 Thread Wade Halsey
Hi I have the following code which is created in a loop. For example there will be three rows with different values and each checkbox will have a unique name. On the next page once a submit button has been pushed I want to do: sqlExecute( "Select * from SkyDiary where AccNo = (He

[PHP] Integers are not Variables..???

2001-01-16 Thread Dhaval Desai
Hi Guys!! Below is my code:(which works but See the ourput on this pageplease... http://dhaval.isamillionaire.com/loop.php " method="post"> -- 1 2 3 4 5 " .""; } } else { echo ""; } echo " "; ?> I want to accomplish the

[PHP] Addendum to the question: as a cgi version...

2001-01-16 Thread Romulo Roberto Pereira
Hey! adding to the question above: as a cgi version what are the authentications methods available?

[PHP] mysql error

2001-01-16 Thread James Mclean
fellas, i built and tested my site on a linux machine, debian 2.2, with mysql 3.22.32 and php 4 (late something, standard debian 2.2) and now i have it on the net. i am recieving this error, whereas it worked corretly locally Warning: Supplied argument is not a valid MySQL result resource in ./co

[PHP] best user authentication method?

2001-01-16 Thread Romulo Roberto Pereira
hello! What is the best user authentication methd for linux (apache)? and for windows (IIS)?

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Murph
> Having used both FrontPage and Dreamweaver in the past I have resorted back to a text editor. Not that either was bad or good. Just found that I had the best control when doing the writing myself. Hi, James. There's no question that hand-coding is the way to go. I'm with you 110% on that s

Re: [PHP] Re: XML, what is that supposed to do?

2001-01-16 Thread Matt McClanahan
On Tue, 16 Jan 2001, Alex Black wrote: > for example, a DTD for that bookmark example above is unly useful if a bunch > of people agree on it as a standard, otherwise it doesn't do any real good. And to cite an example for this example, I'll point out XBEL, because as bookmark DTD goes, I think

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Toby Butzon
A sincere "thank you" to James ;) I completely agree. I thought about saying something but I'm so sick of the editor wars I decided not to... --Toby - Original Message - From: "James McLaughlin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 10:53 PM Subject

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread James McLaughlin
Having used both FrontPage and Dreamweaver in the past I have resorted back to a text editor. Not that either was bad or good. Just found that I had the best control when doing the writing myself. I currently use EditPlus2 for text editing. It has everything I need and cost very little. I

Re: [PHP] Zend Optimizer

2001-01-16 Thread Michael A. Peters
I can confirm this. The currently available Zend Optimizer only works with 4.0.3/4.0.3pl1 On Monday, January 15, 2001, at 04:03 PM, Thomas Deliduka wrote: > When I look at the website (http://www.zend.com/zend/optimizer/) it says it > works with PHP Version 4.0.3 or 4.0.3pl1 it says no early or

Re: [PHP] regexps

2001-01-16 Thread Toby Butzon
You could loop it with foreach (which I think is the same way Perl handles the ex you gave). foreach ($myArr as $myStr) { $myStr = ereg_replace($regexp, $myStr); } Note quite "one statement", but if you really wanted to shorted it (and in the opinion of most sacrafice readability), you could

Re: [PHP] Re: XML, what is that supposed to do?

2001-01-16 Thread Brian White
I thought I might weigh into this debate in a small way. My background is a little different. I have spent the last five years playing with SGML ( Standard Generalised Markup Language ) which is the ancestor of XML - basically, XML was invented by elements of the SGML community to create a "lighte

php-general Digest 17 Jan 2001 03:24:59 -0000 Issue 459

2001-01-16 Thread php-general-digest-help
t;Price: $DMB\n"; >} > >Chris Lee >Mediawaveonline.com > > > >""K.Simon"" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >How can i add all the fetched rows from a table? > >$result=mysql(

Re: [PHP] php'ed mysql query

2001-01-16 Thread Toby Butzon
Have you tried adding or die(mysql_error()) to try and let mysql tell you what's wrong? That and the previously-suggested echo-ing the SQL statement solve most of my problems. --Toby - Original Message - From: "Christopher Allen" <[EMAIL PROTECTED]> To: "Sam Masiello" <[EMAIL PROTECTED

Re: [PHP] is 1 a Variable...Discoverd it just now...

2001-01-16 Thread Toby Butzon
Works for me... what version of PHP are you using? --Toby - Original Message - From: "Dhaval Desai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 7:56 AM Subject: [PHP] is 1 a Variable...Discoverd it just now... > > HI! > > > When I run the foillowing code

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Murph
> A much more realistic windows solution in half the time (and about a > thousandth of the HD space :) You can add in a Step 11 if needed which is > to Slap yourself over the wrist 5 times for wanting to use Frontpage in the > first place. Hi, Chris. Really, thanks for the suggestion. I'm with

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Todd H MacPherson
Heh heh Now were talkin' :o) Todd - Original Message - From: "Chris Aitken" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: January 16, 2001 9:11 PM Subject: Re: [PHP] I love/hate FrontPage - need another HTML editor. > At 09:06 PM 16/01/2001, Kath wrote: > >Hey, > > > >To get Fron

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Chris Aitken
At 09:06 PM 16/01/2001, Kath wrote: >Hey, > >To get Frontpage to recognize PHP files (at least to let you edit them), do >the following (I'm assuming FP2000): > >1 - Open FP >2 - Click on Tools >3 - Click on Options >4 - Click on the Configure Editors tab >5 - Hit Add >6 - Make file type "php" >7

RE: [PHP] Re: XML, what is that supposed to do?

2001-01-16 Thread Maxim Maletsky
uff... that was long but very useful, thanks Terry - a good contribution for our developers team in here whom I just forwarded your email and for PHP-General archives. Cheers, Maxim Maletsky -Original Message- From: Terrence Chay [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 20

Re: [PHP] I love/hate FrontPage - need another HTML editor. -> Dreamweaver 4

2001-01-16 Thread Murph
> I use Macromedia Dreamweaver 4 - it's the best ever for HTML and others. It > recognizes the PHP extension and checks for syntax errors though it doesn't > check for errors in the PHP-languages. It seems like there's an awful lot of people jumping on the Macromedia editor bandwagon and after v

Re: [PHP] Macromedia and Allaire (cold fusion) have agreed to merge.

2001-01-16 Thread Boris Kozovich
Now with CodeCharge & PHP there is no more need for PHP + UltraDev ;) - Original Message - From: lou <[EMAIL PROTECTED]> To: PHP-General <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 3:52 PM Subject: [PHP] Macromedia and Allaire (cold fusion) have agreed to merge. > http://www.m

[PHP] log out from secure server

2001-01-16 Thread [EMAIL PROTECTED]
Hi people, How do I do the log out function out of the site?(the site is on secure server) Is that okay to just use the redirect function? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"

Re: [PHP] Template parser

2001-01-16 Thread Alex Black
you can do that in .htaccess or httpd.conf with the apache rewrite engine. _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > Fr

Re: [PHP] RedHat+Apache+php+MSSQL

2001-01-16 Thread Alex Black
dude, I installed RH7 _nightmare_ so I promptly uninstalled it, and am happily running 6.2 I would advise convincing whoever told you to do that out of doing that :) I would recommend waiting until oracle runs on redhat 7.(x) - that's a good litmus test. _alex -- Alex Black, Head Monkey [E

Re: [PHP] Macromedia and Allaire (cold fusion) have agreed tomerge.

2001-01-16 Thread Alex Black
aw, crap. I never liked allaire... but I did kinda like macromedia. (giant-toilet-flushing-sound) -a -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley,

Re: [PHP] Re: XML, what is that supposed to do?

2001-01-16 Thread Alex Black
> First when most people say "the internet" now, they pretty much mean > "the web" and e-mail. When people say "the web" they mean HTTP and HTML > (with a little SSL thrown in for e-commerce). HTTP is the transport protocol > (how it is delivered) and HTML is the markup language (the message). XML

RE: [PHP] $row->user_id;

2001-01-16 Thread Benjamin Munoz
When you use mysql_fetch_object(), you get back an object. $object->property access a field. When you use mysql_fetch_array(), you get back an array. $array[index] access the same field. If you'd like, replace mysql_fetch_object with mysql_fetch_array, and use the syntax $row["user_id"]. Either

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Todd H MacPherson
Hi FrontPage is a piece of garbage...try DreamWeaveryou won't be disappointed. It is available from Macromedia and does not munge your code like FrontPage does! Todd - Original Message - From: "Murph" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: January 16, 2001 9:50 PM Subjec

RE: [PHP] HELP! Date formatting

2001-01-16 Thread Maxim Maletsky
$date = 30/12/1956; $month = Array(1=>'Jan', 2=>'Feb', 12->'Dec'); // The array of month... function date_format($date) { Global $month; $date = explode('/', $date); // And it became to you an array... return $date[0].'-'.$month[$date[1]].'-'.$date[2]; } //will return 30-Dec-

RE: [PHP] got it

2001-01-16 Thread Maxim Maletsky
what a personality ... when "or when you think" no one helps you :- R-E-A-D--A-R-C-H-I-V-E-S then even your 8 y/o sister, once browsed these will learn 'bout PHP more then you ... Maxim Maletsky -Original Message- From: Serge Montmarquette [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

RE: [PHP] How to escape from a function?

2001-01-16 Thread Maxim Maletsky
function foo() { bla bla bla... echo 'whatever...'; // that should output it whenever the function is called... // need an if? then... just put an if in here ... return $any bla bla; } or means || so if($name=='Max' or $name=='Maxim') is equal to if($name=='Max' || $name=='Maxim

RE: [PHP] string replace

2001-01-16 Thread Maxim Maletsky
but you would have to count how many dots are there ... -Original Message- From: Gregor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 5:20 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] string replace $foo = "test.gif"; $foo1 = substr($foo, 0, strpos($foo, ".")); this shou

RE: [PHP] Sessions

2001-01-16 Thread Maxim Maletsky
I've read something on PHPBuilder.com. look through the past articles Cheers, Maxim Maletsky -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, January 17, 2000 2:46 AM To: PHP User Group Subject: [PHP] Sessions Does anyone have a place with a little m

RE: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Maxim Maletsky
A dummy idea: in story.php you put a key in: then key.php will have this: if($key != 'BHEKFBSA"IjsjbdshlycgewypH:*:YEWCnbms';) Exit; then in every file you wish to protect include key.php and the articles will show up only in case it was included, or someone knew what to type in the URL... a

[PHP] XML, Parser and newbie links

2001-01-16 Thread Robert Mena
Hi, recently I was given the task to create an application to generate xml files in order to exchange data. Since my knowleadge of xml is close to zero :) I also received an english text explaining the DTD and an example of how the file should be written. So I got to a point where I simply shoul

[PHP] $row->user_id;

2001-01-16 Thread SED
Thanks! Tell me though, what does the following mean or should I ask how does it work? $row->user_id; Is it somehow relate to the following? $row["user_id"]; I tried to look for this in the manual but without any luck... perhaps I'm going blind ;) SED -Original Message---

Re: [PHP] Help! Oracle...

2001-01-16 Thread Alex Black
I have a vague memory of ORA-12545 being a database not available error. but go by the oracle errors, they are usually pretty informative. -a -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film C

RE: [PHP] I love/hate FrontPage - need another HTML editor. -> Dreamweaver 4

2001-01-16 Thread SED
Hi, I use Macromedia Dreamweaver 4 - it's the best ever for HTML and others. It recognizes the PHP extension and checks for syntax errors though it doesn't check for errors in the PHP-languages. SED -Original Message- From: Murph [mailto:[EMAIL PROTECTED]] Sent: 17. janĂșar 2001 01:51 To

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Kath
Hey, To get Frontpage to recognize PHP files (at least to let you edit them), do the following (I'm assuming FP2000): 1 - Open FP 2 - Click on Tools 3 - Click on Options 4 - Click on the Configure Editors tab 5 - Hit Add 6 - Make file type "php" 7 - Make editor name "FrontPage" 8 - Make command

[PHP] unserialize() unexpectedly returns a boolean

2001-01-16 Thread TR Henigson
I built an e-commerce application using PHP4 session management. I store all data in an array, $SESSION, which I register with the session. Most of the time, $SESSION is restored as expected on the loading of a new page. Every now and then, however, $SESSION is restored as a boolean variable with

[PHP] comparing two arrays in PHP3

2001-01-16 Thread Maurice Rickard
As my "learn PHP" project, I'm setting up a version of my site to use it. So far, so good. I'm working on a relational system to handle what sections of my site go where in a hierarchy. I'm able to add new rows to a table that relates categories to kinds of content. That works fine, but my

[PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Murph
Hi. FrontPage sucks for working with PHP. I've been doing all my coding by hand and that's fine as far as it goes but I just got a promotion at work where everyone uses FrontPage so I bought it to see how I can use it to show these old dogs some new tricks. Nice program. Allows for workgroups

[PHP] Help! Oracle...

2001-01-16 Thread Paul
Can some one help me understand this error? _oci_open_server: Error while trying to retrieve text for error ORA-12545 in /home/develop/www/htdocs/php_dev/oracle.php on line 11 My php.php server status page shows: oci8 OCI8 Support.enabled Oracle Version8.1 Compile-time ORACLE_HOME

Re: [PHP] MySQL - How to transfer a query resault into a variable?

2001-01-16 Thread Ignacio Vazquez-Abrams
On Wed, 17 Jan 2001, SED wrote: > Hi, > > Lets say I have columns e.g. > > | name | address | phone | > > I want to make a list of all the names and put the result into a HTML page > where each name is a link. > > When the name is clicked (the link), it will open another HTML page with > fu

RE: [PHP] MySQL - How to transfer a query resault into a variable?

2001-01-16 Thread Benjamin Munoz
http://www.php.net/manual/en/function.mysql-fetch-object.php Modified example from the manual above... user_id; $name = $row->name; // print them out if you want, or store them in an array to return if this is a function print ("$name\n"); } mysql_free_result ($result);

Re: [PHP] Setting Up Openlink ODBC to Work With PHP

2001-01-16 Thread Andrew Hill
Hi Grant, Check out this HOWTO, and ask if you have any questions: http://www.iodbc.org/odbc-phpHOWTO.html Best regards, Andrew -- Andrew Hill Director Technology Evangelism OpenLink Software http://www.openlinksw.com XML & E-Business Infrastructure Techn

[PHP] MySQL - How to transfer a query resault into a variable?

2001-01-16 Thread SED
Hi, Lets say I have columns e.g. | name | address | phone | I want to make a list of all the names and put the result into a HTML page where each name is a link. When the name is clicked (the link), it will open another HTML page with full information (name, address and phone). I know

[PHP-CVS] cvs: php4 / configure.in

2001-01-16 Thread Sean Bright
elixer Tue Jan 16 17:15:11 2001 EDT Modified files: /php4 configure.in Log: Updated configure.in to look for strcoll() # Woopsie. Index: php4/configure.in diff -u php4/configure.in:1.211 php4/configure.in:1.212 --- php4/configure.in:1.211 Sun Ja

Re: [PHP] MySQL + PWS Problems

2001-01-16 Thread Dell Coleman
Hi Start a DOS session and cd to the location of the mysql\bin directory; (maybe c:\mysql\bin?) type in: mysqld exit This will start mysql and exit from the DOS window You can access mysql as user ODBC or as root each one with no password If you want to set up users, do the above but type mysq

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

2001-01-16 Thread Sean Bright
elixer Tue Jan 16 17:10:51 2001 EDT Modified files: /php4/ext/standard basic_functions.c php_string.h string.c Log: Added string comparison function strcoll(). It uses the current locale to do the comparisons. @- Added localeconv() and strcoll() functions f

[PHP] Setting Up Openlink ODBC to Work With PHP

2001-01-16 Thread Grant Walters
Hi, Can anyone point me to a step by step setup including which files to download for using PHP/OpenLink? I want to make PHP talk to a Progress 8.3C database on a remote server. Regards Grant Walters Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND Telephone: +64 4 47

[PHP] Re: XML, what is that supposed to do?

2001-01-16 Thread Terrence Chay
on 1/16/00 9:38 AM, Brandon Orther at [EMAIL PROTECTED] wrote: > I have seen a lot of people ask for XML support for PHP. I was wondering > what it does that makes it good for PHP. That's a hard one to answer--I'll try anyway. I'm sorry if it sounds a bit simple-minded but that's the sort o

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

2001-01-16 Thread Zeev Suraski
zeevTue Jan 16 16:29:32 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Explicit ISAPI access for Shane PR: Submitted by: Reviewed by: Obtained from: Index: CVSROOT/avail diff -u CVSROOT/avail:1.42 CVSROOT/avail:1.43 --- CVSROOT/a

[PHP] MySQL + PWS Problems

2001-01-16 Thread Chris
Whenever I try to connect with ANY Mysql code on my cpu, I get an error saying it can't connect. I installed usingthe 4.04 win32 installer(heresey I know) which has mysql built in. Do I have to edit anything to all me to try the scripts on my personal cpu?

Re: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Nathan Cook
I would put it in the subsequent include page. if($PHP_AUTH_USER) { includes(); } else { print("You are not authorized to view this page"); } --- .:: Nathan Cook- Network/Security Admin off

Re: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Miles Thompson
Nathan, Thanks for your reply ... At 04:53 PM 01/16/2001 -0700, Nathan Cook wrote: >how do they authenticate? VIA http or a subsequent page? HTTP authentication,using Header("WWW-authenticate: basic realm=\"Business Today\"") >Whichever it is, there are variables associated with each check

[PHP] Mail problems

2001-01-16 Thread Todd H MacPherson
Hello I am doing a job for a client who has a host that just installed php4 on a WinNT system. He can not get the mail program to work properly. The server that php is on and the mail server are different computers. He, the host, asked me to try and by-pass the the mail utility and send directly

Re: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Michael Kimsal
With due respect to your boss, PHP would make the site *more* compatible with people's browsers, without having to worry about which version(s) of javascript people have, or in fact if they even have it available. I'd pitch the accessibility angle, in your shoes, if nothing else. Good luck. "Ri

RE: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Benjamin Munoz
Correction: Inside X.php, you have some authentication code. Maybe something simple as: -Ben -Original Message- From: Benjamin Munoz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 4:20 PM To: 'Miles Thompson'; [EMAIL PROTECTED] Subject: RE: [PHP] How to keep unauthorized vi

RE: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Benjamin Munoz
Miles, If you can save 2.htm as 2.php, use some authentication code. Story.php becomes Inside X.php, you have some authentication code. Maybe something simple as: Inside story.php, set $valid to true Now accessing 2.php directly means that $valid is valid and you'll be redirected to story

Re: [PHP] PHP as a MUD engine?

2001-01-16 Thread Antonio S. Martins Jr.
On Tue, 16 Jan 2001, Daniel Grace wrote: > Yes, I know this sounds crazy, but think about it. > > I've often pondered the feasibility of using PHP as a MUD engine. While it > would probably not run nearly as fast as something implemented in C/C++, it > would have a lot of flexibility: > > - Cha

RE: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Richard S. Crawford
The problem is that the main page doesn't use an include file of any sort; it's straight HTML which is frequently updated by hand. I agree that it would be nice if /index.htm had an include file that contained most of the content, and if I could convince my boss that it would be the best way to g

Re: [PHP] How to escape from a function?

2001-01-16 Thread James, Yz
> And I have one more question, what is the meaning of 'or'? > e.g. > $db=mysql_connect("localhost","root","password") or die ("could not > connect"); One more thing, which is important to me as a newbie (as I most certainly am), you can make a custom error message for the die error; which is imp

[PHP] Macromedia and Allaire (cold fusion) have agreed to merge.

2001-01-16 Thread lou
http://www.macromedia.com/special/allaire/ So much for php in ultradev ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] PHP as a MUD engine?

2001-01-16 Thread Daniel Grace
Yes, I know this sounds crazy, but think about it. I've often pondered the feasibility of using PHP as a MUD engine. While it would probably not run nearly as fast as something implemented in C/C++, it would have a lot of flexibility: - Changes to the common code wouldn't neccessarily have to re

[PHP] How to keep unauthorized viewers out

2001-01-16 Thread Miles Thompson
I'm using a pretty simple linking system for a subscription-based newsletter site. Stories and articles are in straight html files, reached by links from the front page. Clicking on a link passes a story number. So the second story on the index page would have this link: and story.php consis

Re: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Jason Brooke
I hope you don't mind me nagging on this ;) but what do you mean by having to echo changes into the /minisite directories? What I meant was, from minisite45/index.htm, include() the same content include file you use in /index.htm. I'm not seeing why the /minisite/index.htm pages need to change at

Re: [PHP-CVS] cvs: php4 /ext/vpopmail .cvsignore CREDITS Makefile.in config.m4 php_vpopmail.c php_vpopmail.h

2001-01-16 Thread Zeev Suraski
Yep, we sure did :) At 16:42 16/1/2001, Andrei Zmievski wrote: >On Sun, 14 Jan 2001, David Croft wrote: > > function_entry vpopmail_functions[] = { > > PHP_FE(vpopmail_auth_user, NULL) > > PHP_FE(vpopmail_adddomain, NULL) > > PHP_FE(vpopmail_deldomain, NULL) > > PHP_FE(vpo

Re: [PHP] Working with time()...

2001-01-16 Thread Jason Brooke
See the mysql manual - there's a section that deals with date/time functions already built into mysq that work perfectly with timestamps http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#Fun ctions jason - Original Message - From: "Dallas Kropka" <[EMAIL PROTECTED

RE: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Richard S. Crawford
The first approach is actually what we do now. However, since /index.htm is a dynamic page which changes frequently, we don't want to have to try to echo all of those changes into all of the /minisite directories (of which there are well over 100) every single time a change occurs. We're going t

[PHP] Trouble With MySQL Auto-Increment

2001-01-16 Thread Parag Mallick
Hello All, I have been using PHP4 with mysql-3.23.29a-gamma-dec-osf4.0f-alphaev6 running on a machine running Digital UNIX V4.0F. Since upgrading the database from 3.22 to 3.23, auto-increment fields have been acting strangely. A brief description of the table looks like: +

[PHP] Working with time()...

2001-01-16 Thread Dallas Kropka
in my database, all entries have a timestamp I need a way to brake the entries up and sort the entries: by year by month according to year by day according to the month and preferably by hour according to the day... How do I do this? Are there functions floating around the net that will do

Re: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Jason Brooke
Any reason you don't include the contents of /index.htm into /ministe1/index.htm with the appropriate welcome message instead of redirecting, or even pass the site name in the query string of the Location: URL if you're not wanting to rely on http_referer? jason > In this case, the value of the

Re: [PHP] win 2000 nt 5.0 and IIS

2001-01-16 Thread Todd Cary
Serge - I have the same setup as you do and my install time was 10 minutes including Interbase 6.0. What I did is a little different than some: I have two directories off of my root on my WIN 2K computer: c:\php_active c:\php404 I unzip the latest PHP (4.0.4) into php404 making sure I keep th

Re: [PHP] How to escape from a function?

2001-01-16 Thread Ignacio Vazquez-Abrams
On Wed, 17 Jan 2001, Zenith wrote: > ... may be I have use a wrong subject, but I can't think a more suitable one > sorry first! > > say, I have a function like this > function foo() > { > babababa... > /*at this point, I want to output a lot of html, can I use a ':' to escape > from there?*/ > /

Re: [PHP] Strings??

2001-01-16 Thread Chris Hayes
Ade asked: > I have a form which has 10 fields, is there any way in PHP to take the values > once submitted and create a string for each?? Absolutely. Worse; it is already done for you! If you give the input box a name, and submit to a php page, the php page contains a variable with that name! I

RE: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Richard S. Crawford
In this case, the value of the cookie is pulled from a database; the specific value depends on the URL at the user is redirecting from. If the user comes from www.domain.com/minisite1/index.htm then when they're directed to www.domain.com/index.htm, they should see "Welcome from minisite1"; but

Re: [PHP] How to escape from a function?

2001-01-16 Thread Chris Hayes
> say, I have a function like this > function foo() > { > babababa...; > /*at this point, I want to output a lot of html, can I use a ':' to escape > from there?*/ echo ''; echo 'chris is great'; return; // would just stop the function OR if you want to call the function from

Re: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Jason Brooke
The thing that usually intrigues me is why people design their application so that it needs to redirect to another page just so that they can attempt to read the cookie back. Do they not already have the value of the cookie in order to be able to set it? Why attempt to read it back straight away?

Re: [PHP] Strings??

2001-01-16 Thread April
PHP automatically makes values submitted in a form available to the next page. aka: form.htm would be: and then in php.php the variable $Field would hold "Field Value" wihtout you having to do anything. So, if php.php were: would print Field: Field Value And I might have done that w

RE: [PHP] Re: [PHP-DEV] cookies and sessions security

2001-01-16 Thread Jason Murray
> Ach, oy vey! Then, having looked at AOL's info, it seems to me that > perhaps one could build a function or class that could evaluate > against a known list of alternate proxies. So, if the request came > from 152.163.197, it would recognize that as an AOL proxy and just > code the current p

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

2001-01-16 Thread Jani Taskinen
sniper Tue Jan 16 14:34:19 2001 EDT Modified files: /php4/ext/gdgd.c Log: Fixed bug #8733 Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.105 php4/ext/gd/gd.c:1.106 --- php4/ext/gd/gd.c:1.105 Wed Nov 29 07:25:42 2000 +++ php4/ext/gd/gd.cTue

Re: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Rasmus Lerdorf
> will this not work... > >if (($HTTP_COOKIE_VARS["foo"] != 'bar') && ($HTTP_GET_VARS["set"] != > true)) { > SetCookie("foo", "bar"); > header("Location: $PHP_SELF?set=true"); >} > > at the top of the page. or is this what is unreliable on some browsers? Some browsers just can't h

RE: [PHP] Strings??

2001-01-16 Thread Benjamin Munoz
Ade, What kind of string? What do you want to do with them? -Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Strings?? Quick Question. I have a form which has 10 fields, is there

Re: [PHP] regexps

2001-01-16 Thread Monte Ohrt
Most of the preg_ functions support arrays of values as input parameters. It's all in the documentation. "Elliot L. Tobin" wrote: > > Is there a way to call one regexp on multiple variables, in one statement? > In Perl, I'd do: > > s/this/that for ($var1, $var2, $var3); > > tia.. and please re

[PHP] Strings??

2001-01-16 Thread Website4S
Quick Question. I have a form which has 10 fields, is there any way in PHP to take the values once submitted and create a string for each?? Thanks Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] How to escape from a function?

2001-01-16 Thread Zenith
... may be I have use a wrong subject, but I can't think a more suitable one sorry first! say, I have a function like this function foo() { babababa... /*at this point, I want to output a lot of html, can I use a ':' to escape from there?*/ /*I know I can do this is a if construct or for... const

[PHP] Re: How can I get a random number

2001-01-16 Thread Angela
I see that you got a lot of responses, but I didn't see anyone using what I use. I had problems using rand() because it wasn't quite random enough. The following code is as random as you can get (at least from what I've seen). mt_srand ((double) microtime() * 100); $myrandomnumber = mt_rand

Re: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Jamie Burns
oop, i missed an 'exit;' command off... if (($HTTP_COOKIE_VARS["foo"] != 'bar') && ($HTTP_GET_VARS["set"] != true)) { SetCookie("foo", "bar"); header("Location: $PHP_SELF?set=true"); exit; } - Original Message - From: "Jamie Burns" <[EMAIL PROTECTED]> To: "Rasmus L

Re: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Jamie Burns
will this not work... if (($HTTP_COOKIE_VARS["foo"] != 'bar') && ($HTTP_GET_VARS["set"] != true)) { SetCookie("foo", "bar"); header("Location: $PHP_SELF?set=true"); } at the top of the page. or is this what is unreliable on some browsers? jamie. - Original Message - From:

Re: [PHP] Redhat 7 problem and fix

2001-01-16 Thread Michael Kimsal
This couldn't have been a 3-4 issue, because it was working in 4, either 4.0.1 or 4.0.2. I was just informed that we went from 4.0.2 to 4.0.4 when moving to RH7, so that might have done it, but it was working reliably (for us) in 4.0.x before the latest. :( anyway, fixed now. Richard Lynch wr

[PHP] SOS to a Salvadorean PHP user.

2001-01-16 Thread Douglas Galindo
Hi, althout i KNOW this is not a technicall issue(wait keep on reading, this's not a commercial or multilevel chain),and as a newcomer for the PHP community, I would appreciate to take a look to the following site: www.terremotoenelsalvador.bigstep.com Wich means earthquake in el salvador, I w

  1   2   3   >