[PHP] Apache php as a DSO module woes!

2001-02-22 Thread Bob Horton
*** Please reply directly or I'll likely miss the reply in the digest *** Hello, I am attempting to compile php 4.0.4pl1 as a dynamic shared module for Apache 1.3.12 on a Redhat 6.2 box. I followed the detailed directions, and upon attempting make install it went along fine, until... *snip*

Re: [PHP] I'm confused about Regular Expressions.

2001-02-22 Thread Robin Vickery
"p" == php3 [EMAIL PROTECTED] writes: Addressed to: "Kenneth R Zink II" [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from "Kenneth R Zink II" [EMAIL PROTECTED] Wed, 21 Feb 20= 01 11:42:28 -0600 --=3D_NextPart_000_00AC_01C09BFB.5E254010 Content-Type: text/plain;

Re: [PHP] Session problems

2001-02-22 Thread php3
Addressed to: Jack Davis [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from Jack Davis [EMAIL PROTECTED] Wed, 21 Feb 2001 14:58:13 -0600 We have designed a web based email program that we have recently found a problem with...If you open up two email accounts in two

Re: [PHP] help change filename.

2001-02-22 Thread Pavel Jartsev
Jan Grafstrm wrote: Hi! I am trying to change a filename this is my php: ? change $filename = "yourfile.php3.xml"; to $filename = "yourfile2.php3.xml"; ? It doesnt work do I need some more code to get it working, something like fopen? Thanks for any help. Regards Jan

[PHP] RE: How to get information from input type=image ...

2001-02-22 Thread Tim Ward
use isset($action1) and isset($action2) to test each. the nice way to do it would be for them to have the same name but different values as you would do with alternative submit buttons, but I haven't ever needed to find out how to do that and doesn't seem to be quite that simple. Tim

Re: [PHP] getting what's between td/td

2001-02-22 Thread Simon Garner
?php $data = "trtdItem3/tdtdItem3 Has Changed/td/tr"; eregi("trtd([^]+)/trtd([^]+)/td/tr", $data, $regs); echo $regs[1]; // "Item3" echo $regs[2]; // "Item3 Has Changed" ? Oops sorry, that fourth line should say: eregi("trtd([^]+)/trtd([^]+)/td/tr",

RE: [PHP] Tough one?

2001-02-22 Thread Tim Ward
a quite neat (though maybe no more efficient) way would be ... $keys = array_keys($HTTP_POST_VARS); $key_list = array(); foreach($keys as $fred) { $key_list() = $fred."='".$HTTP_POST_VARS[$fred]."'"; } $updateString=$updateString.implode(",", $key_list)."'"; ... I haven't tested the

[PHP] file listener

2001-02-22 Thread toto
Hi... I have a file, say temp.txt. It's just a kind of logging file. When my system write one line data to this file, is there any real time way to know this event from php (or other scripting language) ? TIA -toto- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] offshore Dedicated Hosting

2001-02-22 Thread Randy Johnson
Anybody know of an offshore dedicated web server hosting companies? randy -- 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]

Re: [PHP] Postgresql session handling

2001-02-22 Thread Bolt Thrower
I [EMAIL PROTECTED] wrote: It seems the pgsql_session_write() function is not even being invoked. Here it is: As a followup, it seems that turning register_globals "on" allows the pgsql_session_write() function to be called, and my test script works if I replace $HTTP_SESSION_VARS["count"]

Re: AW: [PHP] Session files? (Very Techy Questions)

2001-02-22 Thread Michael Zornek
At 5:54 PM +0100 2/21/01, Sebastian Stadtlich wrote: writing an apache module that did the following: When a file with .pdf is asked for it looks to see if the user is currently in a session (aka 'logged on'). I'm guessing the module can know this by using the HTTP headers. Figuring we

RE: [PHP] PDF Problems

2001-02-22 Thread Mathias Meyer
-Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 12:01 AM To: Michael Stearne; Sam Goin Cc: php mailing list Subject: Re: [PHP] PDF Problems If anyone knows how to fix this please let me know. In fact the Maintainers of the

[PHP] isset()

2001-02-22 Thread [EMAIL PROTECTED]
People I tried to check if teh field has set a vaule in it before submit using isset with the sniplet below if ((isset($AgeChild))=="false") { $AgeChild = "NA"; } The resule is that it always displays NA whether or not it has vaule in the field, what is the correct way of using isset for this

Re: [PHP] isset()

2001-02-22 Thread [EMAIL PROTECTED]
[PHP] isset()yes, it is the var from the form Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Thiva Charanasri To: 'Jacky@lilst' Sent: Thursday, February 22, 2001 3:59 AM Subject: [PHP] isset()

Re: [PHP] isset()

2001-02-22 Thread Philip Olson
People I tried to check if teh field has set a vaule in it before submit using isset with the sniplet below if ((isset($AgeChild))=="false") { $AgeChild = "NA"; } if you removed the quotes around "false" it should work (as currently "false" is being treated as a string) but another way

Re: [PHP] Displaying an image, that is pulled from a DB, inline

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 17:09, Chris Lee wrote: dspimage.inc ?php [...] index.php ?php echo " img src='include/dspimage.inc?product_id=123456' "; ? Note: better name that to dspimage.php, as webservers typically don't execute *.inc -- Christian Reiniger LGDC

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

2001-02-22 Thread Uwe Steinmann
steinm Thu Feb 22 01:38:59 2001 EDT Modified files: /php4/ext/hyperwave hw.c Log: - took out the HwSLS_FETCH to make it compile again on Unix Is this really neccesary at this point? Index: php4/ext/hyperwave/hw.c diff -u php4/ext/hyperwave/hw.c:1.76

Re: [PHP] Warning: page expired and cache-control header

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 18:13, Janet Valade wrote: Previously on this list, there have been questions about the Warning: page has expired problem. When you submit a form, then press the back button, you get this message and have to press refresh before the page will redisplay. I have

[PHP] Uploading/Timing scripts

2001-02-22 Thread Matt
Hi, I wondered if anyone knew what would be the better method to use to see if a file has been sent/uploaded? method 1: if ($HTTP_POST_FILES['file']['name'] != "none" $HTTP_POST_FILES['file'] != "") { method 2: if (@$fp = fopen($HTTP_POST_FILES['file']['tmp_name'],"r")) { method 2 seems to

Re: [PHP] Print in html ?

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 20:11, Hrishi wrote: On Thursday 22 February 2001 00:12, Brandon Orther wrote: Hello, I am trying to finish up a script with instructions on how to add my banner add script to someone's .phtml file. I need to print ? readfile(""); ? use : echo '?

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 00:04, Simon Garner wrote: I have a database of numbers: TOTAL HITS: 1000 PAGE 1: 500 PAGE 2: 250 PAGE 3: 250 How can I query these numbers and display back a percentage number? For instance with the numbers above: PAGE 1: 50% PAGE 2: 25%

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Simon Garner
Better (if it works): SELECT (hitcount / MAX(hitcount)) * 100 AS percentage FROM sometable Nope unfortunately that does not work :( Firstly using MAX() will not work as that finds the largest value in the group; SUM() would be more appropriate as it finds the total for that column in the

RE: [PHP] system() PHP newbie!!

2001-02-22 Thread PHPBeginner.com
You should escape your backslashes in windows file pathes Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Christian Reiniger [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

RE: [PHP] RE: Can you make a file empty?

2001-02-22 Thread PHPBeginner.com
yeah, you can just fputs() an empty string in it and close the file. In this way you'll empty it all. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Tim Ward [mailto:[EMAIL

RE: [PHP] array headaches

2001-02-22 Thread PHPBeginner.com
what I think you've missed is your array starts with []['string'] remove []... $menu['name'] = ... should work ... unless your code is a little specific Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com

RE: [PHP] POST against GET

2001-02-22 Thread PHPBeginner.com
strange .. should work ... try it again ... search for some HTML errors and see if in your PHP file there's HTTP_GET_VAR, if is there then change the _GET_ into _POST_ Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED]

RE: [PHP] HTTP_REFERER doesn't work with redirects...?

2001-02-22 Thread PHPBeginner.com
HTTP_REFERER work ONLY clicking a link which brings you to a page in the SAME window. this value comes from your browser and it is very unreliable Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original

RE: [PHP] Variable Strangeness

2001-02-22 Thread PHPBeginner.com
you made a comparison in your code. it returned true which is 1. what are you trying to do anyway? if you want to compare and print it only if it's yes then do: $confidential = 0; echo "$confidential " . $confidential ? 'yes' : ''; Sincerely, Maxim Maletsky Founder, Chief Developer

RE: [PHP] isset()

2001-02-22 Thread PHPBeginner.com
If the result is always something, for instance in the worth case it is 'N/A' then do: if($AgeChild != 'N/A') you can continue isset check if the variable has at least a byte in it. so this will return true: $var = ' '; if(isset($var)) echo 'got something in it'; Just check

RE: [PHP] file listener

2001-02-22 Thread PHPBeginner.com
from PHP - now, but you can set a script which will check the file size each minute and if finds it different does something. It will have to run under cron. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com

[PHP] size of directory

2001-02-22 Thread Andris Jancevskis
Hi, how can I determine size of directory with subdirectories? if I see at "ls -l" it returns directory size 4096. I want to know how large is directory (with files into) without looping all files ... thanx, -- Andris mailto:[EMAIL PROTECTED] -- PHP General Mailing List

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

2001-02-22 Thread Stanislav Malyshev
stasThu Feb 22 02:36:41 2001 EDT Modified files: /php4/ext/standard string.c Log: Safer bin2hex Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.189 php4/ext/standard/string.c:1.190 --- php4/ext/standard/string.c:1.189Sun Feb

Re: [PHP] No GIF support in this PHP build???

2001-02-22 Thread jason cox
Are you trying to create images or just display images? If you're trying to create images using GD, you'll need to check the version of GD you have installed. If you have a newer version or don't have it installed at all, you won't be able to use that functionality. If you're trying to display

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

2001-02-22 Thread Andi Gutmans
You only have the module globals during requests (rinit/rshutdown). You can't access them in module init/module shutdown. Andi At 11:35 PM 2/20/2001 +, Emiliano Heyns wrote: emile Tue Feb 20 15:35:35 2001 EDT Modified files: /php4/ext/midgard midgard.c Log:

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

2001-02-22 Thread Andi Gutmans
Because thread-wide globals are only available when you're actually in the thread (during a request) and not when the process starts up. If you need true globals you can just use globals. Andi At 12:34 PM 2/22/2001 +0100, Thies C. Arntzen wrote: On Thu, Feb 22, 2001 at 01:26:45PM +0200, Andi

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

2001-02-22 Thread Andi Gutmans
Yes. It will call your init_globals just in time, usually on your first access to the data if I remember correctly. Your fix is correct. I didn't see it when I sent that Email. Andi At 12:37 PM 2/22/2001 +0100, Emiliano wrote: Andi Gutmans wrote: You only have the module globals during

php-general Digest 22 Feb 2001 13:57:11 -0000 Issue 527

2001-02-22 Thread php-general-digest-help
php-general Digest 22 Feb 2001 13:57:11 - Issue 527 Topics (messages 41087 through 41146): Re: pop textarea field w/ text incl. quotes 41087 by: Simon Garner 41091 by: Paul Warner 41092 by: John Monfort 41093 by: Simon Garner 41094 by: Simon Garner

[PHP] PHP and PAM

2001-02-22 Thread Robert Marzon
Hello I tried to used PHP with autentification I wrote script, but I had got error : Fatal error: Call to undefined function: pam_auth() in /usr/home/httpd/html/farm/dev/test/user.php on line 2 I read some FAQ and I found the answer: For some reason, newer version of php4 do not always

RE: [PHP] No GIF support in this PHP build???

2001-02-22 Thread Jeremy Gillies
Try using the PNGs instead. They can get very small with good results. -Original Message- From: jason cox [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 4:39 PM To: Ana Carolina Blanco Abascal Cc: [EMAIL PROTECTED] Subject: Re: [PHP] No GIF support in this PHP

Re: [PHP] crontab help

2001-02-22 Thread Joe Stump
BTW when it sleeps PHP takes up no noticable resources. Also I'm running the php binary to send out these messages (that way I can use screen and make sure that my browser doesn't crash, os freeze, etc.) --Joe On Fri, Feb 22, 2002 at 03:36:33PM +0800, Arnold Gamboa wrote: thanks for the

RE: [PHP] size of directory

2001-02-22 Thread Robert V. Zwink
If you are running linux try du -shc /path/to/directory If you are running some other unix flavor, omit the -h and try -k Robert Zwink http://zwink.levitate.org -Original Message- From: Andris Jancevskis [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 6:29 AM To: [EMAIL

Re: [PHP] crontab help

2001-02-22 Thread Joe Stump
1.) sleep() is in seconds - plain old seconds - so sleep(300) == 5 minutes. 2.) yes - send, sleep, send, ... --Joe On Thu, Feb 22, 2001 at 11:09:05PM +0800, Arnold Gamboa wrote: hi, thanks again. questions: 1. sleep(300) would mean pause by 300 mins, right? That's why i thought you

[PHP] SEARCH ?

2001-02-22 Thread Abe Asghar
Hi there, I am implementing a search function on a site that we are working on. We have created a script that will search through the contents of a page and looks for matches etc. It works well but will get slow on a large site. Does anybody know a tutorial or info on how to create an

Re: [PHP] CGI BIN PHP

2001-02-22 Thread bill
Cool, Hrishi. Can you make it work if you use a different url? For example, for SSL connections like: https://www.secure-website.net/~mydomain I'm thinking of using something like this: $spos=strpos($SCRIPT_FILENAME, "/public_html"); // or whatever the name of the public root dir $firstpath

[PHP] RE: How to get information from input type=image ...

2001-02-22 Thread Tim Ward
I've just done some testing and the "Image" type input doesn't seem to pass its anem across as a variable at all when the form is submitted in the way a submit button does. This is contrary to the w3c html specs. I've tested this in nutscrape and micros**t ie5. this is the code that doesn't

Re: [PHP] PHP vs. FreeTDS

2001-02-22 Thread Michael Kimsal
FreeTDS is used to provide Sybase and MSSQL-specific TDS protocol instructions to the databases. ODBC is a different protocol (from my understanding). If you're trying to use ODBC stuff, you need an ODBC driver. I think FreeTDS might have this/allow this, but I don't think it's intended to do

[PHP] Alternate 2 schedules...

2001-02-22 Thread J-Frs Dubé
I' m searching a way to programmatically alternate 2 schedules each sunday at 00:00. Schedule1 start on first sunday and seven days later, schedule2 replace schedule1,and seven days later, schedule1 replace schedule2 etc... Waiting... John

[PHP-CVS] cvs: php4 /pear Mail.php Makefile.in /pear/Mail SMTP.php Sendmail.php sendmail.php smtp.php

2001-02-22 Thread Chuck Hagenbuch
chagenbuThu Feb 22 08:01:15 2001 EDT Removed files: /php4/pear/Mail SMTP.php Sendmail.php Modified files: /php4/pear Mail.php Makefile.in /php4/pear/Mail sendmail.php smtp.php Log: factory-generated classes have

Re: [PHP] image orientation?

2001-02-22 Thread Matt McClanahan
On Wed, Feb 21, 2001 at 05:48:50PM -0500, Jaxon wrote: Is there any way to take an image from the filesystem, say a .jpg or .png, and display it in a different orientation? e.g. 20 degrees to the right? Yes, php_imlib can do image rotations. http://mmcc.cx/php_imlib/

[PHP] Writing to an ftp...

2001-02-22 Thread Brandon Orther
Hello, I need to write a file and upload it to a ftp. Is there a way to upload without making a temp file? Like making a text file on the server and writing to it? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL

Re: [PHP] sessions and objects

2001-02-22 Thread jeremy brand
Don't store your object in the session, that is just bad design. Store a lookup value, then grab your object from your DB only when you need it. Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - -

RE: [PHP] sessions and objects

2001-02-22 Thread Cal Evans
Why is this good design? If I create a user object, populate it, kill the connection to the database (or return it to the pool) and cache the object then I can retrieve it any time I want without having to hit the database. Not arguing, just curious as to your perspective. Cal

[PHP] I have a great problem with sessions, can anybody help me!!!

2001-02-22 Thread Securez
I install a new system RH6.2 width some updates the kernel is a 2.2.17-14 I use Apache 3.1.14 whit PHP 4.0.4pl1 compiles as a module. I use a test page that is very simple to check sessions: ?php session_start(); if( !isset( $c)) { session_register("c"); $c = 1; } echo $c . "br"; ? a

Re: [PHP] isset()

2001-02-22 Thread Joe Stump
I stand firm on strlen() for the following reasons ... if(!$var) will sometimes act strangely (has for me in the past) when variables are set to something other than what you are expecting. if(isset($var)) will return true if your text field is declared but not filled in. if(empty($var)) will

Re: [PHP] isset()

2001-02-22 Thread Ernest E Vogelsinger
At 19:07 22.02.2001, Joe Stump said: [snip] I'll take an extra bazillionth of a second to know for sure I have what I need [snip] Do you really know _how_ right you are? g ...ebird O Ernest E.

[PHP] variable sent using pots is cat!

2001-02-22 Thread kaab kaoutar
Hi! i have a problem! i send a variable from one page to another page using post method! but when a variable is like composed of two words , the other page receives only the first word ! can u please help?! Thanks _ Get Your

[PHP] Obtaining a value from dynamic list box

2001-02-22 Thread Claudia
When selecting a value from a dynamically generated list box, the subsequent value passed to the table truncates when there is a blank in the string Here is the table structures (Mysql database) First table has variable course_name (varchar -- length 50) This database will be used to generate

[PHP] How do I request a new feature?

2001-02-22 Thread Ide, Jim
Hi - How can/should I contact the developers of PHP to request that they add a new feature to PHP? Thanks - Jim -- 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,

[PHP] Templates PHP

2001-02-22 Thread Maamiin
Where can I find some help, how to make use page templates on my webpages??? Needs this some add-ons to my PHP3(Linux-main)/PHP4(win98+pws)? THNX -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Passing values containing a ? and a

2001-02-22 Thread Tom Harris
I want to assign a value using the url however the value contains both a ? and an so PHP (or the browser) seems to get confused. Here's an example: http://www.mysite.com/index.php?id=23url=http://www.anothersite.com/file.ph p?qid=234forum=4 Everything after url= should be the value of $url

RE: [PHP] Passing values containing a ? and a

2001-02-22 Thread Javier Muniz
URLs must be encoded if they contain special characters (and should be encoded always). See urlencode(). -jm -Original Message- From: Tom Harris [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 11:12 AM To: [EMAIL PROTECTED] Subject: [PHP] Passing values containing a ? and

Re: [PHP] Passing values containing a ? and a

2001-02-22 Thread Ernest E Vogelsinger
At 20:11 22.02.2001, Tom Harris said: [snip] I want to assign a value using the url however the value contains both a ? and an so PHP (or the browser) seems to get confused. Here's an example:

[PHP] Troubleshooting Strange Problem

2001-02-22 Thread Ben Ocean
Hi, I moved my server, changed the IP addresses, etc., and now I'm having strange problems with PHP. Not on all scripts, just some. Scripts that worked just fine before I moved it. Most notably, I'm working with Phorm http://holotech.net and I can no longer pass certain variables. Again:

Re: [PHP] variable sent using pots is cat!

2001-02-22 Thread Jason Stechschulte
On Thu, Feb 22, 2001 at 06:36:06PM -, kaab kaoutar wrote: i have a problem! i send a variable from one page to another page using post method! but when a variable is like composed of two words , the other page receives only the first word ! can u please help?! Look at the form that you

[PHP] books

2001-02-22 Thread Gustavo Vieira Goncalves Coelho Rios
May some suggest a kick ass book on php? Thanks a lot for your time and cooperation. best regards, Gustavo Rios PS: Any one here from Brazil/South America ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] File command

2001-02-22 Thread Liam Gibbs
I'm using the file command, which reads an entire file and sticks it into an array. I'm trying to read a file from mp3.com, and what I get back is basically that the connection is refused. Doesn't it just load it up like any browser would load it? Is there an equivalent command that wouldn't try

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

2001-02-22 Thread Hartmut Holzgraefe
hholzgraThu Feb 22 10:35:23 2001 EDT Modified files: /php4/tests/strings 003.phpt Log: removed LC_* warnin Index: php4/tests/strings/003.phpt diff -u php4/tests/strings/003.phpt:1.1 php4/tests/strings/003.phpt:1.2 --- php4/tests/strings/003.phpt:1.1

[PHP] Solaris with 100 VHosts -- death

2001-02-22 Thread Dan Debertin
I'm seeing various posts to mailing lists in the past on this subject, but there doesn't appear to be a fix. I'd love it if one of you can help out. We're running PHP 4.0.0 and Apache 1.3.12 on Solaris 7. PHP runs fine with 99 VirtualHosts, but when we add our 100th, every site on the server

Re: [PHP] Troubleshooting Strange Problem

2001-02-22 Thread Philip Olson
It could have to do with the register_globals setting (within php.ini) as the following : ?php // foo.php?fruit=apple echo $fruit; ? Will print nothing if register_globals is off. The following will print it correctly, whether on or off (assuming track_vars is on) : ?php //

[PHP] concatenate vars?

2001-02-22 Thread W.D.
I need to combine two variables which are set to two form field values and will be put into $from of mail(). Should it be $from = "$varOne . $varTwo" ? also a way to make if(.something) (eregi("blah", $one)("blah2", $two)("blah3", $three));will this work?

Re: [PHP] books

2001-02-22 Thread Philip Olson
"PHP Developers Cookbook" is my favorite, it and many others are listed here : http://www.php.net/books.php The WROX books are popular. Also, check out the archives for previous discussions : http://marc.theaimsgroup.com/?l=php-generalr=1w=2q=bs=book Regards, Philip Olson

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:37:33 2001 EDT Modified files: /CVSROOTcvsusers gen_acl_file.m4 Log: doc account for Dmitry Tkatchenko Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.215 CVSROOT/cvsusers:1.216 --- CVSROOT/cvsusers:1.215 Thu Feb 15

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:40:02 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Lucas Rocha Index: CVSROOT/avail diff -u CVSROOT/avail:1.88 CVSROOT/avail:1.89 --- CVSROOT/avail:1.88 Tue Feb 20 10:23:17 2001 +++

[PHP] security

2001-02-22 Thread Gustavo Vieira Goncalves Coelho Rios
How may i prevent my users from reading others php scripts? -- 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]

Re: [PHP] concatenate vars?

2001-02-22 Thread Philip Olson
I need to combine two variables which are set to two form field values and will be put into $from of mail(). Should it be $from = "$varOne . $varTwo" ? Check out : Using Strings : -

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:47:54 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc accounts for Juhyon Kim and Luiz Augusto Gonçalves Flores Index: CVSROOT/avail diff -u CVSROOT/avail:1.90 CVSROOT/avail:1.91 --- CVSROOT/avail:1.90 Thu

RE: [PHP] security

2001-02-22 Thread Javier Muniz
Encode them, or set filesystem permissions in such a way (suggest using groups) to allow apache to read files but not other users. For instance, if your users are all members of the users group, and apache runs as nobody, then set your files to be owned by the user with the nobody group (chown

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:51:03 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Ernani Joppert Pontes Martins Index: CVSROOT/avail diff -u CVSROOT/avail:1.91 CVSROOT/avail:1.92 --- CVSROOT/avail:1.91 Thu Feb 22 10:47:54

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:53:52 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Arne Blankerts Index: CVSROOT/avail diff -u CVSROOT/avail:1.92 CVSROOT/avail:1.93 --- CVSROOT/avail:1.92 Thu Feb 22 10:51:03 2001 +++

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:56:53 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Carlos Eduardo Vargas Miranda Index: CVSROOT/avail diff -u CVSROOT/avail:1.93 CVSROOT/avail:1.94 --- CVSROOT/avail:1.93 Thu Feb 22 10:53:51

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:59:40 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Adonias Malosso Index: CVSROOT/avail diff -u CVSROOT/avail:1.94 CVSROOT/avail:1.95 --- CVSROOT/avail:1.94 Thu Feb 22 10:56:52 2001 +++

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 11:01:21 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Jaemin Byon Index: CVSROOT/avail diff -u CVSROOT/avail:1.95 CVSROOT/avail:1.96 --- CVSROOT/avail:1.95 Thu Feb 22 10:59:40 2001 +++

RE: [PHP] books

2001-02-22 Thread Boaz Yahav
Check out : http://www.weberdev.com/index.php3?GoTo=ShowShoppingItems.php3%3FMasterCateg ory%3D156%26SubCategory%3D106%26SubCategoryName%3DPHP%26MainCategoryName%3DB ooks Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original

[PHP] filenames on file download

2001-02-22 Thread indrek siitan
Hi, I'm storing files in DB. basically (what's important in this case), I have two columns: file_name - contains the original filename file_src - blob which contains the actual file now the user clicks on a link something like download.php?file_id=123 and the php script will spit out

[PHP] best slashdot?

2001-02-22 Thread Jaxon
I hate to post flamebait, but I genuinely want to know - what have people liked as far as a slasdot style PHP apps? I would love one that has integrated user management and mailing lists :) TIA, and sorry for the YAWIB (yet another which-is-best) post. regards, jaxon -- PHP General Mailing

Re: [PHP] security

2001-02-22 Thread Gustavo Vieira Goncalves Coelho Rios
Javier Muniz wrote: Encode them, or set filesystem permissions in such a way (suggest using groups) to allow apache to read files but not other users. For instance, if your users are all members of the users group, and apache runs as nobody, then set your files to be owned by the user

[PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Scott Walter
I am attempting to insert a set of data (actually a pair) into an array, without much success. I would like to insert the data set ("course number", "course title") into a numerically indexed array so that when I want to output the array I can reference it like so:

[PHP] Adding new data at beginning.

2001-02-22 Thread Jan Grafström
Hi! I am trying to put in a new data at the beginning of a file. I have started like this; $yourfile = "test.xml"; (abcdef/c this is the file.) $fp = fopen ($yourfile, r); $message = array(1 = 'a', 'b', 'c', 'd', 'e', 'f', '/c'); Here I need some code to get the output look like

RE: [PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Javier Muniz
Try: echo $array[$i][course_num] . ' ' . $array[$i][course_title]; -jm -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 22, 2001 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] Arrays -- How do I insert a pair of data into an array I am

Re: [PHP] Asking Sth about PHP

2001-02-22 Thread Toby Butzon
You can also use PHP for shell scripting - just add #!/path/to/php -q as the first line of your script. Note: You will still need to enclose all PHP scripting in ?php ... ? tags. Here's an example: file: phpinfo.phpshell ? phpinfo() ? The preceding information was returned by PHP info.

Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Simon Garner
From: "Ian LeBlanc" [EMAIL PROTECTED] I am working on a site that has over 1000 pages and all the images need to be made lower case in the HTML. Here is what I have so far. Please someone tell me what I am doing wrong. $contents="img src=ThisOneReallyNeedsToBeAllLowercase.gif

Re: [PHP] MySQL execution order?

2001-02-22 Thread ..s.c.o.t.t.. [gts]
mysql executes the queries in the order it recieves them, (so if your program's logic executes a select before an update, you'll never see results from the update in your select... at least not normally :) Are you able to access the MySQL monitor program? if so, verify that the data really does

[PHP] Problem using META tag refresh for page re-directs

2001-02-22 Thread Johnson, Kirk
I have been using the code below to do my page redirects for a year and a half with good results. Recently, some users have reported to me that the actual code is being partially displayed to the screen, and the re-direct is not occurring. It is as if the server stops serving the page before it

Re: [PHP] books

2001-02-22 Thread Phillip Bow
Personally I started with the Wrox Professional PHP Programming guide and still use it today(its sittin in front of me). I see they have one out now for php4 which is around $60 which I am probably going to order just to keep up to date. They cover the basics and then go into some more specific

Re: [PHP] MySQL execution order?

2001-02-22 Thread Mark Maggelet
On Thu, 22 Feb 2001 17:41:43 -0500, ..s.c.o.t.t.. [gts] ([EMAIL PROTECTED]) wrote: mysql executes the queries in the order it recieves them, (so if your program's logic executes a select before an update, you'll never see results from the update in your select... at least not normally :) well,

Re: [PHP] Problem using META tag refresh for page re-directs

2001-02-22 Thread Chris Lee
if you have output buffering on in php.ini output_bufffering = on cobine this with ?php header("Location: http://$SERVER_NAME/index.php"); exit(); ? and youve got a great cobination, zero html will be sent to the browser, just the header, the browser will refresh for you. try it,

[PHP] Regex problems.....

2001-02-22 Thread Ian LeBlanc
Guys/Gals: For some reason too long to explane .. i have this site that i need to make all the image names in an image src all lowercase.. Here is what I have so far. Please someone tell me what I am doing wrong. ? $contents="img src=ThisOneReallyNeedsToBeAllLowercase.gif

Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 23:42, Simon Garner wrote: This should do the trick (untested!): ? $contents = "img src=ThisOneReallyNeedsToBeAllLowercase.gif alt=ThisOneReallyNeedsToBeAllLowercase.gif"; $contents = preg_replace("/([-_a-zA-Z0-9]+)\.gif/e", "strtolower('\\1') .

Re: [PHP] Regex problems.....

2001-02-22 Thread Phillip Bow
You should either do this with ereg, or strtolower and not a combination of the two, and in all actuality strtolower is specifically desinged to do this very easily so I would go with it. ? $contents="img src=ThisOneReallyNeedsToBeAllLowercase.gif alt=ThisOneReallyNeedsToBeAllLowercase.gif";

[PHP] Ok, this might make more sense

2001-02-22 Thread YoBro
Hi, My last message on this topic was a bit hard to translate. So here is the thought out version. 1.I have a page on a server called admin.php (protected by htaccess for admin use only) 2.This page holds variables that are changed by form elements. (Checkboxes etc) And this in

  1   2   >